/* ==========================================================================
   ZARPIX — Hoja de estilos
   Diseño "mobile first": los estilos base son para celular y las
   media queries (min-width) agregan ajustes para tablet y escritorio.
   Colores, tipografías y escala según el Manual de marca ZARPIX v1.
   ========================================================================== */

/* ---------- 1. Variables de marca ---------- */
:root {
  --yellow: #FFC20E;      /* Amarillo boya: lo que va sobre el agua. Botones y acentos */
  --yellow-600: #E6AC00;
  --yellow-100: #FFF4D1;
  --navy: #0F2747;        /* Marino: lo que va bajo el agua. Textos y fondos oscuros */
  --navy-700: #183A66;
  --navy-900: #0A1C35;
  --water: #4DA8D6;       /* Agua: línea de flotación y gráficos */
  --water-deep: #1F6F9E;  /* Agua profunda: enlaces y acentos de texto en fondos claros */
  --espuma: #F3F7FA;      /* Espuma: fondos claros y texto sobre marino */
  --red: #E5392B;         /* Rojo señal: solo acentos mínimos, nunca texto chico */

  --text: #24324A;
  --muted: #55657C;
  --bg: #FFFFFF;
  --bg-soft: var(--espuma);
  --line: #E1E8F0;
  --on-navy-muted: #B9C8DD;
  --whatsapp: #25D366;

  --font-title: "Gabarito", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 71, .06), 0 2px 8px rgba(15, 39, 71, .05);
  --shadow: 0 10px 30px rgba(15, 39, 71, .10);
  --shadow-lg: 0 20px 50px rgba(15, 39, 71, .16);

  --container: 1120px;
  --gutter: 20px;
  --header-h: 64px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;           /* Texto: Figtree 400 · 16 px */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
strong, b { font-weight: 600; }

a { color: var(--water-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--water-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Botones ---------- */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--navy);
  --btn-bd: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: .8em 1.4em;
  font-family: var(--font-title);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }

.btn--primary:hover { --btn-bg: #FFCD3A; }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--espuma); --btn-bd: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--espuma); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--espuma); --btn-bd: rgba(243, 247, 250, .6); }
.btn--outline-light:hover { --btn-bg: var(--espuma); --btn-fg: var(--navy); }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-fg: #06331B; --btn-bd: var(--whatsapp); }
.btn--whatsapp:hover { --btn-bg: #3BE07A; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }

/* ---------- 4. Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

/* Logo oficial (archivos de img/marca). Mínimo 100 px de ancho en pantalla. */
.logo { display: inline-flex; align-items: center; flex: none; padding: 4px 0; }
.logo img { height: 30px; width: auto; min-width: 129px; }
.logo--footer img { height: 34px; }
.logo--lg img { height: 44px; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
}
.main-nav a:hover { background: var(--bg-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px var(--gutter) 20px;
}
.mobile-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

/* ---------- 5. Secciones genéricas ---------- */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: var(--espuma); }
.section--navy h2, .section--navy h3 { color: var(--espuma); }

.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section--navy .section-head p { color: var(--on-navy-muted); }

/* Etiqueta: Figtree 600 · 13 px */
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section--navy .eyebrow { background: rgba(255, 194, 14, .16); color: var(--yellow); }

/* Título: Gabarito 800 · 34 px */
h2 { font-size: clamp(1.75rem, 6vw, 2.125rem); font-weight: 800; }
/* Subtítulo: Gabarito 700 · 22 px */
h3 { font-size: 1.375rem; font-weight: 700; }

/* ---------- 6. Hero: cielo boya, agua marino y línea de flotación ---------- */
.hero { --rh: 300px; position: relative; overflow: hidden; }

.hero-sky { background: var(--yellow); padding-top: 28px; }
.hero-grid { display: grid; gap: 20px; align-items: end; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 600;
}
.badge--navy { background: var(--navy); color: var(--yellow); }

/* Titular: Gabarito 800 · 56 px */
.hero h1 {
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.hero-lead { font-size: 1.15rem; color: var(--navy); max-width: 30ch; margin-bottom: 22px; }
.hero-lead strong { font-weight: 600; }

.hero-ctas { display: grid; gap: 12px; }
.hero-copy { padding-bottom: 8px; }

.hero-product {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
/* El render cruza la línea: 25% arriba del agua (su franja blanca queda sobre la línea). */
.hero-product img {
  height: var(--rh);
  width: auto;
  margin-bottom: calc(var(--rh) * -0.75);
  filter: drop-shadow(0 16px 28px rgba(10, 28, 53, .35));
}

.waterline {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 22px;
  margin-top: -11px;
  margin-bottom: -1px;
}

.hero-water {
  background: var(--navy);
  color: var(--espuma);
  padding: calc(var(--rh) * 0.75 + 24px) 0 48px;
}

/* Datos clave: Gabarito 800 · 44 px en boya sobre marino, etiqueta en espuma */
.key-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.key-facts li { display: grid; gap: 4px; align-content: start; }
.key-facts strong {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  line-height: 1;
  color: var(--yellow);
}
.key-facts span { font-size: .8125rem; font-weight: 600; color: var(--espuma); line-height: 1.35; }

.hero-note { margin: 22px 0 0; color: var(--on-navy-muted); font-size: .95rem; }
.hero-note a { color: var(--espuma); }

/* ---------- 7. Problema ---------- */
.problem-grid { display: grid; gap: 14px; }
.problem-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.problem-card .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--espuma);
  color: var(--navy);
  position: relative;
}
.problem-card .icon::after {        /* acento mínimo en rojo señal */
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.problem-card .icon svg { width: 26px; height: 26px; }
.problem-card h3 { font-size: 1.125rem; margin-bottom: 4px; }
.problem-card p { margin: 0; color: var(--muted); font-size: .98rem; }

.problem-note {
  margin: 28px auto 0;
  max-width: 720px;
  padding: 22px 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--espuma);
  text-align: center;
}
.problem-note h3 { color: var(--espuma); font-size: 1.5rem; margin-bottom: 6px; }
.problem-note p { margin: 0; color: var(--on-navy-muted); }
.problem-note strong { color: var(--yellow); }

/* ---------- 8. Beneficios (iconos estilo manga) ---------- */
.benefit-grid { display: grid; gap: 14px; }
.benefit-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit-card .icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--espuma);
}
.benefit-card .icon svg { width: 30px; height: 30px; }
.benefit-card h3 { margin-bottom: 6px; }
.benefit-card p { margin: 0; color: var(--muted); }

/* ---------- 9. Cómo se usa ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step {
  position: relative;
  padding: 20px;
  background: rgba(243, 247, 250, .05);
  border: 1px solid rgba(243, 247, 250, .12);
  border-radius: var(--radius-lg);
  text-align: center;
}
.step-figure {
  margin: 0 auto 14px;
  max-width: 220px;
  border-radius: var(--radius);
  background: var(--espuma);
  overflow: hidden;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--on-navy-muted); }
.steps-cta { margin-top: 32px; text-align: center; }

/* ---------- 10. Precios ---------- */
.pricing-grid { display: grid; gap: 22px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
}
.price-card--featured {
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--yellow-100) 0%, #fff 38%);
}
.price-ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--yellow);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-figure {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 168px;
  margin-bottom: 14px;
}
.price-figure img { height: 160px; width: auto; filter: drop-shadow(0 8px 12px rgba(15, 39, 71, .18)); }
.price-figure picture + picture img { margin-left: -14px; }
.price-figure picture:nth-child(2) img { height: 148px; }
.price-figure picture:nth-child(3) img { height: 136px; }

.price-card h3 { text-align: center; font-size: 1.5rem; margin-bottom: 2px; }
.price-sub { text-align: center; color: var(--muted); margin-bottom: 14px; font-size: .95rem; }
/* Dato: Gabarito 800 · 44 px */
.price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--navy);
  font-family: var(--font-title);
  font-weight: 800;
}
.price .amount { font-size: 2.75rem; line-height: 1; }
.price .currency { font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.price-unit { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.price-save {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--yellow);
  font-size: .8125rem;
  font-weight: 600;
}
.price-feats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.price-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: .98rem; }
.price-feats svg { width: 20px; height: 20px; color: var(--water-deep); flex: none; margin-top: 2px; }
.price-feats .free { font-weight: 600; color: var(--navy); }
.price-card .btn { margin-top: auto; }
.price-alt { margin: 10px 0 0; text-align: center; font-size: .92rem; }

/* Pago seguro y métodos de pago */
.pay-box {
  margin: 28px auto 0;
  max-width: 720px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
}
.pay-box p { margin: 0; color: var(--text); font-size: .95rem; }
.pay-box .secure { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.pay-box .secure svg { width: 18px; height: 18px; color: var(--water-deep); }
.pay-logos { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pay-logos li {
  display: grid;
  place-items: center;
  height: 30px;
  min-width: 48px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.pay-logos svg { height: 18px; width: auto; }

.pricing-alt {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.pricing-alt p { margin: 0; color: var(--muted); }
.pricing-legal { margin-top: 18px; text-align: center; color: var(--muted); font-size: .875rem; }
.soon {
  margin: 22px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.soon strong { color: var(--navy); }

/* ---------- 11. Confianza ---------- */
.trust-grid { display: grid; gap: 14px; }
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust-item .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy);
}
.trust-item .icon svg { width: 26px; height: 26px; }
.trust-item h3 { font-size: 1.125rem; margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- 12. Preguntas frecuentes (acordeón con <details>) ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}
.faq details[open] { border-color: #C9D6E6; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--yellow-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2747' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.faq .answer { padding: 0 20px 18px; color: var(--text); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }

/* ---------- 13. Contacto ---------- */
.contact-grid { display: grid; gap: 28px; align-items: center; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a, .contact-list .contact-static {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(243, 247, 250, .06);
  border: 1px solid rgba(243, 247, 250, .14);
  border-radius: var(--radius);
  color: var(--espuma);
  text-decoration: none;
  transition: background-color .2s;
}
.contact-list a:hover { background: rgba(243, 247, 250, .12); color: var(--espuma); }
.contact-list .icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
}
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--on-navy-muted); font-size: .8125rem; }
.contact-list strong { font-size: 1.05rem; word-break: break-word; }

.delivery-box {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--espuma);
  color: var(--text);
}
.delivery-box h3 { color: var(--navy); }
.delivery-box ul { margin: 0; padding-left: 1.1em; }
.delivery-box li { margin-bottom: 6px; }

/* ---------- 14. Pie de página ---------- */
.site-footer { padding: 44px 0 110px; background: var(--navy-900); color: var(--on-navy-muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h3 { color: var(--espuma); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--espuma); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 247, 250, .1);
  display: grid;
  gap: 6px;
  font-size: .8125rem;
}

/* ---------- 15. Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  min-width: 58px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18, 140, 75, .4);
  transition: transform .15s;
}
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float .wa-label { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: pulse 2.4s infinite;
  }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- 16. Páginas legales y página de gracias ---------- */
.legal { padding: 40px 0 64px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 800; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal-box {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
}
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.legal-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.legal-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--espuma); }

.thanks-sky { background: var(--yellow); padding: 48px 0 0; text-align: center; }
.thanks-sky h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); font-weight: 800; margin-bottom: 10px; }
.thanks-sky p { color: var(--navy); font-size: 1.15rem; max-width: 34ch; margin: 0 auto; }
.thanks-sky .hero-product { margin-top: 24px; }
.thanks-water { background: var(--navy); color: var(--espuma); padding: calc(var(--rh) * 0.75 + 32px) 0 64px; }
.thanks-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 14px; }
.thanks-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(243, 247, 250, .06);
  border: 1px solid rgba(243, 247, 250, .14);
}
.thanks-steps .step-num { flex: none; margin: 0; }
.thanks-water h2 { color: var(--espuma); }
.thanks-steps h2 { font-size: 1.2rem; color: var(--espuma); margin-bottom: 4px; }
.thanks-steps p { margin: 0; color: var(--on-navy-muted); }
.thanks-steps a { color: var(--espuma); }
.thanks-ctas { margin-top: 28px; display: grid; gap: 12px; justify-content: center; }

/* ---------- 17. Aparición suave al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet (≥ 640px)
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero { --rh: 340px; }
  .hero-ctas { grid-template-columns: auto auto; justify-content: start; }
  .problem-grid, .benefit-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .wa-float .wa-label { display: inline; }
  .wa-float { padding: 0 20px 0 16px; }
  .thanks-ctas { grid-template-columns: auto auto; }
}

/* ==========================================================================
   Escritorio (≥ 960px)
   ========================================================================== */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .logo img { height: 34px; }
  .main-nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .section { padding: 96px 0; }

  .hero { --rh: 430px; }
  .hero-sky { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .hero-copy { padding-bottom: 72px; }
  .hero-lead { font-size: 1.25rem; }
  .hero-water { padding: 36px 0 64px; min-height: calc(var(--rh) * 0.75 + 40px); }
  .hero-water .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .key-facts { gap: 24px; }

  .problem-grid { grid-template-columns: repeat(4, 1fr); }
  .problem-card { flex-direction: column; }
  .benefit-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .price-card--featured { transform: translateY(-12px); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .site-footer { padding-bottom: 44px; }
  .hero.thanks { --rh: 360px; }
}

/* ==========================================================================
   Carrito (js/cart.js)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy); cursor: pointer;
}
.cart-btn:hover { background: var(--espuma); }
.cart-btn:focus-visible, .cart-panel button:focus-visible { outline: 3px solid var(--water-deep); outline-offset: 2px; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--yellow); color: var(--navy);
  font: 700 .75rem/20px var(--font-body); text-align: center; display: none;
}
.cart-btn.has-items .cart-count { display: block; }

.price-card .cart-add { margin-top: 10px; }
.cart-add svg { width: 18px; height: 18px; margin-right: 6px; }

.cart-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 28, 53, .45);
  opacity: 0; transition: opacity .2s ease;
}
.cart-overlay.is-open { opacity: 1; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%); background: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s ease;
}
.cart-panel.is-open { transform: none; }
html.cart-open { overflow: hidden; }

.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.375rem; }
.cart-close { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; }
.cart-close:hover { background: var(--espuma); }
.cart-close svg { width: 22px; height: 22px; margin: auto; }

.cart-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { margin: 24px 0 16px; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 40px; height: auto; }
.cart-name { margin: 0; font-weight: 600; color: var(--navy); line-height: 1.3; }
.cart-meta { margin: 2px 0 10px; font-size: .875rem; color: var(--muted); }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.cart-qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--navy); font-size: 1.1rem; cursor: pointer; border-radius: 999px; }
.cart-qty button:disabled { opacity: .35; cursor: default; }
.cart-qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-side { text-align: right; }
.cart-line { margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.cart-remove { border: 0; background: none; padding: 0; color: var(--water-deep); font: inherit; font-size: .875rem; text-decoration: underline; cursor: pointer; }

.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--espuma); }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.cart-free { color: #0B7A3E; font-weight: 600; }
.cart-total { font-family: var(--font-title); font-size: 1.375rem; color: var(--navy); margin: 8px 0 2px; }
.cart-note { font-size: .8125rem; color: var(--muted); margin: 0 0 12px; }
.cart-error { color: #B42318; font-size: .875rem; margin: 0 0 10px; }
.cart-continue { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .cart-panel, .cart-overlay { transition: none; }
}
