/* ==========================================================================
   DESTAPES JET — Hoja de estilos única
   Identidad idéntica al sistema de gestión: teal var(--azul-btn) + Archivo/IBM Plex
   Mobile-first. Sin frameworks. Editar solo las variables de :root.
   ========================================================================== */

/* --- 1. PALETA DE MARCA ---------------------------------------------------
   Todos los colores salen del logo. Cada uno tiene un rol y un contraste
   verificado; no se usan por gusto sino por función.

     #072F4C  navy del contorno       — franjas, header oscuro, texto fuerte
     #08AAE4  azul del disco          — el color de la marca. Fondos y acentos
     #46D0EC  cyan de la salpicadura  — agua, detalles, texto sobre navy
     #F3760C  naranja del mango       — acento y urgencia
     #CFD0CF  gris del destapador     — metal en las ilustraciones

   IMPORTANTE: el azul #08AAE4 es demasiado claro para texto blanco encima
   (contraste 2,66). Para botones y enlaces se usan las variantes oscuras
   --azul-btn y --azul-tinta, que sí pasan 4,5:1.
   -------------------------------------------------------------------------- */
:root {
  /* Azules de marca */
  --azul:        #08AAE4;   /* el del logo. Fondos, ilustraciones, acentos   */
  --azul-btn:    #0A6DA6;   /* botón con texto blanco   · 5,60:1             */
  --azul-btn-h:  #075585;   /* el mismo, al pasar encima · 7,93:1            */
  --azul-tinta:  #075585;   /* texto y enlaces sobre fondo claro · 7,21:1    */
  --cyan:        #46D0EC;   /* agua, salpicaduras, texto sobre navy          */
  --cyan-suave:  #A8E6F7;
  --azul-050:    #E8F6FC;   /* fondo de bloques destacados                   */

  /* Navy del contorno del logo */
  --navy:        #072F4C;
  --navy-hondo:  #041F35;   /* el extremo oscuro del degradado del hero      */
  --navy-medio:  #0B4268;

  /* Naranja del mango del destapador */
  --naranja:     #F3760C;   /* acento. Con texto OSCURO encima · 5,91:1      */
  --naranja-h:   #DC6608;
  --naranja-osc: #B04E04;   /* si se necesita texto blanco encima · 5,33:1   */

  /* Neutros */
  --bg:          #EFF5F8;
  --superficie:  #FFFFFF;
  --superficie-2:#F5FAFD;
  --linea:       #D3E1E9;
  --linea-suave: #E6EFF4;
  --borde:       #B9CFDC;
  --apagado:     #5C7280;   /* sobre --bg · 4,57:1                           */
  --tinta:       #0A1A24;   /* texto principal · 16,09:1                     */
  --tinta-2:     #33505F;   /* texto secundario · 7,78:1                     */

  /* Estados */
  --urgente:     #B3261E;   /* rojo de emergencia, con texto blanco          */
  --ok:          #1B6B45;
  --aviso:       #B5670F;
  --metal:       #CFD0CF;   /* gris del destapador, para ilustraciones       */

  /* Tipografía */
  --font-head: Archivo, "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num:  "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Métrica */
  --max: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 14px rgba(10, 26, 36, .07);
  --shadow-lg: 0 10px 34px rgba(10, 26, 36, .14);
  --pad-section: 4.5rem;
}

/* --- 2. RESET Y BASE ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-tinta); text-decoration: none; }
a:hover { color: var(--azul-btn); }   /* #08AAE4 no pasa contraste como texto */
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { max-width: 68ch; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--azul-tinta);
  display: block; margin-bottom: .7rem;
}
.lead { font-size: 1.06rem; color: var(--tinta-2); }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
section { padding-block: var(--pad-section); }
.section-alt { background: var(--superficie); }
.section-head { margin-bottom: 2.4rem; }

/* Foco visible en todo lo interactivo (accesibilidad) */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- 3. BOTONES --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .97rem; font-weight: 600;
  padding: .85rem 1.35rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s, transform .12s;
  min-height: 48px; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--azul-btn); color: #fff; }
.btn-primary:hover { background: var(--azul-btn-h); color: #fff; box-shadow: var(--shadow-lg); }
.btn-urgent { background: var(--urgente); color: #fff; }
.btn-urgent:hover { background: #8E1E17; color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--superficie); color: var(--tinta); border-color: var(--borde); }
.btn-ghost:hover { border-color: var(--azul); color: var(--azul-tinta); }
.btn-light { background: #fff; color: var(--azul-tinta); }
.btn-light:hover { background: var(--cyan-suave); color: var(--azul-tinta); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* --- 4. HEADER Y NAVEGACIÓN --------------------------------------------- */
.topbar {
  background: var(--navy); color: #fff;
  font-size: .82rem; letter-spacing: .01em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; min-height: 38px; text-align: center; flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: var(--cyan-suave); }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: #5BE0F5;
  display: inline-block; flex: none;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 0 1 auto; }
.brand > span { min-width: 0; }
/* El logo real de la empresa, no un ícono dibujado. */
.brand-mark { flex: none; display: block; }
.brand-mark img { height: 46px; width: auto; display: block; }
@media (max-width: 430px) { .brand-mark img { height: 40px; } }
.site-footer .brand-mark img { height: 62px; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem;
  color: var(--tinta); line-height: 1.1; letter-spacing: -.02em;
}
.brand-name { display: block; white-space: nowrap; }
.brand-sub {
  font-size: .68rem; color: var(--apagado); letter-spacing: .06em;
  text-transform: uppercase; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* En pantallas angostas el subtítulo empujaba el botón de menú fuera de la
   pantalla. Se oculta y el nombre de la marca queda solo. */
@media (max-width: 430px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.05rem; }
}

.nav-toggle {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radius-sm);
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--tinta); }
.nav-toggle[aria-expanded="true"] .icon-open,
.nav-toggle[aria-expanded="false"] .icon-close { display: none; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--superficie); border-bottom: 1px solid var(--linea);
  box-shadow: var(--shadow-lg); padding: .75rem 1.25rem 1.5rem;
}
.site-nav ul { display: flex; flex-direction: column; gap: .15rem; }
.site-nav a {
  display: block; padding: .8rem .25rem; font-weight: 600; color: var(--tinta);
  border-bottom: 1px solid var(--linea-suave);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--azul-btn); }
.site-nav .nav-cta { margin-top: 1rem; }
.site-nav .nav-cta { margin-top: 1rem; }
/* ".site-nav a" tiene más especificidad que ".btn-primary" y le pisaba el
   color del texto: el botón quedaba con letra oscura sobre azul (3,16:1).
   Acá se devuelve el blanco. */
.site-nav .nav-cta a { border: 0; color: #fff; }
.site-nav .nav-cta a:hover { color: #fff; }

/* --- 5. HERO CON DOBLE RUTA -------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 400px at 84% -4%, rgba(70,208,236,.16), transparent 58%),
    radial-gradient(700px 340px at 6% 104%, rgba(8,170,228,.24), transparent 64%),
    linear-gradient(165deg, var(--navy-hondo) 0%, var(--navy) 38%, #08557F 100%);
  color: #fff; padding-block: 3.2rem 3.6rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(to top, rgba(4,31,53,.5), transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: var(--azul-050); margin-top: 1rem; max-width: 52ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.hero-badges span {
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(4,31,53,.42); border: 1px solid rgba(168,230,247,.42);
  color: #fff; padding: .38rem .72rem; border-radius: 999px;
}

/* Las dos rutas */
.routes { display: grid; gap: 1rem; margin-top: 2.2rem; }
.route {
  background: var(--superficie); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--azul);
  display: flex; flex-direction: column; gap: .8rem;
}
.route--urgent { border-top-color: var(--urgente); }
.route h2 { font-size: 1.28rem; color: var(--tinta); }
.route p { font-size: .95rem; color: var(--tinta-2); margin: 0; }
.route-actions { display: grid; gap: .55rem; margin-top: .35rem; }
.route small { font-size: .8rem; color: var(--apagado); }

/* --- 6. CINTA DE CIFRAS ------------------------------------------------ */
.figures { background: var(--superficie); border-block: 1px solid var(--linea); padding-block: 2.2rem; }
.figures-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
.figure-item strong {
  display: block; font-family: var(--font-num); font-size: 1.65rem;
  font-weight: 600; color: var(--azul-tinta); line-height: 1.1;
}
.figure-item span { font-size: .83rem; color: var(--apagado); display: block; margin-top: .2rem; }
.figures-note { font-size: .78rem; color: var(--apagado); margin-top: 1.5rem; }

/* --- 7. TARJETAS GENÉRICAS -------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.card {
  background: var(--superficie); border: 1px solid var(--linea);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: var(--azul-050); color: var(--azul-tinta);
  display: grid; place-items: center; margin-bottom: .2rem;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--azul-tinta); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { color: var(--tinta); }
.card p { font-size: .94rem; color: var(--tinta-2); margin: 0; }
.card .price-tag {
  font-family: var(--font-num); font-size: .9rem; color: var(--azul-tinta);
  font-weight: 600; padding-top: .5rem; border-top: 1px solid var(--linea-suave);
  margin-top: auto;
}
.card--flag { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(8,170,228,.14); }
.flag {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; background: var(--naranja); color: var(--navy-hondo);
  padding: .26rem .66rem; border-radius: 999px;
}

/* Lista con check */
.check-list { display: flex; flex-direction: column; gap: .6rem; }
.check-list li {
  position: relative; padding-left: 1.75rem; font-size: .95rem; color: var(--tinta-2);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 9px; border-left: 2.4px solid var(--azul);
  border-bottom: 2.4px solid var(--azul); transform: rotate(-45deg);
}

/* --- 8. TABLAS DE PRECIOS -------------------------------------------- */
.table-wrap {
  overflow-x: auto; background: var(--superficie);
  border: 1px solid var(--linea); border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption {
  caption-side: top; text-align: left; padding: 1.1rem 1.25rem .2rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
th, td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--linea-suave); font-size: .93rem; }
thead th {
  background: var(--superficie-2); font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--tinta-2);
  border-bottom: 1px solid var(--linea);
}
td.num, th.num { font-family: var(--font-num); text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.row-flag { background: var(--cyan-suave); }
tbody tr.row-flag td { font-weight: 600; color: var(--azul-tinta); }
.table-scroll-hint { font-size: .78rem; color: var(--apagado); margin-top: .6rem; }

/* --- 9. FRANJA CTA --------------------------------------------------- */
.cta-band {
  background: linear-gradient(150deg, var(--navy) 0%, var(--azul-btn) 100%);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: .8rem auto 0; }
.cta-band .btn-row { justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.cta-band--urgent { background: linear-gradient(150deg, #6E2219 0%, var(--urgente) 100%); }

/* --- 10. FAQ (acordeón nativo) --------------------------------------- */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq details {
  background: var(--superficie); border: 1px solid var(--linea);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.05rem 1.2rem; font-weight: 600;
  font-size: .99rem; list-style: none; position: relative; padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%); font-family: var(--font-num);
  font-size: 1.4rem; color: var(--azul); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--linea-suave); }
.faq .faq-body { padding: 1rem 1.2rem 1.25rem; }
.faq .faq-body p { font-size: .94rem; color: var(--tinta-2); }
.faq .faq-body p + p { margin-top: .7rem; }

/* --- 11. COBERTURA / COMUNAS ---------------------------------------- */
.comunas { display: flex; flex-wrap: wrap; gap: .5rem; }
.comunas a, .comunas span {
  font-size: .88rem; font-weight: 500; background: var(--superficie);
  border: 1px solid var(--linea); border-radius: 999px;
  padding: .45rem .9rem; color: var(--tinta-2);
}
.comunas a:hover { border-color: var(--azul); color: var(--azul-tinta); background: var(--azul-050); }

/* --- 12. FORMULARIO -------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--tinta-2);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--tinta);
  background: var(--superficie); border: 1.5px solid var(--borde);
  border-radius: 11px; padding: .85rem .9rem; min-height: 52px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--azul); box-shadow: 0 0 0 3px rgba(8,170,228,.20); outline: none;
}
.form-note { font-size: .82rem; color: var(--apagado); }

/* --- 13. AVISOS ------------------------------------------------------ */
.notice {
  background: var(--superficie-2); border-left: 4px solid var(--azul);
  border-radius: var(--radius-sm); padding: 1.05rem 1.15rem;
  font-size: .92rem; color: var(--tinta-2);
}
.notice strong { color: var(--tinta); }
.notice--warn { border-left-color: var(--aviso); }

/* --- 14. FOOTER ------------------------------------------------------ */
.site-footer { background: #04161F; color: rgba(255,255,255,.74); padding-block: 3rem 1.5rem; font-size: .92rem; }
.site-footer h4 {
  font-size: .74rem; letter-spacing: .11em; text-transform: uppercase;
  color: #fff; margin-bottom: .9rem; font-weight: 700;
}
.footer-grid { display: grid; gap: 2rem; }
.site-footer a { color: rgba(255,255,255,.74); }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .9rem; margin-top: .9rem; max-width: 34ch; }
.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
}
.social a:hover { background: var(--azul); border-color: var(--azul); }
.social svg { width: 19px; height: 19px; fill: currentColor; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* --- 15. WHATSAPP FLOTANTE ------------------------------------------ */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #0E7A3C; color: #fff; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.15rem; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0,0,0,.26);
  transition: transform .2s, background .2s;
}
.wa-float:hover { background: #0A6330; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.wa-float .wa-label { display: none; }
/* En móvil la barra fija de abajo ya tiene WhatsApp: el botón flotante
   sobraba y tapaba el texto de la barra. Solo aparece desde tablet. */
@media (max-width: 759px) { .wa-float { display: none !important; } }

/* Barra fija inferior en móvil (llamar / WhatsApp) */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 88;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--superficie); border-top: 1px solid var(--linea);
  box-shadow: 0 -4px 18px rgba(10,26,36,.12);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .95rem .5rem; font-weight: 700; font-size: .94rem;
}
.mobile-bar a:first-child { color: #fff; background: var(--urgente); }
.mobile-bar a:last-child { color: #fff; background: #0E7A3C; }
.mobile-bar svg { width: 18px; height: 18px; flex: none; }
body { padding-bottom: 56px; } /* espacio para la barra móvil */

/* --- 16. UTILIDADES -------------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .6rem } .mt-2 { margin-top: 1.2rem } .mt-3 { margin-top: 2rem }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--azul); color: #fff; padding: .7rem 1rem;
}
.skip-link:focus { left: 0; color: #fff; }
.breadcrumb { font-size: .82rem; color: var(--apagado); padding-top: 1.4rem; }
.breadcrumb a { color: var(--apagado); text-decoration: underline; text-underline-offset: 2px; }
.page-head { background: var(--superficie); border-bottom: 1px solid var(--linea); padding-block: 2.6rem 2.8rem; }
.page-head h1 { max-width: 26ch; }
.page-head .lead { margin-top: .9rem; }

/* --- 17. RESPONSIVE ------------------------------------------------- */
@media (min-width: 560px) {
  .figures-grid { grid-template-columns: repeat(4, 1fr); }
  .route-actions { grid-template-columns: 1fr 1fr; }
  .wa-float .wa-label { display: inline; }
}

@media (min-width: 760px) {
  :root { --pad-section: 5.5rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .routes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .hero { padding-block: 4.5rem 5rem; }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .wa-float { right: 24px; bottom: 24px; }
}

@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.5rem; }
  .site-nav a { padding: .4rem 0; border-bottom: 2px solid transparent; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--azul); }
  .site-nav .nav-cta { margin: 0 0 0 .5rem; }
  .site-nav .nav-cta { margin-top: 1rem; }
/* ".site-nav a" tiene más especificidad que ".btn-primary" y le pisaba el
   color del texto: el botón quedaba con letra oscura sobre azul (3,16:1).
   Acá se devuelve el blanco. */
.site-nav .nav-cta a { border: 0; color: #fff; }
.site-nav .nav-cta a:hover { color: #fff; }
  table { min-width: 0; }
}

/* --- 18. IMPRESIÓN Y PREFERENCIAS ---------------------------------- */
@media print {
  .wa-float, .mobile-bar, .site-header, .topbar, .cta-band { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   19. MOVIMIENTO — animaciones
   Regla de oro: si el JavaScript no carga, TODO se ve igual, solo sin animar.
   Nada se oculta con CSS a menos que <html> tenga la clase js-on, que la
   agrega main.js. Y todo se apaga si el usuario pidió menos movimiento.
   ========================================================================== */

/* --- 19.1 Aparición al hacer scroll ------------------------------------- */
.js-on .reveal {
  opacity: 0;
  transform: translateY(12px);
  /* 380 ms, no 600: el peor caso (duración + escalonado) tiene que quedar
     bajo el medio segundo. Con el disparo adelantado de main.js, el bloque
     termina de aparecer ANTES de que el lector alcance a mirarlo. */
  transition: opacity .38s cubic-bezier(.22,.61,.36,1),
              transform .38s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 45ms);
  will-change: opacity, transform;
}
.js-on .reveal.is-in { opacity: 1; transform: none; }

/* --- 19.2 Header que reacciona al scroll -------------------------------- */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(10,26,36,.10);
  background: rgba(255,255,255,.99);
}
/* Barra de progreso de lectura */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 100;
  width: 0; background: linear-gradient(90deg, var(--azul-btn), var(--cyan));
  transition: width .1s linear; pointer-events: none;
}

/* --- 19.3 Tarjetas que se levantan -------------------------------------- */
.card {
  transition: transform .28s cubic-bezier(.22,.61,.36,1),
              box-shadow .28s, border-color .28s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--borde);
}
.card--flag:hover { border-color: var(--azul); }
.card-icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s; }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); background: var(--cyan-suave); }
.route { transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s; }
.route:hover { transform: translateY(-3px); }

/* --- 19.4 Cifras que cuentan hacia arriba ------------------------------- */
.figure-item strong { transition: color .3s; }
.figure-item:hover strong { color: var(--azul); }

/* --- 19.5 Ilustración animada del hero ---------------------------------- */
.hero-anim {
  margin-top: 2rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 1rem 1rem .75rem;
}
.hero-anim svg { width: 100%; height: auto; display: block; }
.hero-anim figcaption {
  /* al 72% de blanco quedaba en 4,37:1 sobre el punto más claro del hero */
  font-size: .78rem; color: var(--cyan-suave);
  margin-top: .6rem; text-align: center; letter-spacing: .02em;
}
/* La boquilla recorre la cañería */
.jet-nozzle { animation: jet-travel 7s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes jet-travel {
  0%   { transform: translateX(0) }
  45%  { transform: translateX(232px) }
  55%  { transform: translateX(232px) }
  100% { transform: translateX(0) }
}
/* La suciedad se va quedando atrás */
.jet-grime { animation: jet-clean 7s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes jet-clean {
  0%   { clip-path: inset(0 0 0 0) }
  45%  { clip-path: inset(0 0 0 88%) }
  55%  { clip-path: inset(0 0 0 88%) }
  56%  { clip-path: inset(0 0 0 0) }
  100% { clip-path: inset(0 0 0 0) }
}
/* El chorro de agua */
.jet-spray line { stroke-dasharray: 5 7; animation: jet-spray .55s linear infinite; }
@keyframes jet-spray { to { stroke-dashoffset: -12 } }
.jet-drop { animation: jet-drop 1.7s ease-in infinite; }
.jet-drop:nth-of-type(2) { animation-delay: .55s }
.jet-drop:nth-of-type(3) { animation-delay: 1.1s }
@keyframes jet-drop {
  0%   { opacity: 0; transform: translate(0,0) }
  25%  { opacity: .85 }
  100% { opacity: 0; transform: translate(-14px, 16px) }
}
/* El agua corre por el tramo ya limpio */
.jet-flow { stroke-dasharray: 14 10; animation: jet-flow 1.1s linear infinite; }
@keyframes jet-flow { to { stroke-dashoffset: -24 } }

/* --- 19.6 Comparación varilla vs hidrojet ------------------------------- */
.compare { display: grid; gap: 1rem; margin-top: 1.4rem; }
.compare figure {
  background: var(--superficie-2); border: 1px solid var(--linea);
  border-radius: var(--radius-sm); padding: 1rem 1rem .8rem;
}
.compare svg { width: 100%; height: auto; display: block; }
.compare figcaption { font-size: .84rem; color: var(--tinta-2); margin-top: .6rem; }
.compare figcaption strong { display: block; font-family: var(--font-head); color: var(--tinta); }
/* La varilla abre solo un canal: el agua pasa apretada */
.cmp-narrow { stroke-dasharray: 10 8; animation: cmp-flow 1.6s linear infinite; }
/* El hidrojet deja el diámetro completo: el agua corre suelta */
.cmp-wide { stroke-dasharray: 26 14; animation: cmp-flow 1s linear infinite; }
/* Desfase entre las tres líneas: si van sincronizadas parecen un código de
   barras en vez de agua corriendo. */
.cmp-wide:nth-of-type(2) { animation-delay: -.33s }
.cmp-wide:nth-of-type(3) { animation-delay: -.66s }
@keyframes cmp-flow { to { stroke-dashoffset: -40 } }

/* --- 19.7 Punto pulsante y botón de WhatsApp ---------------------------- */
.wa-float { animation: wa-breathe 3.4s ease-in-out infinite; }
@keyframes wa-breathe {
  0%,100% { box-shadow: 0 8px 26px rgba(0,0,0,.26), 0 0 0 0 rgba(14,122,60,.45) }
  50%     { box-shadow: 0 8px 26px rgba(0,0,0,.26), 0 0 0 12px rgba(14,122,60,0) }
}
.mobile-bar a:first-child svg { animation: ring 2.6s ease-in-out infinite; }
@keyframes ring {
  0%,72%,100% { transform: rotate(0) }
  76% { transform: rotate(-12deg) } 80% { transform: rotate(12deg) }
  84% { transform: rotate(-8deg) }  88% { transform: rotate(8deg) }
}

/* --- 19.8 Acordeón del FAQ que se despliega ----------------------------- */
.faq details[open] .faq-body { animation: faq-open .32s cubic-bezier(.22,.61,.36,1); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px) }
  to   { opacity: 1; transform: none }
}
.faq summary::after { transition: transform .25s, color .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq summary:hover { color: var(--azul-tinta); }

/* --- 19.9 Escritorio: comparación en dos columnas ---------------------- */
@media (min-width: 700px) { .compare { grid-template-columns: 1fr 1fr; } }

/* --- 19.10 Respeto por quien pide menos movimiento -------------------- */
@media (prefers-reduced-motion: reduce) {
  .js-on .reveal { opacity: 1 !important; transform: none !important; }
  .jet-nozzle, .jet-grime, .jet-spray line, .jet-drop, .jet-flow,
  .cmp-narrow, .cmp-wide, .wa-float, .mobile-bar a:first-child svg,
  .dot-live, .faq details[open] .faq-body {
    animation: none !important;
  }
  .card:hover, .route:hover { transform: none; }
  .progress-bar { display: none; }
}
