/* =========================================================
   Método Tres Escuadras Argentina - sistema visual
   Paleta tomada del logo: navy de marca + celeste MTE (único acento).
   Ángulos rectos en todo el sitio (radio 0): el método se llama "escuadras".
   Sin sombras: las secciones se apoyan en bandas de color plenas de borde a borde.
   Z-index: header 50, menú móvil 60, lightbox 80.
   ========================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #fdfdfe;
  --surface: #f4f8fc;
  --surface-2: #eaf4fb;
  --surface-3: #dcebf6;
  --ink: #141c4a;
  --ink-2: #434c74;
  --ink-3: #5d6690;
  --navy: #212d6b;
  --navy-2: #2b3a86;
  --on-navy: #f4f7fb;
  --sky: #00a5e5;
  --sky-ink: #0868a3;
  --sky-soft: rgba(0, 165, 229, 0.12);
  --line: rgba(33, 45, 107, 0.12);
  --line-strong: rgba(33, 45, 107, 0.22);
  --shadow: none;
  --shadow-lg: none;
  --header-bg: rgba(253, 253, 254, 0.94);
  --panel: #212d6b;
  --on-panel: #f4f7fb;

  --r-card: 0;
  --r-input: 0;
  --r-pill: 0;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0f2c;
    --surface: #0f1638;
    --surface-2: #121c48;
    --surface-3: #1b2a62;
    --ink: #eef2fc;
    --ink-2: #b4bddf;
    --ink-3: #95a0c9;
    --navy: #3fb9ef;
    --navy-2: #6ccaf3;
    --on-navy: #08102e;
    --sky: #3fb9ef;
    --sky-ink: #6ccaf3;
    --sky-soft: rgba(63, 185, 239, 0.14);
    --line: rgba(180, 196, 240, 0.14);
    --line-strong: rgba(180, 196, 240, 0.26);
    --shadow: none;
    --shadow-lg: none;
    --header-bg: rgba(10, 15, 44, 0.94);
    --panel: #16235a;
    --on-panel: #eef2fc;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f2c;
  --surface: #0f1638;
  --surface-2: #121c48;
  --surface-3: #1b2a62;
  --ink: #eef2fc;
  --ink-2: #b4bddf;
  --ink-3: #95a0c9;
  --navy: #3fb9ef;
  --navy-2: #6ccaf3;
  --on-navy: #08102e;
  --sky: #3fb9ef;
  --sky-ink: #6ccaf3;
  --sky-soft: rgba(63, 185, 239, 0.14);
  --line: rgba(180, 196, 240, 0.14);
  --line-strong: rgba(180, 196, 240, 0.26);
  --shadow: none;
  --shadow-lg: none;
  --header-bg: rgba(10, 15, 44, 0.94);
  --panel: #16235a;
  --on-panel: #eef2fc;
}

/* ---------- Base ---------- */
*, *::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(--bg);
  color: var(--ink-2);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--sky-soft); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow > * { max-width: 960px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--surface-2); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.muted { color: var(--ink-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sky); border-radius: 0; }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: 0; }
.skip:focus { top: 12px; }

/* ---------- Icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--navy); --b-fg: var(--on-navy); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 0;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font: inherit; font-size: 1rem; font-weight: 550; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.btn .i { transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.btn--light { --b-bg: var(--on-navy); --b-fg: var(--navy); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --b-bg: var(--navy-2); box-shadow: var(--shadow); }
  .btn--ghost:hover { --b-bg: var(--surface); --b-bd: var(--ink-3); box-shadow: none; }
  .btn--light:hover { --b-bg: #ffffff; }
  .btn:hover .i--move { transform: translateX(3px); }
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 550; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--sky); padding-bottom: 2px;
}
.link-arrow .i { transition: transform 200ms var(--ease-out); color: var(--sky-ink); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .i { transform: translateX(3px); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-weight: 650; font-size: 0.98rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-text span { font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.04em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; color: var(--ink-2); text-decoration: none; font-size: 0.97rem; font-weight: 500;
  padding: 8px 12px; border-radius: 0; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.nav a[aria-current="page"] { color: var(--ink); background: var(--sky-soft); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { color: var(--ink); background: var(--sky-soft); } }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 0; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .i { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 12px; }
.mobile-menu nav a { color: var(--ink); text-decoration: none; font-size: 1.6rem; font-weight: 550; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current="page"] { color: var(--sky-ink); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (home): texto alineado a la grilla, foto a sangre hasta el borde ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100dvh - var(--header-h)), 760px); }
.hero__copy {
  align-self: center; position: relative;
  padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 80px) clamp(56px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero h1 { font-size: clamp(2.3rem, 4vw, 3.45rem); max-width: 15ch; }
.hero h1::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 28px; border-left: 2px solid var(--sky); border-top: 2px solid var(--sky); }
.hero .lead { margin-top: 22px; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__media { position: relative; background: var(--surface-3); }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 3% 50%; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 40px var(--gutter) 40px; }
  .hero__media { aspect-ratio: 4 / 3; }
}

/* ---------- Split (texto + foto) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split__media { border-radius: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-3); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 + p, .split h2 + .lead { margin-top: 20px; }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
  .split--rev .split__media { order: -1; }
}

/* ---------- Tres escuadras ---------- */
.escuadras__head { max-width: 640px; margin-bottom: 40px; }
.escuadras__head p { margin-top: 16px; }
.escuadras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.escuadra { position: relative; display: grid; grid-template-rows: auto 1fr; }
.escuadra figure { margin: 0; overflow: hidden; background: var(--surface-2); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.escuadra figure .pmedia { width: 100%; height: 100%; }
.escuadra__body { padding: 18px 0 4px; display: flex; gap: 16px; align-items: flex-start; }
.escuadra__n { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: end start; padding: 0 0 5px 9px; font-size: 1.05rem; font-weight: 650; line-height: 1; color: var(--sky-ink); font-variant-numeric: tabular-nums; }
.escuadra__n::before { content: ""; position: absolute; inset: 0; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); }
.escuadra h3 { font-size: 1.2rem; }
.escuadra p { margin: 4px 0 0; font-size: 1rem; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .escuadra:hover figure .pmedia__fg { transform: scale(1.04); } }
@media (max-width: 860px) {
  .escuadras { grid-template-columns: 1fr; }
}

/* Fases */
.fases { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.fases::before { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg, var(--sky) 0%, var(--line-strong) 100%); }
.fase { position: relative; padding: 34px 28px 0 0; }
.fase::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 0; background: var(--bg); border: 3px solid var(--sky); }
.section--tint .fase::before { background: var(--surface-2); }
.fase h3 { font-size: 1.12rem; }
.fase p { margin-top: 6px; font-size: 0.98rem; color: var(--ink-3); }
@media (max-width: 760px) {
  .fases { grid-template-columns: 1fr; gap: 26px; padding-left: 30px; }
  .fases::before { top: 6px; bottom: 6px; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sky), var(--line-strong)); }
  .fase { padding: 0; }
  .fase::before { left: -30px; }
}
/* Fases en columna (página Técnica): la escuadra va en la guía izquierda, sin pisar el título */
.fases--stack { grid-template-columns: 1fr; gap: 26px; padding-left: 30px; margin-top: 28px; }
.fases--stack::before { top: 6px; bottom: 6px; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sky), var(--line-strong)); }
.fases--stack .fase { padding: 0; }
.fases--stack .fase::before { left: -30px; top: 2px; }

/* ---------- Bandas de color plenas ---------- */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band--navy { background: var(--panel); }
.band--tint { background: var(--surface-2); }

/* ---------- Curso (vive dentro de .band--navy) ---------- */
.course { color: var(--on-panel); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); position: relative; isolation: isolate; }
.course h2, .course h3, .course strong { color: var(--on-panel); }
.course .lead, .course p { color: color-mix(in srgb, var(--on-panel) 82%, transparent); }
.course__status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 0;
  border: 1px solid rgba(0, 165, 229, 0.6); color: var(--on-panel); font-size: 0.9rem; font-weight: 500; margin-bottom: 20px;
}
.course .lead { margin-top: 18px; }
.course__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.course .btn--light { --b-bg: var(--on-panel); --b-fg: #212d6b; }
.course .btn--ghost { --b-fg: var(--on-panel); --b-bd: color-mix(in srgb, var(--on-panel) 40%, transparent); }
@media (hover: hover) and (pointer: fine) { .course .btn--ghost:hover { --b-bg: color-mix(in srgb, var(--on-panel) 10%, transparent); --b-bd: var(--on-panel); } }
.facts-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-content: start; }
.facts-list div { padding: 16px 16px 16px 0; border-top: 1px solid color-mix(in srgb, var(--on-panel) 18%, transparent); }
.facts-list div:nth-child(even) { padding-left: 16px; }
.facts-list dt { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--on-panel) 62%, transparent); }
.facts-list dd { margin: 6px 0 0; color: var(--on-panel); font-weight: 500; line-height: 1.4; }
.facts-list .span-2 { grid-column: span 2; padding-left: 0 !important; }
@media (max-width: 860px) { .course { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts-list { grid-template-columns: 1fr; } .facts-list div:nth-child(even) { padding-left: 0; } .facts-list .span-2 { grid-column: auto; } }

/* ---------- Cita ---------- */
.quote { text-align: center; max-width: 900px; margin-inline: auto; }
.quote .i { width: 40px; height: 40px; color: var(--sky); margin: 0 auto 18px; display: block; }
.quote blockquote { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.22; letter-spacing: -0.02em; color: var(--ink); font-weight: 500; }
.quote blockquote span { display: block; }
.quote figcaption { margin-top: 24px; color: var(--ink-3); font-size: 1rem; }
.quote figcaption b { color: var(--ink); font-weight: 600; }

/* ---------- Buscador teaser ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.finder h2 { max-width: 16ch; }
.finder p { margin-top: 14px; }
.search { position: relative; display: flex; }
.search .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 20px; height: 20px; pointer-events: none; }
.search input {
  width: 100%; min-height: 56px; padding: 0 130px 0 50px; border-radius: 0;
  border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 1.05rem; border-radius: 0;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.search .btn { position: absolute; right: 6px; top: 6px; min-height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 0;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: inherit; font-size: 0.93rem; text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.chip small { color: var(--ink-3); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.chip[aria-pressed="true"] small { color: color-mix(in srgb, var(--on-navy) 75%, transparent); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink-3); color: var(--ink); } .chip[aria-pressed="true"]:hover { color: var(--on-navy); } }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; } }
@media (pointer: coarse) { .chip { min-height: 44px; } .socials a { width: 44px; height: 44px; } }
@media (max-width: 480px) { .search input { padding-right: 18px; } .search .btn { display: none; } }

/* ---------- Índices (jornadas + publicaciones) ---------- */
.index-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.index-grid h2 { margin-bottom: 8px; }
.index-list { list-style: none; margin: 24px 0 0; padding: 0; }
.index-list a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 18px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
.index-list .t { transition: transform 220ms var(--ease-out); }
.index-list li:last-child a { border-bottom: 1px solid var(--line); }
.index-list .year { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; color: var(--sky-ink); font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.index-list .t { font-weight: 550; line-height: 1.35; }
.index-list .t small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.92rem; margin-top: 2px; }
.index-list .i { color: var(--ink-3); transition: transform 200ms var(--ease-out), color 160ms; }
@media (hover: hover) and (pointer: fine) {
  .index-list a:hover { background: var(--surface); }
  .index-list a:hover .t { transform: translateX(6px); }
  .index-list a:hover .i { transform: translateX(3px); color: var(--sky-ink); }
}
.doc-ico { width: 42px; height: 42px; border-radius: 0; background: var(--sky-soft); color: var(--sky-ink); display: grid; place-items: center; }
.doc-ico .i { width: 22px; height: 22px; color: var(--sky-ink); }
.index-grid .link-arrow { margin-top: 24px; }
@media (max-width: 860px) { .index-grid { grid-template-columns: 1fr; } }

/* ---------- Mosaico galería (home) ---------- */
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; margin-top: 36px; }
.mosaic a { border-radius: 0; overflow: hidden; background: var(--surface-3); display: block; }
.mosaic a:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mosaic a:hover img { transform: scale(1.04); } }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; }
  .mosaic a:first-child { grid-column: span 2; grid-row: auto; }
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- CTA final ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.cta-band p { margin-top: 12px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer (banda navy que cierra la página) ---------- */
.site-footer { background: var(--panel); color: color-mix(in srgb, var(--on-panel) 78%, transparent); padding-top: 64px; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.footer-grid .f-title { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--on-panel) 60%, transparent); font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--on-panel); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid b { color: var(--on-panel) !important; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 14px; background: #fdfdfe; padding: 6px; }
.footer-brand p { max-width: 34ch; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; }
.contact-line .i { margin-top: 0.3em; color: var(--sky); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--on-panel) 35%, transparent); display: grid; place-items: center; color: var(--on-panel); transition: background-color 160ms, border-color 160ms; }
.socials a:hover { background: color-mix(in srgb, var(--on-panel) 12%, transparent); border-color: var(--on-panel); }
.socials .i { width: 20px; height: 20px; }
.footer-bottom { margin-top: 56px; padding-block: 22px; border-top: 1px solid color-mix(in srgb, var(--on-panel) 18%, transparent); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: color-mix(in srgb, var(--on-panel) 60%, transparent); font-size: 0.9rem; }
.theme-toggle { background: none; border: 1px solid color-mix(in srgb, var(--on-panel) 35%, transparent); color: var(--on-panel); padding: 6px 14px; font: inherit; font-size: 0.88rem; cursor: pointer; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- Page hero (interiores) ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(36px, 5vw, 64px); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
.page-hero .lead { margin-top: 18px; }
.crumbs { display: flex; gap: 8px; font-size: 0.92rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Layout con índice lateral ---------- */
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.95rem; }
.toc p { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-3); text-decoration: none; transition: color 160ms, border-color 160ms; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--sky); font-weight: 550; }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { display: none; } }
.article > section + section { margin-top: clamp(56px, 7vw, 88px); }
.article h2 { margin-bottom: 20px; }
.article h3 { margin: 28px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li { padding: 7px 14px; border-radius: 0; background: var(--sky-soft); color: var(--ink); font-size: 0.95rem; }
.callout { background: var(--surface-2); border-radius: 0; padding: 24px 26px; margin-top: 24px; }
.callout p { margin: 0; color: var(--ink); }
.figure-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.figure-row figure { margin: 0; }
.fig-media { aspect-ratio: 3 / 4; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.fig-media .pmedia { width: 100%; height: 100%; }
.figure-row figcaption { font-size: 0.93rem; margin-top: 8px; color: var(--ink-3); }
.figure-row figcaption b { color: var(--ink); display: block; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .figure-row figure:hover .pmedia__fg { transform: scale(1.05); } }
@media (max-width: 640px) { .figure-row { grid-template-columns: repeat(2, 1fr); } }

details.letter { border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); }
details.letter + details.letter { margin-top: 12px; }
details.letter summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; color: var(--ink); }
details.letter summary::-webkit-details-marker { display: none; }
details.letter summary .i { transition: transform 220ms var(--ease-out); color: var(--ink-3); }
details.letter[open] summary .i { transform: rotate(180deg); }
details.letter .letter__body { padding: 0 24px 24px; }
details.letter .letter__body p { font-size: 1rem; }

/* ---------- Formación ---------- */
.timeline { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .tag { display: inline-block; font-size: 0.8rem; padding: 2px 10px; border-radius: 0; background: var(--sky-soft); color: var(--sky-ink); margin-left: 8px; font-weight: 550; }
.timeline .is-past { opacity: 0.62; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 24px; }
.box h3 { margin: 0 0 10px; font-size: 1.1rem; }
.box ul { margin: 0; padding-left: 18px; }
.box li + li { margin-top: 6px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.person-mini { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); }
.person-mini img { flex: none; width: 60px; height: auto; aspect-ratio: 89 / 118; border-radius: 0; object-fit: cover; object-position: 50% 30%; }
.person-mini b { color: var(--ink); display: block; font-weight: 600; }
.person-mini a { font-size: 0.93rem; word-break: break-all; }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }

/* ---------- Jornadas ---------- */
.edition-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.poster { border-radius: 0; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-3); display: block; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--ink); font-weight: 500; }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row .i { color: var(--sky-ink); }
@media (max-width: 860px) { .edition-hero { grid-template-columns: 1fr; } .edition-hero .poster { max-width: 360px; } }
.objectives { counter-reset: obj; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.objectives li { counter-increment: obj; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; }
.objectives li::before { content: counter(obj); width: 28px; height: 28px; border-radius: 0; background: var(--sky-soft); color: var(--sky-ink); font-weight: 600; font-size: 0.9rem; display: grid; place-items: center; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 8px 22px 12px; }
.day h3 { padding: 16px 0 10px; font-size: 1.1rem; }
.slot { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.slot time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.93rem; padding-top: 1px; }
.slot div { color: var(--ink); }
.slot div em { font-style: normal; color: var(--ink-2); }
.slot.is-break div { color: var(--ink-3); }
@media (max-width: 900px) { .days { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .slot { grid-template-columns: 1fr; gap: 2px; } }
.editions-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Galería ---------- */
.gallery { columns: 4 240px; column-gap: 12px; margin-top: 8px; }
.gallery a { display: block; margin-bottom: 12px; border-radius: 0; overflow: hidden; break-inside: avoid; background: var(--surface-3); position: relative; }
.gallery img { width: 100%; height: auto; transition: transform 500ms var(--ease-out), opacity 300ms; }
@media (hover: hover) and (pointer: fine) { .gallery a:hover img { transform: scale(1.03); } }
.gallery-more { display: flex; justify-content: center; margin-top: 24px; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6, 10, 30, 0.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out); }
.lightbox figure { margin: 0; display: grid; place-items: center; height: 100dvh; padding: 56px 0; }
.lightbox img { max-height: calc(100dvh - 120px); max-width: 100%; width: auto; border-radius: 0; transform: scale(0.97); transition: transform 240ms var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: #cfd6ef; font-size: 0.92rem; margin-top: 12px; }
.lb-btn { width: 48px; height: 48px; border-radius: 0; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: #fff; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb-btn:hover { background: rgba(255,255,255,0.14); }
.lb-btn .i { width: 22px; height: 22px; }
.lb-close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; bottom: 16px; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } .lightbox figure { padding: 64px 8px 80px; } }

/* ---------- Directorio ---------- */
.dir-tools { position: sticky; top: var(--header-h); z-index: 10; background: var(--bg); padding-block: 16px 14px; border-bottom: 1px solid var(--line); }
.dir-tools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.dir-tools .chips::-webkit-scrollbar { display: none; }
.dir-tools .chip { flex: none; }
.dir-count { margin-top: 12px; font-size: 0.93rem; color: var(--ink-3); }
.dir-region { margin-top: 44px; }
.dir-region h2 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 12px; }
.dir-region h2 small { font-size: 0.95rem; color: var(--ink-3); font-weight: 400; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 18px; }
.pro { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pro:hover { border-color: var(--line-strong); box-shadow: var(--shadow); } }
.pro h3 { font-size: 1.1rem; }
.pro .title { font-size: 0.86rem; color: var(--ink-3); margin-top: 2px; }
.pro ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.96rem; }
.pro li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; overflow-wrap: anywhere; }
.pro li .i { margin-top: 0.25em; color: var(--sky-ink); width: 16px; height: 16px; }
.pro li a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.pro li a:hover { border-bottom-color: var(--sky); }
.pro__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.pro__actions .btn { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
.pro.is-hidden, .dir-region.is-hidden { display: none; }
.empty { text-align: center; padding: 64px 16px; display: none; }
.empty.is-visible { display: block; }
.empty h2 { font-size: 1.5rem; }
.empty p { margin-top: 10px; }
.empty .btn { margin-top: 20px; }

/* ---------- Publicaciones ---------- */
.pubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 20px; }
.pub { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; color: var(--ink); text-decoration: none; transition: border-color 160ms, box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out); }
.pub h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 550; }
.pub span { display: block; margin-top: 6px; color: var(--ink-3); font-size: 0.9rem; }
@media (hover: hover) and (pointer: fine) { .pub:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); } }
.pub-group + .pub-group { margin-top: 56px; }

/* ---------- Equipo ---------- */
.bio { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); padding-block: 36px; border-top: 1px solid var(--line); }
.bio:last-of-type { border-bottom: 1px solid var(--line); }
.bio img { width: 120px; aspect-ratio: 89 / 118; object-fit: cover; border-radius: 0; background: var(--surface-3); filter: saturate(0.9); }
.bio h3 { font-size: 1.4rem; }
.collab { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.collab li { padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 550; font-size: 1.1rem; }
.bio .role { color: var(--sky-ink); font-weight: 550; margin-top: 4px; }
.bio ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bio li { padding-left: 18px; position: relative; }
.bio li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--sky); }
@media (max-width: 560px) { .bio { grid-template-columns: 1fr; } .bio img { width: 96px; } }
.memoriam { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; }
.memoriam figure { margin: 0; text-align: center; }
.memoriam img { width: 110px; aspect-ratio: 89 / 118; object-fit: cover; border-radius: 0; filter: grayscale(1); }
.memoriam figcaption { margin-top: 10px; color: var(--ink); font-weight: 550; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 550; color: var(--ink); font-size: 0.97rem; }
.field label span { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 0; border: 1.5px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 160ms, box-shadow 160ms;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.field .error { color: #c42b3a; font-size: 0.9rem; min-height: 0; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c42b3a; }
.field.has-error .error { display: block; }
:root[data-theme="dark"] .field .error { color: #ff8a95; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .error { color: #ff8a95; } }
.form .help { font-size: 0.9rem; color: var(--ink-3); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 0; background: var(--sky-soft); color: var(--ink); display: none; }
.form-status.is-visible { display: block; }
.channels { display: grid; gap: 14px; }
.channel { padding: 22px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); }
.channel h3 { font-size: 1.1rem; }
.channel p { margin-top: 6px; font-size: 0.97rem; color: var(--ink-3); }
.channel ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.channel li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.channel li .i { color: var(--sky-ink); margin-top: 0.3em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Motion ----------
   Un solo momento de autor: las tres escuadras y sus fases se dibujan al entrar.
   El resto del sitio no anima al scrollear. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 720ms var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 70ms; }
  .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .hero__photo { animation: settle 900ms var(--ease-out) both; }

  .js .escuadras[data-moment] .escuadra { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), scale 260ms var(--ease-out), translate 260ms var(--ease-out); }
  .js .escuadras[data-moment] .escuadra:nth-child(2) { transition-delay: 90ms; }
  .js .escuadras[data-moment] .escuadra:nth-child(3) { transition-delay: 180ms; }
  .js .escuadras[data-moment] .escuadra__n::before { clip-path: inset(0 100% 0 0); transition: clip-path 640ms var(--ease-out) 420ms; }
  .js .escuadras[data-moment] .escuadra:nth-child(2) .escuadra__n::before { transition-delay: 510ms; }
  .js .escuadras[data-moment] .escuadra:nth-child(3) .escuadra__n::before { transition-delay: 600ms; }
  .js .escuadras[data-moment] .escuadra:nth-child(4) { transition-delay: 270ms; }
  .js .escuadras[data-moment] .escuadra:nth-child(4) .escuadra__n::before { transition-delay: 690ms; }
  .js .escuadras[data-moment].is-in .escuadra { opacity: 1; transform: none; }
  .js .escuadras[data-moment].is-in .escuadra__n::before { clip-path: inset(0); }

  .js .fases[data-moment]::before { transform: scaleX(0); transform-origin: left center; transition: transform 1100ms var(--ease-in-out) 150ms; }
  .js .fases[data-moment] .fase { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
  .js .fases[data-moment] .fase:nth-child(1) { transition-delay: 250ms; }
  .js .fases[data-moment] .fase:nth-child(2) { transition-delay: 650ms; }
  .js .fases[data-moment] .fase:nth-child(3) { transition-delay: 1050ms; }
  .js .fases[data-moment].is-in::before { transform: none; }
  .js .fases[data-moment].is-in .fase { opacity: 1; transform: none; }
  .js .fases--stack[data-moment]::before { transform: scaleY(0); transform-origin: center top; }
  .js .fases--stack[data-moment].is-in::before { transform: none; }

  /* Revelado al entrar en viewport (lo agrega main.js; sin JS o con reduce, todo visible) */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out), scale 260ms var(--ease-out), translate 260ms var(--ease-out), box-shadow 260ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal:not(.is-in) { will-change: opacity, transform; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal--left { transform: translateX(-20px); }
  .js .reveal--left.is-in { transform: none; }
  .js .reveal--scale { transform: scale(0.97); }
  .js .reveal--scale.is-in { transform: none; }

  /* Micro-interacciones de hover */
  .index-list a { transition: background 180ms var(--ease-out), padding-left 220ms var(--ease-out); }
  .bio img { transition: filter 300ms var(--ease-out), transform 400ms var(--ease-out); }
  .bio:hover img { filter: saturate(1.02); transform: scale(1.02); }

  .pro { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  @starting-style { .pro { opacity: 0; transform: translateY(6px); } }

  .mobile-menu nav a, .mobile-menu > .btn { opacity: 0; transform: translateY(8px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
  .mobile-menu.is-open nav a, .mobile-menu.is-open > .btn { opacity: 1; transform: none; transition-delay: calc(40ms + var(--i, 0) * 30ms); }

  .js .gallery img, .js .mosaic img { opacity: 0; transition: opacity 360ms var(--ease-out), transform 500ms var(--ease-out); }
  .js .gallery img.is-loaded, .js .mosaic img.is-loaded { opacity: 1; }
  .lightbox img { transition: transform 240ms var(--ease-out), opacity 180ms var(--ease-out); }
  .lightbox img.is-swapping { opacity: 0; }

  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .js .fases[data-moment]::before { transform: scaleY(0); transform-origin: center top; }
}
@keyframes draw-l { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  /* Se conservan los cambios de color y opacidad (feedback); se quitan desplazamientos y zooms. */
  .escuadra figure img, .mosaic img, .gallery img, .index-list .t, .btn .i, .link-arrow .i, .lightbox img { transform: none !important; }
  .btn:active, .chip:active { transform: none; }
}


/* ---------- Motivo de marca: la escuadra (ángulo de 90°): h1 del hero, escuadras, historia y curso ---------- */
@media (prefers-reduced-motion: no-preference) { .hero h1::before { animation: draw-l 900ms var(--ease-out) 300ms both; } }

/* ---------- Historia: línea de tiempo interactiva ---------- */
.history { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(32px, 4vw, 56px); }
.history__head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.history__head p { color: var(--ink-3); max-width: 52ch; }
@media (max-width: 860px) { .history__head { grid-template-columns: 1fr; } }

/* Regla de años */
.tl__rail { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.tl__rail::-webkit-scrollbar { display: none; }
.tl__group { flex: 1 0 auto; min-width: max-content; }
.tl__group + .tl__group { border-left: 1px solid var(--line-strong); padding-left: 2px; }
.tl__group-t { margin: 0 0 10px; padding-left: 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.tl__ticks { display: flex; border-top: 1px solid var(--line-strong); }
.tl__tick { position: relative; flex: 1 0 auto; min-width: 64px; min-height: 48px; padding: 16px 12px 6px; background: none; border: 0; font: inherit; font-size: 1.02rem; font-weight: 450; font-variant-numeric: tabular-nums; color: var(--ink-3); text-align: left; cursor: pointer; transition: color 160ms var(--ease-out); }
.tl__tick::before { content: ""; position: absolute; left: 12px; top: -1px; width: 8px; height: 8px; border-left: 2px solid var(--line-strong); border-top: 2px solid var(--line-strong); transition: border-color 160ms var(--ease-out), width 220ms var(--ease-out), height 220ms var(--ease-out); }
.tl__tick[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.tl__tick[aria-selected="true"]::before { width: 16px; height: 16px; border-color: var(--sky); }
.tl__tick:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .tl__tick:hover { color: var(--ink); } .tl__tick:hover::before { border-color: var(--sky); } }

/* Escenario: un hito a la vez */
.tl__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-top: clamp(28px, 4vw, 44px); min-height: 200px; }
.tl__panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 80px); align-items: end; }
.tl__year { display: block; font-size: clamp(4rem, 10vw, 8.5rem); font-weight: 200; line-height: 0.85; letter-spacing: -0.06em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl__year.is-range { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.045em; }
.tl__era { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-ink); }
.tl__txt { margin: 10px 0 0; max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--ink); }
.tl__body .link-arrow { margin-top: 16px; }
.tl__nav { display: none; align-items: center; gap: 6px; }
.tl__btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; transition: border-color 160ms, color 160ms, opacity 160ms; }
.tl__btn .i { width: 18px; height: 18px; }
.tl__btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .tl__btn:not(:disabled):hover { border-color: var(--sky); color: var(--sky-ink); } }
.tl__count { min-width: 4.5ch; text-align: center; font-size: 0.9rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl__count b { color: var(--ink); font-weight: 600; }

/* Con JS: una sola tarjeta y navegación. Sin JS: todos los hitos en lista. */
.tl__rail, .js .tl__panel:not(.is-active) { display: none; }
.js .tl__rail { display: flex; }
.js .tl__nav { display: flex; }
.tl__stage > .tl__panel + .tl__panel { margin-top: 28px; }
.js .tl__stage > .tl__panel + .tl__panel { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .tl__panel.is-active .tl__year { animation: tl-in 520ms var(--ease-out) both; }
  .js .tl__panel.is-active .tl__body { animation: tl-in 520ms var(--ease-out) 70ms both; }
}
@keyframes tl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .tl__rail { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .tl__stage { grid-template-columns: 1fr; min-height: 0; }
  .tl__panel { grid-template-columns: 1fr; gap: 14px; }
  .tl__nav { justify-content: flex-start; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-grid > div:first-child p { margin-top: 16px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 1.12rem; font-weight: 550; color: var(--ink); transition: color 160ms var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-3); transition: transform 240ms var(--ease-out), color 160ms; flex: none; }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--sky-ink); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--sky-ink); } }
.faq .ans { padding-bottom: 24px; max-width: 64ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > div:first-child { position: static; } }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    details::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
    details[open]::details-content { block-size: auto; }
  }
}

/* ---------- Publicaciones como índice ---------- */
.index-list .year--doc { display: grid; place-items: center; min-width: 3.2ch; }
.pub-group .index-list { margin-top: 18px; }
@media (max-width: 560px) {
  .index-list a { grid-template-columns: auto 1fr; gap: 14px; }
  .index-list a > .i { display: none; }
}

/* ---------- Filtros extra del directorio ---------- */
.chip-sep { flex: none; width: 1px; align-self: stretch; margin: 4px; background: var(--line-strong); }
.chip .i { width: 16px; height: 16px; }

/* ---------- Superficies del navegador ---------- */
html { scrollbar-color: var(--line-strong) transparent; }
input, textarea { caret-color: var(--sky-ink); }

/* ---------- Componentes planos: líneas en lugar de cajas ---------- */
.box, .channel, .day, .person-mini { background: none; border: 0; border-top: 2px solid var(--ink); padding: 18px 0 0; }
.day { padding: 0; }
.day h3 { padding: 16px 0 10px; }
.person-mini { border-top-width: 1px; border-top-color: var(--line-strong); padding-top: 16px; }
.form { background: none; border: 0; padding: 0; }
details.letter { background: none; border: 0; border-top: 1px solid var(--line-strong); }
details.letter + details.letter { margin-top: 0; }
details.letter:last-of-type { border-bottom: 1px solid var(--line-strong); }
details.letter summary { padding-inline: 0; }
details.letter .letter__body { padding-inline: 0; }
.dir-grid { gap: 0 40px; }
.pro { background: none; border: 0; border-top: 1px solid var(--line-strong); padding: 22px 0 26px; }
@media (hover: hover) and (pointer: fine) { .pro:hover { border-top-color: var(--sky); } }
.mosaic { gap: 6px; }
.gallery { column-gap: 6px; }
.gallery a { margin-bottom: 6px; }
.poster { border: 1px solid var(--line); }
.callout { border-left: 0; }
.cta-band { border-top: 0; }
.escuadra figure, .split__media, .mosaic a, .gallery a, .poster { border-radius: 0; }
.fase::before { border-radius: 0; width: 14px; height: 14px; top: 3px; }

/* =========================================================
   Pasada "bolder": tipografía a pleno, motivo en escala, un pico de color.
   ========================================================= */

/* Títulos con contraste de pesos (Outfit variable) */
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 500; letter-spacing: -0.032em; line-height: 1.05; }
.hero h1 { font-size: clamp(2.7rem, 5.2vw, 4.75rem); font-weight: 300; letter-spacing: -0.045em; line-height: 0.98; max-width: 12ch; }
.hero h1 strong { display: block; font-weight: 650; color: var(--ink); }
.hero h1 strong em { font-style: normal; color: var(--sky-ink); }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }


/* Escuadras: número grande dentro del ángulo */
.escuadra__n { width: 76px; height: 76px; padding: 0 0 6px 12px; font-size: 3rem; font-weight: 250; letter-spacing: -0.05em; color: var(--sky-ink); }
.escuadra h3 { font-size: 1.35rem; font-weight: 600; }

/* Cita: ritmo en "con las manos" */
.quote { max-width: 1120px; }
.quote blockquote { font-size: clamp(1.6rem, 3.1vw, 2.75rem); font-weight: 300; line-height: 1.16; letter-spacing: -0.035em; }
.quote blockquote b { font-weight: 600; color: var(--sky-ink); white-space: nowrap; }
.quote .i { width: 48px; height: 48px; }

/* Técnicas: la única tira en movimiento del sitio */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 26px; }
.ticker__track { display: flex; width: max-content; }
.ticker ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex: none; }
.ticker li { display: flex; align-items: center; gap: 36px; padding-right: 36px; white-space: nowrap; font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.ticker li::after { content: ""; width: 18px; height: 18px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 48s linear infinite; }
  @media (hover: hover) and (pointer: fine) { .ticker:hover .ticker__track { animation-play-state: paused; } }
}
@media (prefers-reduced-motion: reduce) { .ticker ul[aria-hidden] { display: none; } .ticker__track { width: auto; flex-wrap: wrap; } .ticker ul { flex-wrap: wrap; padding-inline: var(--gutter); } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Buscador: banda en el celeste pleno del logo (tokens locales, mismo contraste en ambos temas) */
.band--sky {
  --bg: #fdfdfe; --surface: #e6f6fd; --ink: #0b1440; --ink-2: #131f57; --ink-3: #1b2a66;
  --navy: #212d6b; --navy-2: #2b3a86; --on-navy: #fdfdfe; --sky-ink: #0b1440;
  --line: rgba(11, 20, 64, 0.2); --line-strong: rgba(11, 20, 64, 0.38); --sky-soft: rgba(11, 20, 64, 0.1);
  background: #00a5e5; color: var(--ink-2);
}
.band--sky .finder h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -0.04em; }
.band--sky .finder h2 b { font-weight: 650; }
.band--sky .chip { background: rgba(253, 253, 254, 0.18); }
.band--sky .chip:hover { background: rgba(253, 253, 254, 0.4); }
.band--sky .search input { border-color: transparent; }
.band--sky .search input:focus { border-color: #0b1440; box-shadow: 0 0 0 3px rgba(11, 20, 64, 0.25); }

/* Footer: cierre con la marca en grande */
.wordmark { margin: 48px 0 0; font-size: clamp(3.2rem, 12.4vw, 11.5rem); font-weight: 300; line-height: 0.82; letter-spacing: -0.055em; white-space: nowrap; color: color-mix(in srgb, var(--on-panel) 16%, transparent); user-select: none; overflow: hidden; }
.wordmark b { font-weight: 650; }

/* ---------- Espacios reservados para fotos (se eligen al final) ---------- */
.ph { position: relative; width: 100%; height: 100%; display: grid; place-content: center; gap: 4px; padding: 20px; text-align: center; background: var(--surface-2); outline: 1px dashed var(--line-strong); outline-offset: -1px; color: var(--ink-3); }
.ph::before { content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-left: 2px solid var(--sky); border-top: 2px solid var(--sky); }
.ph__k { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-ink); }
.ph__l { font-size: 0.95rem; color: var(--ink-3); }
.hero__photo .ph { position: absolute; inset: 0; }
.figure-row .ph { aspect-ratio: 4 / 3; height: auto; }
.ph--portrait { flex: none; width: 96px; height: auto; aspect-ratio: 89 / 118; padding: 8px; }
.ph--portrait::before { left: 8px; top: 8px; width: 14px; height: 14px; }
.ph--portrait .ph__k { font-size: 0.62rem; letter-spacing: 0.04em; }
.ph--portrait .ph__l { display: none; }

/* Técnicas: título sobre la tira */
.ticker__label { max-width: var(--wrap); margin: 0 auto 18px; padding-inline: var(--gutter); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ticker__label b { color: var(--sky-ink); font-weight: 650; }

/* Cita con comillas */
.quote blockquote .qm { display: inline; color: var(--sky-ink); font-weight: 400; }

/* Técnica: cuatro posturas, pasos de la sesión y trabajos */
.figure-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (max-width: 640px) { .figure-row--4 { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 20px 0 20px 64px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 18px; width: 40px; height: 40px; display: grid; place-items: end start; padding: 0 0 4px 8px; font-size: 1.35rem; font-weight: 300; line-height: 1; color: var(--sky-ink); border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); }
.steps h3 { margin: 0 0 6px; font-size: 1.12rem; }
.steps p { margin: 0; }
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; }
.evidence div { border-top: 2px solid var(--ink); padding-top: 16px; }
.evidence dt { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.evidence dd { margin: 10px 0 0; font-size: 0.95rem; color: var(--ink-3); }
.evidence small { display: block; margin-top: 8px; font-weight: 600; color: var(--sky-ink); }
@media (max-width: 760px) { .evidence { grid-template-columns: 1fr; } }

/* Curso: tema de cada fecha, equipo y contenidos */
.timeline small { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--ink-3); }
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 24px 0 0; }
@media (max-width: 860px) { .team-list { grid-template-columns: 1fr; } }
.team-list div { padding: 18px 0; border-top: 1px solid var(--line-strong); }
.team-list dt { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky-ink); }
.team-list dd { margin: 6px 0 0; color: var(--ink); font-weight: 500; }
details.letter summary b { font-weight: 650; }
details.letter .objectives { margin-top: 0; }

/* Docentes: colaboradores con retrato */
.collab li { display: flex; gap: 16px; align-items: center; padding: 18px 20px 18px 0; }
.collab li b { display: block; font-weight: 600; }
.collab li > div > span { display: block; margin-top: 4px; font-size: 0.93rem; font-weight: 400; color: var(--ink-3); }

/* Curso: contacto pegado al cronograma */
.course-contact { display: flex; gap: 10px; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-strong); font-size: 0.95rem; color: var(--ink-2); }
.course-contact .i { flex: none; width: 18px; height: 18px; color: var(--sky-ink); transform: translateY(3px); }

/* Técnica: índice plegable solo en pantallas chicas */
.toc-mobile { display: none; margin-bottom: 40px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.toc-mobile summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 600; color: var(--ink); }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary .i { transform: rotate(180deg); }
.toc-mobile ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.toc-mobile a { color: var(--ink-3); }
@media (max-width: 900px) { .toc-mobile { display: block; } }

/* Banda del curso: separación en modo oscuro */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band--navy { border-block: 1px solid var(--line-strong); } }
:root[data-theme="dark"] .band--navy { border-block: 1px solid var(--line-strong); }

/* Placeholder de foto dentro de un paso (Técnica) */
.ph--step { height: auto; aspect-ratio: 16 / 9; max-width: 440px; margin-top: 18px; }

/* Nota bajo una bio (Docentes) */
.bio-note { margin: -8px 0 0; padding-left: calc(120px + clamp(20px, 4vw, 40px)); }
@media (max-width: 560px) { .bio-note { padding-left: 0; } }

/* ---------- Le Toucher ---------- */
.page-hero--lt { background: var(--surface-2); overflow: hidden; }
.lt-hero { display: grid; grid-template-columns: 1fr clamp(240px, 32vw, 360px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lt-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--sky-ink); margin-bottom: 10px; }
.lt-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; letter-spacing: -0.04em; line-height: 0.95; }
.lt-hero .lead { margin-top: 18px; max-width: 42ch; }
.lt-portrait { margin: 0; position: relative; }
.lt-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }
.lt-portrait::before { content: ""; position: absolute; left: -12px; top: -12px; width: 44px; height: 44px; border-left: 3px solid var(--sky); border-top: 3px solid var(--sky); }
.lt-portrait::after { content: ""; position: absolute; right: -12px; bottom: 28px; width: 44px; height: 44px; border-right: 3px solid var(--sky); border-bottom: 3px solid var(--sky); }
.lt-portrait figcaption { margin-top: 12px; font-weight: 550; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 760px) { .lt-hero { grid-template-columns: 1fr; } .lt-portrait { max-width: 300px; } }
.lt-prose { max-width: 68ch; }
.lt-prose .lt-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink); font-weight: 400; }
.lt-prose h2 { margin-top: 44px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); position: relative; padding-left: 20px; }
.lt-prose h2::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 10px; height: 1.05em; background: var(--sky); }
.lt-prose p { margin-top: 16px; color: var(--ink-2); line-height: 1.75; }
.lt-sign { margin-top: 28px; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.lt-sign::before { content: ""; display: block; width: 44px; height: 2px; background: var(--sky); margin-bottom: 14px; }
.lt-fr { margin-top: 40px; }
.lt-fr .letter__body h3 { margin-top: 20px; font-size: 1.05rem; color: var(--ink); }
.lt-fr .letter__body h3:first-child { margin-top: 0; }

/* =====================================================================
   Rediseño 23/11/2026: profundidad, foto de fondo y movimiento
   ===================================================================== */
:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --grid-line: rgba(33, 45, 107, 0.07);
  --elev-c: 20, 28, 74;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grid-line: rgba(180, 196, 240, 0.06); --elev-c: 0, 0, 0; } }
:root[data-theme="dark"] { --grid-line: rgba(180, 196, 240, 0.06); --elev-c: 0, 0, 0; }

/* ---------- Hero con foto difuminada ---------- */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; border-bottom: 0; background: #0b1440; color: #fff; }
.hero__bg { position: absolute; inset: -6%; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px) saturate(1.2) brightness(0.95); transform: translate3d(0, var(--py, 0px), 0) scale(1.06); }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 75% at 88% 28%, rgba(0, 165, 229, 0.26), transparent 62%),
    radial-gradient(40% 60% at 8% 100%, rgba(0, 165, 229, 0.16), transparent 70%),
    linear-gradient(100deg, rgba(10, 18, 58, 0.9) 0%, rgba(16, 26, 78, 0.66) 42%, rgba(16, 26, 78, 0.28) 100%); }
.hero--photo .hero__grid { max-width: var(--wrap); margin-inline: auto; padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(72px, 9vw, 128px);
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); gap: clamp(36px, 6vw, 96px); align-items: center; min-height: min(calc(100dvh - var(--header-h)), 820px); }
.hero--photo .hero__copy { padding: 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9fdcf7; }
.hero__dot { width: 8px; height: 8px; background: #00a5e5; }
.hero--photo h1 { color: #fff; }
.hero--photo h1::before { border-color: #00a5e5; }
.hero--photo h1 strong { color: #fff; }
.hero--photo .lead { color: rgba(232, 240, 255, 0.86); }
.hero--photo .btn--light { --b-bg: #ffffff; --b-fg: #141c4a; }
.btn--glass { --b-bg: transparent; --b-fg: #ffffff; --b-bd: rgba(255, 255, 255, 0.5); }
@media (hover: hover) and (pointer: fine) {
  .hero--photo .btn--light:hover { --b-bg: #e8f6fd; }
  .btn--glass:hover { --b-bg: rgba(255, 255, 255, 0.18); --b-bd: rgba(255, 255, 255, 0.7); }
}
/* Tarjeta de vidrio con las posturas */
.hero__card { position: relative; justify-self: end; width: min(100%, 380px); padding: 12px;
  background: #141c4a; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75); }
.hero__card::before, .hero__card::after { content: ""; position: absolute; width: 40px; height: 40px; pointer-events: none; }
.hero__card::before { left: -10px; top: -10px; border-left: 3px solid #00a5e5; border-top: 3px solid #00a5e5; }
.hero__card::after { right: -10px; bottom: -10px; border-right: 3px solid #00a5e5; border-bottom: 3px solid #00a5e5; }
.hero__slides { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 0; transition: opacity 520ms var(--ease-out); }
.hero__slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.hero__slide.is-active { opacity: 1; z-index: 2; }
.hero__slide .pmedia { height: 100%; background: transparent; }
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 2px; color: #fff; font-weight: 550; font-size: 0.95rem; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots { align-items: center; }
.hero__dotbtn { position: relative; width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__pause { position: relative; width: 44px; height: 44px; margin-left: 2px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.hero__pause::before, .hero__pause::after { content: ""; position: absolute; top: 15px; width: 3px; height: 14px; background: currentColor; }
.hero__pause::before { left: 17px; }
.hero__pause::after { left: 24px; }
.hero__pause[aria-pressed="true"]::before { left: 18px; width: 0; height: 0; background: none; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.hero__pause[aria-pressed="true"]::after { display: none; }
.hero__pause:focus-visible, .hero__dotbtn:focus-visible { outline-offset: -6px; }
.hero__dotbtn::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(255, 255, 255, 0.3); }
.hero__dotbtn i { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: #00a5e5; transform: scaleX(0); transform-origin: left center; }
.hero__dotbtn[aria-current="true"] i { transform: scaleX(1); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: grid; place-items: center; width: 44px; height: 44px; color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.28); }
.hero__scroll .i { width: 18px; height: 18px; }
.hero__scroll:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
@media (max-width: 900px) {
  .hero--photo .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-bottom: 96px; }
  .hero__card { justify-self: start; width: min(100%, 340px); }
}
@media (max-width: 760px) {
  .hero__card { display: none; }
  .hero--photo .hero__grid { padding-bottom: 88px; }
  .hero__veil { background: radial-gradient(80% 50% at 100% 0%, rgba(0, 165, 229, 0.22), transparent 70%), linear-gradient(180deg, rgba(10, 18, 58, 0.82) 0%, rgba(16, 26, 78, 0.6) 100%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__card { animation: settle 1100ms var(--ease-out) 250ms both; }
  .hero__dotbtn[aria-current="true"] i { transform: scaleX(0); animation: dotfill 4200ms linear forwards; }
  .hero__card:focus-within .hero__dotbtn i, .hero__card.is-paused .hero__dotbtn i, .hero--photo.is-off .hero__dotbtn i { animation-play-state: paused; }
  @media (hover: hover) and (pointer: fine) { .hero__card:hover .hero__dotbtn i { animation-play-state: paused; } }
  .split-w { display: inline-block; opacity: 0.12; transform: translateY(0.28em); animation: word-in 520ms var(--ease-out) forwards; animation-delay: calc(40ms + var(--wi) * 35ms); }
}
@keyframes dotfill { to { transform: scaleX(1); } }
@keyframes word-in { to { opacity: 1; filter: none; transform: none; } }

/* ---------- Postura: foto completa sobre la misma foto difuminada ---------- */
.pmedia { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--surface-2); }
.pmedia > img.pmedia__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.25); transform: scale(1.3); opacity: 0.9; }
.pmedia > img.pmedia__fg { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 26px rgba(var(--elev-c), 0.28)); transition: transform 700ms var(--ease-out); }

/* ---------- Cuadrícula postural como textura (la grilla de evaluación del Método) ---------- */
.page-hero, .section--tint { position: relative; isolation: isolate; }
.page-hero::before, .section--tint::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(90% 90% at 85% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(90% 90% at 85% 0%, #000 0%, transparent 75%); }
.page-hero h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 22px; background: var(--sky); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) { .page-hero h1::after { animation: bar-in 900ms var(--ease-out) 250ms both; } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Barra de progreso de lectura (en el header) ---------- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) { .scroll-progress { animation: progress-grow linear both; animation-timeline: scroll(root); } }
}
@keyframes progress-grow { to { transform: scaleX(1); } }
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(var(--elev-c), 0.5); }

/* ---------- Brillo al pasar por los botones principales ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease-out); }
}
.btn--ghost::after { display: none; }

/* ---------- Efecto dock (macOS): se agranda lo que está bajo el cursor y un poco los vecinos ---------- */
.is-dock > * { position: relative; z-index: var(--z, 0); scale: calc(1 + var(--m, 0) * var(--k, 0.05)); translate: 0 calc(var(--m, 0) * var(--lift, -6px));
  transition: scale 260ms var(--ease-out), translate 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms var(--ease-out); }
.dir-grid.is-dock > .pro, .gallery.is-dock > a, .mosaic.is-dock > a {
  box-shadow: 0 calc(var(--m, 0) * 26px) calc(var(--m, 0) * 50px) calc(var(--m, 0) * -18px) rgba(var(--elev-c), calc(var(--m, 0) * 0.4)); }
.dir-grid.is-dock > .pro { border-color: var(--line); border-color: color-mix(in srgb, var(--sky) calc(var(--m, 0) * 70%), var(--line)); }
/* luz que sigue al cursor dentro de la ficha */
.pro { position: relative; overflow: hidden; }
.pro::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--m, 0); transition: opacity 260ms var(--ease-out);
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--sky-soft), transparent 65%); }
.pro > * { position: relative; }

/* ---------- Home: las posturas contadas con scroll (main.js agrega .is-on solo en desktop con movimiento) ---------- */
.story__stage { display: none; }
.story.is-on { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: 8px; }
.story.is-on .story__stage { display: block; position: sticky; top: calc(var(--header-h) + 36px); }
.story__frame { position: relative; width: min(100%, 64vh); aspect-ratio: 1 / 1; background: var(--surface-3); overflow: hidden; }
.story__img { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.05); transition: opacity 650ms var(--ease-out), transform 1100ms var(--ease-out); }
.story__img.is-active { opacity: 1; transform: none; }
.story__angle { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); fill: none; stroke: var(--sky); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; pointer-events: none; overflow: visible; }
.story__angle path { vector-effect: non-scaling-stroke; }
.story__angle.is-drawing { animation: angle-draw 1000ms var(--ease-out) forwards; }
@keyframes angle-draw { to { stroke-dashoffset: 0; } }
.story__num { position: absolute; right: 0; bottom: 0; min-width: 88px; padding: 10px 18px; background: #212d6b; color: #fff; font-size: 2.4rem; font-weight: 300; line-height: 1; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.story__ticks { display: flex; gap: 6px; width: min(100%, 64vh); margin-top: 14px; }
.story__tick { flex: 1; height: 3px; background: var(--line-strong); transition: background-color 400ms var(--ease-out); }
.story__tick.is-active { background: var(--sky); }
.story.is-on .escuadras { grid-template-columns: 1fr; gap: 0; }
.story.is-on .escuadra { min-height: 58vh; align-content: center; grid-template-rows: auto; opacity: 0.3; transition: opacity 450ms var(--ease-out); }
.story.is-on .escuadra.is-active { opacity: 1; }
.story.is-on .escuadra figure { display: none; }
.story.is-on .escuadra h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; }
.story.is-on .escuadra p { font-size: 1.12rem; max-width: 40ch; margin-top: 10px; }
.story.is-on .escuadra__n { width: 56px; height: 56px; font-size: 1.3rem; }
.story.is-on .escuadra:last-child { min-height: 64vh; }

/* ---------- View Transitions: filtro del directorio y foto de la galería ---------- */
html.vt-filter::view-transition-group(*) { animation-duration: 340ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
html.vt-filter::view-transition-old(*), html.vt-filter::view-transition-new(*) { animation-duration: 220ms; }
html.vt-filter::view-transition-old(root), html.vt-filter::view-transition-new(root) { animation: none; }
html.vt-lb .lightbox, html.vt-lb .lightbox img { transition: none !important; }
html.vt-lb::view-transition-group(lb-photo) { animation-duration: 420ms; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
html.vt-lb::view-transition-old(root), html.vt-lb::view-transition-new(root) { animation-duration: 260ms; }

/* ---------- Correcciones de la revisión de código y UX (23/11) ---------- */
[hidden] { display: none !important; }
@media print {
  .js .reveal, .js .escuadras[data-moment] .escuadra, .js .fases[data-moment] .fase, .js .gallery img, .js .mosaic img, .split-w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .site-header, .scroll-progress, .hero__scroll, .hero__card, .review-btn { display: none !important; }
}
/* Directorio: buscador + filtros de atención arriba, zonas debajo */
.dir-tools__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dir-tools__row .search { flex: 1 1 340px; }
.dir-tools .chips--tags { margin-top: 0; align-items: center; flex-wrap: nowrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
.chips__label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.dir-tools .chips--zones { margin-top: 12px; }
@media (min-width: 761px) {
  .dir-tools .chips--zones { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .dir-tools .chips--zones .chip { min-height: 36px; }
}
@media (max-width: 760px) {
  .dir-tools { position: static; }
  .dir-tools .chips--zones { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px; }
/* Posturas en celular: tira deslizable 1 a 4 en vez de cuatro pantallas de alto */
@media (max-width: 959px) {
  .story:not(.is-on) .escuadras { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 4px; }
  .story:not(.is-on) .escuadras::-webkit-scrollbar { display: none; }
  .story:not(.is-on) .escuadra { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
}
/* Estadísticas de Técnica: número con peso (contraste fino/negrita de la marca) */
.evidence dt { font-weight: 700; letter-spacing: -0.02em; }

/* Directorio: título profesional como prefijo del nombre */
.pro h3 .pro__t { font-weight: 450; color: var(--ink-3); font-size: 0.82em; letter-spacing: 0; }

/* Posturas: 3 escuadras en Técnica + cierre de pie contra la pared (corrección de Carmen 24/11) */
.figure-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .figure-row--3 { grid-template-columns: 1fr; } }
.fases .fase.fase--cierre::before { background: var(--sky); }
.fases-cierre { position: relative; margin: 36px 0 0; padding: 18px 0 0 30px; border-top: 1px solid var(--line-strong); font-weight: 550; color: var(--ink); max-width: 62ch; }
.fases-cierre::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 14px; background: var(--sky); }

/* ---------- 24/11: fotos de pies, pie contra la pared, posturas + cierre ---------- */
.pies-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; max-width: 560px; }
.pies-fotos a { display: block; aspect-ratio: 3 / 4; }
@media (max-width: 640px) { .pies-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure-row--posturas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .figure-row--posturas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pie-pared { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 36px; }
.pie-pared .fig-media { margin: 0; }
.pie-pared .fases-cierre { margin: 0; padding: 0 0 0 30px; border-top: 0; }
.pie-pared .fases-cierre::before { top: 5px; }
@media (max-width: 520px) { .pie-pared { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; } }
/* Hero: la foto elegida por Carmen se ve nítida (sin difuminar); el velo navy queda solo detrás del texto */
.hero__bg img { filter: none; object-position: 50% 58%; }

/* Le Toucher: listas del texto original de Nicole (Método Tres Escuadras) */
.lt-prose ul { margin: 12px 0 0; padding-left: 22px; color: var(--ink-2); line-height: 1.75; }
.lt-prose li + li { margin-top: 4px; }


/* Fotos que pasan solas (data-rotator) */
.rotator { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--surface-3); }
.rotator img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1200ms var(--ease-out); }
.rotator img.is-on { opacity: 1; }
