/* ==========================================================================
   Crisálida · Sistema de diseño
   Paleta oficial: Manual de Identidad Crisálida (GoroGoro Estudio, 2022).
   Los tonos "profundos" se derivan de la misma familia cromática para
   cumplir WCAG AA en texto (contraste ≥ 4,5:1).
   ========================================================================== */

@font-face {
  font-family: 'Lora';
  src: url(/assets/fonts/lora-latin-wght-normal.ddb8c66035.woff2) format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url(/assets/fonts/lora-latin-wght-italic.d824d807d4.woff2) format('woff2');
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url(/assets/fonts/raleway-latin-wght-normal.b1bef1f03a.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url(/assets/fonts/playfair-display-latin-400-italic.eabce94d4a.woff2) format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  /* Paleta oficial del manual */
  --menta: #D8EAE3;
  --verde: #BFDBD1;
  --lavanda: #CBCBFD;
  --arena: #E7DAD1;
  --crema: #F2EFED;
  --carbon: #2C2C2C;

  /* Derivados accesibles */
  --gris-lavanda: #4A4757;
  --lavanda-profunda: #584E8C;
  --tinta-suave: #4A4A4A;
  --lavanda-niebla: #D6D3EC;
  /* Oro (alusión a chrysós, «oro», raíz de crisálida). Solo trazos decorativos: nunca texto ni fondos. */
  --oro: #B8964F;

  /* Roles */
  --bg: var(--crema);
  --surface: #FFFFFF;
  --surface-2: var(--menta);
  --surface-3: var(--arena);
  --surface-4: #E9E9FE;
  --text: var(--carbon);
  --muted: var(--tinta-suave);
  --accent: var(--gris-lavanda);
  --accent-2: var(--lavanda-profunda);
  --line: rgba(44, 44, 44, .14);
  --btn-bg: var(--gris-lavanda);
  --btn-fg: #FFFFFF;
  --btn-soft-bg: var(--lavanda);
  --btn-soft-fg: var(--carbon);
  --footer-bg: var(--carbon);
  --footer-fg: var(--crema);
  --focus: var(--lavanda-profunda);
  --shadow: 0 1px 2px rgba(44, 44, 44, .05), 0 12px 32px -12px rgba(74, 71, 87, .18);

  /* Tipografía: Plantagenet Cherokee es la fuente principal del manual.
     Se usa si está instalada; si no, Lora (OFL) como equivalente web. */
  --font-display: 'Plantagenet Cherokee', 'Lora', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Playfair Display', 'Lora', Georgia, serif;
  --font-cita: 'Lora', Georgia, serif;

  --step--1: clamp(.875rem, .85rem + .1vw, .95rem);
  --step-0: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);

  --space: clamp(1rem, .8rem + 1vw, 1.5rem);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 22px;
  --wrap: 72rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1E23;
    --surface: #26252B;
    --surface-2: #24302D;
    --surface-3: #2D2927;
    --surface-4: #2B2A3A;
    --text: var(--crema);
    --muted: #B8B3AE;
    --accent: var(--lavanda-niebla);
    --oro: #D4B36A;
    --accent-2: var(--lavanda);
    --line: rgba(242, 239, 237, .14);
    --btn-bg: var(--lavanda-niebla);
    --btn-fg: #1F1E23;
    --btn-soft-bg: #3A3A5C;
    --btn-soft-fg: var(--crema);
    --footer-bg: #18171C;
    --focus: var(--lavanda);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 32px -16px rgba(0, 0, 0, .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg) url(/assets/img/acuarela-papel.db2c2acc72.webp) repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 450;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; }
li::marker { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lavanda); color: var(--carbon); }
.nums { font-variant-numeric: lining-nums tabular-nums; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--shadow);
}
.skip:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * .6); }
.center { text-align: center; margin-inline: auto; }

/* Rótulo espaciado, eco del "C R I S Á L I D A" del manual */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); font-weight: 400; }
/* Títulos de Lorena en "Quién te acompaña": imprenta mayúscula espaciada, como sus placas de Instagram (pedido 06/10/2026) */
.lead.titulos-imprenta { font-family: var(--font-body); font-size: var(--step-0); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; line-height: 1.7; color: var(--accent); }
.accent-italic { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--accent-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-soft { background: var(--btn-soft-bg); color: var(--btn-soft-fg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: .6rem 1.1rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
/* El encabezado usa más ancho que el contenido, para que entren las 9 entradas del menú. */
@media (min-width: 84rem) { .wrap.header-inner { width: min(100% - 2.5rem, 86rem); } .nav-desktop ul { gap: 1.15rem; } }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.brand-mark { width: 46px; height: auto; }
.brand picture { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
}
.brand-sub { font-size: .72rem; letter-spacing: .08em; color: var(--muted); margin-top: .25rem; }

.nav-desktop { display: none; align-items: center; gap: 1.4rem; }
.nav-desktop ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { margin: 0; white-space: nowrap; }
.nav-desktop a:not(.btn), .nav-mobile a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding-block: .35rem; border-bottom: 2px solid transparent;
}
.nav-desktop a:not(.btn):hover, .nav-desktop a[aria-current="page"]:not(.btn) { border-bottom-color: var(--accent); }
.nav-desktop .btn[aria-current="page"] { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .9rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .25s ease, background-color .25s ease;
}
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + .75rem);
  width: min(86vw, 20rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .75rem;
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li { margin: 0; }
.nav-mobile a { display: block; padding: .8rem 1rem; border-radius: 12px; border: 0; }
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { background: var(--surface-2); }
.nav-mobile nav { max-height: calc(100vh - 6rem); overflow-y: auto; }
/* Estado "Próximamente" en lugar de un botón (DTP, pedido de la dueña 08/10/2026) */
.estado-proximamente {
  display: inline-block; padding: .75rem 1.6rem; border-radius: 999px;
  border: 1px dashed var(--accent); color: var(--accent);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
}
/* Desplegables del menú móvil (pedido de la dueña, 03/10/2026, modelo FLACSO):
   el nombre es un enlace y la flecha (summary, superpuesta a la derecha) abre las secciones. */
.nav-mobile li.has-sub { position: relative; }
.nav-mobile li.has-sub > a { padding-right: 3.4rem; }
.nav-mobile .sub summary {
  position: absolute; top: .25rem; right: .25rem; width: 2.6rem; height: 2.6rem; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; justify-content: center;
}
.nav-mobile .sub summary::after {
  content: ''; width: .5rem; height: .5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.nav-mobile .sub[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.nav-mobile .sub summary:hover, .nav-mobile .sub[open] > summary { background: var(--surface-2); }
.nav-mobile .sub ul { margin: 0 0 .4rem .9rem; padding-left: .5rem; border-left: 1px solid var(--line); }
.nav-mobile .sub ul a { font-weight: 500; font-size: .9rem; padding: .6rem .9rem; }
/* Submenú de escritorio */
.nav-desktop li.has-sub { position: relative; }
.nav-desktop .submenu {
  display: none; position: absolute; left: -1rem; top: 100%; z-index: 30; min-width: 16rem;
  list-style: none; margin: 0; padding: .5rem; flex-direction: column; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav-desktop li.has-sub:hover > .submenu, .nav-desktop li.has-sub:focus-within > .submenu { display: flex; }
.nav-desktop .submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav-desktop .submenu li { white-space: normal; }
.nav-desktop .submenu a:not(.btn) { display: block; padding: .55rem .8rem; border-radius: 10px; border: 0; font-weight: 500; font-size: .9rem; }
.nav-desktop .submenu a:not(.btn):hover { background: var(--surface-2); }

/* 84rem (1344 px): con 9 entradas ("Adolescencias y familias", "Adultos", Escritos…) el menú entra con aire;
   más abajo queda pegado al logo, y peor con la barra de desplazamiento de Windows. */
@media (min-width: 84rem) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(4rem, 3rem + 5vw, 8rem); overflow: clip; }
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--accent-2); }
.hero-visual { position: relative; justify-self: center; width: min(100%, 24rem); }
@media (max-width: 55.99rem) {
  .hero-visual { width: min(65%, 15rem); }
  .hero-visual .quote-hero { width: min(calc(100vw - 2.5rem), 24rem); left: 50%; transform: translateX(-50%); }
}
.hero-visual picture { position: relative; z-index: 2; }
.hero-visual img { width: 100%; filter: drop-shadow(0 18px 30px rgba(74, 71, 87, .12)); }

/* Acuarelas: manchas procedurales en la paleta del manual (tools/generar-acuarelas.py).
   Son imágenes decorativas de fondo; en modo oscuro se atenúan para no restar contraste. */
.blob, .hero-bg-blob, .wash {
  position: absolute; pointer-events: none;
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.blob { z-index: 0; }
.blob-mint { background-image: url(/assets/img/acuarela-menta.f9fc96020a.webp); width: 128%; aspect-ratio: 1100 / 860; left: -16%; top: 4%; }
.blob-lav { background-image: url(/assets/img/acuarela-lavanda.c05d4aee6d.webp); width: 55%; aspect-ratio: 960 / 800; right: -14%; bottom: -2%; opacity: .9; }
.hero-bg-blob {
  z-index: -1; width: 52rem; aspect-ratio: 1100 / 860; top: -18rem; left: -20rem;
  background-image: url(/assets/img/acuarela-menta.f9fc96020a.webp); opacity: .9;
}
.wash { z-index: -1; opacity: .9; }
.wash-arena { background-image: url(/assets/img/acuarela-arena.af49a1e69c.webp); aspect-ratio: 1000 / 780; }
.wash-lavanda { background-image: url(/assets/img/acuarela-lavanda.c05d4aee6d.webp); aspect-ratio: 960 / 800; }
.wash-menta { background-image: url(/assets/img/acuarela-menta.f9fc96020a.webp); aspect-ratio: 1100 / 860; }
.wash-gotas { background-image: url(/assets/img/acuarela-gotas.1097aa87a5.webp); aspect-ratio: 900 / 700; opacity: .9; }
.wash-tr { width: min(44rem, 90vw); top: 1rem; right: -12rem; }
.wash-bl { width: min(40rem, 90vw); bottom: 1rem; left: -14rem; }
.wash-br { width: min(38rem, 85vw); bottom: 1rem; right: -12rem; }
.wash-hero-dots { width: 34rem; top: 2rem; right: 6%; z-index: 0; }
.has-wash { position: relative; isolation: isolate; overflow: clip; }
@media (prefers-color-scheme: dark) {
  .blob-mint, .blob-lav { opacity: .28; }
  .hero-bg-blob { opacity: .16; }
  .wash { opacity: .14; }
}

/* Constelación (motivo del manual) */
.constellation { position: absolute; z-index: 3; width: 42%; top: 2%; right: -2%; color: var(--oro); }
.constellation.left { left: -4%; right: auto; bottom: 4%; top: auto; width: 34%; color: var(--oro); }
.constellation .line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 0; opacity: .7; }
.constellation .star { fill: currentColor; }
.constellation .spark { fill: currentColor; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .constellation .line { stroke-dashoffset: 220; animation: draw 2.6s .6s cubic-bezier(.6, 0, .2, 1) forwards; }
  .constellation .star { opacity: 0; animation: twinkle-in .8s forwards; }
  .constellation .star:nth-of-type(2) { animation-delay: .9s; }
  .constellation .star:nth-of-type(3) { animation-delay: 1.3s; }
  .constellation .star:nth-of-type(4) { animation-delay: 1.7s; }
  .constellation .star:nth-of-type(5) { animation-delay: 2.1s; }
  .constellation .spark { animation: breathe 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  .hero .reveal-load { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero .reveal-load:nth-child(2) { animation-delay: .12s; }
  .hero .reveal-load:nth-child(3) { animation-delay: .24s; }
  .hero .reveal-load:nth-child(4) { animation-delay: .36s; }
  .hero-visual { animation: float-in 1.2s .2s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle-in { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(.7); opacity: .45; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(20px) rotate(-2deg); } to { opacity: 1; transform: none; } }

/* Aparición al hacer scroll, solo donde el navegador lo soporta, sin JS */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: clip; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero .lead { max-width: 40rem; }
.page-hero .hero-cred { max-width: 40rem; color: var(--muted); margin-top: 1rem; }
.page-hero .hero-bg-blob { top: -26rem; left: auto; right: -20rem; }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '·'; margin-right: .5rem; color: var(--accent); }
.breadcrumb a { color: var(--muted); }
/* Área táctil ≥ 24 px en enlaces sueltos (WCAG 2.5.8): el relleno vertical de un elemento en línea
   agranda la zona de toque sin mover el diseño. */
.breadcrumb a, .site-footer li a, .testimonios-nota a, .testimonios-ver-todos a { padding-block: .3em; }

/* ---------- Superficies ---------- */
.bg-surface { background: var(--surface); }
.bg-mint { background: var(--surface-2); }
.bg-sand { background: var(--surface-3); }
.bg-lav { background: var(--surface-4); }
.rounded-top { border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; }

/* ---------- Datos clave ---------- */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface); padding: 1.6rem 1.5rem; }
.fact-value { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; display: block; margin-bottom: .35rem; }
.fact-label { color: var(--muted); font-size: var(--step--1); line-height: 1.5; display: block; }

/* ---------- Citas ---------- */
.quote {
  margin: 0; position: relative;
  font-family: var(--font-cita); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.55; text-wrap: balance;
}
.quote p { margin-bottom: .8em; }
.quote::before {
  content: '“'; display: block; height: .42em; margin-bottom: .2em;
  font-size: 3.2em; line-height: .9; color: var(--oro); opacity: .75; font-style: normal;
}
.quote-destacada { max-width: 50rem; margin-inline: auto; text-align: center; }
.quote-destacada::before { margin-inline: auto; }
.quote-hero { position: relative; z-index: 2; text-align: center; margin-top: clamp(1rem, .5rem + 1.5vw, 2rem); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.quote-hero::before { margin-inline: auto; font-size: 2.4em; }
.quote-hero p { margin-bottom: .6em; }
.quote footer, .quote-cite {
  font-family: var(--font-body); font-style: normal; font-size: var(--step--1);
  letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--accent);
}

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: var(--space); }
@media (min-width: 44rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 44rem) and (max-width: 63.99rem) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card-icon {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); margin-bottom: 1.2rem;
}
.card-icon svg { width: 1.6rem; height: 1.6rem; }
.card-mint { background: var(--surface-2); }
.card-lav { background: var(--surface-4); }
.card-sand { background: var(--surface-3); }
/* Borde dorado muy tenue en todas las tarjetas. */
.card { border-color: color-mix(in srgb, var(--oro) 40%, transparent); }
.card-mint .card-icon, .card-lav .card-icon, .card-sand .card-icon { background: var(--surface); }

/* ---------- Testimonios: tarjetas con acuarela (color según la categoría) ---------- */
.testimonios { align-items: start; }
.testimonio {
  position: relative; isolation: isolate; overflow: hidden; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
}
.testimonio::before {
  content: ''; position: absolute; z-index: -1; right: -22%; bottom: -30%; width: 80%; aspect-ratio: 1100 / 860;
  background: center / contain no-repeat; opacity: .55; pointer-events: none;
}
.tono-menta::before { background-image: url(/assets/img/acuarela-menta.f9fc96020a.webp); }
.tono-lavanda::before { background-image: url(/assets/img/acuarela-lavanda.c05d4aee6d.webp); }
.tono-arena::before { background-image: url(/assets/img/acuarela-arena.af49a1e69c.webp); }
.testimonio-cat {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem;
}
.testimonio blockquote {
  margin: 0; font-family: var(--font-accent); font-style: italic; font-weight: 400;
  font-size: var(--step-1); line-height: 1.55;
}
.testimonio blockquote p { margin: 0 0 .8em; }
.testimonio blockquote p:last-child { margin-bottom: 0; }
.testimonio figcaption { margin-top: 1.3rem; font-weight: 600; color: var(--muted); }
.testimonio figcaption::before { content: '— '; }
.testimonios-nota { max-width: 44rem; margin-top: 2rem; font-size: var(--step--1); }
.testimonios-vacio, .testimonios-invitacion { max-width: 44rem; }
.testimonios-invitacion h2 { margin-top: .4rem; }
.testimonios-invitacion a { white-space: nowrap; }
.testimonios-uno { max-width: 44rem; }
@media (prefers-color-scheme: dark) { .testimonio::before { opacity: .18; } }

/* ---------- Formulario (testimonios) ---------- */
.form { display: grid; gap: 1.6rem; max-width: 42rem; }
.campo { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo > label:not(.opcion), .campo > legend { font-weight: 700; padding: 0; margin-bottom: .1rem; }
.campo > legend + .opcion { margin-top: .4rem; }
.ayuda { margin: 0; color: var(--muted); font-size: var(--step--1); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 3rem; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--muted); border-radius: 12px; padding: .75rem 1rem;
}
.form textarea { min-height: 13rem; line-height: 1.6; resize: vertical; }
.opcion { display: flex; align-items: flex-start; gap: .75rem; font-weight: 400; cursor: pointer; }
.opcion input { flex: none; width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--accent); cursor: pointer; }
.form .btn { justify-self: start; }
button.btn { font-family: inherit; cursor: pointer; }
.trampa { display: none; }

/* ---------- Metamorfosis: tres etapas ---------- */
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space); }
@media (min-width: 56rem) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stage { position: relative; padding-top: 1rem; }
.stage-num {
  font-family: var(--font-display); font-size: var(--step-3); color: var(--accent-2);
  display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; line-height: 1;
}
.stage-num::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.stage h3 { font-size: var(--step-1); }

/* ---------- Chips de enfoques ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  margin: 0; padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: var(--step--1);
  background: var(--surface); border: 1px solid var(--line);
}
.chips li:nth-child(3n+1) { background: var(--surface-2); border-color: transparent; }
.chips li:nth-child(3n+2) { background: var(--surface-4); border-color: transparent; }
.chips-center { justify-content: center; }
.h3-size { font-size: var(--step-1); }
.chips li:nth-child(3n) { background: var(--surface-3); border-color: transparent; }

/* ---------- Dos columnas de lectura ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (min-width: 56rem) {
  .split { grid-template-columns: .85fr 1.15fr; }
  .split-rev { grid-template-columns: 1.15fr .85fr; }
  .sticky-col { position: sticky; top: 7rem; align-self: start; }
}
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose .eyebrow + h2 { margin-top: 0; }

/* ---------- Línea de tiempo ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: .5rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.4rem; margin-bottom: 1.8rem; }
.timeline li::before {
  content: ''; position: absolute; left: 0; top: .45rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent-2);
}
.timeline li:nth-child(odd)::before { border-color: var(--accent); }
.timeline-label { display: block; font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.timeline h3 { margin: .2rem 0 .3rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Formación ---------- */
.cred-group { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.5rem; }
/* Capa editorial: grupos numerados, tipo de credencial y resumen con filetes (rigor académico). */
.formacion-detalle .wrap { counter-reset: grupo; }
.cred-group h2::before {
  counter-increment: grupo; content: counter(grupo, decimal-leading-zero);
  font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--accent-2);
  font-size: .8em; min-width: 2ch;
}
.cred-tipo {
  display: inline-block; margin-bottom: .45rem; padding: .1rem .6rem; border: 1px solid var(--accent);
  border-radius: 999px; color: var(--accent); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.resumen-creds { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); margin-bottom: 2.5rem; }
@media (min-width: 56rem) { .resumen-creds { grid-template-columns: .8fr 1.2fr; } }
.lista-editorial { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.lista-editorial li { margin: 0; padding: .9rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
@media (min-width: 40rem) { .lista-editorial li { grid-template-columns: 17rem 1fr; gap: 1rem; align-items: baseline; } }
.lista-editorial strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.lista-editorial span { color: var(--muted); font-size: var(--step--1); }
@media (min-width: 64rem) { .facts-cifras { grid-template-columns: repeat(4, 1fr); } }
/* Línea de credenciales bajo la presentación (texto A, definido por Lorena). */
.credenciales-linea {
  list-style: none; margin: 1.4rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--line); max-width: 42rem;
  display: grid; gap: .45rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.credenciales-linea li { margin: 0; }
/* Sello discreto de habilitación del MSP, bajo la línea de credenciales. */
.sello-msp { display: flex; align-items: center; gap: .5rem; margin: .8rem 0 0; font-size: var(--step--1); color: var(--muted); }
.sello-msp svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--accent); }
/* Tres paquetes (grado · psicoterapia · psicotraumatología), uno por renglón en todos los tamaños. */

.cred-group:first-of-type { margin-top: 0; }
.cred-group h2 { font-size: var(--step-2); display: flex; align-items: center; gap: .8rem; }
.cred-group h2 svg { width: 1.4rem; height: 1.4rem; color: var(--accent-2); flex: none; }
.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
@media (min-width: 48rem) { .creds { grid-template-columns: repeat(2, 1fr); } }
.creds li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; }
.cred-title { display: block; font-weight: 700; line-height: 1.45; }
.cred-inst { display: block; color: var(--muted); font-size: var(--step--1); margin-top: .3rem; }
.cred-inst a { white-space: nowrap; }
.flag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; padding: .1rem .45rem; border-radius: 6px; background: var(--surface-4); color: var(--accent-2); margin-left: .3rem; vertical-align: .1em; }

/* ---------- Pasos EMDR ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; margin: 0; position: relative;
  padding: 1.2rem 1.25rem 1.2rem 4.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-4); color: var(--accent-2); font-family: var(--font-display); font-weight: 600;
}
.steps strong { display: block; margin-bottom: .2rem; }

/* ---------- Comparación es / no es ---------- */
.contrast-list { list-style: none; padding: 0; margin: 0; }
.contrast-list li { position: relative; padding-left: 2rem; margin-bottom: .9rem; }
.contrast-list li::before {
  position: absolute; left: 0; top: .1rem; font-weight: 800; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
}
.is li::before { content: '✓'; background: var(--surface); color: var(--accent); }
.is-not li::before { content: '✕'; background: var(--surface); color: var(--accent-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 3.5rem 1.2rem 1.4rem; position: relative;
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); font-family: var(--font-body); font-weight: 700;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > div { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq-item > div p:last-child { margin-bottom: 0; }

/* ---------- Sedes ---------- */
.place { display: flex; flex-direction: column; gap: .4rem; }
.place-tag { font-size: var(--step--1); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li { margin: 0; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.contact-item:hover { border-color: var(--accent); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .contact-item:hover { transform: none; } }
.contact-item .card-icon { margin: 0; flex: none; }
.contact-item small { display: block; color: var(--muted); font-size: var(--step--1); }
.contact-item span { overflow-wrap: anywhere; }

/* ---------- Aviso / nota ---------- */
.note {
  border-left: 4px solid var(--accent-2); background: var(--surface-4);
  padding: 1.2rem 1.4rem; border-radius: 0 16px 16px 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; overflow: clip; }
.cta-inner {
  position: relative; z-index: 1; background: var(--surface); border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(2.5rem, 2rem + 4vw, 5rem); display: grid; gap: 2rem; align-items: center; overflow: clip;
}
@media (min-width: 56rem) { .cta-inner { grid-template-columns: 1.4fr .6fr; } }
.cta-inner h2 { margin-bottom: .4em; }
.cta-inner .cta-mark { width: min(100%, 10rem); justify-self: center; }
.cta-inner::before, .cta-inner::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-size: contain;
}
.cta-inner::before { background-image: url(/assets/img/acuarela-lavanda.c05d4aee6d.webp); width: 46rem; aspect-ratio: 960 / 800; left: -14rem; bottom: -16rem; opacity: .85; }
.cta-inner::after { background-image: url(/assets/img/acuarela-menta.f9fc96020a.webp); width: 34rem; aspect-ratio: 1100 / 860; right: -9rem; top: -10rem; opacity: .9; }
@media (prefers-color-scheme: dark) { .cta-inner::before, .cta-inner::after { opacity: .16; } }

/* ---------- Retrato ---------- */
.portrait { position: relative; isolation: isolate; width: min(100%, 26rem); justify-self: center; }
.portrait::before {
  content: ''; position: absolute; z-index: -1; inset: -12% -18% -14% -16%;
  background: url(/assets/img/acuarela-menta.f9fc96020a.webp) center / contain no-repeat;
}
.portrait::after {
  content: ''; position: absolute; z-index: -1; width: 62%; aspect-ratio: 960 / 800; right: -20%; bottom: -12%;
  background: url(/assets/img/acuarela-lavanda.c05d4aee6d.webp) center / contain no-repeat; opacity: .9;
}
@media (prefers-color-scheme: dark) { .portrait::before, .portrait::after { opacity: .22; } }
.portrait img {
  width: 100%; height: auto;
  border-radius: 46% 54% 44% 56% / 38% 40% 60% 62%;
  box-shadow: 0 24px 48px -24px rgba(74, 71, 87, .35);
}
.portrait-caption { margin-top: 1rem; text-align: center; font-size: var(--step--1); color: var(--muted); }
.hero-grid-portrait { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 56rem) { .hero-grid-portrait { grid-template-columns: 1.2fr .8fr; } }

/* ---------- Firma ---------- */
.signature { margin-top: 2.5rem; width: min(100%, 22rem); }
.signature img { width: 100%; }
.sig-dark { display: none; }
@media (prefers-color-scheme: dark) { .sig-light { display: none; } .sig-dark { display: block; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding-top: clamp(3.5rem, 3rem + 3vw, 6rem); }
.site-footer a { color: var(--footer-fg); }
.site-footer a:hover { color: var(--verde); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand img { width: min(100%, 10rem); }
.footer-title {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--verde); margin-bottom: 1.1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; font-size: .98rem; }
.footer-list li { margin-bottom: .55rem; overflow-wrap: anywhere; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-base {
  border-top: 1px solid rgba(242, 239, 237, .15); padding-block: 1.6rem 2.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  font-size: .85rem; color: #BDB8B3;
}
.footer-base p { margin: 0; }

/* ---------- Varios ---------- */
.divider-moon { display: flex; justify-content: center; color: var(--accent-2); margin-block: 1rem; }
.divider-moon svg { width: 2rem; height: 2rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }
.maxw-sm { max-width: 36rem; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: var(--space); }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; color: var(--accent-2); }

@media print {
  .site-header, .nav-mobile, .cta-band, .hero-visual, .constellation, .blob, .hero-bg-blob { display: none !important; }
  body { background: #fff; color: #000; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
}

/* Referencias bibliográficas (rigor: cada afirmación clínica, con su fuente). */
.referencias ol { padding-left: 1.2rem; font-size: var(--step--1); color: var(--muted); }
.referencias cite { font-style: italic; }

/* Logo de la página Crisálida: más contenido (pedido de la dueña, 01/10/2026). */
.logo-crisalida { display: block; width: min(100%, 20rem); margin-inline: auto; }
@media (max-width: 55.99rem) { .logo-crisalida { width: min(60%, 14rem); } }

/* Hilo dorado bajo los títulos de sección (decorativo). */
section h2:not(.sr-only):not(.eyebrow)::after {
  content: ""; display: block; width: 3.5rem; height: 1px; margin-top: .9rem;
  background: linear-gradient(90deg, var(--oro), transparent);
}
.center h2:not(.sr-only):not(.eyebrow)::after {
  width: 5rem; margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}

/* Más oro, siempre en trazos finos (02/10/2026): números de las fases EMDR, etapas, luna, separadores y pie. */
.steps li { border-color: color-mix(in srgb, var(--oro) 35%, transparent); }
.steps li::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--oro) 70%, transparent); }
.stage-num::after { background: linear-gradient(90deg, var(--oro), transparent); opacity: .7; }
.divider-moon { color: var(--oro); }
.breadcrumb li + li::before { color: var(--oro); }
.site-footer { border-top: 1px solid color-mix(in srgb, var(--oro) 55%, transparent); }

/* Foto del consultorio en "Si vienes por EMDR". */
.foto-emdr { display: block; width: min(100%, 24rem); margin-top: 1.5rem; }
.foto-emdr img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--oro) 40%, transparent); box-shadow: var(--shadow); }

/* Carta larga de Lorena en Testimonios: párrafos breves, más aire y tamaño de lectura cómodo. */
.quote-carta { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.quote-carta p { margin-bottom: .9em; }

/* Botón flotante de WhatsApp (sin JavaScript): discreto, abajo a la derecha, con anillo dorado. */
.wa-flotante {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50;
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  box-shadow: var(--shadow), 0 0 0 2px color-mix(in srgb, var(--oro) 70%, transparent);
  transition: transform .2s ease;
}
.wa-flotante:hover { transform: translateY(-2px); }
.wa-flotante svg { width: 1.6rem; height: 1.6rem; }
@media print { .wa-flotante { display: none; } }
/* Con el menú del celular abierto, el botón se oculta para no tapar las flechas de los desplegables. */
body:has(.nav-mobile[open]) .wa-flotante { display: none; }

/* Foto "Tu historia de vida importa" (Familias) y firma manuscrita bajo una cita. */
.foto-historia { display: block; width: min(100%, 30rem); margin: 2rem auto 0; }
.foto-historia img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--oro) 40%, transparent); box-shadow: var(--shadow); }
.quote footer.firma-cita { letter-spacing: 0; text-transform: none; margin-top: .4rem; }
.firma-cita img { width: min(100%, 15rem); height: auto; }

/* Cierre de la carta de Testimonios: "Te abrazo," y la firma "Lore" debajo, con sangría. */
.carta-cierre span { display: inline-block; padding-left: 4.5em; }

/* Escritos: texto de lectura, con aire entre párrafos. */
.escrito h2 { text-align: center; }
.escrito h2::after { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--oro), transparent); width: 5rem; }
.escrito-texto p { margin-bottom: 1em; }

/* Portada de un escrito, inspirada en las piezas de Instagram: acuarela rosada, título en lavanda y firma. */
.portada-escrito {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(2.2rem, 1.5rem + 3vw, 3.5rem) 1.5rem clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  border-radius: var(--radius); background: #F6E6E2;
  border: 1px solid color-mix(in srgb, var(--oro) 40%, transparent);
}
.portada-escrito::before {
  content: ''; position: absolute; inset: -10%; z-index: -1; opacity: .55;
  background: url(/assets/img/acuarela-arena.af49a1e69c.webp) center / cover no-repeat;
}
.portada-escrito picture:first-child img { width: 4.5rem; height: auto; margin-inline: auto; }
.portada-escrito h2 {
  font-family: var(--font-body); font-weight: 300; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); line-height: 1.15; color: var(--lavanda-profunda);
  margin-block: 1.4rem 1.2rem;
}
.portada-escrito .sig-light img, .portada-escrito .sig-dark img { width: min(100%, 15rem); height: auto; margin-inline: auto; }
@media (prefers-color-scheme: dark) {
  .portada-escrito { background: #2E2629; }
  .portada-escrito::before { opacity: .2; }
  .portada-escrito h2 { color: var(--lavanda-niebla); }
}

/* Índice "En esta página" (páginas largas, p. ej. EMDR). */
.indice { padding-block: 0 1rem; }
.indice-titulo { display: block; font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.indice-lista { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.indice-lista li { margin: 0; }
.indice-lista a {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px; font-size: var(--step--1); font-weight: 600;
  color: var(--text); text-decoration: none; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--oro) 45%, transparent);
}
.indice-lista a:hover { border-color: var(--oro); }
h2[id], h1[id] { scroll-margin-top: 6rem; }

/* Rincón de la calma: respiración guiada con CSS (4 s inhalar, 6 s exhalar). Sin JavaScript. */
.respira { position: relative; width: min(16rem, 70vw); aspect-ratio: 1; margin: 2rem auto; display: grid; place-items: center; }
.respira-circulo {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--lavanda) 85%, white), var(--menta) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--oro) 60%, transparent), 0 0 0 10px color-mix(in srgb, var(--oro) 10%, transparent);
  transform: scale(.55); animation: respira 10s ease-in-out infinite;
}
.respira-txt { position: relative; font-family: var(--font-cita); font-style: italic; font-size: var(--step-1); color: var(--carbon); opacity: 0; }
.respira-in { animation: respira-in 10s ease-in-out infinite; }
.respira-out { position: absolute; animation: respira-out 10s ease-in-out infinite; }
@keyframes respira { 0% { transform: scale(.55); } 40% { transform: scale(1); } 100% { transform: scale(.55); } }
@keyframes respira-in { 0%, 36% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes respira-out { 0%, 40% { opacity: 0; } 46%, 94% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .respira-circulo, .respira-in, .respira-out { animation: none; }
  .respira-circulo { transform: scale(.85); }
  .respira-in { opacity: 1; }
  .respira-in::after { content: ' · Exhala'; }
}
@media (prefers-color-scheme: dark) {
  .respira-circulo { opacity: .85; }
}


/* Ventana de tolerancia: tres franjas en la paleta del manual y la línea de activación en oro. */
.ventana-fig { margin: 1.5rem 0; }
.ventana-fig svg { width: 100%; height: auto; display: block; }
.ventana-fig .v-hiper { fill: var(--surface-4); }
.ventana-fig .v-ventana { fill: var(--surface-2); }
.ventana-fig .v-hipo { fill: var(--surface-3); }
.ventana-fig .v-ola { fill: none; stroke: var(--oro); stroke-width: 2.4; stroke-linecap: round; }
.ventana-fig text { font-family: var(--font-body); font-size: 16px; font-weight: 600; fill: var(--text); }
.ventana-fig figcaption { margin-top: .6rem; font-size: var(--step--1); }

/* Mariposa posada sobre el botón flotante de WhatsApp (opción C, elegida por la dueña 02/10/2026). */
.wa-flotante::after {
  content: ''; position: absolute; top: -1.05rem; right: -.45rem; width: 1.9rem; height: 1.9rem;
  background: url(/assets/img/mariposa-160.0a51909dc5.webp) center / contain no-repeat; transform: rotate(14deg); pointer-events: none;
}

/* 5-4-3-2-1: sin círculos numerados; el número se destaca dentro del texto. */
.steps-cuenta li { padding-left: 1.25rem; }
.steps-cuenta li::before { content: none; }
.cuenta-num { font-family: var(--font-display); font-size: 1.6em; line-height: 1; color: var(--accent-2); margin-right: .15em; vertical-align: -.1em; }

/* Créditos del pie: identidad visual y desarrollo web, alineados a la derecha en pantallas anchas. */
.footer-creditos { display: grid; gap: .35rem; }
@media (min-width: 48rem) { .footer-creditos { text-align: right; } }
.footer-gracias { font-family: var(--font-cita); font-style: italic; }
/* Espacio al final del pie para que el botón flotante de WhatsApp no tape los créditos. */
.footer-base { padding-bottom: 5.5rem; }
