/* ═══════════════════════════════════════════════════════════════════════
   SENDA · psicoterapia basada en evidencia
   Azules oscuros (como el "Comenzar" del intake) + celeste grisáceo.
   Sobrio: esquinas casi rectas, sin brillos ni sombras de color, sin rebotes.
   Montserrat = la letra del logo (títulos, marca). Manrope = cuerpo de texto.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0f1b2d;
  --bg-2: #16263d;
  --bg-deep: #0a1422;
  --accent: #a7b9cb;      /* celeste grisáceo, apagado */
  --accent-2: #8fa5ba;
  --cream: #e9e7e1;       /* blanco roto, no blanco brillante */

  /* tonos de apoyo */
  --dusk: #1a2c45;
  --slate: #8b9cb0;
  --ink: var(--cream);
  --ink-2: rgba(233, 231, 225, 0.72);
  --muted: #8e9fb1;
  --line: rgba(167, 185, 203, 0.2);
  --line-2: rgba(233, 231, 225, 0.1);

  /* atardecer: sólo en la intro (y apenas en el cielo del hero) */
  --glow: #e7b48c;
  --glow-2: #c98a76;

  /* secciones claras: gris azulado suave, no blanco */
  --paper: #e3e7eb;
  --paper-2: #d8dee4;
  --paper-ink: #13243a;
  --paper-muted: #4d5d70;
  --paper-accent: #2c4a72;

  --f-display: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 72px;
  --r: 3px;               /* radio único: botones, campos, tarjetas, fotos */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.intro-on { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ── Tipografía ─────────────────────────────────────────────────────────── */
.kicker {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.kicker.center { justify-content: center; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 300; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; }
h2 em, .statement em { font-style: normal; color: var(--accent); }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 400; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.75; max-width: 60ch; }
p { margin: 0 0 1em; }

/* ── Botones: rectos y planos ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 28px;
  border-radius: var(--r); border: 1px solid transparent;
  font-family: var(--f-display); font-size: 13.5px; font-weight: 500; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #b9c8d6; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(233, 231, 225, 0.28); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.on-paper .btn-primary { background: var(--paper-ink); color: var(--cream); }
.on-paper .btn-primary:hover { background: #1e3557; }
.on-paper .btn-ghost { color: var(--paper-ink); border-color: rgba(19, 36, 58, .3); }
.on-paper .btn-ghost:hover { color: var(--paper-accent); border-color: var(--paper-accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-size: 14px; font-weight: 500; letter-spacing: .03em;
  color: var(--accent); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.on-paper .link-arrow { color: var(--paper-accent); }

/* ═══ INTRO · se abre como un atardecer ═══════════════════════════════════ */
/* El sol sube hacia el centro con unos destellos mínimos y su luz crece hasta cubrir todo de crema; el logo no desaparece: vuela hasta su lugar en el hero (ver senda.js · Intro). */
.intro {
  --sun: clamp(90px, 14vw, 160px);
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  overflow: hidden;
  cursor: pointer;
}
.intro[hidden] { display: none; }
.intro-bg { position: absolute; inset: 0; background: var(--bg-deep); overflow: hidden; clip-path: inset(0 0 0 0); }
.intro-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(231, 180, 140, .78) 0%, rgba(201, 138, 118, .4) 24%, rgba(26, 44, 69, .0) 58%),
    linear-gradient(to bottom, #0a1422 0%, #0d1a2c 45%, #1a2c45 100%);
  opacity: 0; transform: translateY(14%);
}
.intro-sun {
  position: absolute; left: 50%; bottom: 13%;
  width: var(--sun); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff3df 0%, #f6caa0 45%, rgba(242, 181, 131, 0) 72%);
  /* centrado con margen (no con transform): así al crecer (scale) no se corre de costado */
  margin-left: calc(var(--sun) / -2); opacity: 0;
  filter: blur(.5px);
}
.intro-hills {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  opacity: 0; transform: translateY(20px);
}
.intro-hills svg { width: 100%; height: 100%; }
.intro-mark { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; transform: translateY(-6vh); }
.intro-mark .senda-mark { width: min(62vw, 320px); }
.intro-word {
  font-family: var(--f-display); font-weight: 400; color: var(--cream);
  font-size: clamp(40px, 9vw, 72px); letter-spacing: .5em; margin-right: -.5em; line-height: 1;
  opacity: 0;
}
.intro-tag { font-family: var(--f-display); font-size: clamp(12px, 2.6vw, 15px); color: var(--ink-2); letter-spacing: .08em; opacity: 0; }
.intro-skip {
  position: absolute; bottom: 22px; right: 24px; z-index: 3;
  font: 500 11px/1 var(--f-display); letter-spacing: .28em; text-transform: uppercase;
  color: rgba(248, 245, 236, .5); background: none; border: 0; cursor: pointer; padding: 10px;
}
/* Rayos, destellos y luz: todos centrados en el centro del sol (bottom 13% + medio sol). */
.intro-rays, .intro-glints, .intro-bloom {
  position: absolute; left: 50%; bottom: calc(13% + var(--sun) / 2);
  transform: translate(-50%, 50%); pointer-events: none;
}
/* rayos muy tenues que giran despacio */
.intro-rays {
  /* centrado con márgenes, no con transform: si no, al girar (rotate) se movería en círculo */
  transform: none; margin: 0 0 calc(var(--sun) * -2.1) calc(var(--sun) * -2.1);
  width: calc(var(--sun) * 4.2); aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 205, 0) 0deg 13deg, rgba(255, 228, 190, .55) 14.5deg, rgba(255, 236, 205, 0) 16deg 30deg);
  -webkit-mask-image: radial-gradient(circle, transparent 17%, #000 26%, rgba(0, 0, 0, .35) 45%, transparent 68%);
  mask-image: radial-gradient(circle, transparent 17%, #000 26%, rgba(0, 0, 0, .35) 45%, transparent 68%);
}
/* puntitos de luz que titilan alrededor del sol */
.intro-glints { width: calc(var(--sun) * 2.6); aspect-ratio: 1; }
.intro-glints i {
  position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
  background: #fffaf0; box-shadow: 0 0 6px 2px rgba(255, 214, 160, .75), 0 0 14px 4px rgba(255, 200, 140, .35);
  opacity: 0; transform: scale(0);
}
.intro-glints i:nth-child(1) { left: 22%; top: 30%; }
.intro-glints i:nth-child(2) { left: 74%; top: 24%; }
.intro-glints i:nth-child(3) { left: 50%; top: 9%; }
.intro-glints i:nth-child(4) { left: 86%; top: 46%; }
.intro-glints i:nth-child(5) { left: 12%; top: 50%; }
.intro-glints i:nth-child(6) { left: 36%; top: 16%; }
.intro-glints i:nth-child(7) { left: 63%; top: 13%; }
/* halo que se enciende alrededor del sol mientras se esconde */
.intro-sun::after {
  content: ""; position: absolute; inset: -60%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 226, 186, .55) 0%, rgba(255, 210, 160, .2) 35%, rgba(255, 210, 160, 0) 68%);
}
/* la luz que crece desde el sol hasta cubrir todo */
.intro-bloom {
  width: 80vmax; aspect-ratio: 1; border-radius: 50%; opacity: 0;
  transform: translate(-50%, 50%) scale(.04);
  background: radial-gradient(closest-side, #fbf6ec 0%, #f8f2e7 55%, rgba(248, 242, 231, 0) 100%);
}

/* Un solo tiempo (tiempos x1,5 respecto de la primera versión corta): el sol sube hacia el centro mientras brilla (halo, rayos y destellos a la vez),
   y enseguida su luz cubre todo. El sol, sus brillos y la luz suben juntos con "translate". */
.intro { --rise: -11vh; }   /* cuánto sube el sol: se acerca al centro sin tapar la frase */
.intro.play .intro-sky { animation: introSky 2.4s var(--ease) 0.075s forwards; }
.intro.play :is(.intro-sun, .intro-rays, .intro-glints, .intro-bloom) { animation: introRise 4.2s linear 0s forwards; }
.intro.play .intro-sun { animation: introSun 1.2s var(--ease) 0s forwards, introRise 4.2s linear 0s forwards, introGrow 4.2s linear 0s forwards; }
.intro.play .intro-sun::after { animation: introFade 1.5s var(--ease) 0.75s forwards; }
.intro.play .intro-rays { animation: introRays 3.3s var(--ease) 0.6s forwards, introRise 4.2s linear 0s forwards, introGrow 4.2s linear 0s forwards; }
.intro.play .intro-glints i { animation: introGlint 1.5s ease-in-out 1.05s both; }
.intro.play .intro-glints i:nth-child(2) { animation-delay: 1.425s; }
.intro.play .intro-glints i:nth-child(3) { animation-delay: 1.875s; }
.intro.play .intro-glints i:nth-child(4) { animation-delay: 1.275s; }
.intro.play .intro-glints i:nth-child(5) { animation-delay: 2.175s; }
.intro.play .intro-glints i:nth-child(6) { animation-delay: 1.65s; }
.intro.play .intro-glints i:nth-child(7) { animation-delay: 2.4s; }
.intro.play .intro-hills { animation: introUp 1.8s var(--ease) 0.375s forwards; }
.intro.play .intro-word { animation: introWord 1.95s var(--ease) 1.275s forwards; }
.intro.play .intro-tag { animation: introFade 1.5s var(--ease) 1.8s forwards; }
/* salida: la luz crece desde donde está el sol y cubre todo de crema; el fondo se desvanece y queda la portada */
.intro.leave { pointer-events: none; }
.intro.leave .intro-bloom { translate: 0 var(--rise); animation: introBloom 1.65s cubic-bezier(.55, 0, .3, 1) forwards; }
.intro.leave .intro-bg { animation: introBgOut 0.825s ease-out 0.825s forwards; }
@keyframes introSky { to { opacity: 1; transform: none; } }
@keyframes introSun { from { opacity: 0; } to { opacity: 1; } }
/* crece de a poquito mientras sube ("scale" aparte de "transform" para no pisar el centrado) */
@keyframes introGrow { from { scale: .88; } to { scale: 1.14; } }
@keyframes introRise { from { translate: 0 calc(var(--sun) * .45); } to { translate: 0 var(--rise); } }
@keyframes introRays { 0% { opacity: 0; rotate: 0deg; } 40% { opacity: .9; } 100% { opacity: .75; rotate: 14deg; } }
@keyframes introGlint { 0%, 100% { opacity: 0; transform: scale(0); } 45% { opacity: 1; transform: scale(1); } }
@keyframes introBloom { 0% { opacity: 0; transform: translate(-50%, 50%) scale(.04); } 15% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, 50%) scale(4.6); } }
@keyframes introBgOut { to { opacity: 0; } }
@keyframes introUp { to { opacity: 1; transform: none; } }
@keyframes introWord { 0% { opacity: 0; letter-spacing: .9em; margin-right: -.9em; filter: blur(6px); } 100% { opacity: 1; letter-spacing: .5em; margin-right: -.5em; filter: blur(0); } }
@keyframes introFade { to { opacity: 1; } }
/* el logo del hero mientras el de la intro vuela hacia él: ya en su lugar, sin dibujarse, invisible */
.hero .hero-mark[data-in].landing, .hero .hero-mark[data-in].landed { opacity: 1; transform: none; animation: none; }
.hero .hero-mark[data-in].landing { visibility: hidden; }

/* ═══ Marca (montañas + senda) ═══════════════════════════════════════════ */
.senda-mark { overflow: visible; }
.senda-mark .mt { fill: none; stroke: var(--accent); stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; }
.senda-mark .road-fallback { fill: none; stroke: var(--cream); stroke-width: 7; stroke-linecap: round; }
.senda-mark .road-fill { fill: var(--cream); }
.senda-mark.draw .mt { stroke-dasharray: 1; stroke-dashoffset: 1; }
.senda-mark.draw.go .mt { animation: drawLine 1.5s var(--ease) forwards; }
.senda-mark.draw.go .mt-2 { animation-delay: .18s; }
.senda-mark .road-mask-path { fill: none; stroke: #fff; stroke-width: 40; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.senda-mark.draw.go .road-mask-path { animation: drawLine 1.9s var(--ease) .35s forwards; }
.senda-mark:not(.draw) .road-mask-path { stroke-dashoffset: 0; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ═══ NAV ═════════════════════════════════════════════════════════════════ */
/* Fijo arriba siempre: no se esconde ni vuelve al bajar; sólo toma fondo al dejar el hero. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(12, 22, 38, .96); border-bottom-color: var(--line-2); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand .senda-mark { width: 52px; }
.brand .senda-mark .mt { stroke-width: 13; }
.brand-word { font-family: var(--f-display); font-size: 21px; font-weight: 400; letter-spacing: .38em; margin-right: -.38em; line-height: 1; }
/* "psicoterapia" al lado de "senda", con la misma letra, tamaño, espaciado y color (se leen como una sola
   marca). Sólo cuando el menú se colapsa y sobra lugar; en pantallas chicas se achican las dos palabras juntas. */
.brand-sub { display: none; font-family: var(--f-display); font-size: 21px; font-weight: 400; letter-spacing: .38em; line-height: 1; color: inherit; margin-left: .3em; margin-right: -.38em; }
@media (max-width: 960px) {
  .brand-sub { display: inline; }
  .brand-word { margin-right: 0; }
}
@media (max-width: 760px) { .brand-sub { font-size: 18px; } }
@media (max-width: 440px) {
  .nav .brand-word, .nav .brand-sub { font-size: 14px; letter-spacing: .28em; }
  .nav .brand-sub { margin-right: -.28em; }
  .brand { gap: 10px; }
  .nav .brand .senda-mark { width: 40px; }
}
@media (max-width: 360px) { .nav .brand-word, .nav .brand-sub { font-size: 12.5px; letter-spacing: .24em; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-a, .dd-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-size: 13.5px; font-weight: 500; letter-spacing: .05em;
  text-decoration: none; color: var(--ink-2); background: transparent; border: 0; cursor: pointer;
  padding: 10px 15px; border-radius: var(--r);
  transition: color .3s;
}
.nav-a:hover, .dd-btn:hover, .dd.open .dd-btn { color: var(--cream); }
.dd-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.nav-a.is-cta { color: var(--bg); background: var(--accent); margin-left: 8px; padding: 10px 20px; }
.nav-a.is-cta:hover { background: #b9c8d6; color: var(--bg); }
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 300px;
  display: grid; gap: 0; padding: 8px;
  background: #101d30; border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s; }
.no-js .dd:hover .dd-panel, .no-js .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-panel a { display: grid; gap: 3px; padding: 13px 16px; border-radius: var(--r); text-decoration: none; color: var(--cream); transition: background-color .25s; }
.dd-panel a:hover, .dd-panel a:focus-visible { background: rgba(167, 185, 203, .07); }
.dd-panel b { font: 500 15px/1.3 var(--f-display); }
.dd-panel small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.lang {
  font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  color: var(--ink-2); text-decoration: none; padding: 8px 10px; margin-left: 8px;
  border: 1px solid var(--line-2); border-radius: var(--r); transition: color .3s, border-color .3s;
}
.lang:hover { color: var(--accent); border-color: var(--accent); }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    background: transparent; border: 1px solid var(--line-2); border-radius: 50%; color: var(--cream); cursor: pointer;
    position: relative; z-index: 120;
  }
  .menu-btn span { position: absolute; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease); }
  .menu-btn span:nth-child(1) { transform: translateY(-4px); }
  .menu-btn span:nth-child(2) { transform: translateY(4px); }
  .menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { transform: rotate(-45deg); }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .brand .senda-mark { width: 44px; }
  .brand-word { font-size: 18px; }
}

/* menú del teléfono y la tablet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 36px;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 32px);
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 32px); visibility: visible; transition: clip-path .7s var(--ease-in-out), visibility 0s; }
.menu-open .nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 130; }
.mm-group { display: grid; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.menu-open .mm-group { opacity: 1; transform: none; }
.menu-open .mm-group:nth-child(1) { transition-delay: .2s; }
.menu-open .mm-group:nth-child(2) { transition-delay: .3s; }
.menu-open .mm-group:nth-child(3) { transition-delay: .4s; }
.mm-head { font: 500 11px/1.4 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.mobile-menu a.mm-link {
  display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 6vw, 30px); line-height: 1.25;
  color: var(--cream); text-decoration: none; padding: 9px 0; border-bottom: 1px solid var(--line-2); transition: color .3s, padding-left .4s var(--ease);
}
.mobile-menu a.mm-link.solo { font-size: clamp(28px, 8vw, 38px); }
.mobile-menu a.mm-link:hover { color: var(--accent); padding-left: 6px; }
.mm-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; opacity: 0; transition: opacity .6s .5s; }
.menu-open .mm-foot { opacity: 1; }
.mm-foot .lang { margin: 0; }

/* ═══ HERO ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 30px) 0 clamp(150px, 24vh, 240px);
  overflow: hidden;
  isolation: isolate;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(70% 45% at 50% 100%, rgba(231, 180, 140, .09) 0%, rgba(201, 138, 118, .03) 40%, transparent 72%),
    radial-gradient(60% 50% at 15% 10%, rgba(26, 44, 69, .9) 0%, transparent 70%),
    linear-gradient(to bottom, var(--bg-deep) 0%, var(--bg) 45%, #162a43 85%, #1b3150 100%);
}
.hero-stars { position: absolute; left: 0; top: 0; width: 100%; height: 65%; z-index: -3; }
.hero-stars .star { fill: var(--cream); opacity: .15; animation: twinkle 7s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .08; } 50% { opacity: .35; } }
.hero-layer { position: absolute; left: -2%; right: -2%; bottom: 0; z-index: -2; will-change: transform; pointer-events: none; }
.hero-layer svg { width: 100%; height: 100%; }
.hero-layer.far { height: 40%; }
.hero-layer.mid { height: 30%; }
.hero-layer.near { height: 24%; z-index: -1; }
.hero-layer.far .ridge { fill: none; stroke: rgba(179, 199, 218, .22); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero-layer.mid path { fill: #172a44; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 0; background: linear-gradient(to bottom, rgba(15, 27, 45, 0), var(--bg)); pointer-events: none; }

.hero-inner { position: relative; display: grid; justify-items: center; text-align: center; }
.hero-mark { width: min(56vw, 300px); margin-bottom: clamp(10px, 2vw, 18px); }
.hero-mark .senda-mark .mt { stroke-width: 8.5; }
.hero h1 { display: grid; justify-items: center; gap: clamp(10px, 1.6vw, 16px); margin-bottom: 26px; }
.hero .wordmark {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(60px, 10vw, 136px); line-height: .9;
  letter-spacing: .32em; margin-right: -.32em; color: var(--cream);
}
.hero .h1-sub { font-family: var(--f-display); font-weight: 400; font-size: clamp(17px, 2.2vw, 26px); color: var(--cream); letter-spacing: .02em; }
.hero .kicker { justify-content: center; margin-bottom: 26px; }
.hero .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.hero .lead { margin: 0 auto 36px; max-width: 34em; }
.hero .btn-row { justify-content: center; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  display: grid; justify-items: center; gap: 10px;
  font: 500 10px/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: rgba(248, 245, 236, .55); text-decoration: none;
}
.hero-scroll i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: scrollCue 2.4s var(--ease-in-out) infinite; }
@keyframes scrollCue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* entrada escalonada del hero (después de la intro) */
.hero [data-in] { opacity: 0; transform: translateY(26px); }
.page-ready .hero [data-in] { animation: heroIn 1.2s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .hero { padding-bottom: 150px; }
  .hero .wordmark { letter-spacing: .24em; margin-right: -.24em; }
  .hero .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .kicker { letter-spacing: .22em; font-size: 11px; }
  .hero .kicker::before, .hero .kicker::after { width: 16px; }
}
@media (max-height: 760px) and (min-width: 700px) {
  .hero-mark { width: 210px; }
  .hero .wordmark { font-size: clamp(56px, 8vw, 104px); }
}

/* ═══ Secciones ═══════════════════════════════════════════════════════════ */
section { position: relative; }
.section { padding: clamp(90px, 13vw, 170px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 22px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.on-paper { background: var(--paper); color: var(--paper-ink); }
.on-paper .kicker { color: var(--paper-accent); }
.on-paper h2 em { color: var(--paper-accent); }
.on-paper .lead, .on-paper p { color: var(--paper-muted); }
.on-paper h2, .on-paper h3 { color: var(--paper-ink); }

/* borde ondulado entre secciones (eco del perfil de las montañas) */
.edge { position: absolute; left: 0; right: 0; height: clamp(16px, 2.4vw, 34px); pointer-events: none; }
.edge svg { width: 100%; height: 100%; }
.edge.top { top: -1px; }
.edge.bottom { bottom: -1px; }
.edge path { fill: var(--bg); }

/* reveal al hacer scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-fade { opacity: 0; transition: opacity 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal-fade.in { opacity: 1; }
.no-js .reveal, .no-js .reveal-fade { opacity: 1; transform: none; }

/* ── 1 · Lo que puede darte la psicoterapia ── */
.statement {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(26px, 3.7vw, 46px); line-height: 1.3; letter-spacing: -.005em;
  max-width: 22em; margin: 0 0 clamp(60px, 8vw, 100px);
}
.statement .w { display: inline-block; opacity: .14; transition: opacity .6s var(--ease); }
.statement .w.on { opacity: 1; }
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.gain { padding: 34px 34px 10px 0; position: relative; }
.gain + .gain { padding-left: 34px; border-left: 1px solid var(--line); }
.gain-n { font: 400 13px/1 var(--f-display); color: var(--accent); letter-spacing: .2em; margin-bottom: 26px; display: block; }
.gain h3 { margin-bottom: 12px; }
.gain p { color: var(--ink-2); font-size: 16px; }
.gain-ico { width: 44px; height: 44px; margin-bottom: 20px; }
.gain-ico * { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) {
  .gains { grid-template-columns: 1fr; }
  .gain, .gain + .gain { padding: 30px 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
}

.approach-note {
  margin-top: clamp(60px, 8vw, 96px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start;
  /* recuadro claro, del mismo tono que el botón "Pedir una primera consulta", para que contraste */
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px);
  background: var(--accent); color: var(--bg); border-radius: var(--r);
}
.approach-note h3 { color: var(--bg); font-weight: 400; }
.approach-note p { color: rgba(15, 27, 45, .82) !important; }
.approach-note h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; max-width: 12em; }
.approach-note p { color: var(--ink-2); margin: 0; }
.approach-note p + p { margin-top: 1em; }
@media (max-width: 760px) { .approach-note { grid-template-columns: 1fr; } }

/* ── 2 · Enfoque (la senda que se dibuja al bajar) ── */
.pillars { position: relative; display: grid; gap: clamp(56px, 8vw, 110px); padding-left: clamp(70px, 10vw, 150px); }
.pillars-path { position: absolute; left: 0; top: 0; bottom: 0; width: clamp(56px, 8vw, 120px); }
.pillars-path svg { width: 100%; height: 100%; overflow: visible; }
.pillars-path .track { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pillars-path .trail { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pillar { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 70px); align-items: baseline; }
.pillar-word { display: flex; align-items: baseline; gap: 18px; }
.pillar-word span { font: 400 13px/1 var(--f-display); color: var(--accent); letter-spacing: .2em; }
.pillar-word h3 { font-size: clamp(34px, 5vw, 64px); font-weight: 300; letter-spacing: -.01em; line-height: 1; }
.pillar-word .sub { display: block; font: 500 11px/1.4 var(--f-display); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.pillar p { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); margin: 0; max-width: 46ch; }
.pillar::before {
  content: ""; position: absolute; left: calc(clamp(70px, 10vw, 150px) * -1 + clamp(56px, 8vw, 120px) / 2 - 7px); top: .5em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  transition: background-color .6s var(--ease), transform .6s var(--ease), box-shadow .6s;
}
.pillar.lit::before { background: var(--accent); }
@media (max-width: 760px) {
  .pillars { padding-left: 46px; }
  .pillars-path { width: 30px; }
  .pillar::before { left: -39px; top: .55em; width: 12px; height: 12px; }
  .pillar { grid-template-columns: 1fr; gap: 14px; }
}

/* ── 3 · Temas: una sola línea de texto interletrado que corre a la izquierda ── */
.topics { padding: clamp(30px, 4vw, 44px) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; background: var(--bg-deep); }
.marquee { display: flex; overflow: hidden; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; animation: marquee var(--dur, 60s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* ~3 y medio por pantalla: cada tema ocupa al menos 1/3,5 del ancho (más si el texto es largo) */
.topic {
  flex: 0 0 auto; min-width: calc(100vw / 3.5); padding: 4px 2.4em;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap; text-transform: uppercase;
  font: 400 clamp(11.5px, 1vw, 13.5px)/1.4 var(--f-display); letter-spacing: .3em;
  color: var(--ink-2);
  border-left: 1px solid var(--line-2);
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── 4 · Basada en evidencia: título, gráfico debajo, y después el texto ── */
.evidence { max-width: 820px; text-align: center; }
.evidence .kicker { justify-content: center; }
.venn { width: 100%; max-width: 500px; margin: clamp(36px, 5vw, 60px) auto clamp(30px, 4vw, 48px); }
.evidence .lead { margin-left: auto; margin-right: auto; }
.venn circle { fill: rgba(44, 74, 114, .05); stroke: var(--paper-ink); stroke-width: 1; transition: transform 1.4s var(--ease), opacity 1s; transform-box: fill-box; transform-origin: center; }
.venn .c1 { fill: rgba(44, 74, 114, .07); }
.venn .c2 { fill: rgba(26, 44, 69, .04); }
.venn .c3 { fill: rgba(77, 93, 112, .06); }
.venn text { font-family: var(--f-display); fill: var(--paper-ink); text-anchor: middle; }
.venn .lbl { font-size: 15px; font-weight: 500; }
.venn .lbl-s { font-size: 11px; fill: var(--paper-muted); }
.venn .core { fill: var(--paper-ink); stroke: none; }
.venn .core-t { fill: var(--cream); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.venn.pre .c1 { transform: translate(-40px, -30px); opacity: 0; }
.venn.pre .c2 { transform: translate(40px, -30px); opacity: 0; }
.venn.pre .c3 { transform: translate(0, 50px); opacity: 0; }
.venn .core, .venn .core-t, .venn text { transition: opacity 1s var(--ease) .8s; }
.venn.pre .core, .venn.pre .core-t, .venn.pre text { opacity: 0; }
.evidence-def { max-width: 60ch; margin: 30px auto 0; padding-top: 28px; border-top: 1px solid rgba(19, 36, 58, .16); }
.evidence-def p { margin: 0; color: var(--paper-ink); }

/* ── 5 · Arraigo / Bariloche ── */
.place { padding: clamp(110px, 15vw, 200px) 0 clamp(170px, 22vw, 280px); overflow: hidden; background: linear-gradient(to bottom, var(--bg) 0%, #13233a 55%, var(--dusk) 100%); }
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.place-grid .lead + .lead { margin-top: 1em; }
.place-forest { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 20vw, 230px); pointer-events: none; }
.place-forest svg { width: 100%; height: 100%; }
.place-forest .back { fill: #182b45; }
.place-forest .front { fill: var(--bg-deep); }
.place-lake { position: absolute; left: 0; right: 0; bottom: clamp(30px, 6vw, 70px); height: 1px; background: linear-gradient(90deg, transparent, rgba(179, 199, 218, .35), transparent); }
.lang-card {
  display: grid; gap: 14px; padding: clamp(26px, 3.5vw, 40px); border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(10, 20, 34, .5);
}
.lang-card .langs { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-card .langs span { font: 400 15px/1 var(--f-display); padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r); }
.lang-card p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .place-grid { grid-template-columns: 1fr; } }

/* ── 6 · Comunidad ── */
.community { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.net { width: 100%; aspect-ratio: 1; max-width: 480px; justify-self: center; }
.net line { stroke: rgba(179, 199, 218, .42); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.net.in line { stroke-dashoffset: 0; }
.net circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .8s var(--ease); }
.net.in circle { transform: scale(1); }
.net circle.hub { fill: var(--accent); }
.net circle.pulse { fill: none; stroke: var(--accent); opacity: 0; }
.net.in circle.pulse { animation: netPulse 3.6s var(--ease) 1.6s 1; }
@keyframes netPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.4); opacity: 0; } }
.cards { display: grid; gap: 16px; margin-top: 36px; }
.card {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: 26px 28px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: transparent; text-decoration: none;
  transition: border-color .4s, background-color .4s;
}
a.card:hover { border-color: var(--line); background: rgba(167, 185, 203, .04); }
.card-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); }
.card-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 8px; font: 500 13px/1 var(--f-display); color: var(--accent); letter-spacing: .03em; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } .net { max-width: 340px; } }
@media (max-width: 480px) { .card { grid-template-columns: 1fr; gap: 14px; padding: 22px; } }

/* ── 7 · Presencial ── */
.inperson { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.photo {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--ease); }
.photo.in img { transform: scale(1); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 34, .55), transparent 45%); }
.photo figcaption { position: absolute; left: 22px; bottom: 18px; z-index: 1; font: 500 11px/1.4 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--cream); }
.photo.wipe { clip-path: inset(100% 0 0 0 round 3px); transition: clip-path 1.5s var(--ease-in-out); }
.photo.wipe.in { clip-path: inset(0 0 0 0 round 3px); }
.zones { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 30px 0 34px; }
.zone { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; font: 400 15px/1 var(--f-display); letter-spacing: .04em; }
.zone i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.zone.online i { background: transparent; border: 1.5px solid var(--accent); box-shadow: none; }
@media (max-width: 860px) { .inperson { grid-template-columns: 1fr; } .photo { aspect-ratio: 4 / 3.4; } }

/* ── 8 · Preguntas frecuentes ── */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid rgba(19, 36, 58, .16); }
.faq details { border-bottom: 1px solid rgba(19, 36, 58, .16); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 4px; font-family: var(--f-display); font-weight: 400; font-size: clamp(17px, 1.9vw, 21px); color: var(--paper-ink);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--paper-accent); }
.faq .pm { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(19, 36, 58, .25); position: relative; transition: background-color .4s, border-color .4s, transform .5s var(--ease); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--paper-ink); transform: translate(-50%, -50%); transition: transform .5s var(--ease), background-color .3s; }
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm { background: var(--paper-ink); border-color: var(--paper-ink); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: var(--cream); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { overflow: hidden; }
.faq .ans-in { padding: 0 60px 28px 4px; }
.faq .ans-in p { color: var(--paper-muted); margin: 0; }
.faq .ans-in p + p { margin-top: .8em; }
.faq .ans-in a { color: var(--paper-accent); }
@media (max-width: 560px) { .faq .ans-in { padding-right: 4px; } }

/* ── 9 · Contacto ── */
.contact { position: relative; overflow: hidden; }
.contact-glow { display: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-aside { display: grid; gap: 22px; margin-top: 34px; }
.contact-aside div { display: grid; grid-template-columns: 24px 1fr; gap: 14px; color: var(--ink-2); font-size: 15.5px; }
.contact-aside svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* formularios */
.form { display: grid; gap: 18px; padding: clamp(26px, 4vw, 44px); border-radius: var(--r); background: rgba(10, 20, 34, .3); border: 1px solid var(--line-2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font: 500 12px/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field .opt { text-transform: none; letter-spacing: .02em; font-weight: 400; opacity: .8; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; font: 400 16px/1.5 var(--f-body); color: var(--cream);
  background: rgba(10, 20, 34, .5); border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 16px;
  transition: border-color .3s, background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(10, 20, 34, .75); }
.field ::placeholder { color: rgba(248, 245, 236, .32); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 18px; border-radius: var(--r); border: 1px solid var(--line-2); font: 400 14.5px/1.2 var(--f-display); color: var(--ink-2); transition: all .3s var(--ease); }
.seg label:hover span { border-color: var(--line); color: var(--cream); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r); cursor: pointer; color: var(--ink-2); font-size: 15px; transition: border-color .3s, background-color .3s; }
.file:hover { border-color: var(--accent); background: rgba(179, 199, 218, .05); }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
/* Modalidad + Idioma: en la misma fila si entran; si no, uno debajo del otro y centrados */
.pair { container-type: inline-size; }
.pair-in { display: grid; gap: 18px; justify-items: center; text-align: center; }
.pair-in .field legend { margin-left: auto; margin-right: auto; }
.pair-in .seg { justify-content: center; }
.pair-in .seg span { padding-left: 15px; padding-right: 15px; }
@container (min-width: 470px) {
  .pair-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; text-align: left; }
  .pair-in .field legend { margin-left: 0; margin-right: 0; }
  .pair-in .seg { justify-content: flex-start; }
}
/* casilla "quiero novedades" */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.check input {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; margin: 2px 0 0;
  width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 2px; background: rgba(10, 20, 34, .5);
  display: grid; place-items: center; cursor: pointer; transition: background-color .25s, border-color .25s;
}
.check input::after { content: ""; width: 9px; height: 5px; border: solid var(--bg); border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check:hover input { border-color: var(--accent); }
.form .btn { justify-self: start; }
.form-done { display: none; text-align: center; padding: 30px 10px; }
.form-done svg { width: 64px; height: 64px; margin: 0 auto 18px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form-done svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.2s var(--ease) .2s forwards; }
.form-done h3 { margin-bottom: 10px; }
.form-done p { color: var(--ink-2); margin: 0; }
.form-done .demo { margin-top: 14px; font-size: 13px; color: var(--glow); }
.form.sent > :not(.form-done) { display: none; }
.form.sent .form-done { display: block; animation: heroIn .8s var(--ease) both; }
.form .err { color: #f2b583; font-size: 13px; margin: -6px 0 0; display: none; }
.form.has-err .err { display: block; }

/* ═══ FOOTER ══════════════════════════════════════════════════════════════ */
.footer { background: var(--bg-deep); padding: clamp(70px, 9vw, 110px) 0 40px; border-top: 1px solid var(--line-2); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-2); }
.footer-brand .senda-mark { width: 120px; margin-bottom: 18px; }
.footer-brand .word { font-family: var(--f-display); font-size: 34px; letter-spacing: .4em; line-height: 1; }
.footer-brand .tag { font-family: var(--f-display); color: var(--ink-2); margin: 12px 0 14px; font-size: 15px; }
.footer-brand .place-line { font: 500 11px/1.4 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.footer h4 { font: 500 11px/1.4 var(--f-display); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color .3s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ═══ MODAL (Sumate) ══════════════════════════════════════════════════════ */
dialog.modal {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 4px;
  background: var(--bg); color: var(--cream); overflow: auto;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2);
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity .5s var(--ease), transform .6s var(--ease), overlay .6s allow-discrete, display .6s allow-discrete;
}
dialog.modal[open] { opacity: 1; transform: none; }
@starting-style { dialog.modal[open] { opacity: 0; transform: translateY(30px) scale(.97); } }
dialog.modal::backdrop { background: rgba(6, 12, 22, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .5s, backdrop-filter .5s, overlay .5s allow-discrete, display .5s allow-discrete; }
dialog.modal[open]::backdrop { background: rgba(6, 12, 22, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@starting-style { dialog.modal[open]::backdrop { background: rgba(6, 12, 22, 0); backdrop-filter: blur(0); } }
.modal-head { padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px) 0; position: relative; }
.modal-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
.modal-head p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--cream); cursor: pointer; display: grid; place-items: center; transition: border-color .3s, transform .5s var(--ease); }
.modal-close:hover { border-color: var(--accent); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; }
.modal .form { border: 0; background: none; padding-top: 26px; }

/* ═══ Página: Presencial ══════════════════════════════════════════════════ */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(70px, 11vw, 140px)) 0 clamp(80px, 10vw, 130px); overflow: hidden; isolation: isolate; }
.page-hero .hero-sky { z-index: -2; }
.page-hero h1 { font-size: clamp(38px, 6vw, 78px); line-height: 1.05; margin-bottom: 26px; max-width: 14em; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero [data-in] { opacity: 0; transform: translateY(26px); }
.page-ready .page-hero [data-in] { animation: heroIn 1.2s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
.breadcrumb { font: 500 12px/1 var(--f-display); letter-spacing: .14em; color: var(--muted); margin-bottom: 30px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 36px); }
.office { display: grid; gap: 22px; }
.office .photo { aspect-ratio: 4 / 3; }
.office h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; }
.office p { color: var(--ink-2); margin: 0; }
.office-tag { font: 500 11px/1 var(--f-display); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.photo.placeholder { display: grid; place-items: center; background: linear-gradient(160deg, #172a44, var(--dusk)); }
.photo.placeholder::after { display: none; }
.photo.placeholder .ph { display: grid; justify-items: center; gap: 14px; color: var(--muted); font: 500 11px/1.4 var(--f-display); letter-spacing: .26em; text-transform: uppercase; text-align: center; padding: 20px; }
.photo.placeholder .ph svg { width: 120px; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }

.map-wrap { margin-top: clamp(60px, 8vw, 100px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.map { width: 100%; }
.map .lake { fill: rgba(26, 44, 69, .9); stroke: rgba(179, 199, 218, .3); stroke-width: 1; }
.map .road { fill: none; stroke: rgba(248, 245, 236, .45); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.map.in .road { stroke-dashoffset: 0; }
.map .hills { fill: none; stroke: rgba(179, 199, 218, .35); stroke-width: 1.2; stroke-linejoin: round; }
.map .pin { fill: var(--accent); }
.map .pin-ring { fill: none; stroke: var(--accent); transform-box: fill-box; transform-origin: center; }
.map.in .pin-ring { animation: netPulse 3s var(--ease) 1.2s 1; }
.map text { font-family: var(--f-display); fill: var(--cream); font-size: 14px; }
.map .lake-t { fill: rgba(179, 199, 218, .55); font-size: 11px; letter-spacing: .32em; }
.map .area { fill: rgba(179, 199, 218, .06); stroke: rgba(179, 199, 218, .35); stroke-dasharray: 3 5; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(19, 36, 58, .16); counter-reset: step; }
.step { padding: 32px 28px 10px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid rgba(19, 36, 58, .16); }
.step b { font: 400 13px/1 var(--f-display); letter-spacing: .2em; color: var(--paper-accent); display: block; margin-bottom: 20px; }
.step h3 { margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding: 26px 0 10px; border-left: 0; border-bottom: 1px solid rgba(19, 36, 58, .16); } }

/* ═══ Movimiento reducido ═════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-fade, .hero [data-in], .page-hero [data-in] { opacity: 1 !important; transform: none !important; }
  .statement .w { opacity: 1; }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee .marquee-track[aria-hidden="true"] { display: none; }
}

/* ═══ Ajustes comunes ═════════════════════════════════════════════════════ */
h2 + .lead, .kicker + h2 + .lead { margin-top: 24px; }
.approach-note h3 em { font-style: normal; color: var(--accent); }
.net text { font-family: var(--f-display); fill: var(--ink-2); font-size: 13px; opacity: 0; transition: opacity .8s var(--ease); }
.net.in text { opacity: 1; }
.net .net-hub { fill: var(--accent); font-size: 12px; letter-spacing: .4em; }

/* ═══ Páginas internas (Portland, Sobre nosotros, Presencial) ════════════ */
.page-hero { padding-bottom: clamp(110px, 14vw, 180px); }
.page-hero .lead { max-width: 40em; }
.page-hero-art { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(110px, 16vw, 200px); z-index: -1; pointer-events: none; }
.page-hero-art svg { width: 100%; height: 100%; }
.page-hero-art .ridge { fill: none; stroke: rgba(179, 199, 218, .22); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose p { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }
.prose strong { color: var(--cream); font-weight: 600; }
.on-paper .prose strong { color: var(--paper-ink); }
.callout { margin: 30px 0; padding: 4px 0 4px clamp(20px, 2.6vw, 28px); border-left: 1px solid var(--accent); }
.callout h3 { margin-bottom: 10px; color: var(--accent); }
.callout p { margin: 0; }
.affiliation { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.affiliation-logo { flex-shrink: 0; display: grid; place-items: center; padding: 10px 16px; border-radius: var(--r); background: var(--cream); }
.affiliation:hover span:last-child { color: var(--accent); }
.affiliation img { height: 30px; width: auto; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 70px); }
.role { padding: 26px; border-radius: var(--r); border: 1px solid var(--line-2); transition: border-color .4s; }
.role:hover { border-color: var(--line); }
.role svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.role h3 { font-size: 19px; margin-bottom: 6px; }
.role p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(19, 36, 58, .16); }
.fact { padding: 26px 20px 6px 0; display: grid; gap: 8px; }
.fact + .fact { padding-left: 22px; border-left: 1px solid rgba(19, 36, 58, .16); }
.fact span { font: 500 11px/1.4 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--paper-accent); }
.fact b { font: 300 clamp(20px, 2.2vw, 26px)/1.25 var(--f-display); color: var(--paper-ink); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(19, 36, 58, .16); }
}

/* personas */
.people { display: grid; gap: 0; }
.person {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(26px, 4vw, 48px) 0; border-top: 1px solid var(--line-2);
}
.person:last-child { border-bottom: 1px solid var(--line-2); }
.person:nth-child(even) { grid-template-columns: 1fr auto; }
.person:nth-child(even) .portrait { order: 2; }
.portrait {
  position: relative; width: clamp(150px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  background: #dfe5ea;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 300; margin-bottom: 14px; }
.person p { color: var(--ink-2); font-size: 16px; }
.person p:last-child { margin-bottom: 0; }
.person strong { color: var(--cream); font-weight: 600; }
.person a { color: var(--accent); text-underline-offset: 3px; }
.person a:hover { color: var(--cream); }
@media (max-width: 760px) {
  .person, .person:nth-child(even) { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .person:nth-child(even) .portrait { order: 0; }
}

/* banda de cierre */
.cta-band { position: relative; overflow: hidden; }
.cta-band .lead { margin-left: auto; margin-right: auto; }

/* botón flotante del Portland */
.join-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s;
}
.join-float.show { opacity: 1; transform: none; pointer-events: auto; }
.join-float svg { width: 18px; height: 18px; }
.join-float:hover svg { transform: none; }
.phone-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.phone-row input { width: 100%; font: 400 16px/1.5 var(--f-body); color: var(--cream); background: rgba(10, 20, 34, .5); border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 16px; transition: border-color .3s; }
.phone-row input:focus { outline: none; border-color: var(--accent); }
.phone-row input::placeholder { color: rgba(248, 245, 236, .32); }

/* mapa: rótulo de zona */
.map .lake-t { font-family: var(--f-display); }
.on-paper .prose p, .on-paper .step p { color: var(--paper-muted); }
.map .lake { fill: rgba(179, 199, 218, .07); stroke: none; }
.map .shore { fill: none; stroke: rgba(179, 199, 218, .45); stroke-width: 1.4; }

.field legend { margin-bottom: 8px; }
.form .row.wide-first { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 560px) { .form .row.wide-first { grid-template-columns: 1fr; } }
@media (min-width: 701px) and (max-width: 860px) { .gain + .gain { padding-left: 22px; } .gain { padding-right: 22px; } }

/* ═══ PALETA TIERRA (la paleta del sitio) ═════════════════════════════════
   Pisa la base azul de arriba: todo lo que define el aspecto final está en este bloque.
   Toda clara: fondos crema y beige, sin secciones verdes ni azules.
   - Marrón oscuro (corteza): los contenedores destacados (recuadro del enfoque, tarjetas, idiomas).
   - Verde bosque: sólo detalles (botones, montañas del logo, opciones elegidas, centro del diagrama).
   - Marrón medio: rótulos, palabras destacadas, íconos y líneas.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --t-cream: #f4eee4;
  --t-cream-2: #fbf8f2;   /* cajas de formulario */
  --t-beige: #e9ddca;
  --t-beige-2: #ddcfb8;
  --t-ink: #2e251d;       /* texto */
  --t-brown: #7d5c3f;     /* acentos */
  --t-bark: #3b2b1f;      /* contenedores */
  --t-bark-2: #463426;
  --t-forest: #1f3d2d;    /* detalles verdes */
  --t-forest-2: #2a5040;
  --t-sage: #b7c6a7;

  --bg: var(--t-cream); --bg-2: #ede4d5; --bg-deep: #efe7da; --dusk: var(--t-beige);
  --cream: var(--t-ink); --ink: var(--t-ink); --ink-2: rgba(46, 37, 29, .78);
  --muted: #86735f; --slate: #86735f;
  --accent: var(--t-brown); --accent-2: #9a7a5c;
  --line: rgba(46, 37, 29, .18); --line-2: rgba(46, 37, 29, .11);
  --paper: var(--t-beige); --paper-2: var(--t-beige-2);
  --paper-ink: var(--t-ink); --paper-muted: #5f4f40; --paper-accent: var(--t-brown);
}
:root body { background: var(--t-cream); color: var(--t-ink); }
:root ::selection { background: var(--t-sage); color: var(--t-ink); }

/* logo: montañas verdes, senda marrón */
:root .senda-mark .mt { stroke: var(--t-forest); }
:root .senda-mark .road-fill { fill: var(--t-bark); }
:root .senda-mark .road-fallback { stroke: var(--t-bark); }

/* botones: verde bosque */
:root .btn-primary, :root .nav-a.is-cta { background: var(--t-forest); color: var(--t-cream); }
:root .btn-primary:hover, :root .nav-a.is-cta:hover { background: var(--t-forest-2); color: var(--t-cream); }
:root .btn-ghost { border-color: rgba(46, 37, 29, .3); }
:root .btn-ghost:hover { border-color: var(--t-forest); color: var(--t-forest); }

/* encabezado, menú y desplegables */
:root .nav.scrolled { background: rgba(244, 238, 228, .96); }
:root .dd-panel { background: var(--t-cream-2); border-color: var(--line); box-shadow: 0 20px 40px -24px rgba(46, 37, 29, .35); }
:root .dd-panel a:hover, :root .dd-panel a:focus-visible { background: rgba(46, 37, 29, .05); }

/* intro: amanecer sobre crema, con el bosque en marrón oscuro */
:root .intro-bg { background: var(--t-cream); }
:root .intro-sky {
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(231, 180, 140, .6) 0%, rgba(214, 160, 128, .28) 26%, rgba(244, 238, 228, 0) 60%),
    linear-gradient(to bottom, #f8f4ec 0%, var(--t-cream) 50%, #eee3d2 100%);
}
:root .intro-hills path { fill: var(--t-bark); }
:root .intro-skip { color: rgba(46, 37, 29, .5); }

/* portada en crema: cielo claro, sin estrellas, cerros y árboles en tonos tierra suaves */
:root .hero-sky {
  background:
    radial-gradient(70% 45% at 50% 100%, rgba(231, 180, 140, .16) 0%, transparent 70%),
    linear-gradient(to bottom, #f8f4ec 0%, var(--t-cream) 55%, #efe6d8 100%);
}
:root .hero-stars { display: none; }
:root .hero-layer.far .ridge, :root .page-hero-art .ridge { stroke: rgba(125, 92, 63, .22); }
:root .hero-layer.mid path { fill: #eae0d0; }
:root .hero-layer.near path { fill: #d9cab2; }
:root .hero-fade { background: linear-gradient(to bottom, rgba(244, 238, 228, 0), var(--t-cream)); }

/* cinta de temas */
:root .topics { background: var(--t-cream); }

/* Bariloche: el bosque en marrones */
:root .place { background: linear-gradient(to bottom, var(--t-cream) 0%, #efe6d8 60%, var(--t-beige) 100%); }
:root .place-forest g:first-child path { fill: #d3c2a7; }
:root .place-forest g:last-child path { fill: #b49e80; }

/* contenedores en marrón oscuro (corteza) */
:root :is(.approach-note, .card, .role, .lang-card) {
  --cream: #f1e9dc; --ink: #f1e9dc; --ink-2: rgba(241, 233, 220, .8); --muted: #c4b39c;
  --accent: var(--t-sage); --line: rgba(241, 228, 208, .2); --line-2: rgba(241, 228, 208, .12);
  background: var(--t-bark); border-color: transparent; color: #f1e9dc;
}
:root a.card:hover, :root .role:hover { background: var(--t-bark-2); border-color: transparent; }
:root .approach-note h3 { color: #f1e9dc; }
:root .approach-note p { color: rgba(241, 233, 220, .86) !important; }
:root .lang-card .langs span { border-color: rgba(241, 228, 208, .22); }
:root .affiliation-logo { background: #fff; }

/* red de Comunidad */
:root .net line { stroke: rgba(125, 92, 63, .4); }
:root .net circle.hub { fill: var(--t-forest); }
:root .net circle.pulse { stroke: var(--t-forest); }
:root .net .net-hub { fill: var(--t-forest); }

/* fotos y mapa */
:root .photo figcaption { color: #f4eee4; }
:root .photo.placeholder { background: linear-gradient(160deg, #ece2d2, var(--t-beige)); }
:root .map .lake { fill: rgba(125, 92, 63, .06); }
:root .map .shore { stroke: rgba(125, 92, 63, .45); }
:root .map .road { stroke: rgba(46, 37, 29, .4); }
:root .map .hills { stroke: rgba(125, 92, 63, .35); }
:root .map .area { fill: rgba(31, 61, 45, .05); stroke: rgba(31, 61, 45, .35); }
:root .map .lake-t { fill: rgba(125, 92, 63, .6); }
:root .map .pin { fill: var(--t-forest); }
:root .map .pin-ring { stroke: var(--t-forest); }

/* formularios: cajas crema, campos blancos cálidos, lo elegido en verde */
:root .form { background: var(--t-cream-2); border-color: var(--line); }
:root .modal .form { background: none; border: 0; }
:root .field input[type="text"], :root .field input[type="email"], :root .field input[type="tel"],
:root .field textarea, :root .phone-row input { background: #fffdf8; border-color: var(--line); color: var(--t-ink); }
:root .field input:focus, :root .field textarea:focus, :root .phone-row input:focus { background: #fff; border-color: var(--t-forest); }
:root .field ::placeholder, :root .phone-row input::placeholder { color: rgba(46, 37, 29, .38); }
:root .seg input:checked + span { background: var(--t-forest); border-color: var(--t-forest); color: var(--t-cream); }
:root .check input { background: #fffdf8; }
:root .check input:checked { background: var(--t-forest); border-color: var(--t-forest); }
:root .form .err, :root .form-done .demo { color: #a0522d; }
:root .form-done svg { stroke: var(--t-forest); }
:root dialog.modal { box-shadow: 0 40px 90px -30px rgba(46, 37, 29, .45), 0 0 0 1px var(--line-2); }
:root dialog.modal[open]::backdrop { background: rgba(46, 37, 29, .35); }

/* secciones beige: diagrama y preguntas */
:root .venn .core { fill: var(--t-forest); }
:root .venn .c1 { fill: rgba(31, 61, 45, .07); }
:root .venn .c2 { fill: rgba(183, 198, 167, .25); }
:root .venn .c3 { fill: rgba(125, 92, 63, .08); }
:root .faq details[open] .pm { background: var(--t-forest); border-color: var(--t-forest); }
:root .faq .pm { border-color: rgba(46, 37, 29, .25); }
/* borde dentado de una sección beige junto a una de fondo apenas más oscuro */
:root [style*="bg-deep"] + .on-paper > .edge.top path,
:root .on-paper:has(+ [style*="bg-deep"]) > .edge.bottom path { fill: var(--bg-deep); }

/* pie */
:root .footer { background: var(--t-beige); }
:root .venn .core-t { fill: var(--t-cream); }   /* "TU TERAPIA": letra clara sobre el círculo verde */
:root .faq details[open] .pm::before, :root .faq details[open] .pm::after { background: var(--t-cream); }   /* el − de la pregunta abierta, claro sobre verde */

/* Contenedores en color pino (más claro que la corteza); el de Idiomas, crema como el formulario. */
:root { --t-pine: #82623f; --t-pine-2: #8d6c49; }
:root :is(.approach-note, .card, .role) {
  --cream: #fbf5ea; --ink: #fbf5ea; --ink-2: rgba(251, 245, 234, .9); --muted: #eadbc4;
  --accent: #e3ecd8; --line: rgba(255, 250, 240, .3); --line-2: rgba(255, 250, 240, .18);
  background: var(--t-pine); color: #fbf5ea;
}
:root a.card:hover, :root .role:hover { background: var(--t-pine-2); }
:root .approach-note h3 { color: #fbf5ea; }
:root .approach-note p { color: rgba(251, 245, 234, .92) !important; }
:root .lang-card {
  --cream: var(--t-ink); --ink: var(--t-ink); --ink-2: rgba(46, 37, 29, .78); --muted: #86735f;
  --accent: var(--t-brown); --line: rgba(46, 37, 29, .18); --line-2: rgba(46, 37, 29, .11);
  background: var(--t-cream-2); border-color: var(--line); color: var(--t-ink);
}
:root .lang-card .langs span { border-color: var(--line); }

/* Madera clara: los contenedores destacados pasan a un tono madera claro, con texto oscuro. */
:root { --t-pine: #caa983; --t-pine-2: #d3b48f; }
:root :is(.approach-note, .card, .role) {
  --cream: var(--t-ink); --ink: var(--t-ink); --ink-2: rgba(46, 37, 29, .86); --muted: #5f4b37;
  --accent: var(--t-forest); --line: rgba(46, 37, 29, .28); --line-2: rgba(46, 37, 29, .16);
  color: var(--t-ink);
}
:root .approach-note h3 { color: var(--t-ink); }
:root .approach-note p { color: rgba(46, 37, 29, .86) !important; }

/* Madera bien clara: color de los contenedores destacados. */
:root { --t-pine: #e6d4b8; --t-pine-2: #ead9bf; }
:root :is(.approach-note, .card, .role) { --line: rgba(46, 37, 29, .22); }

/* Textura de papel (reemplaza la veta de madera): grano fino y parejo, muy suave. */
:root {
  --t-papel: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.27  0 0 0 0 0.17  0.4 0 0 0 -0.12'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
:root :is(.approach-note, .card, .role) { background: var(--t-papel), var(--t-pine); }
:root a.card:hover, :root .role:hover { background: var(--t-papel), var(--t-pine-2); }
:root .approach-note strong { font-weight: 600; color: var(--t-ink); }   /* negrita suave (semibold) para la frase final */
:root main p strong { font-weight: 600; color: var(--ink); }   /* negritas del texto: seminegrita, en el color de texto pleno */
