/* =========================================================
   Farmagrow web v2 — Industria primero

   Tokens del brandbook v2 inline (single source of truth).
   El brandbook NO se sirve público; estos tokens viven copiados aquí
   para evitar 404 al cargar styles.css desde el backend. Si los tokens
   del brandbook cambian, sincronizar manualmente este bloque.
   ========================================================= */

:root {
  /* ---- Brand ---- */
  --brand: #0d6981;
  --brand-600: #0d6981;
  --brand-500: #0f7e9a;
  --brand-400: #1a9bbb;
  --brand-300: #4cb8d3;
  --brand-200: #9ed6e3;
  --brand-100: #cfe6ed;
  --brand-50:  #e6f3f6;

  /* Semánticos (estado en producto, no decoración) */
  --accent-success: #2ea36e;
  --accent-warning: #d99c2b;
  --accent-danger:  #c54b4b;

  /* ---- Neutrals (light) ---- */
  --bg: #fbfbfa;
  --bg-elev: #ffffff;
  --bg-soft: #f4f5f3;
  --bg-tint: #eef6f8;
  --fg: #14201f;
  --fg-soft: #3d4a4a;
  --fg-muted: #6b7878;
  --fg-faint: #9aa4a4;
  --border: #e6e8e6;
  --border-strong: #d2d6d3;

  /* ---- Typography ---- */
  --font-sans:    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: system-ui, -apple-system, sans-serif;
  --font-mono:    'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Type scale */
  --fs-display: clamp(40px, 6vw, 72px);
  --fs-h1: clamp(34px, 5vw, 56px);
  --fs-h2: clamp(28px, 4vw, 42px);
  --fs-h3: clamp(22px, 2.4vw, 30px);
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;

  /* Letter spacing */
  --ls-display: -0.035em;
  --ls-tight: -0.025em;
  --ls-snug: -0.018em;
  --ls-normal: 0;
  --ls-wide: 0.06em;
  --ls-wider: 0.12em;

  /* ---- Radii ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* ---- Spacing scale (8pt base) ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;
  --sp-10: 80px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(15, 30, 30, 0.04), 0 1px 1px rgba(15, 30, 30, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 30, 30, 0.06), 0 2px 4px rgba(15, 30, 30, 0.04);
  --shadow-lg: 0 18px 40px rgba(13, 105, 129, 0.10), 0 6px 16px rgba(15, 30, 30, 0.05);
  --shadow-glow: 0 0 0 4px rgba(13, 105, 129, 0.12);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
}

/* ---- Dark theme ---- */
[data-theme='dark'] {
  --bg: #0c1416;
  --bg-elev: #11191c;
  --bg-soft: #0f1719;
  --bg-tint: #112a30;
  --fg: #ecf2f1;
  --fg-soft: #c5cdcc;
  --fg-muted: #8a9492;
  --fg-faint: #5a6664;
  --border: #1c2629;
  --border-strong: #283336;

  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* ---- Reset + base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout container ---- */
.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}
@media (max-width: 720px) {
  .container { width: min(1240px, 100% - 32px); }
}

/* =========================================================
   Site nav — plano, sin dropdowns
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
.site-nav[data-scrolled="true"] {
  border-bottom-color: var(--border);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--sp-6);
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 600;
  letter-spacing: var(--ls-snug);
  font-size: 17px;
  color: var(--fg);
}
.site-nav__brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  object-fit: contain;
}
img.site-nav__brand-mark {
  filter: drop-shadow(0 1px 1px rgba(13, 105, 129, 0.12));
}
.site-nav__links {
  display: flex;
  gap: var(--sp-6);
  font-size: 15px;
  color: var(--fg-soft);
}
.site-nav__links a {
  padding: 6px 2px;
  font-weight: 500;
  transition: color var(--dur-fast);
}
.site-nav__links a:hover {
  color: var(--brand-600);
}
.site-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.site-nav__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.site-nav__login:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}
.site-nav__login svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.site-nav__theme {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--fg);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.site-nav__theme:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}
.site-nav__theme svg { width: 18px; height: 18px; }
.site-nav__theme .icon-sun { display: none; }
[data-theme="dark"] .site-nav__theme .icon-moon { display: none; }
[data-theme="dark"] .site-nav__theme .icon-sun { display: block; }
.site-nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  border-radius: var(--r-md);
  position: relative;
}
.site-nav__burger::before,
.site-nav__burger::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  transform: translateY(-4px);
}
.site-nav__burger::after { transform: translateY(4px); }

@media (max-width: 860px) {
  .site-nav__links { display: none; }
  .site-nav__burger { display: block; }
  .site-nav[data-open="true"] .site-nav__links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    gap: var(--sp-4);
  }
}

/* =========================================================
   Hero — claim + nube de puntos + CTAs + 3 kickers + rotator
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__bg canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
}
.hero__bg::after {
  /* Suaviza la mitad inferior para que el contenido respire */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 55%,
    var(--bg) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  max-width: 980px;
}
.hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.hero__claim {
  margin: var(--sp-6) 0 var(--sp-5);
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: var(--ls-display);
  font-weight: 700;
  color: var(--fg);
  text-wrap: balance;
}
.hero__claim em {
  font-style: normal;
  color: var(--brand-600);
}
.hero__subtitle {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 760px;
  text-wrap: pretty;
}
.hero__ctas {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--ls-snug);
  border: 1px solid transparent;
  transition: transform var(--dur-fast), background var(--dur-fast),
              border-color var(--dur-fast), color var(--dur-fast);
}
.btn--primary {
  background: var(--brand-600);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-500);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}
.btn__arrow {
  transition: transform var(--dur-fast);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Three kickers + rotator below hero */
.hero__chrome {
  margin-top: clamp(60px, 9vw, 100px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-7);
  align-items: end;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.hero__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero__pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__pillar-num {
  color: var(--brand-600);
}
.hero__pillar-label {
  color: var(--fg);
  font-size: 13px;
  letter-spacing: var(--ls-wide);
}
.hero__rotator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--r-full);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  min-height: 36px;
  /* Anchura fija para que cambiar de frase no empuje a 01/02/03.
     JS mide la frase más larga al cargar y escribe --rotator-width;
     este 440px es el fallback hasta que JS resuelva. */
  width: var(--rotator-width, 440px);
  max-width: 100%;
  overflow: hidden;
}
.hero__rotator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-600);
  flex: 0 0 6px;
  box-shadow: 0 0 0 4px rgba(13, 105, 129, 0.12);
}
.hero__rotator-text {
  position: relative;
  font-size: 13px;
  color: var(--fg-soft);
  letter-spacing: var(--ls-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__rotator-text strong {
  color: var(--fg);
  font-weight: 600;
  margin-right: 4px;
}
.hero__rotator-text[data-state="out"] {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.hero__rotator-text[data-state="in"] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

@media (max-width: 860px) {
  .hero__chrome {
    grid-template-columns: 1fr;
  }
  .hero__pillars {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .hero__rotator {
    align-self: start;
    /* En mobile el rotator vive en su propia fila, no necesita
       ancho fijo: que se ajuste al ancho disponible. */
    width: 100%;
  }
}

/* =========================================================
   Section header (compartido)
   ========================================================= */
.section {
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
}
.section--tint {
  background: var(--bg-soft);
}
.section__head {
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-5);
}
.section__kicker-num {
  font-variant-numeric: tabular-nums;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: var(--ls-display);
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 var(--sp-5);
  text-wrap: balance;
}
.section__lead {
  font-size: var(--fs-body-lg);
  color: var(--fg-soft);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 680px;
}

/* =========================================================
   Audiences — grid 2x2 cards
   ========================================================= */
.audiences__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 760px) {
  .audiences__grid { grid-template-columns: 1fr; }
}
.audience-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 40px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13, 105, 129, 0.03) 0%,
    transparent 40%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  z-index: -1;
}
.audience-card:hover {
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.audience-card:hover::before { opacity: 1; }

.audience-card__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.audience-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  margin: var(--sp-4) 0 var(--sp-3);
  color: var(--fg);
  text-wrap: balance;
}
.audience-card__lead {
  color: var(--fg-soft);
  font-size: var(--fs-body);
  line-height: 1.55;
  margin: 0 0 var(--sp-6);
  text-wrap: pretty;
}
.audience-card__bullets {
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-3);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-5);
}
.audience-card__bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.5;
}
.audience-card__bullets li::before {
  content: "—";
  color: var(--brand-600);
  font-weight: 500;
  margin-top: 0px;
}
.audience-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-600);
  letter-spacing: var(--ls-snug);
}
.audience-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast);
}
.audience-card:hover .audience-card__link svg {
  transform: translateX(3px);
}

/* =========================================================
   Network view (sección 3) — captura con callouts editoriales
   ========================================================= */
.network {
  background: var(--bg-soft);
}
.network__layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 260px);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
@media (max-width: 1080px) {
  .network__layout { grid-template-columns: 1fr; }
}

/* Callout columns */
.network__callouts {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vw, 80px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.network__callouts--right {
  text-align: left;
}
.network__callouts--left .callout {
  text-align: right;
}
@media (max-width: 1080px) {
  .network__callouts { display: none; }
}
.callout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.callout__num {
  color: var(--brand-600);
  font-weight: 500;
}
.callout__title {
  color: var(--fg);
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: var(--ls-snug);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.callout__desc {
  color: var(--fg-soft);
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: var(--ls-normal);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* Capture wrap */
.network__capture {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.network__capture::after {
  /* Inner border highlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.network__capture img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile fallback for callouts */
.network__mobile-callouts {
  display: none;
}
@media (max-width: 1080px) {
  .network__mobile-callouts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-7);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 720px) {
  .network__mobile-callouts {
    grid-template-columns: 1fr;
  }
}

/* Closing paragraph */
.network__close {
  max-width: 720px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.network__close-text {
  font-size: var(--fs-body-lg);
  color: var(--fg-soft);
  line-height: 1.55;
  text-wrap: pretty;
}
.network__close-text em {
  color: var(--fg);
  font-style: normal;
  font-weight: 500;
}
.network__close-link {
  margin-top: var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-600);
  letter-spacing: var(--ls-snug);
}

/* =========================================================
   Bond (sección 4) — vínculo industria ↔ farmacia
   Formato editorial: titular grande + 3 pilares en columnas
   ========================================================= */
.bond {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.bond .section__title em {
  font-style: normal;
  color: var(--brand-600);
}
.bond__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(8px, 2vw, 24px);
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .bond__pillars { grid-template-columns: 1fr; gap: var(--sp-7); }
}
.bond__pillar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  position: relative;
}
.bond__pillar::before {
  /* Hairline top accent: brand on first pillar, neutral on rest */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--brand-600);
}
.bond__pillar-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bond__pillar-num {
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}
.bond__pillar-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
.bond__pillar-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================
   Sección 5 — "La operativa diaria"
   Stack vertical alternado (zig-zag), 3 módulos.
   ========================================================= */
.daily {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.daily .section__title em {
  font-style: normal;
  color: var(--brand-600);
}
.daily__list {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 128px);
  padding-top: clamp(24px, 4vw, 56px);
}
.daily__module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.daily__module--reverse .daily__text { order: 2; }
.daily__module--reverse .daily__media { order: 1; }
@media (max-width: 900px) {
  .daily__module,
  .daily__module--reverse {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .daily__module--reverse .daily__text { order: 1; }
  .daily__module--reverse .daily__media { order: 2; }
}
.daily__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 520px;
}
.daily__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-600);
}
.daily__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
.daily__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  text-wrap: pretty;
}
.daily__bullets {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.daily__bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  text-wrap: pretty;
}
.daily__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--brand-600);
}
.daily__media {
  position: relative;
}
.daily__media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(13, 105, 129, 0.04),
    0 12px 32px -16px rgba(13, 105, 129, 0.18);
}

/* =========================================================
   Sección 6 — Seguridad (franja compacta)
   ========================================================= */
.security {
  background: var(--surface);
  padding-block: clamp(56px, 7vw, 84px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.security__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.security__title {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: var(--sp-3) 0 var(--sp-3);
  color: var(--fg);
}
.security__lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}
.security__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.security__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--sp-4);
  row-gap: var(--sp-2);
  align-items: start;
}
.security__check {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand-600) 10%, var(--surface));
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.security__check svg {
  width: 18px;
  height: 18px;
}
.security__item-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 2px 0 0;
}
.security__item-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}
@media (max-width: 820px) {
  .security__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   Sección 7 — Cierre + Contacto
   Franja oscura con color de marca, texto claro, dos CTAs
   ========================================================= */
.contact {
  background: linear-gradient(180deg, #0a5468 0%, #0d6981 100%);
  color: #fff;
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.contact__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0 0 28px;
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 24px;
  color: #fff;
}
.contact__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 44px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.contact__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  min-width: 180px;
}
.contact__cta--primary {
  background: #fff;
  color: var(--brand-600);
  border: 1px solid #fff;
}
.contact__cta--primary:hover {
  background: var(--bg-tint);
  transform: translateY(-1px);
}
.contact__cta--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.contact__cta--secondary:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}
@media (max-width: 560px) {
  .contact__title br { display: none; }
  .contact__cta { width: 100%; }
}

/* =========================================================
   Hero subpágina — sin nube de puntos, claim más contenido
   ========================================================= */
.hero--subpage {
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 80px);
  background: var(--bg);
  overflow: visible;
}
.hero--subpage .hero__claim {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.14;
  margin: var(--sp-5) 0 var(--sp-4);
}
.hero--subpage .hero__subtitle {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--fg);
  font-weight: 500;
  max-width: 640px;
}

/* =========================================================
   Concept — sección educativa (¿Qué es EFG? y similares)
   ========================================================= */
.concept {
  max-width: 720px;
}
.concept__p {
  font-size: var(--fs-body-lg);
  color: var(--fg);
  line-height: 1.65;
  margin: 0 0 var(--sp-6);
  text-wrap: pretty;
}
.concept__p:last-of-type {
  margin-bottom: var(--sp-7);
}
.concept__cta {
  font-size: var(--fs-body);
  color: var(--fg-soft);
  margin: 0;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  line-height: 1.55;
}
.concept__cta a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast);
}
.concept__cta a:hover {
  color: var(--brand-500);
}

/* =========================================================
   Footer — mínimo
   ========================================================= */
.site-footer {
  padding: clamp(60px, 8vw, 80px) 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-muted);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: start;
  margin-bottom: var(--sp-9);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  letter-spacing: var(--ls-snug);
}
.site-footer__claim {
  margin-top: var(--sp-3);
  color: var(--fg-soft);
  max-width: 420px;
  line-height: 1.55;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-faint);
}
.site-footer__links {
  display: flex;
  gap: var(--sp-6);
}
.site-footer__links a {
  transition: color var(--dur-fast);
}
.site-footer__links a:hover { color: var(--brand-600); }

/* =========================================================
   Contrast — Antes / Con Farmagrow (subpages)
   ========================================================= */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 820px) {
  .contrast { grid-template-columns: 1fr; }
}
.contrast__card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(28px, 3.4vw, 40px);
  background: var(--surface, var(--bg));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.contrast__card--featured {
  border-color: var(--brand-600);
  background: color-mix(in oklab, var(--brand-600) 4%, var(--surface, var(--bg)));
  box-shadow: 0 1px 2px rgba(13, 105, 129, 0.04),
              0 16px 40px -20px rgba(13, 105, 129, 0.22);
}
.contrast__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.contrast__card--featured .contrast__kicker { color: var(--brand-600); }
.contrast__title {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
.contrast__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.contrast__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  text-wrap: pretty;
}
.contrast__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--fg-faint);
}
.contrast__card--featured .contrast__list li::before { background: var(--brand-600); }

/* =========================================================
   Consent — Recoges · Firma · Ves
   ========================================================= */
.consent__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  counter-reset: consent;
}
@media (max-width: 900px) {
  .consent__steps { grid-template-columns: 1fr; gap: 36px; }
}
.consent__step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.consent__kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-600);
}
.consent__num {
  font-weight: 700;
}
.consent__title {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
.consent__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================
   Mock shell — skeleton elegante (subpáginas sin pantallazo)
   ========================================================= */
.mock-shell {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface, var(--bg));
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: 0;
  box-shadow:
    0 1px 2px rgba(13, 105, 129, 0.04),
    0 12px 32px -16px rgba(13, 105, 129, 0.18);
}
.mock-shell__label {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-elev, var(--bg));
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
}
.mock-shell--informe {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px);
  gap: var(--sp-5);
}
.mock-shell--card {
  min-height: 220px;
}
.mock-informe__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.mock-informe__title-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.mock-cross {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--brand-600) 12%, var(--surface, var(--bg)));
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mock-cross svg { width: 16px; height: 16px; }
.mock-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--ls-snug);
  color: var(--fg);
}
.mock-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--bg-elev, var(--bg));
  color: var(--fg-muted);
  min-width: 200px;
}
.mock-select svg { width: 12px; height: 12px; }
.mock-informe__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 720px) {
  .mock-informe__stats { grid-template-columns: repeat(2, 1fr); }
}
.mock-stat {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-elev, var(--bg));
}
.mock-stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.mock-informe__table {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.mock-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-3);
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.mock-row:first-child { border-top: 0; }
.mock-row--head {
  background: var(--bg-soft, var(--bg-elev, var(--bg)));
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
}
@media (max-width: 720px) {
  .mock-row { grid-template-columns: 2fr 1fr 1fr; font-size: 11px; }
  .mock-row > *:nth-child(n+4) { display: none; }
}

/* Skeleton bars (greyed placeholders) */
.mock-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--fg) 9%, transparent);
  width: 100%;
}
.mock-bar--xs { width: 30%; }
.mock-bar--sm { width: 50%; }
.mock-bar--md { width: 70%; }
.mock-bar--lg { width: 90%; }

/* Mock list (Mis Farmacias) */
.mock-list {
  display: flex;
  flex-direction: column;
}
.mock-list__row {
  display: grid;
  grid-template-columns: 14px 1fr 80px;
  gap: var(--sp-3);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.mock-list__row:first-child { border-top: 0; }
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fg-faint);
}
.mock-dot--ok { background: var(--brand-600); }
.mock-dot--wait {
  background: transparent;
  border: 1.5px solid var(--fg-faint);
}

/* Mock grouping (Oportunidades EFG) */
.mock-grouping {
  display: flex;
  flex-direction: column;
}
.mock-grouping__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: var(--sp-3);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.mock-grouping__row:first-child { border-top: 0; }
.mock-pct {
  position: relative;
  height: 6px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  overflow: hidden;
}
.mock-pct__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  background: var(--brand-600);
}
.mock-pct__bar--narrow { width: 28%; }
.mock-pct__bar--wide { width: 78%; }

/* =========================================================
   Cross-link grid (También para…)
   ========================================================= */
.cross-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 820px) {
  .cross-grid { grid-template-columns: 1fr; }
}
.cross-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--sp-2) var(--sp-3);
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface, var(--bg));
  color: var(--fg);
  text-decoration: none;
  transition: border-color var(--dur-fast), transform var(--dur-fast),
              box-shadow var(--dur-fast);
  align-items: start;
}
.cross-card:hover {
  border-color: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(13, 105, 129, 0.04),
              0 12px 28px -16px rgba(13, 105, 129, 0.22);
}
.cross-card__kicker {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-600);
}
.cross-card__title {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.3;
  font-weight: 600;
  color: var(--fg);
  text-wrap: balance;
}
.cross-card__arrow {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--fg-muted);
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.cross-card:hover .cross-card__arrow {
  color: var(--brand-600);
  transform: translateX(3px);
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__bg canvas { display: none; }
}

/* =========================================================
   Contact form (F1 v1.0)
   Form de solicitud de demo dentro de la sección .contact.
   El form mantiene fondo claro fijo (independiente del theme)
   para máximo contraste sobre el brand teal de la sección.
   Por eso TODOS los colores internos del form son fijos —
   no usan var(--fg) que cambia con dark mode.
   ========================================================= */
:root {
  /* Tokens locales del form — fondo claro, texto oscuro, fijos. */
  --cf-bg: #ffffff;
  --cf-text: #14201f;          /* texto principal */
  --cf-text-soft: #3d4a4a;     /* texto secundario (consent label) */
  --cf-text-faint: #6b7878;    /* placeholders */
  --cf-border: #d2d6d3;        /* borde inputs */
  --cf-error: #c54b4b;         /* rojo errores */
  --cf-success: #2ea36e;       /* verde success */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  background: var(--cf-bg);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* La regla .contact-form { display: flex } gana al UA [hidden] (display:none)
   por especificidad de clase. Explícito para que el toggle JS funcione. */
.contact-form[hidden] {
  display: none;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--cf-text);
  letter-spacing: -0.005em;
}

.contact-form__required {
  color: var(--brand-600);
  font-weight: 600;
  margin-left: 2px;
}

.contact-form__optional {
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--cf-text);
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--cf-text-faint);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 96px;
  font-family: var(--font-sans);
  line-height: 1.5;
}

.contact-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2350534e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-600) 18%, transparent);
}

.contact-form__input[aria-invalid="true"],
.contact-form__select[aria-invalid="true"],
.contact-form__textarea[aria-invalid="true"] {
  border-color: var(--cf-error);
}
.contact-form__input[aria-invalid="true"]:focus,
.contact-form__select[aria-invalid="true"]:focus,
.contact-form__textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cf-error) 22%, transparent);
}

.contact-form__error {
  font-size: 13px;
  line-height: 1.4;
  color: var(--cf-error);
  margin: 0;
}

.contact-form__error--consent {
  margin-top: -8px;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}

.contact-form__checkbox {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  accent-color: var(--brand-600);
  flex-shrink: 0;
  cursor: pointer;
}

.contact-form__consent-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--cf-text-soft);
  cursor: pointer;
}

.contact-form__consent-link {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form__consent-link:hover {
  text-decoration-thickness: 2px;
}

.contact-form__banner {
  font-size: 14px;
  line-height: 1.5;
  color: #8c2e2e;
  background: #fceceb;
  border: 1px solid #f5c7c4;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
}

.contact-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #ffffff;
  background: var(--brand-600);
  border: 1px solid var(--brand-600);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  align-self: center;
  min-width: 220px;
}

.contact-form__submit:hover:not(:disabled) {
  background: var(--brand-500);
  transform: translateY(-1px);
}

.contact-form__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 0 0 6px var(--brand-600);
}

.contact-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.contact-form__submit-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.contact-form__submit:hover:not(:disabled) .contact-form__submit-arrow {
  transform: translateX(2px);
}

.contact-form__submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: contact-form-spin 0.7s linear infinite;
}

.contact-form[data-state="submitting"] .contact-form__submit-text,
.contact-form[data-state="submitting"] .contact-form__submit-arrow {
  display: none;
}
.contact-form[data-state="submitting"] .contact-form__submit-spinner {
  display: inline-block;
}

@keyframes contact-form-spin {
  to { transform: rotate(360deg); }
}

.contact-form__noscript {
  margin: 0;
  font-size: 13px;
  color: var(--cf-text-soft);
  text-align: center;
}
.contact-form__noscript a {
  color: var(--brand-600);
}

/* Success state — reemplaza el form al recibir 200 */
.contact-success {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 40px);
  background: var(--cf-bg);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: contact-success-in 0.35s ease-out;
}

@keyframes contact-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cf-success) 18%, transparent);
  color: var(--cf-success);
  margin-bottom: 20px;
}

.contact-success__icon svg {
  width: 28px;
  height: 28px;
}

.contact-success__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cf-text);
  margin: 0 0 12px;
}

.contact-success__message {
  font-size: 16px;
  line-height: 1.55;
  color: var(--cf-text-soft);
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.contact-success__cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.contact-success__cta:hover {
  color: var(--brand-500);
  text-decoration: underline;
}

/* Nota: el form usa tokens fijos --cf-* (no var(--fg)), por lo que se
   ve igual en light y dark mode. Esto es intencional: el fondo de la
   sección .contact es brand teal en ambos modos, y queremos máximo
   contraste con texto oscuro sobre card blanca. */

@media (max-width: 560px) {
  .contact-form,
  .contact-success {
    border-radius: 12px;
  }
  .contact-form__submit {
    width: 100%;
  }
}

/* =========================================================
   Contact expect — bloque "Qué esperar" en contacto.html
   3 mini-puntos numerados antes del form para reducir ansiedad
   ========================================================= */
.contact-expect {
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 64px);
  background: var(--bg);
}

.contact-expect__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-expect__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-expect__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--brand-600);
  font-weight: 600;
}

.contact-expect__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
  line-height: 1.25;
}

.contact-expect__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0;
}

@media (max-width: 720px) {
  .contact-expect__list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =========================================================
   Páginas legales (privacidad, aviso-legal)
   Layout sobrio centrado en legibilidad de texto largo.
   ========================================================= */
.legal-page__hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(28px, 4vw, 48px);
  background: var(--bg);
}

.legal-page__hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin: 0 0 16px;
}

.legal-page__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--fg);
  margin: 0 0 16px;
}

.legal-page__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  max-width: 620px;
}

.legal-page__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 24px;
  letter-spacing: 0.04em;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 0 clamp(60px, 8vw, 100px);
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.65;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--fg);
  margin: 48px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 28px 0 8px;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  text-decoration-thickness: 2px;
}

.legal-content strong {
  color: var(--fg);
  font-weight: 600;
}

.legal-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-tint);
  color: var(--fg);
  padding: 2px 6px;
  border-radius: 4px;
}

.legal-content__data {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 15px;
}

.legal-content__data dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.legal-content__data dt {
  color: var(--fg-muted);
  font-weight: 500;
}

.legal-content__data dd {
  color: var(--fg);
  margin: 0;
}

@media (max-width: 560px) {
  .legal-content__data dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .legal-content__data dt {
    margin-top: 8px;
  }
}

/* =========================================================
   Error page (404)
   ========================================================= */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--bg);
}

.error-page__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--brand-600);
  margin: 0 0 16px;
  line-height: 1;
  opacity: 0.85;
}

.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  margin: 0 0 16px;
}

.error-page__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0 0 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.error-page__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .error-page__actions .btn {
    width: 100%;
  }
}

/* =========================================================
   Logo swap por tema
   Light → logo.svg (teal con relieve 3D)
   Dark  → logo-white.svg (blanco plano, mejor contraste sobre bg oscuro)
   La propiedad CSS `content` sobre un <img> reemplaza el renderizado.
   ========================================================= */
[data-theme="dark"] .site-nav__brand-mark {
  content: url("assets/logo-white.svg");
}
