/* =============================================================
   ASTRID — Landing page
   Paleta "almohadón": marfil cálido, arena, greige y carbón,
   con franjas textiles como firma. Fraunces + Work Sans.
   (Versiones anteriores respaldadas en styles-v1-dorado.css
   y styles-v2-azul.css)
   =============================================================
   1. Tokens
   2. Reset & base
   3. Utilidades (kicker, franjas)
   4. Botones
   5. Nav
   6. Hero (marfil, luz cálida)
   7. Fotos (placeholders de lino)
   8. Secciones comunes
   9. Síntoma
   10. Dos puertas
   11. Reencuadre (✕ / ✓, efecto firma)
   12. Manera (franja carbón)
   13. Camino (línea de progreso)
   14. Historias
   15. Sobre Astrid
   16. Cierre + footer
   17. Reveals & animaciones
   18. Responsive
   19. Reduced motion (solo efectos intrusivos)
   ============================================================= */

/* =============================================================
   1. Tokens — colores tomados del almohadón
   ============================================================= */
:root {
  --ivory:   #F1EDE3;   /* tela base clara */
  --cream:   #EEE8D9;   /* banda intermedia: entre marfil y crema, para
                           que "Dos puertas" se distinga de "El síntoma" */
  --ivory-2: #E9E3D4;   /* banda crema-arena */
  --paper:   #F8F1E4;   /* tarjetas */

  --charcoal:   #262521;   /* la franja oscura ancha */
  --charcoal-2: #2C2B25;
  --charcoal-3: #1D1C18;   /* footer */

  --sand:      #C3B295;   /* franja beige chenilla */
  --sand-soft: #E4DCC8;   /* insignias y fondos suaves */
  --bronze:    #6F5F45;   /* arena oscurecida, acento sobre claro */

  --greige:    #918B7D;   /* franja gris-pardo */
  --ink:       #2B2A25;   /* texto fuerte sobre claro */
  --ink-2:     #5F5A4C;   /* cuerpo sobre claro */
  --ink-3:     #6B6455;   /* secundario sobre claro */
  --ink-d:     #CFC8B8;   /* cuerpo sobre carbón */
  --ink-d2:    #A79F8D;   /* secundario sobre carbón */

  --line:    #DDD6C6;
  --line-d:  rgba(207, 200, 184, 0.16);

  --shadow-card:  0 6px 22px rgba(66, 60, 45, 0.1);
  --shadow-hover: 0 18px 40px rgba(66, 60, 45, 0.16);

  /* La franja textil, citada del almohadón */
  --stripes: linear-gradient(180deg,
    var(--sand) 0 3px,
    var(--ivory) 3px 5px,
    var(--greige) 5px 8px,
    var(--ivory) 8px 10px,
    var(--charcoal) 10px 14px);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1140px;
  --nav-h: 72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  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; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
ol, ul { list-style: none; padding: 0; }

::selection { background: var(--charcoal); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--charcoal); color: var(--ivory);
  z-index: 9999; border-radius: 8px; font-weight: 500; font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

/* Grano sutil: textura de lino sobre los fondos claros */
.grain {
  display: block;
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
}
.kicker span { display: none; }

/* Palabras clave del H1: itálica serif en arena oscura */
.gold {
  font-style: italic;
  color: var(--bronze);
  background-image: linear-gradient(rgba(195, 178, 149, 0.38), rgba(195, 178, 149, 0.38));
  background-repeat: no-repeat;
  background-size: 100% 0.26em;
  background-position: 0 88%;
}

/* =============================================================
   4. Botones — píldora, carbón sobre claro / arena sobre oscuro
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(43, 42, 37, 0.22);
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn:hover {
  background: #14130F;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(43, 42, 37, 0.3);
}
.btn:active { transform: translateY(0); }

/* Sobre bandas carbón, el botón se invierte a arena */
.btn--sand,
.manera .btn,
.cierre .btn {
  background: var(--sand);
  color: var(--charcoal);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.manera .btn:hover,
.cierre .btn:hover,
.btn--sand:hover {
  background: #D2C3A7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--nav { padding: 0.62rem 1.3rem; font-size: 0.8rem; box-shadow: 0 8px 20px rgba(43, 42, 37, 0.16); }
.btn--big { padding: 1.15rem 2.5rem; font-size: 1.02rem; }

/* =============================================================
   5. Nav — marfil translúcido, hairline
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(241, 237, 227, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft);
}
.nav-inner {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.05rem;
  transition: padding 0.35s var(--ease-soft);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(66, 60, 45, 0.07);
}
.nav.is-scrolled .nav-inner { padding-block: 0.7rem; }

.nav-brand {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-diamond { display: none; }

/* =============================================================
   6. Hero — marfil con luz de arena, remate de franjas
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  background:
    radial-gradient(55% 70% at 85% 8%, rgba(195, 178, 149, 0.3), transparent 60%),
    radial-gradient(45% 60% at 5% 95%, rgba(145, 139, 125, 0.14), transparent 65%),
    var(--ivory);
  color: var(--ink);
}

/* Luz cálida que deriva despacio */
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 58vw; height: 75vh;
  background: radial-gradient(45% 45% at 60% 40%, rgba(195, 178, 149, 0.22), transparent 70%);
  pointer-events: none;
  animation: haloDrift 24s var(--ease-soft) infinite alternate;
}
@keyframes haloDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-6%, 8%, 0); }
}

/* Franja textil al pie del hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: var(--stripes);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.88fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.2vw, 4.3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 1.4rem;
  max-width: 14ch;
  color: var(--ink);
}

.hero-sub {
  margin-top: 1.6rem;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 46ch;
}

.hero-frase {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
}
.hero-frase::before {
  content: "";
  display: inline-block;
  width: 2rem; height: 2px;
  border-radius: 2px;
  background: var(--bronze);
  vertical-align: 0.3em;
  margin-right: 0.9rem;
}

.hero-cta { margin-top: 2.4rem; }
.hero-nota {
  margin-top: 0.95rem;
  font-size: 0.81rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

/* Entrada del hero — CSS puro, corre aunque falle el JS */
.hero-e { animation: heroRise 1s var(--ease-out) both; }
.hero-e1 { animation-delay: 0.05s; }
.hero-e2 { animation-delay: 0.15s; }
.hero-e3 { animation-delay: 0.3s; }
.hero-e4 { animation-delay: 0.42s; }
.hero-e5 { animation-delay: 0.54s; }
.hero-e6 { animation-delay: 0.35s; animation-duration: 1.3s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   7. Fotos — lino cálido con luz de ventana
   ============================================================= */
/* Figura entera y sólida (sin fundido), centrada verticalmente
   respecto del bloque de texto del hero */
.hero-photo-wrap {
  justify-self: end;
  width: 100%;
  max-width: 480px;
}

.photo {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sand-soft);
  box-shadow: 0 26px 55px rgba(56, 52, 40, 0.2);
}
.photo--hero  { aspect-ratio: 4 / 5; }

/* La foto del hero flota sobre el fondo: su blanco de estudio ya fue
   remapeado al marfil de la página (tools/procesar-foto-hero.py),
   así que va sin caja, sin sombra, y el torso se funde por abajo */
.photo--hero {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
/* La foto de "Sobre Astrid" flota igual que la del hero:
   fondo ya remapeado al marfil, sin caja, fundido inferior */
.photo--sobre {
  max-width: 380px;
  aspect-ratio: 4 / 4.8;
  justify-self: end;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 99%);
}

.photo::after { content: none; }

/* Las fotos ya vienen procesadas al marfil exacto por
   tools/procesar-foto-hero.py: NO llevan filtros encima */
.photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.photo--sobre img { object-position: 50% 0%; }

/* Las fotos reales van limpias: sin franja ni degradado encima.
   La franja textil ya aparece al pie del hero y en las bandas. */

.photo-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 80% at 76% 4%, rgba(250, 248, 242, 0.7), transparent 56%),
    radial-gradient(90% 60% at 22% 100%, rgba(145, 139, 125, 0.28), transparent 62%),
    linear-gradient(205deg, #E7E0CF 0%, #D8CFBA 48%, #C7BCA2 100%);
}

/* La franja del almohadón, al pie de la foto */
.photo-placeholder::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: var(--stripes);
  opacity: 0.9;
}

/* Franjas de luz, como la que entra por una ventana */
.photo-light {
  position: absolute;
  top: -12%; left: 16%;
  width: 30%; height: 135%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 253, 246, 0.45), transparent);
  filter: blur(5px);
}
.photo-light--2 { left: 52%; width: 16%; opacity: 0.7; }

.photo-tag {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  background: rgba(250, 248, 242, 0.72);
  border: 1px dashed rgba(111, 95, 69, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}

/* =============================================================
   8. Secciones comunes
   ============================================================= */
.section {
  position: relative;
  padding: clamp(5.2rem, 10vh, 7.8rem) 0;
}
.section--alt { border: none; }

.section-head { margin-bottom: clamp(2.8rem, 6vh, 4.2rem); }
.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 1rem;
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.03rem;
  color: var(--ink-2);
  max-width: 54ch;
}

/* Números como insignia circular de arena */
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand-soft);
  color: var(--bronze);
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
}

/* =============================================================
   9. Síntoma — banda crema-arena
   ============================================================= */
.sintoma { background: var(--ivory-2); }

.sintoma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.sintoma-card {
  position: relative;
  padding: 1.7rem 1.8rem 1.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.sintoma-card:hover {
  transform: translateY(-5px);
  border-color: rgba(111, 95, 69, 0.35);
  box-shadow: var(--shadow-hover);
}
.sintoma-card .card-num::after { content: none; }
.sintoma-card p {
  margin-top: 1rem;
  font-size: 0.99rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

/* =============================================================
   10. Dos puertas — tarjetas con franja textil arriba
   ============================================================= */
.puertas { background: var(--cream); }

.puertas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 880px;
  margin-inline: auto;
}

.puerta {
  position: relative;
  overflow: clip;
  text-align: center;
  padding: 3rem 2.2rem 2.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.puerta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: linear-gradient(180deg,
    var(--sand) 0 3px,
    var(--paper) 3px 4px,
    var(--greige) 4px 6px,
    var(--paper) 6px 7px,
    var(--charcoal) 7px 10px);
}
.puerta:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.puerta-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}
.puerta-quote {
  margin-top: 1.25rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.1vw, 1.55rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

.puertas-merge {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.merge-lines {
  width: min(520px, 76%);
  height: 96px;
  margin: 0.4rem auto 1.5rem;
}
.merge-lines path {
  fill: none;
  stroke: rgba(111, 95, 69, 0.5);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-soft) 0.25s;
}
html.js .puertas-merge.is-visible .merge-lines path,
html.no-js .merge-lines path { stroke-dashoffset: 0; }

.puertas-union {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.puertas-union strong { font-weight: 600; color: var(--ink); }

.puertas-question {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  color: var(--bronze);
}

/* =============================================================
   11. Reencuadre — ✕ greige / ✓ carbón, efecto firma
   ============================================================= */
.reframe-section { background: var(--ivory); }
.reframe-section::before { content: none; }

.reframe {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.reframe-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.1rem;
}
.reframe-col {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
}
.reframe-col--left  { color: var(--greige); }
.reframe-col--right { color: var(--ink); }
.reframe-axis { display: none; }

.reframe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  border-top: none;
  padding-block: 0;
}
.reframe-dot { display: none; }

.reframe-left,
.reframe-right {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05rem 1.4rem;
  border-radius: 12px;
  font-size: 0.97rem;
  line-height: 1.5;
  text-align: left;
}

.reframe-left {
  background: #E9E4DA;
  color: var(--ink-3);
  font-weight: 400;
}
.reframe-left::before {
  content: "✕";
  content: "✕" / "";
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85em;
  color: #A39B89;
  flex-shrink: 0;
}

/* El lado elegido lleva el carbón de la franja ancha */
.reframe-right {
  background: linear-gradient(135deg, var(--charcoal-2) 0%, var(--charcoal) 100%);
  color: var(--ivory);
  font-weight: 500;
  box-shadow: 0 10px 26px rgba(43, 42, 37, 0.28);
}
.reframe-right::before {
  content: "✓";
  content: "✓" / "";
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9em;
  color: var(--sand);
  flex-shrink: 0;
}

/* Estado inicial (solo con JS) y encendido en pareja */
html.js .reframe-row .reframe-left,
html.js .reframe-row .reframe-right { opacity: 0; }
html.js .reframe-row .reframe-left {
  transform: translateX(-26px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reframe-row .reframe-right {
  transform: translateX(26px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + 0.12s);
}
html.js .reframe-row.is-lit .reframe-left {
  opacity: 1;
  transform: none;
}
html.js .reframe-row.is-lit .reframe-right {
  opacity: 1;
  transform: none;
  animation: litGlow 1.5s var(--ease-soft) 1 both;
  animation-delay: calc(var(--d, 0s) + 0.3s);
}
@keyframes litGlow {
  0%   { box-shadow: 0 10px 26px rgba(43, 42, 37, 0.28); }
  40%  { box-shadow: 0 14px 36px rgba(43, 42, 37, 0.5); }
  100% { box-shadow: 0 10px 26px rgba(43, 42, 37, 0.28); }
}

.reframe-close {
  margin-top: 2.9rem;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 500;
  color: var(--bronze);
}

/* =============================================================
   12. Manera — la franja carbón del almohadón
   ============================================================= */
.manera {
  background:
    radial-gradient(55% 70% at 88% 0%, rgba(195, 178, 149, 0.12), transparent 60%),
    linear-gradient(180deg, var(--charcoal-2) 0%, var(--charcoal) 100%);
}
.manera::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 14px;
  background: var(--stripes);
}
.manera .kicker { color: var(--sand); }
.manera .section-title { color: var(--ivory); }
.manera .section-lead { color: var(--ink-d); }

/* Cinco tarjetas: fila de 2 arriba + fila de 3 abajo */
.manera-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: 940px;
}
.manera-card { grid-column: span 2; }
.manera-card:nth-child(-n+2) { grid-column: span 3; }

.manera-card {
  padding: 2.1rem 2.2rem 2.3rem;
  background: var(--paper);
  border: none;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.manera-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}
.manera-card h3 {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--ink);
}
.manera-card p {
  margin-top: 0.55rem;
  font-size: 0.97rem;
  color: var(--ink-2);
}

/* =============================================================
   13. Camino — línea de progreso en arena
   ============================================================= */
.camino-section { background: var(--ivory); }

.camino {
  position: relative;
  max-width: 720px;
  padding-left: 3.1rem;
}

.camino-track {
  position: absolute;
  left: 9px;
  top: 0.5rem;
  bottom: 2.4rem;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  /* La frase de cierre ya no lleva nodo: la línea se desvanece antes */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 6rem), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 6rem), transparent);
}
.camino-progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sand), var(--bronze));
  border-radius: 2px;
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

.camino-item {
  position: relative;
  padding-bottom: clamp(2.6rem, 6vh, 4rem);
}

/* Nodo: círculo (el carácter ◇ del HTML queda oculto) */
.camino-node {
  position: absolute;
  left: -3.1rem;
  top: 0.2rem;
  width: 20px; height: 20px;
  font-size: 0;
  border-radius: 50%;
  background: var(--line);
  border: 4px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--line);
  padding: 0;
  transition: background 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}
.camino-item.is-visible .camino-node {
  background: var(--bronze);
  box-shadow: 0 0 0 1px var(--bronze), 0 0 14px rgba(111, 95, 69, 0.45);
}

.camino-momento {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}
.camino-item h3 {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.3vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
}
.camino-item > p:last-child {
  margin-top: 0.65rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 58ch;
}

.camino-cierre {
  position: relative;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  max-width: 50ch;
}
.camino-node--fin {
  top: 0.3rem;
  background: var(--bronze);
  box-shadow: 0 0 0 1px var(--bronze), 0 0 14px rgba(111, 95, 69, 0.45);
}

/* =============================================================
   14. Historias — banda crema-arena
   ============================================================= */
.historias { background: var(--ivory-2); }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.7rem;
  max-width: 1000px;
}

.testimonio {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: clip;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.testimonio:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* Fotos unificadas en blanco y negro cálido (horneado en el archivo) */
.testimonio-foto { aspect-ratio: 3 / 2; }
.testimonio-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.testimonio blockquote {
  padding: 1.5rem 1.8rem 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
}
.testimonio figcaption {
  padding: 1rem 1.8rem 1.2rem;
}
.testimonio figcaption strong {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.testimonio figcaption span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* Testimonio completo, plegado (mismo lenguaje que "Mi historia") */
.testimonio-mas {
  margin: auto 1.8rem 1.4rem;
  border-top: 1px solid var(--line);
}
.testimonio-mas summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.1rem 0.4rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.3s var(--ease-out);
}
.testimonio-mas summary::-webkit-details-marker { display: none; }
.testimonio-mas summary:hover { color: var(--bronze); }
.testimonio-mas .historia-icono { width: 26px; height: 26px; font-size: 0.9rem; }
.testimonio-mas[open] .historia-icono {
  transform: rotate(45deg);
  background: var(--sand-soft);
  border-color: var(--sand);
}
.testimonio-cuerpo p {
  margin-top: 0.85rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.testimonio-cuerpo p:first-child { margin-top: 0.35rem; }
.testimonio-mas[open] .testimonio-cuerpo { animation: historiaAbre 0.5s var(--ease-out); }

/* =============================================================
   15. Sobre Astrid
   ============================================================= */
.sobre { background: var(--ivory); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.sobre-lead {
  margin-top: 1.5rem;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 54ch;
}
.sobre-lead em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08em;
  color: var(--ink);
}

/* El tríptico "Vi un hobby…", como momento destacado */
.sobre-hitos {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  max-width: 44ch;
}

.sobre-p {
  margin-top: 1rem;
  font-size: 1.01rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 54ch;
}

/* Historia personal expandible — mismo lenguaje visual de la sección */
.sobre-historia {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  max-width: 54ch;
}
.sobre-historia summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.1rem;
  cursor: pointer;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}
.sobre-historia summary::-webkit-details-marker { display: none; }
.sobre-historia summary:hover { color: var(--bronze); }
.historia-icono {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  color: var(--bronze);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft);
}
.sobre-historia[open] .historia-icono {
  transform: rotate(45deg);
  background: var(--sand-soft);
  border-color: var(--sand);
}
.sobre-historia-cuerpo { padding: 0.2rem 0 0.7rem; }
.sobre-historia-cuerpo p {
  margin-top: 1rem;
  font-size: 0.99rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.sobre-historia-cuerpo p:first-child { margin-top: 0.25rem; }
.sobre-historia[open] .sobre-historia-cuerpo { animation: historiaAbre 0.5s var(--ease-out); }
@keyframes historiaAbre {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================
   16. Cierre + footer — la franja oscura, de nuevo
   ============================================================= */
.cierre {
  text-align: center;
  padding: clamp(6.5rem, 13vh, 9.5rem) 0;
  overflow: clip;
  background:
    radial-gradient(55% 60% at 50% 42%, rgba(195, 178, 149, 0.16), transparent 70%),
    linear-gradient(180deg, var(--charcoal-2) 0%, var(--charcoal) 100%);
}
.cierre::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 14px;
  background: var(--stripes);
}
.cierre-halo { display: none; }

.cierre .kicker { color: var(--sand); }

.cierre-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cierre-title {
  max-width: 16ch;
  color: var(--ivory);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}
.cierre-body {
  margin-top: 1.4rem;
  font-size: 1.07rem;
  line-height: 1.8;
  color: var(--ink-d);
  max-width: 52ch;
}
.cierre .btn--big { margin-top: 2.6rem; }

.footer {
  padding: 2.7rem 0 3.1rem;
  background: var(--charcoal-3);
  border-top: 1px solid var(--line-d);
  text-align: center;
}
.footer-line {
  font-size: 0.87rem;
  color: var(--ink-d2);
  letter-spacing: 0.02em;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.footer-copy {
  margin-top: 0.7rem;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  color: rgba(167, 159, 141, 0.7);
}

/* =============================================================
   17. Reveals
   ============================================================= */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-soft), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Defensa: un elemento con split nunca puede quedarse invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   18. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .hero { padding-top: calc(var(--nav-h) + 2rem); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: none; }
  .hero-photo-wrap {
    justify-self: start;
    max-width: 420px;
    margin-top: 1rem;
  }
  .photo--hero { aspect-ratio: 4 / 4.6; }

  .sintoma-grid { grid-template-columns: repeat(2, 1fr); }

  .puertas-grid { grid-template-columns: 1fr; max-width: 480px; }
  .merge-lines { display: none; }
  .puertas-merge { margin-top: 2.4rem; }
  .puertas-merge::before {
    content: "";
    display: block;
    width: 2px; height: 52px;
    margin: 0 auto 1.7rem;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--bronze));
  }

  .manera-grid { grid-template-columns: 1fr; max-width: 560px; }
  .manera-card, .manera-card:nth-child(-n+2) { grid-column: auto; }
  .testimonios-grid { grid-template-columns: 1fr; max-width: 560px; }

  .sobre-grid { grid-template-columns: 1fr; }
  .photo--sobre { justify-self: start; }
}

@media (max-width: 719px) {
  body { font-size: 15.5px; }

  .sintoma-grid { grid-template-columns: 1fr; }

  /* Reencuadre apilado: la mitad ✕ arriba, la ✓ debajo */
  .reframe-head { grid-template-columns: 1fr; }
  .reframe-col--left { display: none; }
  .reframe-col--right { text-align: left; }

  .reframe-row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }
  .reframe-left { font-size: 0.9rem; padding: 0.85rem 1.1rem; }
  .reframe-right { padding: 0.95rem 1.1rem; }

  .camino { padding-left: 2.4rem; }
  .camino-node { left: -2.4rem; }
}

@media (max-width: 539px) {
  .nav-inner { padding-block: 0.85rem; }
  .nav-brand { font-size: 1.2rem; }

  .hero-sub { font-size: 1rem; }
  .hero-photo-wrap, .photo--sobre { max-width: 100%; }

  .btn {
    font-size: 0.85rem;
    padding: 0.9rem 1.5rem;
    white-space: normal;
    text-align: center;
  }
  .btn--nav { padding: 0.55rem 1rem; font-size: 0.72rem; white-space: nowrap; }
  .btn--big { padding: 1.05rem 1.7rem; font-size: 0.92rem; }
}

/* =============================================================
   19. Reduced motion — solo lo intrusivo
   (los reveals, hovers y transiciones funcionales se mantienen)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
}
