/* Qualitygraf — sitio público
   Idea: la placa lista para máquina. Azul de emulsión, aluminio y una sola
   tira de control CMYK como detalle; todo lo demás, sobrio. */
:root {
  --paper: #ffffff;
  --alu: #eaeef1;          /* aluminio de la placa */
  --alu-2: #d6dde2;
  --rule: #cdd5db;
  --ink: #17212a;
  --ink-2: #4f5b66;
  --emul: #123a46;         /* emulsión azul petróleo */
  --emul-2: #1d5c6b;
  --emul-ink: #c5dade;     /* texto secundario sobre azul */
  --c: #00a6e0;
  --m: #e5207e;
  --y: #f6df00;
  --k: #17212a;
  --wa: #1fae5b;
  --wrap: 1160px;
  --gutter: clamp(18px, 4.5vw, 44px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: 3px; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografía: Archivo ensanchada para títulos (carácter industrial), normal para leer */
h1, h2, h3, .h4 {
  margin: 0;
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 115;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 620; font-variation-settings: "wdth" 108; letter-spacing: 0; }
.h4 { font-size: 1.08rem; line-height: 1.3; font-weight: 620; font-variation-settings: "wdth" 108; letter-spacing: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 34em; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.35em;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--emul); color: #fff; }
.btn-primary:hover { background: var(--emul-2); }
.btn-light { background: #fff; color: var(--emul); }
.btn-light svg { color: var(--wa); }
.btn-light:hover { background: var(--alu); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.link { font-weight: 600; color: var(--emul-2); text-underline-offset: 4px; }
.link:hover { color: var(--emul); }

/* ---------- cabecera ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { margin-right: auto; display: inline-flex; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .nav-wa { display: none; }
.top-wa { min-height: 44px; padding: 0 1.1em; font-size: .95rem; }
.top-wa svg { color: #7fe0a7; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .top-wa { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--rule); }
  .top.open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--alu); font-size: 1.05rem; color: var(--ink); }
  .nav .nav-wa { display: inline-flex; margin-top: 16px; }
}

/* ---------- hero ---------- */
.hero { background: var(--emul); color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.hero h1 { max-width: 11.5em; }
.hero .lead { color: var(--emul-ink); margin-top: 24px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 28px; color: var(--emul-ink); font-size: .95rem; }

/* La placa: el único elemento decorativo de la página */
.plate { margin: 0; }
.plate-sheet {
  position: relative;
  padding: 34px 34px 22px;
  background: linear-gradient(160deg, #f3f6f8 0%, #dfe5ea 55%, #cfd7dd 100%);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -28px rgba(0,0,0,.55);
  transform: rotate(-1.4deg);
}
.plate-sheet img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 1px; filter: saturate(.92); }
.reg { position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--k); border-radius: 50%; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--k); }
.reg::before { left: 50%; top: -6px; bottom: -6px; width: 1.5px; transform: translateX(-50%); }
.reg::after { top: 50%; left: -6px; right: -6px; height: 1.5px; transform: translateY(-50%); }
.reg-tl { top: 8px; left: 8px; } .reg-tr { top: 8px; right: 8px; }
.reg-bl { bottom: 8px; left: 8px; } .reg-br { bottom: 8px; right: 8px; }
.strip { display: flex; gap: 3px; margin: 14px auto 0; width: 62%; height: 9px; }
.strip i { flex: 1; }
.strip .c { background: var(--c); } .strip .m { background: var(--m); } .strip .y { background: var(--y); } .strip .k { background: var(--k); }
.strip .t1 { background: rgba(23,33,42,.6); } .strip .t2 { background: rgba(23,33,42,.35); } .strip .t3 { background: rgba(23,33,42,.15); }
.plate figcaption { margin-top: 22px; color: var(--emul-ink); font-size: .9rem; text-align: right; }

/* ---------- promesas ---------- */
.promise { background: var(--alu); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise-grid > div { padding: 34px 32px 36px 0; }
.promise-grid > div + div { padding-left: 32px; border-left: 1px solid var(--alu-2); }
.promise p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; max-width: 30em; }

/* ---------- secciones ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.alt { background: var(--alu); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.split-head .lead { margin-top: 18px; }
.machine { margin: 40px 0 0; }
.machine img { width: 100%; max-width: 440px; mix-blend-mode: multiply; }
.machine figcaption { margin-top: 10px; color: var(--ink-2); font-size: .9rem; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service-list li { padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
.service-list p { margin-top: 8px; color: var(--ink-2); max-width: 36em; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: paso; }
.steps li { counter-increment: paso; padding: 0 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--alu-2); }
.steps li::before {
  content: counter(paso);
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 20px;
  border: 1.5px solid var(--emul); border-radius: 50%;
  color: var(--emul); font-weight: 650; font-size: .95rem;
}
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }

.locales-head .lead { margin-top: 16px; }
.branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); margin-top: 48px; }
.branch { padding: 32px 32px 30px; background: var(--alu); border-radius: 6px; }
.branch h3 { font-size: 1.45rem; }
.branch address { margin-top: 10px; font-style: normal; color: var(--ink-2); line-height: 1.55; }
.branch-hours { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--alu-2); }
.branch-hours div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.branch-hours dt { color: var(--ink-2); }
.branch-hours dd { margin: 0; font-weight: 560; font-variant-numeric: tabular-nums; }
.branch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.branch-actions .btn svg { color: #7fe0a7; }

.pay { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 32px; align-items: baseline; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
.pay p { color: var(--ink-2); max-width: 44em; }

/* ---------- contacto ---------- */
.contact { background: var(--emul); color: #fff; }
.contact .lead { color: var(--emul-ink); margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.channels { list-style: none; margin: 36px 0 0; padding: 0; }
.channels li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.channels li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.channels span { display: block; font-size: .9rem; color: var(--emul-ink); }
.channels a { font-size: 1.22rem; font-weight: 600; text-decoration: none; }
.channels a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { background: #fff; color: var(--ink); border-radius: 8px; padding: clamp(24px, 3.5vw, 36px); }
.form h3 { margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emul-2); box-shadow: 0 0 0 3px rgba(29,92,107,.2); }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; margin-top: 4px; }
.form-status { margin-top: 12px; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #157347; }
.form-status.err { color: #b42318; }

/* ---------- redes ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; font-size: 0; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.social a:hover, .social a:focus-visible { background: #fff; border-color: #fff; color: var(--emul); }
.social svg { width: 18px; height: 18px; }
.channels .social { margin-top: 10px; }

/* ---------- pie ---------- */
.foot { background: var(--paper); color: var(--ink-2); font-size: .95rem; padding: 32px 0; border-top: 1px solid var(--rule); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-logo { width: 132px; }
.foot p { margin-right: auto; }
.foot .social a { border-color: var(--rule); color: var(--ink); }
.foot .social a:hover, .foot .social a:focus-visible { background: var(--emul); border-color: var(--emul); color: #fff; }
@media (min-width: 720px) { .foot .social { margin-right: 64px; } } /* deja libre el botón flotante de WhatsApp */

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .plate { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .promise-grid { grid-template-columns: 1fr; }
  .promise-grid > div, .promise-grid > div + div { padding: 24px 0; border-left: 0; }
  .promise-grid > div + div { border-top: 1px solid var(--alu-2); }
  .branches { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .plate-sheet { padding: 26px 26px 18px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
  .hero-actions .btn { width: 100%; }
  .branch { padding: 26px 22px; }
}
