/* Campus FOCUS · base compartida por las tres propuestas de portada */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("../marca/fuentes/Archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("../marca/fuentes/Archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("../marca/fuentes/Archivo-800.woff2") format("woff2"); }

:root {
  --bg: #080705;
  --rail: #0C0A07;
  --panel: #12100B;
  --panel-2: #1B1810;
  --line: #2E2A1B;
  --line-soft: #1F1C13;
  --text: #FFFFFF;
  --text-2: #D2CBB7;
  --text-3: #9C947D;
  --gold: #F7C536;
  --gold-deep: #B98F14;
  --gold-ink: #0B0903;
  --gold-wash: rgba(247, 197, 54, .10);
  /* Los colores de las sesiones son los del indicador FOCUS Sessions */
  --asia: #F7C536;
  --londres: #6AA6FF;
  --ny: #FF6A57;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: #3A3524 var(--bg); scrollbar-width: thin; }
body {
  margin: 0;
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 "Archivo", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
}
/* El resplandor dorado de la apertura de las lecciones */
body::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 440px; pointer-events: none;
  background-image: radial-gradient(70% 380px at 50% -120px, rgba(247, 197, 54, .17), transparent 72%);
}
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h1 { font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -.012em; text-wrap: balance; }
h3 { font-weight: 600; font-size: 16px; line-height: 1.3; }
.lead { color: var(--text-2); font-size: 17px; max-width: 46ch; margin-top: 10px; }
.meta { color: var(--text-3); font-size: 13.5px; line-height: 1.45; }
.link { color: var(--gold); font-weight: 600; font-size: 14.5px; text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }

/* Rótulos, como los de las lecciones */
.rotulo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px; border-radius: 7px;
  font-weight: 800; font-size: 11.5px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase;
  background: #211E15; color: var(--text); border: 0; box-shadow: inset 0 -2px 0 #4A4430; white-space: nowrap;
}
.rotulo--oro { background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 -2px 0 var(--gold-deep); }
.rotulo i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rotulo--londres i { background: var(--londres); }
.rotulo--ny i { background: var(--ny); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 11px;
  font: 800 16px/1 "Archivo", sans-serif; letter-spacing: -.005em; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn--oro { background: var(--gold); color: var(--gold-ink); border: 0; border-bottom: 3px solid var(--gold-deep); }
.btn--oro:hover { background: #FFD456; }
.btn--oro:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn--linea { background: transparent; color: var(--text); border: 1px solid #45402B; }
.btn--linea:hover { border-color: var(--gold); }
.btn--s { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 9px; }

/* Barra de avance */
.avance { height: 4px; border-radius: 2px; background: #2B2718; overflow: hidden; }
.avance > span { display: block; height: 100%; width: var(--p, 0%); background: var(--gold); border-radius: 2px; }

/* Armazón: móvil */
.app { min-height: 100dvh; }
.main { padding: 4px 20px 104px; display: grid; gap: 34px; }
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.cabecera__logo { height: 26px; width: auto; }
.cabecera__der { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--text);
}
.menu-inf {
  position: fixed; inset: auto 0 0 0; z-index: 5;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line-soft);
}
.menu-inf a { display: grid; justify-items: center; gap: 4px; padding: 4px 0; font-weight: 600; font-size: 11.5px; color: var(--text-3); }
.menu-inf svg, .rail svg, .arriba svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.menu-inf a[aria-current] { color: var(--gold); }
.rail, .arriba { display: none; }

/* La ruta: las 7 fases como una escalera que solo sube */
.ruta svg { width: 100%; height: auto; overflow: visible; }
.ruta .tramo { fill: none; stroke: #3B3625; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ruta .tramo--hecho { stroke: var(--gold); stroke-width: 2.5; }
.ruta .est { fill: var(--bg); stroke: #57503A; stroke-width: 1.5; }
.ruta .est--hecha { fill: var(--gold); stroke: var(--gold); }
.ruta .est--actual { fill: var(--bg); stroke: var(--gold); stroke-width: 2.5; }
.ruta .halo { fill: var(--gold); opacity: .16; }
.ruta .nucleo { fill: var(--gold); }
.ruta .cima { opacity: .5; }
.ruta .cima--viva { opacity: 1; }
/* El único movimiento de la portada: el tramo recorrido se dibuja al entrar */
.ruta .tramo--hecho { stroke-dasharray: 1; animation: trazar 1.2s var(--ease) both; }
@keyframes trazar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ruta text { font: 600 11.5px "Archivo", sans-serif; fill: var(--text-3); text-anchor: middle; }
.ruta text.aqui { font-weight: 800; fill: var(--text); }
.ruta a:hover .est { stroke: var(--gold); }
.ruta__fase { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 10px; }
.ruta__fase strong { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.ruta__cuenta { margin-top: 4px; color: var(--text-2); font-size: 15px; }
.ruta__cuenta b { color: var(--text); font-weight: 800; }

/* La mentoría 1 a 1: cerrada hasta aprobar los repasos */
.mentoria__cab { display: flex; align-items: center; gap: 10px; }
.mentoria__cab svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mentoria p { color: var(--text-2); font-size: 15px; margin: 8px 0 14px; max-width: 46ch; }
.mentoria p b { color: var(--text); font-weight: 600; }

/* En el campus: lo último y lo siguiente */
.resumen__grupo { margin-top: 18px; color: var(--text-3); font-weight: 600; font-size: 14px; }
.resumen__grupo:first-of-type { margin-top: 6px; }
.suceso { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 13px 2px; }
.suceso b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.suceso .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.sig__pie .meta .rotulo { margin-right: 6px; }
.rail__yo .rotulo { margin-top: 4px; }
a.suceso:hover b { color: var(--gold); }

/* Tarjeta de título de la lección, de la familia de los vídeos */
.titulo-video {
  position: relative; display: grid; align-content: end; justify-items: center; text-align: center;
  aspect-ratio: 16 / 9; padding: 0 7% 9%; border-radius: var(--r-l); overflow: hidden;
  background: radial-gradient(46% 62% at 50% 26%, rgba(247, 197, 54, .30), transparent 72%), #000;
  border: 1px solid var(--line); container-type: inline-size;
}
.titulo-video img { position: absolute; top: 8%; left: 50%; width: 26%; transform: translateX(-50%); }
.titulo-video h2, .titulo-video strong { position: relative; font-weight: 800; font-size: clamp(17px, 6.2cqw, 40px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.titulo-video em { font-style: normal; color: var(--gold); }
.titulo-video .avance { position: absolute; inset: auto 0 0 0; border-radius: 0; }
.play {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--panel-2); color: var(--gold); border: 1px solid #45402B;
}
.play--oro { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.fila:hover .play { border-color: var(--gold); }
.play svg { width: 16px; height: 16px; margin-left: 2px; }

/* Listas de trabajo */
.filas > li + li { border-top: 1px solid var(--line-soft); }
.fila { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 2px; }
.fila:hover h3 { color: var(--gold); }
.fila__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--text-3); border: 1px solid #45402B; }
.fila__n--hecho { background: #2A2618; border-color: #2A2618; color: var(--gold); }
.fila__n--actual { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.fila__n svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fila .meta { margin-top: 2px; }
.fila__fin { color: var(--text-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.seccion__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Armazón: escritorio */
@media (min-width: 900px) {
  .cabecera, .menu-inf { display: none; }
  .app--rail { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .rail {
    display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100dvh;
    padding: 30px 18px 22px; background: var(--rail); border-right: 1px solid var(--line-soft);
  }
  .rail__logo { width: 108px; margin: 0 0 4px 10px; }
  .rail nav { display: grid; gap: 2px; }
  .rail nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text-2); }
  .rail nav a:hover { background: var(--panel); color: var(--text); }
  .rail nav a[aria-current] { background: var(--panel-2); color: var(--text); }
  .rail nav a[aria-current] svg { color: var(--gold); }
  .rail__yo { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px 8px 0; border-top: 1px solid var(--line-soft); }
  .rail__yo b { display: block; font-weight: 600; font-size: 14.5px; }
  .main { padding: 46px clamp(28px, 4vw, 60px) 72px; gap: 44px; max-width: 1180px; }
  h2 { font-size: 22px; }
}
