/* Campus ILC · estilos de páginas (Inicio, Mi Formación, Curso, Ruta) */

/* ───────── Inicio ───────── */
.home-body { position: relative; z-index: 3; }
.home-intro { margin-top: calc(var(--s-9) * -1); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); align-items: center; padding: var(--s-7) var(--s-8); box-shadow: var(--e2); }
.home-intro::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 4px; background: var(--burgundy); }
.home-intro h2 { color: var(--burgundy); font-size: var(--t-xl); }
.home-intro p { margin-top: 10px; color: var(--ink-soft); font-size: 1.06rem; max-width: 70ch; }
.home-verse { margin: 0; padding-left: var(--s-8); border-left: 1px solid var(--line); text-align: center; }
.home-verse .script { font-size: 2.3rem; line-height: 1.05; color: var(--ink-soft); }
.home-verse figcaption { margin-top: 10px; color: var(--ink-mute); letter-spacing: .14em; font-size: 0.7rem; }

.home-now { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--s-6); align-items: stretch; margin-top: var(--s-8); }
.home-progress { padding: var(--s-7); display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--on-dark); position: relative; overflow: hidden; }
.home-progress::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 30px rgba(255,255,255,.03); }
.home-progress:hover { color: var(--on-dark); }
.home-progress .caps { color: var(--on-dark-soft); }
.home-progress-num { display: flex; align-items: baseline; gap: 12px; }
.home-progress-num b { font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 600; color: #fff; }
.home-progress-num span { font-style: italic; font-family: var(--font-display); font-size: 1.2rem; color: var(--on-dark-soft); }
.home-progress-prog { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--on-dark-soft); margin-top: auto; }
.home-progress-prog svg { width: 18px; height: 18px; }
.home-soon { display: flex; flex-direction: column; gap: 14px; }
.home-soon-title { font-size: 1.5rem; color: var(--burgundy); }
.home-soon-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); flex: 1; }
.soon { height: 100%; display: flex; gap: 14px; padding: 18px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.soon-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy-50); color: var(--burgundy); flex: none; }
.soon-ico svg { width: 20px; height: 20px; }
.soon-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.soon-body small { color: var(--ink-mute); font-size: 0.68rem; letter-spacing: .14em; }
.soon-body strong { font-size: 1rem; line-height: 1.3; }
.soon-body > span { color: var(--burgundy); font-weight: 600; font-size: 0.9rem; }
.soon-arrow { width: 18px; height: 18px; color: var(--ink-mute); align-self: center; }

.home-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }

.home-event { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--burgundy-800); color: var(--on-dark); box-shadow: var(--e2); }
.home-event-media { min-height: 340px; position: relative; }
.home-event-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-event-copy { padding: var(--s-9) var(--s-8); display: flex; flex-direction: column; justify-content: center; }
.home-event-copy h2 { color: #fff; margin-top: 10px; font-size: var(--t-2xl); }
.home-event-copy p { margin-top: 14px; color: var(--on-dark-soft); max-width: 46ch; }

@media (max-width: 1100px) {
  .home-now { grid-template-columns: 1fr; }
  .home-soon-list { grid-template-columns: 1fr; }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-intro { grid-template-columns: 1fr; padding: var(--s-6); gap: var(--s-5); margin-top: calc(var(--s-7) * -1); }
  .home-verse { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s-5); }
  .home-progress-num b { font-size: 3.2rem; }
  .home-tiles { grid-template-columns: 1fr; }
  .tile { min-height: 84px; padding: 16px 18px; }
  .home-event { grid-template-columns: 1fr; }
  .home-event-media { min-height: 200px; }
  .home-event-copy { padding: var(--s-7) var(--s-6); }
}

/* ───────── Mi Camino en el ILC ───────── */
.ruta-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark); background: #2a1208; }
.ruta-hero-media { position: absolute; inset: 0; z-index: -2; }
.ruta-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.08); will-change: transform; }
.ruta-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(34, 10, 4, .9) 0%, rgba(34, 10, 4, .62) 42%, rgba(34, 10, 4, .1) 75%), linear-gradient(0deg, rgba(34, 10, 4, .5), transparent 40%); }
.ruta-hero-motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; mix-blend-mode: screen; pointer-events: none; }
.ruta-hero .wrap { padding-top: var(--s-10); padding-bottom: calc(var(--s-10) + var(--s-6)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); align-items: center; max-width: 1480px; }
.ruta-hero .kicker { display: inline-block; text-transform: uppercase; letter-spacing: .34em; font-size: .8rem; font-weight: 600; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.35); color: var(--on-dark-soft); }
.ruta-hero h1 { color: #fff; font-size: var(--t-3xl); max-width: 14ch; }
.ruta-hero .sub { margin-top: 14px; font-size: var(--t-md); color: var(--on-dark-soft); max-width: 50ch; }
.ruta-hero .hero-quote { max-width: 300px; padding-left: var(--s-6); border-left: 1px solid rgba(255,255,255,.35); margin: 0; }

.ruta-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); align-items: start; padding-top: 0; }
.ruta-main { padding: var(--s-7) var(--s-7) var(--s-8); margin-top: calc(var(--s-9) * -1); box-shadow: var(--e2); }
.ruta-head { margin-bottom: var(--s-7); }
.ruta-head h2 { color: var(--burgundy); font-size: var(--t-2xl); }
.ruta-head p { margin-top: 6px; }
.ruta-side { display: flex; flex-direction: column; gap: var(--s-4); margin-top: calc(var(--s-9) * -1); position: relative; z-index: 2; }
.ruta-avance { padding: var(--s-6); }
.ruta-avance h2 { color: #fff; font-size: 1.9rem; }
.ruta-avance .caps { color: var(--on-dark-soft); letter-spacing: .12em; }
.ruta-avance-body { gap: var(--s-5); margin-top: var(--s-5); align-items: center; }
.ruta-avance .ring > span { color: #fff; }
.ruta-msg { font-size: 1.35rem; line-height: 1.2; color: #fff; margin-bottom: 6px; }
.next-step { display: flex; align-items: center; gap: 14px; padding: 14px; margin-top: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: border-color var(--d-fast), background var(--d-fast); }
.next-step:hover { border-color: var(--burgundy-200); background: var(--burgundy-50); color: var(--ink); }
.next-step > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.next-step strong { color: var(--burgundy); font-family: var(--font-display); font-size: 1.2rem; }
.next-step > svg { width: 20px; height: 20px; color: var(--burgundy); }
.next-ico { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--burgundy-50); color: var(--burgundy); }
.next-ico svg { width: 24px; height: 24px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: var(--s-4); }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 6px; background: var(--surface); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-size: .84rem; line-height: 1.25; border: 1px solid var(--line); }
.quick a:hover { border-color: var(--burgundy-200); color: var(--burgundy); }
.quick svg { width: 24px; height: 24px; color: var(--burgundy); }

/* Las etapas */
.camino { position: relative; padding: 4px 0; }
.stations { list-style: none; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-8); }
.station { grid-row: var(--r4); grid-column: var(--c4); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.st-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; background: var(--surface); color: var(--ink-mute); border: 2px solid var(--sand); position: relative; z-index: 2; transition: background 400ms var(--ease-out), color 400ms, border-color 400ms, transform 400ms var(--ease-out); }
.st-dot svg { width: 18px; height: 18px; }
.station.is-lit .st-dot { background: var(--burgundy); border-color: var(--burgundy); color: #fff; transform: scale(1.06); }
.station.is-lit.is-pendiente .st-dot { background: #fff; color: var(--burgundy); }
.st-card { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); opacity: .55; transform: translateY(6px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), border-color var(--d-fast), box-shadow var(--d-ui); }
.station.is-lit .st-card { opacity: 1; transform: none; }
.station.is-completado .st-card { background: #F4F8F5; border-color: #CFE3D7; }
.station.is-curso .st-card { border-color: var(--burgundy-200); box-shadow: var(--e1); }
a.st-card:hover { border-color: var(--burgundy); box-shadow: var(--e2); color: var(--ink); }
.st-ico { width: 34px; height: 34px; color: var(--burgundy); stroke-width: 1.3; }
.st-card strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; color: var(--burgundy); font-weight: 600; }
.st-desc { font-size: .84rem; color: var(--ink-soft); line-height: 1.3; }
.st-prog { width: 100%; margin-top: auto; padding-top: 8px; }
.st-prog small { display: block; margin-top: 6px; font-size: .78rem; color: var(--ink-mute); }
.st-prog b { color: var(--ink); }
.st-state { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ok); padding-top: 8px; }
.st-state svg { width: 18px; height: 18px; }
.you-are-here { position: absolute; left: 0; top: 0; z-index: 3; margin: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; translate: -50% calc(-100% - 22px); opacity: 0; transition: opacity 400ms var(--ease-out); box-shadow: var(--e2); }
.you-are-here::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.you-are-here b { color: var(--gold-soft); font-family: var(--font-display); font-size: 1.05rem; }
.you-are-here.is-on { opacity: 1; }

@media (max-width: 1200px) {
  .ruta-layout { grid-template-columns: 1fr; }
  .ruta-side { margin-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ruta-hero .wrap { grid-template-columns: 1fr; }
  .ruta-hero .hero-quote { display: none; }
  .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .station { grid-row: var(--r2); grid-column: var(--c2); }
}
@media (max-width: 760px) {
  .ruta-main { padding: var(--s-5) var(--s-4) var(--s-6); margin-top: calc(var(--s-7) * -1); }
  .ruta-side { grid-template-columns: 1fr; }
  .stations { grid-template-columns: 1fr; row-gap: var(--s-5); padding-left: 0; }
  .station { grid-row: auto; grid-column: auto; flex-direction: row; align-items: flex-start; gap: 14px; }
  .st-card { align-items: flex-start; text-align: left; }
  .st-ico { display: none; }
  .ruta-hero .wrap { padding-top: var(--s-8); padding-bottom: var(--s-10); }
}

/* ───────── Páginas utilitarias: Notificaciones, Soporte, Preferencias ───────── */
.simple-h1 { font-size: var(--t-2xl); color: var(--burgundy); }
.notif-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.notif-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.notif-page { list-style: none; }
.notif-row { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.notif-row:last-child { border-bottom: 0; }
.notif-row.is-unread { background: var(--burgundy-50); box-shadow: inset 3px 0 0 var(--burgundy); }
.notif-row-body { flex: 1; min-width: 0; }
.notif-row-body p { font-weight: 500; }
.notif-row-body time { font-size: .82rem; color: var(--ink-mute); }
.notif-row-actions { display: flex; gap: 6px; align-items: center; }

.support-new { padding: var(--s-7); box-shadow: var(--e2); }
.support-new-head { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.support-cats { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.support-cat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-md); text-align: center; font-size: .88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: border-color var(--d-fast), background var(--d-fast), color var(--d-fast); }
.support-cat input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.support-cat svg { width: 26px; height: 26px; color: var(--burgundy); }
.support-cat:hover { border-color: var(--burgundy-200); }
.support-cat:has(input:checked) { border-color: var(--burgundy); background: var(--burgundy-50); color: var(--burgundy); }
.support-cat:has(input:focus-visible) { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); align-items: start; }
.support-side { display: flex; flex-direction: column; gap: var(--s-4); }
.support-channels { list-style: none; margin-top: var(--s-4); display: flex; flex-direction: column; gap: 14px; }
.support-channels li { display: flex; gap: 12px; font-size: .93rem; }
.support-channels svg { width: 20px; height: 20px; color: var(--burgundy); margin-top: 2px; }
.support-channels b { display: block; }
.faqs { margin-top: var(--s-4); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--burgundy); transition: transform var(--d-ui) var(--ease-out); }
.faq[open] summary svg { transform: rotate(180deg); }
.faq p { padding: 0 0 14px; color: var(--ink-soft); font-size: .93rem; }

.prefs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.prefs-id { text-align: center; display: flex; flex-direction: column; align-items: center; }
.prefs-photo .avatar { --size: 120px; }
.prefs-toggles { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 1100px) {
  .support-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-grid, .prefs, .notif-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .support-new { padding: var(--s-5); }
  .support-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notif-row { flex-wrap: wrap; }
  .notif-row-actions { width: 100%; justify-content: flex-end; }
}
.support-grid > *, .notif-layout > *, .prefs > * { min-width: 0; }

/* Inicio · cuenta en "Próxima entrega" y aviso del Módulo 0 */
.soon-cuenta { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; margin-top: 6px; color: var(--burgundy); font-size: 0.86rem; }
.soon-cuenta svg { width: 14px; height: 14px; }
.m0-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(140px, 260px) auto; align-items: center; gap: var(--s-5); padding: 18px 24px; margin-top: var(--s-7); text-decoration: none; color: var(--ink); border-left: 4px solid var(--gold); }
.m0-banner-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy-50); color: var(--burgundy); }
.m0-banner-txt { display: flex; flex-direction: column; gap: 2px; }
.m0-banner-txt small { color: var(--ink-mute); font-size: 0.68rem; }
.m0-banner-txt strong { font-size: 1.05rem; }
@media (max-width: 760px) {
  .m0-banner { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
  .m0-banner-prog { grid-column: 1 / -1; }
  .m0-banner .link { grid-column: 1 / -1; }
}

/* Atención al Alumno · a quién escribir */
.support-new, .cu-content { scroll-margin-top: calc(var(--header-h) + 20px); }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.rol { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-top: 4px solid var(--tile); }
.rol-head { display: flex; gap: 12px; align-items: center; }
.rol-head h3 { font-size: 1.25rem; line-height: 1.2; }
.rol-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--tile); font-size: 0.68rem; }
.rol-kicker svg { width: 14px; height: 14px; }
.rol-temas { list-style: none; display: grid; gap: 6px; font-size: 0.93rem; }
.rol-temas li { display: flex; gap: 8px; align-items: flex-start; }
.rol-temas svg { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.rol-plazo { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); margin-top: auto; }
.rol-plazo svg { width: 14px; height: 14px; }
.rol-acc { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1180px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .roles { grid-template-columns: minmax(0, 1fr); } }
