/* Camila Araya | Psicología — Elite
   Concepto: "la habitación en calma". La luz lateral de ventana de la foto aprobada es el motivo
   visual y de movimiento; el espacio vacío (el muro) es donde vive el texto.
   Forma: todo recto (radio 0) salvo controles interactivos, que son píldora completa. */

@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-normal.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../assets/fonts/hanken-grotesk-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F3F1EA;
  --paper-2: #EAE7DE;
  --paper-3: #DEDACE;
  --ink: #2B302D;
  --ink-soft: #4E554F;
  --olive: #68766C;
  --olive-deep: #4A564E;
  --line: rgba(43, 48, 45, .14);
  --line-strong: rgba(43, 48, 45, .34);
  --on-ink: #F3F1EA;
  --hero-scrim: linear-gradient(90deg, rgba(243, 241, 234, .72) 0%, rgba(243, 241, 234, .38) 34%, rgba(243, 241, 234, 0) 56%);
  --hero-ink: #2B302D;
  --error: #8A3B2E;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1440px;
  --col-gap: clamp(16px, 2vw, 32px);
  --section: clamp(80px, 9vw, 136px);
  --header-h: 76px;

  color-scheme: light dark;
  interpolate-size: allow-keywords;
}

/* Modo oscuro: "la misma habitación al atardecer". Sigue al sistema salvo elección explícita. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1F1C; --paper-2: #222723; --paper-3: #2C322D;
    --ink: #ECE9E1; --ink-soft: #BAC0B7; --olive: #9DAD9F; --olive-deep: #B9C6BB;
    --line: rgba(236, 233, 225, .13); --line-strong: rgba(236, 233, 225, .32);
    --on-ink: #1B1F1C;
    --hero-scrim: linear-gradient(90deg, rgba(27, 31, 28, .9) 0%, rgba(27, 31, 28, .72) 34%, rgba(27, 31, 28, .1) 60%, rgba(27, 31, 28, .18) 100%);
    --hero-ink: #ECE9E1;
    --error: #E5A493;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1F1C; --paper-2: #222723; --paper-3: #2C322D;
  --ink: #ECE9E1; --ink-soft: #BAC0B7; --olive: #9DAD9F; --olive-deep: #B9C6BB;
  --line: rgba(236, 233, 225, .13); --line-strong: rgba(236, 233, 225, .32);
  --on-ink: #1B1F1C;
  --hero-scrim: linear-gradient(90deg, rgba(27, 31, 28, .9) 0%, rgba(27, 31, 28, .72) 34%, rgba(27, 31, 28, .1) 60%, rgba(27, 31, 28, .18) 100%);
  --hero-ink: #ECE9E1;
  --error: #E5A493;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--paper); }

:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: 12px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- Tipografía ---------- */
.serif { font-family: var(--serif); }
.display-xl, .display-page, .display-l, .display-m, .display-s {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 360;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.6rem, 1.1rem + 4.1vw, 5.5rem); line-height: 1.04; }
.display-page { font-size: clamp(2.3rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.06; max-width: 22ch; }
.display-l { font-size: clamp(1.85rem, 1.3rem + 1.5vw, 2.7rem); line-height: 1.1; max-width: 18ch; }
.display-m { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); line-height: 1.24; letter-spacing: -0.01em; }
.display-s { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.4rem); line-height: 1.3; letter-spacing: -0.005em; }
.display-xl em, .display-page em, .display-l em, .display-m em, .display-s em { font-style: italic; font-weight: 320; color: var(--olive-deep); padding-right: .04em; }
.lede { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 38ch; text-wrap: pretty; }
.body-copy { max-width: 56ch; color: var(--ink-soft); text-wrap: pretty; }
.body-copy strong { color: var(--ink); font-weight: 500; }
.kicker {
  display: block;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--olive-deep); margin-bottom: 1.6rem;
}
.label { font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--olive-deep); }
.note { font-size: .92rem; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Botones y enlaces ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7em;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-ink);
  font-weight: 500; font-size: 1rem; letter-spacing: .01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: color .3s ease, border-color .3s ease, transform .16s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--olive-deep);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.btn .arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--olive-deep); color: var(--paper); }
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover .arrow { transform: translateX(4px); }
}
:root[data-theme="dark"] .btn:hover, :root[data-theme="dark"] .btn:hover { color: var(--on-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:hover { color: var(--on-ink); } }

.link-quiet {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; font-weight: 500; text-decoration: none; color: var(--ink);
}
.link-quiet::after {
  content: ""; position: absolute; left: 0; right: 1.4em; bottom: 8px; height: 1px;
  background: currentColor; transform-origin: left; transition: transform .45s var(--ease-out);
}
.link-quiet .arrow { transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-quiet:hover::after { transform: scaleX(.35); }
  .link-quiet:hover .arrow { transform: translateX(4px); }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  view-transition-name: site-header;
  transition: background-color .4s ease, box-shadow .4s ease, color .4s ease;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-height: 44px; }
.wordmark__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 400; letter-spacing: -0.01em; }
.wordmark__rule { width: 1px; height: 22px; background: var(--line-strong); }
.wordmark__area { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.nav__list { display: flex; gap: clamp(14px, 1.9vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .95rem; font-weight: 450; text-decoration: none; color: var(--ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .3s ease, transform .16s var(--ease-out);
}
.theme-toggle:active { transform: scale(.94); }
.theme-toggle__disc {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  transition: transform .6s var(--ease-in-out);
}
:root[data-theme="dark"] .theme-toggle__disc { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle__disc { transform: rotate(180deg); } }
@media (hover: hover) and (pointer: fine) { .theme-toggle:hover { border-color: var(--ink); } }

.menu-toggle {
  display: none; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: .92rem; font-weight: 500;
}

/* Header sobre la portada del inicio */
.page-home .site-header:not(.is-solid) { color: var(--hero-ink); }
.page-home .site-header:not(.is-solid) .nav__link,
.page-home .site-header:not(.is-solid) .wordmark { color: var(--hero-ink); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease-out); }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list li { border-top: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; text-decoration: none;
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 360; line-height: 1.1;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.mobile-menu__list a[aria-current="page"] { font-style: italic; color: var(--olive-deep); }
.mobile-menu.is-open .mobile-menu__list a { opacity: 1; transform: none; }
.mobile-menu__foot { display: grid; gap: 20px; flex-shrink: 0; }
.mobile-menu nav { flex-shrink: 0; }
.mobile-menu__close { position: absolute; top: 16px; right: var(--gutter); }

/* ---------- Portada (inicio) ---------- */
.hero { position: relative; overflow: clip; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--paper-3); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 78%, transparent) 0, color-mix(in srgb, var(--paper) 0%, transparent) 150px), var(--hero-scrim); pointer-events: none; }
.hero__inner { position: relative; min-height: clamp(600px, 50vw, 100svh); display: grid; align-items: center; padding-block: calc(var(--header-h) + 40px) 64px; }
.hero__copy { grid-column: 1 / span 7; color: var(--hero-ink); }
.hero__title.display-xl { font-size: clamp(2.5rem, 3.75vw, 4.4rem); }
@media (min-width: 900px) { .hero__title .line > span { white-space: nowrap; } }
.hero__copy .kicker { color: var(--hero-ink); opacity: .82; }
.hero__title { margin-bottom: 1.6rem; }
.hero__title em { color: inherit; }
.hero .lede { color: var(--hero-ink); opacity: .9; max-width: 32ch; margin-bottom: 2.4rem; }
.hero .link-quiet { color: var(--hero-ink); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }

/* Entrada: la luz entra desde la ventana (derecha) y el texto se asienta después */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media img { animation: window-light 1.6s var(--ease-out) both; }
  .js .hero__media { animation: window-open 1.5s var(--ease-in-out) both; }
  .js .hero__title .line > span { animation: line-rise 1.1s var(--ease-out) both; }
  .js .hero__title .line:nth-child(1) > span { animation-delay: .45s; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: .56s; }
  .js .hero .kicker, .js .hero .lede, .js .hero .actions { animation: settle .9s var(--ease-out) both; }
  .js .hero .kicker { animation-delay: .35s; }
  .js .hero .lede { animation-delay: .78s; }
  .js .hero .actions { animation-delay: .9s; }
}
@keyframes window-open { from { clip-path: inset(0 0 0 62%); } to { clip-path: inset(0 0 0 0); } }
@keyframes window-light { from { transform: scale(1.08); filter: brightness(1.12); } to { transform: scale(1); filter: none; } }
@keyframes line-rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Profundidad al desplazar: la foto se aleja más lento que el texto (solo navegadores con scroll-timeline) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .hero__parallax { animation: hero-depth linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    .hero__copy-inner { animation: copy-drift linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  }
}
.hero__parallax { position: absolute; inset: 0; }
@keyframes hero-depth { to { transform: translateY(14%); } }
@keyframes copy-drift { to { transform: translateY(-40px); opacity: .2; } }

/* ---------- Estructura de secciones ---------- */
.section { padding-block: var(--section); position: relative; overflow-x: clip; }
.section--tint { background: var(--paper-2); }
.section + .section:not(.section--tint) { padding-top: calc(var(--section) * .7); }

/* A quién acompaño — lista de situaciones con foco de lectura */
.who__aside { grid-column: 1 / span 4; }
.who__sticky { position: sticky; top: calc(var(--header-h) + 48px); }
.who__aside .body-copy { margin-top: 1.4rem; }
.who__list { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.situation {
  position: relative; padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.situation::before {
  content: ""; position: absolute; left: 0; top: clamp(28px, 4vw, 48px); bottom: clamp(28px, 4vw, 48px); width: 2px;
  background: var(--olive); transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease-out);
}
.situation .label { display: block; margin-bottom: .8rem; }
.situation__text { color: var(--ink-soft); transition: color .6s ease; max-width: 26ch; }
.situation.is-current::before { transform: scaleY(1); }
.situation.is-current .situation__text { color: var(--ink); }
.no-js .situation__text, .situation--static .situation__text { color: var(--ink); }

.pull {
  grid-column: 6 / span 7; margin-top: clamp(64px, 7vw, 104px);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.9rem); line-height: 1.14; letter-spacing: -0.015em;
  text-wrap: balance; color: var(--ink); max-width: 26ch;
}
.pull__after { display: block; margin-top: 1.6rem; font-family: var(--sans); font-style: normal; font-size: 1rem; letter-spacing: 0; color: var(--ink-soft); max-width: 52ch; line-height: 1.6; }

/* Cómo se empieza — una frase en tres tiempos */
.start__head { grid-column: 1 / span 7; margin-bottom: clamp(48px, 5vw, 80px); }
.start__head .body-copy { margin-top: 1.4rem; }
.moments { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); position: relative; list-style: none; margin: 0; padding: 0; }
.moments::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong);
  transform-origin: left; transform: scaleX(var(--draw, 1));
}
.moment { padding-top: clamp(28px, 3vw, 44px); padding-right: 12%; position: relative; }
.moment::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper-2); border: 1.5px solid var(--olive-deep);
}
.moment__verb { display: block; font-family: var(--serif); font-style: italic; font-weight: 320; font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.3rem); line-height: 1.05; color: var(--olive-deep); margin-bottom: .9rem; }
.moment p { color: var(--ink-soft); max-width: 30ch; }
.start__foot { grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 32px; border-top: 1px solid var(--line); }
.motion-ready .moments { --draw: 0; }
.motion-ready .moments.is-in { --draw: 1; }
.moments::before { transition: transform 1.4s var(--ease-in-out); }
.motion-ready .moment { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.motion-ready .moments.is-in .moment { opacity: 1; transform: none; }
.motion-ready .moments.is-in .moment:nth-child(2) { transition-delay: .35s; }
.motion-ready .moments.is-in .moment:nth-child(3) { transition-delay: .7s; }

/* ---------- Encabezado de páginas interiores ---------- */
.page-intro { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px)); }
.page-title .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .page-title .line > span { animation: line-rise 1s var(--ease-out) both .1s; }
  .js .page-title .line:nth-child(2) > span { animation-delay: .2s; }
  .js .page-intro .mark, .js .page-intro .rise-after { animation: settle .9s var(--ease-out) both .45s; }
}

/* ---------- Atención ---------- */
.sessions__title { grid-column: 1 / span 9; }
.sessions__lead { grid-column: 6 / span 6; margin-top: clamp(32px, 4vw, 56px); }
.sessions__lead .lede { max-width: 40ch; margin-bottom: 2rem; }
.ledger { grid-column: 1 / -1; margin-top: clamp(64px, 7vw, 104px); }
.ledger__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: clamp(32px, 4vw, 56px); position: relative; }
.ledger__row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; transition: transform 1.2s var(--ease-in-out); }
.motion-ready .ledger__row::before { transform: scaleX(0); }
.motion-ready .ledger__row.is-in::before { transform: scaleX(1); }
.ledger__term { grid-column: 1 / span 4; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.9rem); line-height: 1; color: var(--olive-deep); }
.ledger__desc { grid-column: 6 / span 6; }
.ledger__desc h2 { margin-bottom: .7rem; }

.first { align-items: start; }
.first__aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 48px); }
.first__quote { margin: 0; max-width: 13ch; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.first__body { grid-column: 6 / span 7; }
.first__body h2 { margin-bottom: 1.6rem; }
.fit { list-style: none; margin: 2.4rem 0; padding: 0; }
.fit li { display: grid; grid-template-columns: 2.2rem 1fr; padding: 1.1rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.fit li:last-child { border-bottom: 1px solid var(--line); }
.fit li::before { content: ""; width: 14px; height: 1px; margin-top: .85em; background: var(--olive-deep); }

.modes__head { grid-column: 1 / span 4; }
.modes { grid-column: 6 / span 7; align-self: start; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.mode { padding: clamp(32px, 4vw, 60px) clamp(0px, 3vw, 48px) clamp(40px, 5vw, 72px) 0; position: relative; transition: background-color .5s ease; }
.mode + .mode { padding-left: clamp(24px, 4vw, 64px); border-left: 1px solid var(--line-strong); }
.mode__name { display: block; font-family: var(--serif); font-weight: 340; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.mode__where { font-weight: 500; color: var(--ink); margin-bottom: .6rem; }
.mode p { color: var(--ink-soft); max-width: 40ch; }
.values { grid-column: 6 / span 7; display: grid; grid-template-columns: auto 1fr auto; column-gap: var(--col-gap); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values p { margin: 0; color: var(--ink-soft); }
.values .btn { justify-self: end; }

/* ---------- Mi enfoque ---------- */
.approach { align-items: start; }
.approach__index { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 64px); margin-top: clamp(48px, 6vw, 88px); }
.approach__index ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.approach__index a {
  position: relative; display: flex; align-items: center; min-height: 64px; padding-left: 28px;
  font-family: var(--serif); font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); font-weight: 340; line-height: 1.1;
  text-decoration: none; color: var(--ink-soft); transition: color .5s ease;
}
.approach__index a::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 2px; background: var(--olive-deep); transform: scaleY(0); transition: transform .6s var(--ease-out); }
.approach__index a span { transition: transform .6s var(--ease-out); }
.approach__index a.is-current { color: var(--ink); font-style: italic; }
.approach__index a.is-current::before { transform: scaleY(1); }
.approach__index a.is-current span { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) { .approach__index a:hover { color: var(--ink); } }
.approach__body { grid-column: 6 / span 7; margin-top: clamp(48px, 6vw, 88px); }
.approach__body > .display-l { margin-bottom: 1.4rem; }
.principles { list-style: none; margin: 0; padding: 0; }
.principle { padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.principle h2 { margin-bottom: .9rem; }
.principle p { color: var(--ink-soft); max-width: 44ch; margin: 0; }

.about { align-items: center; }
.about__text { grid-column: 1 / span 5; }
.about__text h2 { margin-bottom: 1.8rem; }
.about__sign { margin-top: 2rem; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--olive-deep); }
.about__media { grid-column: 7 / span 5; position: relative; }
.about__media::before { content: ""; position: absolute; inset: 12% -10% -8% 18%; background: var(--paper-3); z-index: 0; }
.portrait { position: relative; z-index: 1; margin: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.portrait picture { display: block; width: 100%; height: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.motion-ready .portrait { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.motion-ready .portrait img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.motion-ready .is-in > .portrait { clip-path: inset(0 0 0 0); }
.motion-ready .is-in > .portrait img { transform: scale(1); }
.about__caption { position: relative; z-index: 1; margin-top: 14px; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Recursos ---------- */
.faq__aside { grid-column: 1 / span 4; }
.faq__sticky { position: sticky; top: calc(var(--header-h) + 48px); }
.faq__aside .body-copy { margin-top: 1.4rem; }
.faq__list { grid-column: 6 / span 7; align-self: start; border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 24px;
  padding: clamp(24px, 3vw, 36px) 0; min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--serif); font-weight: 360; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); line-height: 1.2; letter-spacing: -0.01em; transition: color .3s ease; }
.faq__icon { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s ease, border-color .3s ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink); translate: -50% -50%; transition: transform .45s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item[open] .faq__icon { background: var(--ink); border-color: var(--ink); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover .faq__q { color: var(--olive-deep); } }
.faq__a { padding: 0 64px clamp(28px, 3vw, 40px) 0; color: var(--ink-soft); max-width: 58ch; }
.faq__a p:last-child { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

.reads__head { grid-column: 1 / span 4; }
.reads__head .body-copy { margin-top: 1.4rem; }
.reads { grid-column: 6 / span 7; border-top: 1px solid var(--line-strong); }
.read { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 var(--col-gap); padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.read__n { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: var(--olive-deep); }
.read__cat { display: block; margin-bottom: .7rem; }
.read__title { margin-bottom: 1rem; max-width: 24ch; }
.read__meta { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.read__state { display: inline-block; margin-right: .6em; font-weight: 500; color: var(--olive-deep); }
.reads__note { margin-top: 28px; }

/* ---------- Contacto ---------- */
.contact { align-items: start; }
.contact__aside { grid-column: 1 / span 5; }
.contact__sticky { position: sticky; top: calc(var(--header-h) + 48px); }
.contact__aside .lede { margin-block: 1.6rem 2rem; }
.demo-note { display: grid; grid-template-columns: 3px 1fr; gap: 16px; font-size: .92rem; color: var(--ink-soft); max-width: 44ch; }
.demo-note::before { content: ""; background: var(--olive); }
.form { grid-column: 6 / span 6; }
.field { display: grid; gap: 8px; margin-bottom: 30px; }
.field > label, .fieldset legend { font-size: .9rem; font-weight: 500; color: var(--ink); }
.fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.fieldset legend { margin-bottom: 12px; padding: 0; }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font-size: 1.1rem;
  transition: border-color .3s ease;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.input:focus-visible, .textarea:focus-visible { outline: none; }
.help { font-size: .86rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 16px; }
.error-text { font-size: .86rem; color: var(--error); min-height: 0; }
.error-text:empty { display: none; }
.is-invalid .input, .is-invalid .textarea { border-bottom-color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .95rem; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--olive-deep); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .choice span:hover { border-color: var(--ink); } }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.form-status { margin-top: 28px; padding: 22px 24px; background: var(--paper-2); border-left: 3px solid var(--olive); font-size: .98rem; color: var(--ink); }
.form-status[hidden] { display: none; }
.form-status strong { display: block; margin-bottom: 4px; font-weight: 500; }

.avail__head { grid-column: 1 / span 7; margin-bottom: clamp(48px, 5vw, 80px); }
.avail__head .body-copy { margin-top: 1.4rem; }
.avail-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); margin: 0; }
.avail-grid > div { padding: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px) clamp(28px, 3vw, 44px) 0; }
.avail-grid > div + div { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.avail-grid dt { margin-bottom: 1.2rem; }
.avail-grid dd { margin: 0; }
.avail-grid .display-s { display: block; margin-bottom: .6rem; }
.avail-grid .note { margin: 0; }
.route { grid-column: 1 / -1; margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.route h3 { grid-column: 1 / span 4; }
.route ol { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; counter-reset: route; }
.route li { counter-increment: route; display: grid; grid-template-columns: 3.2rem 1fr; padding: 1.2rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.route li::before { content: counter(route); font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.1; color: var(--olive-deep); }
.route li strong { color: var(--ink); font-weight: 500; }

/* ---------- Pie (sobrio y constante en todas las páginas) ---------- */
.site-footer { background: var(--paper-2); padding-block: clamp(56px, 6vw, 88px) 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; }
.footer-lead { grid-column: 1 / span 4; }
.footer-lead .duo { margin-bottom: 20px; }
.footer-lead__q { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .4vw, 1.45rem); line-height: 1.3; max-width: 22ch; margin-bottom: .8rem; }
.footer-nav { grid-column: 6 / span 3; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-nav a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: var(--ink-soft); transition: color .25s ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-contact { grid-column: 9 / span 4; }
.footer-contact .label { margin-bottom: .8rem; }
.footer-contact__link { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.footer-base { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--ink-soft); }
.footer-base p { margin: 0; }

/* ---------- Revelado genérico (uso limitado) ---------- */
.motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Transiciones entre páginas (View Transitions, mejora progresiva) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .32s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .wordmark__rule, .wordmark__area { display: none; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }

@media (max-width: 899px) {
  :root { --header-h: 66px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; }

  /* Portada móvil: foto propia arriba, el texto entra como una hoja que se superpone */
  .page-home .site-header:not(.is-solid) { color: var(--ink); }
  .page-home .site-header:not(.is-solid) .nav__link, .page-home .site-header:not(.is-solid) .wordmark { color: var(--ink); }
  .hero__media { position: relative; inset: auto; height: min(46svh, 94vw); margin-top: var(--header-h); }
  .hero__media::after { background: linear-gradient(0deg, rgba(27, 31, 28, .12), rgba(27, 31, 28, 0) 40%); }
  .hero__media img { object-position: 50% 22%; }
  .hero__parallax { position: relative; }
  .hero__inner { min-height: 0; padding-block: 0 72px; }
  .hero__copy { position: relative; margin-top: -56px; margin-right: 10%; padding: 26px 24px 0 0; background: var(--paper); color: var(--ink); }
  .hero__copy::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: var(--gutter); background: var(--paper); }
  .hero__copy .kicker, .hero .lede, .hero .link-quiet { color: var(--ink); }
  .hero__title em { color: var(--olive-deep); }
  @keyframes window-open { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

  .who__sticky, .faq__sticky, .contact__sticky, .first__aside, .approach__index { position: static; }
  .approach__body, .modes, .values, .reads, .pull { margin-top: 40px; }
  .hero .mark__rule { width: 24px; }
  .hero .mark__t { letter-spacing: .1em; white-space: nowrap; }
  .hero .mark { color: var(--olive-deep); }
  .who__list, .faq__list { margin-top: 48px; }
  .situation { padding-left: 22px; }
  .situation__text { max-width: none; }
  .pull { margin-top: 72px; }
  .moments { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
  .moments::before { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; transform: scaleY(var(--draw, 1)); }
  .moment { padding: 0 0 40px; }
  .moment::before { left: -28px; top: .5em; }
  .start__foot { flex-direction: column; align-items: flex-start; }

  .sessions__lead { margin-top: 32px; }
  .ledger__row { grid-template-columns: 1fr; row-gap: 14px; }
  .ledger__term, .ledger__desc { grid-column: 1 / -1; }
  .first__body { margin-top: 40px; }
  .modes { grid-template-columns: 1fr; }
  .mode { padding-right: 0; }
  .mode + .mode { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .values { grid-template-columns: 1fr; row-gap: 16px; }
  .values .btn { justify-self: start; }

  .approach__index { display: none; }
  .intro-lede { margin-top: 24px; }
  .about__media { margin-top: 56px; max-width: 460px; }
  .about__media::before { inset: 10% -6% -6% 22%; }

  .faq__a { padding-right: 0; }

  .form { margin-top: 56px; }
  .avail-grid { grid-template-columns: 1fr 1fr; }
  .avail-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .avail-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .route { grid-template-columns: 1fr; row-gap: 24px; }
  .route h3, .route ol { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .footer-grid > * { grid-column: 1 / -1 !important; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .avail-grid { grid-template-columns: 1fr; }
  .avail-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .btn { width: 100%; justify-content: center; }
  .actions { gap: 8px 24px; }
  .hero__copy { margin-right: 0; padding-right: 0; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .motion-ready .reveal, .motion-ready .moment { opacity: 1; transform: none; }
  .motion-ready .portrait { clip-path: none; }
  .motion-ready .portrait img { transform: none; }
  .motion-ready .ledger__row::before, .motion-ready .moments { --draw: 1; transform: none; }
  .situation__text { color: var(--ink); }
}

/* Utilidades */
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 96px; pointer-events: none; }
.page-home .sentinel { height: max(96px, calc(50vw - 140px)); }
@media (max-width: 899px) { .page-home .sentinel { height: 96px; } }
.optional { font-weight: 400; color: var(--ink-soft); }
main:focus { outline: none; }

/* ---------- Gramática visual compartida ----------
   Dos ejes (columna 1: marcas y títulos; columna 6: contenido), hilo fino = luz de ventana,
   círculos = los dos sillones y la mesa redonda. Las imágenes son "láminas" con el mismo bloque
   desplazado detrás y el mismo revelado de cortina. Numeración 01–12: el recorrido del sitio. */
.mark { display: flex; align-items: center; gap: 14px; margin: 0 0 1.4rem; color: var(--olive-deep); }
.mark__n { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1; font-variant-numeric: lining-nums; }
.mark__rule { width: 40px; height: 1px; background: currentColor; opacity: .6; }
.mark__t { font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.hero .mark { color: var(--hero-ink); }
.duo { display: inline-flex; gap: 5px; vertical-align: middle; }
.duo::before, .duo::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--olive-deep); }
.duo::before { background: var(--olive-deep); }
.pull .duo, .first__quote .duo { display: flex; margin-bottom: 1.2rem; }
.intro-head { grid-column: 1 / span 8; }
.intro-lede { grid-column: 6 / span 6; margin-top: clamp(24px, 3vw, 40px); margin-bottom: 0; }
.first__aside .mark { margin-bottom: 1.6rem; }

.plate { position: relative; margin: 0; }
.plate::before { content: ""; position: absolute; inset: 14% -7% -7% 16%; background: var(--paper-3); z-index: 0; }
.plate__frame { position: relative; z-index: 1; overflow: hidden; background: var(--paper-3); }
.plate__frame img { width: 100%; height: 100%; object-fit: cover; }
.plate picture { display: block; width: 100%; height: 100%; }
.plate__cap { position: relative; z-index: 1; margin-top: 12px; font-size: .84rem; color: var(--ink-soft); max-width: 34ch; }
.plate--aside { margin-top: clamp(40px, 5vw, 64px); max-width: 380px; }
.plate--aside .plate__frame { aspect-ratio: 4 / 3; }
.plate--window { margin-top: clamp(40px, 5vw, 64px); max-width: 260px; }
.plate--window .plate__frame { aspect-ratio: 441 / 510; }
.plate--shelf { margin-top: clamp(40px, 5vw, 64px); max-width: 220px; }
.plate--shelf .plate__frame { aspect-ratio: 405 / 840; }
.section--tint .plate::before, .section--tint .about__media::before { background: var(--paper); }
.motion-ready .plate .plate__frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.motion-ready .plate .plate__frame img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.motion-ready .plate.is-in .plate__frame { clip-path: inset(0 0 0 0); }
.motion-ready .plate.is-in .plate__frame img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .motion-ready .plate .plate__frame { clip-path: none; }
  .motion-ready .plate .plate__frame img { transform: none; }
}
@media (max-width: 899px) {
  .intro-head, .intro-lede { grid-column: 1 / -1; }
  .plate::before { inset: 12% -4% -5% 14%; }
}
@media (max-width: 899px) {
  .plate--aside { max-width: 340px; }
  .plate--window { max-width: 230px; }
  .plate--shelf { max-width: 200px; }
}
