/* =========================================================
   Colores y tipografía — los colores definitivos los vemos después
   ========================================================= */
:root {
  --bg: #fbfbfd;
  --bg-2: #f0f0f4;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #dcdce2;
  --accent: #5b7cfa;
  --accent-2: #c56cd6;
  --destacado: #7b5cf0;   /* color de los títulos destacados */
  --dark: #0c0c10;
  --dark-2: #1c1c22;
  --dark-ink: #f5f5f7;

  /* Colores de las fases de la trayectoria */
  --fase-1: #f2a541;
  --fase-2: #5b7cfa;
  --fase-3: #c56cd6;

  --font: "Nunito", ui-rounded, system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 3rem);
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.h-lg { font-size: clamp(2rem, 4.5vw, 3.5rem); }
p + p { margin-top: 1em; }

.kicker { font-size: .9rem; font-weight: 800; color: var(--accent); margin-bottom: .5rem; }
.lead { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.25rem; }

/* Texto destacado en color (títulos principales) */
.destacado { color: var(--destacado); }

.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #dfe4f5, #eadff0);
  color: var(--ink-2); font-weight: 700;
}

.btn {
  background: var(--ink); color: var(--bg);
  font-weight: 800; padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .2s, opacity .2s;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.97); }

.pill {
  display: inline-block; align-self: flex-start;
  background: var(--bg-2); color: var(--accent);
  font-weight: 800; font-size: .85rem;
  padding: .3rem .9rem; border-radius: 999px;
}

/* =========================================================
   Menú
   ========================================================= */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  max-width: 100vw; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--gutter);
  border-radius: 0;
  transition: top .5s cubic-bezier(.2, .7, .2, 1), left .5s cubic-bezier(.2, .7, .2, 1), right .5s cubic-bezier(.2, .7, .2, 1),
              max-width .5s cubic-bezier(.2, .7, .2, 1), padding .5s cubic-bezier(.2, .7, .2, 1), border-radius .5s, color .4s;
}
/* El fondo va en una capa aparte: si el blur estuviera en .bar,
   el menú del celular (position: fixed) quedaría atrapado adentro */
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: rgba(251, 251, 253, 0);
  transition: background .4s, box-shadow .4s;
}

/* Al bajar: cápsula flotante */
.bar.is-compact {
  top: 12px; left: var(--gutter); right: var(--gutter);
  max-width: 980px;
  padding: .65rem .75rem .65rem 1.5rem;
  border-radius: 999px;
}
.bar.is-compact::before {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05);
}

.bar__logo { font-weight: 900; font-size: 1.35rem; letter-spacing: -0.03em; position: relative; z-index: 2; }
.bar__logo span { color: var(--destacado); }
.bar__nav { display: flex; gap: .25rem; }
.bar__nav a {
  font-size: .88rem; font-weight: 700; color: var(--ink-2);
  padding: .45rem .8rem; border-radius: 999px;
  transition: color .2s, background .2s;
}
.bar__nav a:hover { color: var(--ink); background: rgba(0, 0, 0, .05); }
.bar__nav a.is-active { color: #fff; background: var(--destacado); }

.bar__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--destacado);
  transform-origin: left; transform: scaleX(0);
  transition: left .5s, right .5s, opacity .4s;
}
/* En la cápsula, la barrita de progreso queda dentro de las puntas redondeadas */
.bar.is-compact .bar__progress { left: 1.5rem; right: 1.5rem; bottom: 3px; border-radius: 2px; }

.bar.is-dark { color: var(--dark-ink); }
.bar.is-dark::before { background: rgba(28, 28, 34, .72); box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.bar.is-dark .bar__nav a { color: #a1a1a6; }
.bar.is-dark .bar__nav a:hover { color: var(--dark-ink); background: rgba(255, 255, 255, .08); }
.bar.is-dark .bar__nav a.is-active { color: #fff; background: var(--destacado); }
.bar.is-dark .bar__toggle span { background: var(--dark-ink); }

.bar__toggle { display: none; width: 28px; height: 20px; position: relative; z-index: 2; }
.bar__toggle span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.bar__toggle span:first-child { top: 5px; }
.bar__toggle span:last-child { top: 13px; }
.bar__toggle[aria-expanded="true"] span:first-child { top: 9px; transform: rotate(45deg); }
.bar__toggle[aria-expanded="true"] span:last-child { top: 9px; transform: rotate(-45deg); }

/* =========================================================
   Estructura general
   ========================================================= */
.block { padding: 10vh var(--gutter); }
.block--alt { background: var(--bg-2); }
.block--dark-head { padding-bottom: 0; }
.narrow { max-width: 760px; margin: 0 auto; }
.narrow p:not(.lead) { font-size: 1.15rem; color: var(--ink-2); }

.chapter-head { max-width: 1100px; margin: 0 auto 5vh; }
.chapter-head--center { text-align: center; }
.chapter-num { display: block; font-weight: 900; font-size: 1rem; color: var(--destacado); margin-bottom: .5rem; }

/* Escenas: contenedor alto + contenido pegado a la pantalla */
.scene { position: relative; height: var(--h, 200vh); }
.sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
}

/* Aparece al entrar y se va al salir */
.fade { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.fade.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Inicio
   ========================================================= */
.hero { text-align: center; will-change: transform, opacity; }
.hero__title { font-size: clamp(3.5rem, 14vw, 11rem); font-weight: 900; }
.hero .kicker, .hero .hero__sub { color: var(--ink); }
.hero__title--long { font-size: clamp(2.6rem, 8vw, 7rem); max-width: 1100px; margin-inline: auto; }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--ink-2); font-weight: 600; }
.hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; color: var(--ink-2);
}
.hint span { width: 2px; height: 36px; border-radius: 2px; background: var(--ink-2); animation: hint 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================================
   Presentación personal
   ========================================================= */
.intro {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.intro__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.intro__photo [data-parallax] { height: 120%; margin-top: -10%; object-fit: cover; width: 100%; will-change: transform; }
.intro__text p:not(.lead) { font-size: 1.15rem; color: var(--ink-2); }

/* Texto largo: la foto queda fija al costado mientras se lee */
.intro--largo { align-items: start; }
.intro--largo .intro__photo { position: sticky; top: 90px; }

/* Párrafos justificados */
.texto-justificado p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* =========================================================
   1er ciclo (en construcción)
   ========================================================= */
.wip { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.wip__cone { font-size: clamp(4rem, 12vw, 7rem); line-height: 1; animation: float 3s ease-in-out infinite; }
.wip__cone.is-wobbling { animation: wobble .6s ease; }
.wip__msg { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; min-height: 2.4em; transition: opacity .25s, transform .25s; }
.wip__msg.is-changing { opacity: 0; transform: translateY(10px); }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes wobble { 20% { transform: rotate(-15deg) scale(1.1); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }

/* =========================================================
   2do ciclo · Escuela y curso
   ========================================================= */
.escuela {
  display: flex; align-items: center; gap: 1rem;
}
.escuela__logo { width: 64px; height: auto; flex-shrink: 0; }
.escuela strong { display: block; font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.escuela span { color: var(--ink-2); font-weight: 600; }

/* Foto + texto lado a lado (La escuela / 2do ciclo) */
.foto-texto {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.foto-texto--reverse .foto-texto__foto { order: 2; }
.foto-texto__foto { margin: 0; }
.foto-texto__foto img, .foto-texto__foto .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.foto-texto__foto figcaption { margin-top: .7rem; font-weight: 800; color: var(--ink-2); }
.foto-texto .texto-justificado p:not(.lead) { font-size: 1.15rem; color: var(--ink-2); }
.escuela { margin-bottom: 1.5rem; }

/* =========================================================
   2do ciclo · Planificación
   ========================================================= */
.plan-head {
  max-width: 1100px; margin: 0 auto 3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
}
.switch { display: inline-flex; background: var(--card); padding: 4px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.switch__btn { padding: .55rem 1.2rem; border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--ink-2); transition: background .25s, color .25s; }
.switch__btn.is-active { background: var(--ink); color: var(--bg); }

.plan { max-width: 1100px; margin: 0 auto; }
.plan__view { animation: viewIn .5s cubic-bezier(.2, .7, .2, 1); }
.plan__view[hidden] { display: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } }

.plan-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.plan-meta div { background: var(--card); border-radius: 16px; padding: .7rem 1.1rem; }
.plan-meta dt { font-size: .75rem; font-weight: 800; color: var(--ink-2); }
.plan-meta dd { font-weight: 800; }

.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.plan-card { background: var(--card); border-radius: var(--radius); padding: 1.75rem; }
.plan-card__num {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-weight: 900; font-size: .95rem; margin-bottom: 1rem;
}
.plan-card h4 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: .6rem; }
.plan-card ul { list-style: none; display: grid; gap: .45rem; }
.plan-card li { padding-left: 1.1rem; position: relative; color: var(--ink-2); }
.plan-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Cuadro clásico */
.plan-table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; }
.plan-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .95rem; }
.plan-table caption { text-align: left; padding: .9rem 1rem; font-size: .9rem; border: 1px solid #999; border-bottom: 0; }
.plan-table caption span { margin-right: 1.5rem; }
.plan-table th, .plan-table td { border: 1px solid #999; padding: .75rem; vertical-align: top; text-align: left; }
.plan-table th { background: #eee; font-weight: 800; }
.plan-table ul { padding-left: 1.1rem; }

/* =========================================================
   2do ciclo · Trayectoria
   ========================================================= */
.sticky--path { display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 5vh, 3rem); }
.path-head { text-align: center; }
.path { --n: 8; width: 100%; max-width: 1000px; display: grid; grid-template-columns: repeat(var(--n), 1fr); row-gap: 1.1rem; }
.path__phase {
  grid-row: 1; margin: 0 4px; padding-bottom: .5rem;
  text-align: center; font-size: clamp(.7rem, 1.6vw, .9rem); font-weight: 800; color: var(--c);
  border-bottom: 3px solid var(--c); opacity: .35; transition: opacity .4s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.path__phase.is-active { opacity: 1; }
/* Leyenda de fases: solo en pantallas chicas, donde los nombres no entran arriba */
.path__legend { display: none; grid-row: 3; grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; font-weight: 800; }
.path__legend span { display: inline-flex; align-items: center; gap: .4rem; color: var(--c); }
.path__legend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.path__rail {
  grid-row: 2; grid-column: 1 / -1; align-self: center;
  height: 3px; border-radius: 3px; background: var(--line);
  margin: 0 calc(100% / (var(--n) * 2));
  position: relative;
}
.path__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--fase-1), var(--fase-2), var(--fase-3));
  transform-origin: left; transform: scaleX(0); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.path__dot {
  grid-row: 2; justify-self: center; z-index: 1;
  width: clamp(28px, 4vw, 40px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--line); color: var(--ink-2);
  font-weight: 900; font-size: .85rem;
  transition: background .3s, border-color .3s, color .3s, transform .3s, box-shadow .3s;
}
.path__dot.is-done { background: var(--c); border-color: var(--c); color: #fff; }
.path__dot.is-active { transform: scale(1.25); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); }

.path-card {
  width: 100%; max-width: 620px; min-height: 200px;
  background: var(--card); border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .04);
}
.path-card.is-in { animation: viewIn .45s cubic-bezier(.2, .7, .2, 1); }
.path-card__top { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.path-card__top .pill { background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.path-card__top small { color: var(--ink-2); font-weight: 700; }
.path-card h4 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: .5rem; }
.path-card p { color: var(--ink-2); }

/* =========================================================
   Carta personal
   ========================================================= */
.letter {
  max-width: 680px; margin: 0 auto;
  background: var(--card); border-radius: 8px;
  padding: clamp(2rem, 6vw, 4rem);
  font-size: 1.15rem; line-height: 1.8;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .3);
}
.letter.fade { transform: translateY(80px) rotate(-3deg); }
.letter.fade.is-visible { transform: none; }
.letter__to { font-weight: 800; font-size: 1.35rem; margin-bottom: 1.5rem; }
.letter__sign { margin-top: 2.5rem; }
.letter__sign strong { font-size: 1.6rem; font-weight: 900; }

/* =========================================================
   Cierre oscuro: proyección + autoevaluación
   ========================================================= */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .pill { background: rgba(255, 255, 255, .08); }

.big-text { max-width: 1000px; font-size: clamp(2rem, 5.2vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.big-text .w { opacity: .12; transition: opacity .15s linear; }
.big-text--center { text-align: center; }

/* Texto de bienvenida, justificado */
.block--flush-top { padding-top: 0; }
.manifesto__title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.12;
  text-align: center; margin-bottom: 2.5rem;
}
.manifesto p {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.75;
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
.manifesto p + p { margin-top: 1.4em; }
.manifesto p.manifesto__cta {
  margin-top: 2.5rem; text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--destacado); hyphens: none;
}

.stack { max-width: 900px; margin: 0 auto; }
.stack__card {
  position: sticky; top: calc(16vh + var(--i) * 20px);
  min-height: 45vh; margin-bottom: 5vh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .75rem;
  padding: clamp(1.75rem, 5vw, 3rem); border-radius: calc(var(--radius) + 6px);
  background: var(--dark-2);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  transform-origin: center top; will-change: transform;
}
.stack__card:last-child { margin-bottom: 0; }
.stack__card h3 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.stack__card p { color: #a1a1a6; font-size: 1.15rem; max-width: 560px; }

.thanks { min-height: 50vh; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter); }
.thanks__title { font-size: clamp(4rem, 16vw, 12rem); font-weight: 900; }
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding: 2rem var(--gutter); font-size: .85rem; color: #6e6e73;
  border-top: 1px solid var(--dark-2);
}

/* Tarjeta de la trayectoria: lleva a la página de la clase */
a.path-card { display: block; color: inherit; transition: transform .3s, box-shadow .3s; }
a.path-card:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .04); }
.path-card__more { display: inline-flex; gap: .4rem; margin-top: 1.1rem; font-weight: 800; color: var(--c); }
.path-card__more span { transition: transform .3s; }
a.path-card:hover .path-card__more span { transform: translateX(4px); }

/* Presentación / 2do ciclo: foto y texto */
.intro__photo { position: relative; }

/* Transición suave al pasar de una página a otra */
@view-transition { navigation: auto; }

/* =========================================================
   Página de clase
   ========================================================= */
.btn-back {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 2.5rem; padding: .6rem 1.2rem; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, var(--card));
  color: var(--ink); font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  transition: transform .2s, background .2s;
}
.btn-back:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 24%, var(--card)); }
.btn-back span { transition: transform .2s; }
.btn-back:hover span { transform: translateX(-3px); }

.clase-hero {
  padding: 14vh var(--gutter) 6vh; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--bg)), var(--bg));
}
.clase-hero h1 { font-size: clamp(2.75rem, 8vw, 6.5rem); font-weight: 900; max-width: 1000px; margin: 1.25rem auto 0; }
.clase-hero__top { display: flex; justify-content: center; align-items: center; gap: .75rem; }
.clase-hero__top .pill { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.clase-hero__top small { color: var(--ink-2); font-weight: 700; }

.mini-path { margin-bottom: 2.5rem; }
.mini-path__label { font-size: .8rem; font-weight: 800; color: var(--ink-2); margin-bottom: .6rem; }
.mini-path__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; }
.mini-path a {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-size: .9rem; color: var(--c);
  background: var(--card); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .2s, background .2s, color .2s;
}
.mini-path a:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--c) 15%, var(--card)); }
.mini-path a.is-current { background: var(--c); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); transform: scale(1.1); }
/* Globito con el tema al pasar el mouse */
.mini-path a::after {
  content: attr(data-tema);
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 4px);
  background: var(--ink); color: var(--bg);
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  padding: .35rem .75rem; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.mini-path a:hover::after { opacity: 1; transform: translate(-50%, 0); }
.path__hint { text-align: center; font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-top: -.5rem; }

.clase-cover { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.clase-cover__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 40px; transform-origin: center top; will-change: transform; }
.clase-cover__frame img { width: 100%; height: 100%; object-fit: cover; }
.clase-cover figcaption, .bento figcaption { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.clase-cover figcaption { text-align: center; margin-top: .9rem; }

.clase-text { padding: 8vh var(--gutter) 6vh; }
.clase-text p:not(.lead) { font-size: 1.15rem; color: var(--ink-2); }

/* Galería "bento": combina fotos grandes y chicas */
.bento {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 8vh;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 1rem;
}
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius); grid-column: span 2; grid-row: span 2; margin: 0; }
/* Filas de a dos: [grande][chica] / [chica][grande]; si sobra una foto, ocupa todo el ancho */
.bento__item:nth-child(4n + 1), .bento__item:nth-child(4n + 4) { grid-column: span 4; }
.bento .bento__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bento--n1 .bento__item { grid-row: span 3; }
.bento__item img, .bento__item .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bento__item:hover img { transform: scale(1.04); }
.bento__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff;
  opacity: 0; transition: opacity .3s;
}
.bento__item:hover figcaption { opacity: 1; }
.is-zoomable { cursor: zoom-in; }

.clase-nav { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 8vh; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.clase-nav a {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--bg-2); border-radius: var(--radius); padding: 2rem;
  transition: transform .3s, background .3s;
}
.clase-nav a:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--bg-2)); }
.clase-nav small { font-weight: 800; color: var(--c, var(--accent)); }
.clase-nav strong { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.clase-nav__next { text-align: right; }

.footer--light { color: var(--ink-2); border-top: 1px solid var(--line); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 12, 16, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 2rem; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 80vh; max-width: 100%; object-fit: contain; border-radius: 12px; }
.lightbox p { color: #ddd; font-weight: 600; text-align: center; }
.lightbox__close { position: absolute; top: 1rem; right: 1.25rem; color: #fff; font-size: 2.5rem; line-height: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1050px) {
  .bar__toggle { display: block; }
  .bar__nav {
    position: fixed; inset: 0; height: 100vh;
    background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .bar__nav.is-open { opacity: 1; pointer-events: auto; }
  .bar__nav a { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
  .bar.is-dark .bar__nav { background: var(--dark); }
  .bar.is-dark .bar__nav a { color: var(--dark-ink); }
}

@media (max-width: 760px) {
  .block { padding: 8vh var(--gutter); }
  .intro { grid-template-columns: 1fr; }
  .intro__photo { max-width: 420px; }
  .intro--largo .intro__photo { position: relative; top: auto; }
  .path-card { padding: 1.5rem; }
  .path__phase { font-size: 0; padding-bottom: 0; }
  .path__legend { display: flex; }
  .foto-texto { grid-template-columns: 1fr; }
  .foto-texto--reverse .foto-texto__foto { order: 0; }

  .clase-cover__frame { aspect-ratio: 4 / 3; }
  .mini-path__dots { gap: .35rem; }
  .mini-path a { width: 32px; height: 32px; font-size: .8rem; }
  .mini-path a::after { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: .6rem; }
  .bento .bento__item:nth-child(n) { grid-column: span 1; }
  .bento .bento__item:nth-child(3n + 1),
  .bento .bento__item:last-child:nth-child(3n + 2) { grid-column: 1 / -1; }
  .bento__item figcaption { opacity: 1; }
  .clase-nav { grid-template-columns: 1fr; }
  .clase-nav a { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, .letter.fade { opacity: 1; transform: none; transition: none; }
  .hint span, .wip__cone { animation: none; }
}
