/* =============================================================================
   como-se-cursa.css · Página «Cómo se cursa» (rediseño del 27/09/2026)

   Se carga después de portal.css y portal-refinamientos-v5.css: usa sus
   tokens, header, menú, footer, botones y flotantes, y agrega sólo lo propio.
   La página es la contracara del resto del portal: grandes campos de color,
   tipografía protagonista y muy pocos elementos. Tres cambios de ritmo:
   01 dos campos enfrentados (claro | oscuro) · 02 una escala sobre papel ·
   03 una pausa en negro y después el PPA. Cierre en rojo.
   Colores y familias: DISEÑO-PORTAL-2026.md §5–6. Sin pesos nuevos (500).
   ========================================================================== */

.page--cursa {
  --header-field: var(--black);
  --cs-max: 1280px;
  --cs-ease: cubic-bezier(.2, .7, .2, 1);
  --cs-soft-dark: #C7C5C1;   /* secundario sobre negro (V5) */
  background: var(--black);
}
/* El flotante «Ver los programas», oscuro como en la home: la página abre en negro. */
.page--cursa .programs-float { background: var(--black); color: #ddd; border-color: var(--border-dark); }
.page--cursa .programs-float:hover { color: var(--white); }

.cs-wrap {
  width: min(var(--cs-max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* Rótulo numerado de cada sección ------------------------------------------ */
.cs-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--v5-muted);
}
.cs-num { color: var(--red); margin-right: .7em; letter-spacing: .08em; }
.cs-label--dark { color: var(--cs-soft-dark); }
.cs-label--dark .cs-num,
.cs-open .cs-num { color: var(--gold); }

/* Firma: la marca del sistema, subordinada al título y al texto ------------ */
.cs-sign {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .04em;
  color: var(--v5-muted);
}
.cs-sign::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* =============================================================================
   Apertura
   ========================================================================== */
.cs-open {
  background: var(--black);
  color: var(--white);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
}
.cs-open__inner {
  width: min(var(--cs-max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(3rem, 10vh, 7rem) clamp(6rem, 13vh, 8rem);
}
.cs-open__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 1rem + 12.5vw, 13rem);
  line-height: .86;
  letter-spacing: -.055em;
  color: var(--white);
}
.cs-open__title .cs-in { display: block; }
.cs-open__title .cs-in--2 { padding-left: .06em; }

.cs-open__rule {
  display: block;
  height: 2px;
  margin-top: clamp(2rem, 6vh, 3.75rem);
  background: var(--gold);
  transform-origin: left center;
}

.cs-open__index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
}
.cs-open__index a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .9rem;
  row-gap: .2rem;
  align-content: start;
  min-height: 44px;
}
.cs-open__index .cs-num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: .8125rem;
  line-height: 1.9;
  margin: 0;
}
.cs-open__what {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--white);
  transition: color .2s ease;
}
.cs-open__how { color: var(--cs-soft-dark); font-size: .9375rem; line-height: 1.5; }
.cs-open__index a:hover .cs-open__what,
.cs-open__index a:focus-visible .cs-open__what { color: var(--gold); }
.cs-open :focus-visible { outline-color: var(--gold); }

/* Entrada de la apertura: sólo CSS, una vez, sin bloquear el scroll. */
@keyframes cs-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cs-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js-reveal .cs-in { animation: cs-rise .9s var(--cs-ease) both; }
.js-reveal .cs-in--2 { animation-delay: .15s; }
.js-reveal .cs-in--3 { animation-delay: 1.05s; }
.js-reveal .cs-in--4 { animation-delay: 1.15s; }
.js-reveal .cs-in--5 { animation-delay: 1.25s; }
.js-reveal .cs-open__rule { animation: cs-draw 1.1s cubic-bezier(.65, 0, .35, 1) .45s both; }

/* =============================================================================
   01 · Cómo cursás — dos campos enfrentados
   ========================================================================== */
.cs-modes { position: relative; background: var(--paper); }
.cs-modes__label {
  position: absolute;
  z-index: 1;
  top: clamp(1.75rem, 4vw, 2.75rem);
  left: max(var(--gutter), calc((100% - var(--cs-max)) / 2));
  color: var(--black);
}

.cs-modes__pair { display: grid; grid-template-columns: 1fr 1fr; }

.cs-mode {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3.5rem;
  min-height: clamp(36rem, 92vh, 58rem);
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) clamp(3rem, 7vh, 4.5rem);
}
.cs-mode--live {
  background: var(--paper);
  color: var(--black);
  padding-left: max(var(--gutter), calc((100vw - var(--cs-max)) / 2));
}
.cs-mode--own {
  background: var(--black);
  color: var(--white);
  padding-right: max(var(--gutter), calc((100vw - var(--cs-max)) / 2));
}

.cs-mode__title { font-family: var(--font-display); font-weight: 500; }
.cs-mode__verb {
  display: block;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--v5-muted);
}
.cs-mode--own .cs-mode__verb { color: var(--cs-soft-dark); }
.cs-mode__word {
  display: block;
  margin-top: .15em;
  font-size: clamp(3.5rem, 1rem + 7vw, 8.75rem);
  line-height: .9;
  letter-spacing: -.055em;
}

.cs-mode__body { max-width: 30rem; }
.cs-mode__text { font-size: var(--text-body-lg); line-height: 1.6; }
.cs-mode__aside { margin-top: 1rem; font-size: .9375rem; color: var(--v5-muted); }
.cs-mode--own .cs-mode__aside,
.cs-mode--own .cs-sign { color: var(--cs-soft-dark); }
.cs-mode--own :focus-visible { outline-color: var(--gold); }

.cs-modes__note {
  background: var(--white);
  border-top: 1px solid var(--v5-line);
  padding: clamp(2.5rem, 6vw, 4.5rem) max(var(--gutter), calc((100% - var(--cs-max)) / 2));
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.375rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--black);
}
.cs-modes__note span { color: var(--red); }

/* =============================================================================
   02 · Cómo te acompañamos — una escala sobre papel
   ========================================================================== */
.cs-support {
  background: var(--paper);
  color: var(--black);
  padding-block: clamp(5rem, 11vw, 9.5rem);
}
.cs-support__title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 1rem + 5vw, 6rem);
  line-height: .98;
  letter-spacing: -.05em;
  color: var(--black);
}
.cs-support__title span { display: block; }
@media (max-width: 899.98px) { .cs-support__title span { display: inline; } }
.cs-support__lead {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 34rem;
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--v5-muted);
}

.cs-scale { position: relative; margin-top: clamp(4rem, 8vw, 7rem); }
.cs-scale__ends {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--v5-muted);
}
.cs-scale__line {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--v5-line), var(--red));
  transform-origin: left center;
}
.js-reveal .cs-scale__line { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.65, 0, .35, 1) .2s; }
.js-reveal .cs-scale.is-in .cs-scale__line { transform: none; }

.cs-scale__stops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 6rem);
}
.cs-stop { position: relative; padding-top: 2.75rem; max-width: 30rem; }
.cs-stop::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--mid);
  box-sizing: border-box;
}
.cs-stop + .cs-stop::before { border-color: var(--red); background: var(--red); }
.cs-stop__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--black);
}
.cs-stop p:not(.cs-sign) { margin-top: .9rem; font-size: 1.0625rem; line-height: 1.6; color: #3a3935; }
.cs-stop .cs-sign { margin-top: 1.75rem; }

.cs-support__note {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--v5-line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.4;
  color: var(--black);
}

/* =============================================================================
   03 · Tu profesor personal — cambio de ritmo
   ========================================================================== */
.cs-ppa { background: var(--black); color: var(--white); }
.cs-ppa :focus-visible { outline-color: var(--gold); }

.cs-ppa__pause {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(32rem, 96vh, 60rem);
  padding-block: clamp(5rem, 10vw, 8rem);
}
.cs-ppa__title {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 1rem + 9.2vw, 12rem);
  line-height: .92;
  letter-spacing: -.055em;
  color: var(--white);
}
.cs-mark {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 100% .075em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: .04em;
}
.js-reveal .cs-mark { background-size: 0% .075em; transition: background-size 1s cubic-bezier(.65, 0, .35, 1) .7s; }
.js-reveal .cs-ppa__title.is-in .cs-mark { background-size: 100% .075em; }

.cs-ppa__body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-top: 1px solid var(--hairline-dark);
}
.cs-ppa__name { position: sticky; top: calc(var(--header-h) + 2rem); }
.cs-ppa__acr {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(6rem, 1rem + 15vw, 16rem);
  line-height: .8;
  letter-spacing: -.06em;
  color: var(--gold);
}
.cs-ppa__full {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--white);
}

.cs-ppa__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-dark); }
.cs-ppa__list li {
  padding-block: clamp(1.25rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--hairline-dark);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
}
.cs-ppa__channels { margin-top: 1.5rem; font-size: 1rem; color: var(--cs-soft-dark); }

.cs-ppa__end {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  padding-bottom: clamp(5rem, 12vw, 10rem);
}
.cs-ppa__end > * { grid-column: 2; }
.cs-ppa__not {
  max-width: 28ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -.03em;
  color: var(--white);
}
.cs-ppa__always {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  color: var(--gold);
}

/* =============================================================================
   Cierre
   ========================================================================== */
.cs-close {
  background: var(--red);
  color: var(--white);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.cs-close__title {
  max-width: 17ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1rem + 4.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--white);
}
.cs-close__title span { display: block; color: rgba(255, 255, 255, .78); }
.cs-close__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.cs-close :focus-visible { outline-color: var(--white); }

/* =============================================================================
   Revelado al entrar (una vez). Sin JS, todo visible; con JS, el <head>
   revela todo a los 4 s aunque este script no llegue.
   ========================================================================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--cs-ease), transform .7s var(--cs-ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* =============================================================================
   Responsive · corte institucional 900 px
   ========================================================================== */
@media (max-width: 899.98px) {
  .cs-open__index { grid-template-columns: 1fr; gap: 0; }
  .cs-open__index a { padding-block: .9rem; border-top: 1px solid var(--hairline-dark); }
  .cs-open__index a:first-child { border-top: 0; }

  .cs-modes__pair { grid-template-columns: 1fr; }
  .cs-mode {
    min-height: 0;
    padding: clamp(5.5rem, 16vw, 7rem) var(--gutter) 3.5rem;
    gap: 2.5rem;
  }
  .cs-mode--own { padding-top: 3.5rem; }
  .cs-mode__word { font-size: clamp(3.5rem, 1rem + 12vw, 6.5rem); }

  /* La escala se vuelve vertical: arriba, más autonomía; abajo, más seguimiento. */
  .cs-scale { padding-left: 2.25rem; }
  .cs-scale__ends {
    position: absolute;
    inset: 0 auto 0 2.25rem;
    flex-direction: column;
    margin: 0;
    pointer-events: none;
  }
  .cs-scale__line {
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--v5-line), var(--red));
    transform-origin: center top;
  }
  .js-reveal .cs-scale__line { transform: scaleY(0); }
  .cs-scale__stops { grid-template-columns: 1fr; row-gap: 3rem; padding-block: 3rem; }
  .cs-stop { padding-top: 0; }
  .cs-stop::before { top: .55rem; left: calc(-2.25rem - 0px); }

  .cs-ppa__pause { min-height: 0; padding-block: 6rem 5rem; }
  .cs-ppa__body { grid-template-columns: 1fr; }
  .cs-ppa__name { position: static; }
  .cs-ppa__end { grid-template-columns: 1fr; }
  .cs-ppa__end > * { grid-column: 1; }
}

@media (max-width: 480px) {
  .cs-support__title { font-size: 2.35rem; }
  .cs-close__actions { flex-direction: column; }
  .cs-close__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal,
  .js-reveal .cs-in,
  .js-reveal .cs-open__rule { opacity: 1; transform: none; transition: none; animation: none; }
  .js-reveal .cs-scale__line { transform: none; transition: none; }
  .js-reveal .cs-mark { background-size: 100% .075em; transition: none; }
}
