/* ============================================================
   Vivar Fertilidad — Editorial Cream adapted for medical wellness
   Archetype 01 base · sage + coral accent · Fraunces + Inter
   ============================================================ */

/* 1. TOKENS ================================================= */
:root {
  /* Palette */
  --bg:           #F5F0E8;   /* crema cálido */
  --bg-2:         #EFE7DA;   /* arena */
  --paper:        #FFFFFF;
  --ink:          #1F2A2E;   /* carbón verdoso */
  --ink-soft:     #354149;
  --ink-mute:     #5A7388;   /* azul humo */
  --sage:         #3F6F5C;   /* verde salvia primario */
  --sage-deep:    #2F5749;
  --sage-soft:    rgba(63, 111, 92, 0.08);
  --sage-glow:    rgba(63, 111, 92, 0.16); /* halo del efecto premium nº24 */
  --coral:        #E89B85;   /* coral suave */
  --coral-deep:   #D87B62;
  --cream-tint:   #FBF7EF;
  --wa-green:     #25D366;
  --line:         rgba(31, 42, 46, 0.12);
  --line-strong:  rgba(31, 42, 46, 0.22);

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Sizes (clamp-driven) */
  --fs-h1: clamp(2.2rem, 7.2vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 5vw, 3.2rem);
  --fs-h3: clamp(1.2rem, 2.4vw, 1.5rem);
  --fs-lede: clamp(1.05rem, 2.2vw, 1.25rem);
  --fs-body: 1.0625rem;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --section-y: clamp(4.5rem, 10vw, 7.5rem);
  --container: 1240px;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(31, 42, 46, 0.04), 0 20px 40px -28px rgba(31, 42, 46, 0.22);
  --shadow-hover: 0 2px 4px rgba(31, 42, 46, 0.06), 0 40px 60px -28px rgba(63, 111, 92, 0.4);
}

/* 2. RESET ================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
em { font-style: italic; font-variation-settings: "SOFT" 70; color: var(--sage-deep); }
::selection { background: var(--sage); color: var(--cream-tint); }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. UTILITIES ============================================== */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--sage); color: var(--cream-tint);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Reveal — IMPORTANT defensive rule for [data-split] */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  /* will-change retirado a propósito: fijarlo en una regla global reserva
     memoria de vídeo permanente para decenas de elementos a la vez. */
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: never let split-text targets stay invisible */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}
.reveal[data-split] .split-line {
  display: inline-block;
  overflow: hidden;
}
.reveal[data-split] .split-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.reveal[data-split].is-visible .split-inner { transform: translateY(0); }

/* 4. SPLASH ================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--bg);
  color: var(--sage);
  pointer-events: none;
  animation: splashSafety .01s 3.8s forwards;
}
.splash.is-out {
  animation: splashOut .6s var(--ease-out) forwards;
}
@keyframes splashOut {
  to { opacity: 0; visibility: hidden; transform: translateY(-1.5%); }
}
@keyframes splashSafety {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.splash-mark {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  animation: splashPulse 1.6s var(--ease-soft) infinite;
}
.splash-mark span {
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: .05em;
  font-style: italic; font-variation-settings: "SOFT" 80;
}
@keyframes splashPulse {
  0%, 100% { opacity: .55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* 5. DEMO BANNER (modo demo — enlaces → operativa.network) === */
.demo-banner {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem;
  padding: .55rem var(--gutter);
  background: linear-gradient(90deg, var(--sage-deep) 0%, var(--sage) 100%);
  color: var(--cream-tint);
  font-size: .82rem;
  letter-spacing: .01em;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: filter .25s var(--ease-out);
  position: relative;
  z-index: 100;
}
.demo-banner:hover { filter: brightness(1.08); }
.demo-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: .18rem .55rem;
  background: var(--coral);
  color: var(--ink);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.demo-text {
  color: rgba(245,240,232,0.92);
  line-height: 1.4;
}
.demo-text strong { color: var(--cream-tint); font-weight: 600; }
.demo-arrow {
  display: inline-block;
  font-weight: 500;
  transition: transform .25s var(--ease-out);
  flex-shrink: 0;
}
.demo-banner:hover .demo-arrow { transform: translateX(3px); }

@media (max-width: 720px) {
  .demo-banner { font-size: .74rem; padding: .5rem .9rem; gap: .5rem; }
  .demo-badge { font-size: .62rem; padding: .15rem .45rem; }
}

/* 5b. TRUST STRIP + HEADER ================================= */
.trust-strip {
  display: none;
  background: var(--sage-deep);
  color: var(--cream-tint);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .55rem var(--gutter);
}
.trust-strip .dot { opacity: .5; margin: 0 .5rem; }
@media (min-width: 720px) {
  .trust-strip { display: flex; justify-content: center; gap: .25rem; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(245, 240, 232, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(31, 42, 46, 0.18);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .75rem var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--sage-deep);
}
.brand-mark { flex-shrink: 0; color: var(--sage); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-name em {
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  color: var(--sage-deep);
  margin-left: 4px;
}

.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav {
    display: flex; align-items: center; gap: 2rem;
  }
  .site-nav ul {
    display: flex; align-items: center; gap: 1.6rem;
  }
  .site-nav a {
    font-size: .94rem; font-weight: 500;
    color: var(--ink-soft);
    padding: .4rem 0;
    position: relative;
    transition: color .25s var(--ease-out);
  }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 1px; background: var(--sage);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease-out);
  }
  .site-nav a:hover { color: var(--sage-deep); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

.header-actions {
  display: flex; align-items: center; gap: .4rem;
}
.icon-btn {
  /* 44px = área táctil recomendada por WCAG 2.2 (SC 2.5.8 exige 24px mínimo;
     44px es la guía de holgura de Apple/Material para pulgares en móvil). */
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--sage-soft);
  color: var(--sage-deep);
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.icon-btn:hover { background: var(--sage); color: var(--cream-tint); transform: translateY(-1px); }
.icon-btn--wa { background: var(--wa-green); color: white; }
.icon-btn--wa:hover { background: #1da851; color: white; }

.nav-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--sage-soft);
  position: relative;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.6px;
  background: var(--ink); border-radius: 2px;
  position: absolute; left: 13px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile nav overlay */
.site-nav.is-open {
  display: flex; flex-direction: column;
  position: fixed; inset: 64px 0 0 0;
  background: var(--bg);
  padding: 2.5rem var(--gutter) 3rem;
  z-index: 70;
  overflow-y: auto;
  animation: navIn .4s var(--ease-out);
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
.site-nav.is-open ul {
  display: flex; flex-direction: column; gap: 0;
  width: 100%;
}
.site-nav.is-open ul li {
  border-bottom: 1px solid var(--line);
}
.site-nav.is-open ul a {
  display: block; padding: 1.1rem 0;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.site-nav.is-open .nav-cta {
  margin-top: 2rem;
  width: 100%;
  text-align: center;
}

/* 6. BUTTONS ================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .95rem 1.6rem;
  font-family: var(--sans);
  font-size: .98rem; font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), box-shadow .35s var(--ease-out);
  min-height: 52px;
  text-align: center;
}
.btn-primary {
  background: var(--sage);
  color: var(--cream-tint);
  box-shadow: 0 14px 30px -14px rgba(63, 111, 92, 0.55);
}
.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -16px rgba(63, 111, 92, 0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink); color: var(--cream-tint);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }
.nav-cta { padding: .7rem 1.3rem; min-height: 44px; font-size: .92rem; }

/* 7. HERO =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
}
/* Sin fotografía, el degradado ES el fondo del hero: malla salvia + coral
   sobre crema, construida solo con tokens de marca. */
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 18% 12%, rgba(63, 111, 92, 0.16) 0%, transparent 70%),
    radial-gradient(60% 50% at 88% 22%, rgba(232, 155, 133, 0.20) 0%, transparent 68%),
    radial-gradient(90% 70% at 72% 96%, rgba(63, 111, 92, 0.22) 0%, transparent 72%),
    linear-gradient(170deg, var(--cream-tint) 0%, var(--bg) 46%, var(--bg-2) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .12; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-inner {
  width: 100%; max-width: 920px;
  margin: 0 auto;
}
.hero-kicker {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.4rem;
  padding: .4rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(63, 111, 92, 0.15);
}
.hero-title {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.8rem;
  max-width: 17ch;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--sage-deep);
}
.hero-sub {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2.5rem;
}
.hero-actions .btn { flex: 1 1 auto; min-width: 200px; }
@media (min-width: 540px) {
  .hero-actions .btn { flex: 0 0 auto; }
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  font-size: .88rem;
  /* --ink-mute daba 4.36:1 sobre el hero (bajo el 4.5:1 de WCAG 2.2 AA para
     texto pequeño). --ink-soft sube a 8:1 sin tocar la paleta de marca. */
  color: var(--ink-soft);
}
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}
.hero-scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: .65;
  animation: scrollHint 2.4s var(--ease-soft) infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); opacity: .65; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* 8. SECTION HEAD ========================================== */
.section { padding: var(--section-y) 0; }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-title {
  font-size: var(--fs-h2);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  max-width: 22ch;
}
.section-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.section-title-light, .kicker-light { color: var(--cream-tint); }
.section-title-light em { color: var(--coral); }
.kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "—"; margin-right: .6rem;
  color: var(--coral);
}
.section-lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.55;
}

/* 9. PROBLEMA =============================================== */
.section-problem { background: var(--bg-2); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.problem-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
/* Tarjeta tipográfica: una regla de acento sustituye a la fotografía. */
.problem-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--coral) 100%);
}
.problem-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex; flex-direction: column; gap: .85rem;
}
.problem-card-body .quote {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "SOFT" 80;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.problem-card-body p:not(.quote) {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* 10. TREATMENTS ============================================ */
.section-treatments { background: var(--bg); }
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .treatment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .treatment-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

.treatment-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
}
.treatment-card:hover {
  box-shadow: var(--shadow-hover);
}
.treatment-card-body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex; flex-direction: column; gap: .85rem;
}
.treatment-num {
  display: inline-block;
  font-family: var(--serif);
  /* F13 / R3 · --coral-deep sobre blanco da 3.03:1 → falla AA como texto
     pequeño (umbral 4.5:1) pero CUMPLE como texto grande (umbral 3:1).
     Subiéndolo a ≥24px (18pt) califica como texto grande y pasa AA SIN
     tocar la paleta de marca: el coral se conserva idéntico. Además mejora
     la jerarquía editorial del numeral. */
  font-size: 1.55rem;
  line-height: 1;
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 80;
  color: var(--coral-deep);
  letter-spacing: .02em;
}
.treatment-card h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.treatment-card-body p {
  font-size: .96rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.treatment-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .5rem;
  font-weight: 600;
  color: var(--sage-deep);
  font-size: .94rem;
  letter-spacing: -0.005em;
  align-self: flex-start;
  transition: gap .3s var(--ease-out), color .3s var(--ease-out);
}
.treatment-link:hover { gap: .85rem; color: var(--coral-deep); }
.treatment-link span { transition: transform .3s var(--ease-out); }
.treatment-link:hover span { transform: translateX(2px); }
/* F11 · Block link: toda la tarjeta es zona pulsable, no solo el texto
   «Conocer más». El pseudo-elemento cubre la card (position:relative en
   .treatment-card) sin envolver el marcado en un <a>, así el tilt y el hover
   de imagen siguen intactos. El foco de teclado sigue recayendo en el enlace. */
.treatment-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 11. WHY =================================================== */
.section-why { background: var(--cream-tint); }
.why-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  counter-reset: why;
}
.why-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 720px) {
  .why-item { grid-template-columns: 120px 1fr; gap: 2rem; padding: 2.5rem 0; }
}
.why-num {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--sage);
  letter-spacing: -0.02em;
}
.why-item h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  margin-bottom: .5rem;
  letter-spacing: -0.02em;
}
.why-item p {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.6;
}

/* 11b. REVELADO POR FOCO DE PUNTERO — catálogo premium nº 24 ===
   Rol: Detalle · 0.25 ms/fotograma · complejidad Baja · sin WebGL.
   Recomendación de uso: actualizar variables CSS, no clases, y limitar
     con requestAnimationFrame (ver initFocoPuntero en main.js).
   Cuándo NO utilizarlo: si la capa oculta contiene información necesaria,
     quedaría accesible solo con ratón.
   Riesgos: ocultar contenido tras una interacción que no existe en táctil
     ni con teclado.
   Aquí la capa revelada es un halo decorativo: los cinco puntos se leen
   enteros sin puntero, con teclado y con el efecto apagado.
   =========================================================== */
@media (hover: hover) and (pointer: fine) {
  .why-item { position: relative; isolation: isolate; }
  .why-item::before {
    content: "";
    position: absolute;
    inset: 0 calc(var(--gutter) * -0.5);
    z-index: -1;
    border-radius: var(--r-md);
    pointer-events: none;
    opacity: var(--fx-o, 0);
    background: radial-gradient(
      260px circle at var(--fx-x, 50%) var(--fx-y, 50%),
      var(--sage-glow),
      var(--sage-soft) 45%,
      transparent 72%
    );
    transition: opacity 260ms var(--ease-out);
  }
}
@media (prefers-reduced-motion: reduce) {
  .why-item::before { display: none; }
}

/* 12. PROCESS ============================================== */
.section-process { background: var(--bg); position: relative; }
.process-timeline {
  position: relative;
  display: flex; flex-direction: column;
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
  position: relative;
  padding-left: .5rem;
}
.process-step::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 60px;
  bottom: -1.5rem;
  width: 1.5px;
  background: linear-gradient(180deg, var(--sage) 0%, rgba(63, 111, 92, 0.15) 100%);
}
.process-step:last-child::before { display: none; }
.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--sage);
  color: var(--sage-deep);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80;
  font-size: 1.5rem;
  display: grid; place-items: center;
  position: relative; z-index: 2;
}
.process-content h3 {
  font-size: 1.3rem;
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  margin-bottom: .4rem;
  letter-spacing: -0.015em;
}
.process-content p {
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 56ch;
}

/* 13. STORIES (testimonios) ================================ */
.section-stories { background: var(--bg-2); }
.stories-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem 0 2rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.stories-carousel::-webkit-scrollbar { display: none; }
.story-card {
  flex: 0 0 88%;
  scroll-snap-align: start;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
}
@media (min-width: 720px) {
  .story-card { flex: 0 0 60%; }
}
@media (min-width: 1024px) {
  /* Sin celda de imagen la cita ocupa la tarjeta entera. */
  .story-card { flex: 0 0 calc(50% - .75rem); }
}
.story-quote {
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.25rem;
}
.story-quote p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  font-variation-settings: "SOFT" 80;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.story-quote footer {
  font-size: .9rem;
  color: var(--ink-mute);
}
.story-quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft);
}

.carousel-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--sage-deep);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.carousel-btn:hover {
  background: var(--sage); color: var(--cream-tint);
  transform: scale(1.06);
}
.carousel-dots {
  /* 17px de separación: deja 24px entre centros de punto, mínimo de
     WCAG 2.2 SC 2.5.8 (Target Size) sin agrandar el punto visible. */
  display: flex; gap: 1.0625rem; align-items: center;
}
.carousel-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: width .3s var(--ease-out), background .3s var(--ease-out);
}
/* Área pulsable de 24px sin alterar el punto visible (WCAG 2.2 SC 2.5.8). */
.carousel-dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  min-width: 100%;
  transform: translate(-50%, -50%);
}
.carousel-dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--sage);
}

/* 14. TEAM ================================================= */
.section-team { background: var(--cream-tint); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.team-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
/* Ficha tipográfica: filete superior en lugar del retrato. */
.team-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--sage-deep) 100%);
}
.team-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .55rem; }
.team-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  letter-spacing: -0.015em;
}
.team-role {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80;
  color: var(--sage-deep);
  font-size: 1rem;
}
.team-cred {
  font-size: .82rem;
  color: var(--ink-mute);
  letter-spacing: .01em;
}
.team-bio {
  font-size: .95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: .35rem;
  line-height: 1.55;
}
.team-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: .75rem;
}
.team-tags li {
  font-size: .76rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--sage-soft);
  color: var(--sage-deep);
  letter-spacing: .01em;
}

/* 15. FAQ ================================================== */
.section-faq { background: var(--bg); }
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease-out);
}
.faq-item[open] { background: var(--cream-tint); }
.faq-item summary {
  padding: 1.5rem .25rem 1.5rem .25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color .25s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--sage-deep); }
.faq-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage-soft);
  position: relative;
  transition: background .3s var(--ease-out), transform .35s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute;
  background: var(--sage-deep);
  border-radius: 1px;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
.faq-icon::before { /* horizontal */
  top: 50%; left: 25%; right: 25%; height: 1.5px;
  transform: translateY(-50%);
}
.faq-icon::after { /* vertical */
  left: 50%; top: 25%; bottom: 25%; width: 1.5px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-icon { background: var(--sage); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before { background: var(--cream-tint); }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-item > p {
  padding: 0 .25rem 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 64ch;
  animation: faqOpen .4s var(--ease-out);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* 16. CTA FINAL ============================================ */
.section-cta {
  background: var(--sage-deep);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 155, 133, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(63, 111, 92, 0.6) 0%, transparent 50%);
}
.section-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cta-inner { max-width: 1080px; margin: 0 auto; }
.cta-head { margin-bottom: 3rem; }
.cta-head .kicker { color: var(--coral); }
.cta-head .kicker::before { color: var(--coral); }
.cta-lede {
  font-size: var(--fs-lede);
  color: rgba(245, 240, 232, 0.8);
  max-width: 60ch;
  line-height: 1.55;
  margin-top: 1.2rem;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
}

.cta-channels {
  display: flex; flex-direction: column; gap: .9rem;
}
.channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.15);
  border-radius: var(--r-md);
  color: var(--cream-tint);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.channel:hover {
  background: rgba(245, 240, 232, 0.12);
  border-color: rgba(245, 240, 232, 0.4);
  transform: translateY(-2px);
}
.channel svg { flex-shrink: 0; color: var(--coral); }
.channel-wa svg { color: var(--wa-green); }
.channel div { display: flex; flex-direction: column; gap: .15rem; }
.channel strong {
  font-weight: 600; font-size: 1rem;
  letter-spacing: -0.005em;
}
.channel span {
  font-size: .85rem;
  color: rgba(245, 240, 232, 0.7);
}
.channel-info { cursor: default; }
.channel-info:hover { transform: none; background: rgba(245, 240, 232, 0.06); border-color: rgba(245, 240, 232, 0.15); }

/* Form */
.cta-form {
  background: var(--cream-tint);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 540px) { .cta-form { padding: 2.25rem; } }
.form-title {
  font-size: 1.25rem;
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  margin-bottom: .25rem;
  letter-spacing: -0.015em;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.field input, .field select {
  font: inherit;
  padding: .85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  min-height: 48px;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(63, 111, 92, 0.15);
}
.checkbox {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .88rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox input {
  margin-top: .2rem;
  accent-color: var(--sage);
  width: 16px; height: 16px;
}
.checkbox a { color: var(--sage-deep); text-decoration: underline; }
.form-fineprint {
  font-size: .78rem;
  /* --ink-mute daba ~4.4:1 sobre --cream-tint (bajo el 4.5:1 AA para texto
     pequeño). --ink-soft sube a ~9:1 sin tocar la paleta de marca. */
  color: var(--ink-soft);
  text-align: center;
  margin-top: .25rem;
}
/* F7 · Estado del envío: confirma al usuario que la navegación está en curso
   durante la espera de red (region live, se anuncia además de verse). */
.form-status {
  font-size: .85rem;
  font-weight: 500;
  color: var(--sage-deep);
  text-align: center;
  margin-top: .25rem;
}
.form-status[hidden] { display: none; }

.cta-form button[type="submit"] {
  position: relative;
  overflow: hidden;
}
.cta-form button .btn-sending,
.cta-form button .btn-success { display: none; }
.cta-form.is-sending button .btn-label { display: none; }
.cta-form.is-sending button .btn-sending { display: inline; }
.cta-form.is-sent button .btn-label,
.cta-form.is-sent button .btn-sending { display: none; }
.cta-form.is-sent button .btn-success { display: inline; }
.cta-form.is-sent button { background: var(--coral-deep); }

/* 17. FOOTER ============================================== */
.site-footer {
  background: var(--ink);
  color: rgba(245, 240, 232, 0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 3rem; } }

.brand-light { color: var(--cream-tint); }
.brand-light .brand-name { color: var(--cream-tint); }
.brand-light .brand-name em { color: var(--coral); }
.brand-light .brand-mark { color: var(--cream-tint); }
.footer-tagline {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80;
  font-size: 1.05rem;
  color: var(--cream-tint);
}
.footer-address {
  margin-top: 1.5rem;
  font-size: .92rem;
  line-height: 1.7;
}
.footer-address a {
  color: var(--coral); text-decoration: underline; text-underline-offset: 3px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-tint);
  margin-bottom: 1rem;
}
.footer-col h4.mt { margin-top: 1.5rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a {
  font-size: .94rem;
  transition: color .25s var(--ease-out);
}
.footer-col a:hover { color: var(--coral); }
.footer-contact a, .footer-social a { color: var(--cream-tint); }
.footer-hours { font-size: .92rem; }

.footer-legal {
  padding-top: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 720px) { .footer-legal { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-legal p {
  font-size: .76rem;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.6;
  max-width: 70ch;
}
.footer-legal p + p { margin-top: .75rem; }
.footer-privacy strong { color: rgba(245, 240, 232, 0.75); font-weight: 600; }
.footer-privacy a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal ul {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
}
.footer-legal a { font-size: .8rem; color: rgba(245, 240, 232, 0.7); }
.footer-legal a:hover { color: var(--coral); }

/* 18. WHATSAPP FLOAT ====================================== */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px -8px rgba(37, 211, 102, 0.55), 0 12px 40px -16px rgba(31, 42, 46, 0.4);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .3s var(--ease-out);
  animation: waBob 3.6s var(--ease-soft) infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px -8px rgba(37, 211, 102, 0.7), 0 18px 50px -16px rgba(31, 42, 46, 0.5);
}
@keyframes waBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
/* F8 · Al escribir en el formulario (teclado móvil abierto), el botón flotante
   de WhatsApp podía solaparse con «Enviar». initForm le pone .is-tucked cuando
   el foco entra al formulario y lo quita al salir (focusin/focusout, soporte
   universal — se prefirió a :has(:focus), que no invalida de forma fiable en
   todos los motores). */
.wa-float.is-tucked {
  opacity: 0;
  pointer-events: none;
  transform: scale(.85) translateY(8px);
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--ink);
  color: var(--cream-tint);
  padding: .5rem .85rem;
  border-radius: var(--r-pill);
  font-size: .82rem;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 540px) {
  .wa-float { width: 54px; height: 54px; right: .9rem; bottom: .9rem; }
}

/* 19. RESPONSIVE TWEAKS =================================== */
@media (min-width: 1024px) {
  .header-actions .icon-btn,
  .header-actions .icon-btn--wa { display: none; }
}

/* 20. REDUCED MOTION (only intrusive) ===================== */
@media (prefers-reduced-motion: reduce) {
  .splash-mark { animation: none; }
  .hero-scroll-hint { animation: none; }
  .wa-float { animation: none; }
}
