/* Campus ILC · componentes reutilizables */

/* ───────── Marca (logo) ───────── */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--burgundy); flex: none; }
.brand-escudo { width: 52px; height: 52px; flex: none; color: var(--burgundy); }
.brand-ilc { width: 66px; height: 44px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; line-height: 1.12; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: var(--burgundy); border-left: 1px solid var(--burgundy-200); padding-left: 12px; }
.brand-name em { font-style: italic; }
.brand--light, .brand--light .brand-escudo, .brand--light .brand-name { color: var(--on-dark); }
.brand--light .brand-name { border-color: rgba(255,255,255,.35); }

/* ───────── Cabecera ───────── */
#shell { position: sticky; top: 0; z-index: 50; }
.app-header { position: relative; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.app-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-5); max-width: 1520px; }
.main-nav { display: flex; align-items: stretch; gap: 2px; margin-left: auto; height: 100%; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-link { display: flex; align-items: center; gap: 3px; padding: 0 10px; height: 100%; font-size: 0.93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; background: none; border: 0; position: relative; white-space: nowrap; transition: color var(--d-fast) var(--ease-out); }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--burgundy); transform: scaleX(0); transition: transform var(--d-ui) var(--ease-out); }
.nav-link:hover { color: var(--burgundy); }
.nav-link.is-active { color: var(--burgundy); font-weight: 700; }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link svg { width: 15px; height: 15px; transition: transform var(--d-ui) var(--ease-out); }
.nav-item.is-open .nav-link svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% - 6px); left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e3); padding: var(--s-2); opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; pointer-events: none; transition: opacity var(--d-ui) var(--ease-out), transform var(--d-ui) var(--ease-out); z-index: 60; }
.dropdown--right { left: auto; right: 0; transform-origin: top right; }
.is-open > .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dd-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-size: 0.93rem; line-height: 1.3; }
.dd-link:hover, .dd-link:focus-visible { background: var(--burgundy-50); color: var(--burgundy); }
.dd-link svg { width: 18px; height: 18px; color: var(--burgundy); flex: none; margin-top: 1px; }
.dd-link small { display: block; color: var(--ink-mute); font-size: 0.8rem; margin-top: 2px; }
.dd-sep { height: 1px; background: var(--line); margin: 6px 8px; }

.header-tools { display: flex; align-items: center; gap: var(--s-2); padding-left: var(--s-4); flex: none; border-left: 1px solid var(--line); height: 44px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 0; color: var(--ink-soft); transition: background var(--d-fast) var(--ease-out), color var(--d-fast); }
.icon-btn:hover { background: var(--burgundy-50); color: var(--burgundy); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--burgundy); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: var(--r-pill); background: transparent; border: 0; text-align: left; }
.user-btn:hover { background: var(--stone); }
.user-btn strong { display: block; white-space: nowrap; font-size: 0.93rem; color: var(--burgundy); line-height: 1.15; }
.user-btn span { font-size: 0.78rem; color: var(--ink-mute); }
.user-btn > svg { width: 16px; height: 16px; color: var(--ink-mute); }
.menu-toggle { display: none; }

/* El menú completo necesita ~1420 px (escudo + 7 enlaces + reloj + avisos + usuario); por debajo, menú lateral */
@media (max-width: 1423px) {
  .main-nav, .header-tools .user-btn .user-meta { display: none; }
  .menu-toggle { display: grid; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 760px) {
  .brand-name { display: none; }
  .brand-escudo { width: 40px; height: 40px; }
  .brand-ilc { width: 54px; height: 36px; }
  .header-tools { border-left: 0; padding-left: 0; }
}

/* Panel de notificaciones */
.notif-panel { width: min(400px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-head h4 { font-size: 1.15rem; }
.notif-list { max-height: 420px; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.notif:hover { background: var(--canvas); }
.notif.is-unread { background: var(--burgundy-50); }
.notif-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--stone); color: var(--burgundy); }
.notif-ico svg { width: 17px; height: 17px; }
.notif p { font-size: 0.9rem; line-height: 1.35; }
.notif time { font-size: 0.78rem; color: var(--ink-mute); }
.notif-foot { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: 0.9rem; text-decoration: none; }

/* Cajón móvil y barra inferior */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(30, 12, 6, .45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity var(--d-ui) var(--ease-out); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); z-index: 91; transform: translateX(100%); transition: transform 320ms var(--ease-out); display: flex; flex-direction: column; overflow-y: auto; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.drawer nav { padding: 8px; }
.drawer .dd-link { padding: 12px; font-size: 1rem; }
.drawer-group { padding: 14px 12px 4px; color: var(--ink-mute); }
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 0.72rem; font-weight: 600; color: var(--ink-mute); text-decoration: none; min-height: 58px; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.is-active { color: var(--burgundy); }
}

/* ───────── Botones ───────── */
.btn { --bg: var(--burgundy); --fg: #fff; --bd: var(--burgundy); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: var(--r-md); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font-weight: 600; font-size: 0.97rem; text-decoration: none; white-space: nowrap; transition: background var(--d-fast) var(--ease-out), border-color var(--d-fast), color var(--d-fast), transform 120ms var(--ease-out), box-shadow var(--d-fast); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { --bg: var(--burgundy-600); --bd: var(--burgundy-600); color: var(--fg); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--ghost { --bg: transparent; --fg: var(--burgundy); --bd: var(--burgundy); }
.btn--ghost:hover { --bg: var(--burgundy-50); --fg: var(--burgundy); --bd: var(--burgundy); }
.btn--soft { --bg: var(--burgundy-50); --fg: var(--burgundy); --bd: var(--burgundy-100); }
.btn--soft:hover { --bg: var(--burgundy-100); --fg: var(--burgundy); --bd: var(--burgundy-200); }
.btn--light { --bg: #fff; --fg: var(--burgundy); --bd: #fff; }
.btn--light:hover { --bg: var(--burgundy-50); --fg: var(--burgundy); --bd: var(--burgundy-50); }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.6); }
.btn--outline-light:hover { --bg: rgba(255,255,255,.12); --fg: #fff; --bd: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.88rem; gap: 8px; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.93rem; color: var(--burgundy); text-decoration: none; background: none; border: 0; padding: 0; }
.link svg { width: 17px; height: 17px; transition: transform var(--d-ui) var(--ease-out); }
.link:hover svg { transform: translateX(3px); }
.link:hover { color: var(--burgundy-600); }

/* ───────── Insignias y estados ───────── */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--muted-bg); color: var(--muted); white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.badge--curso { background: var(--burgundy); color: #fff; }
.badge--completado { background: var(--ok); color: #fff; }
.badge--pendiente { background: #6F6660; color: #fff; }
.badge--soft { background: var(--burgundy-50); color: var(--burgundy); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.grade { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid #BFD9CC; background: #EFF6F2; color: var(--ok); font-weight: 600; font-size: 0.98rem; }
.grade--none { border-color: var(--line-strong); background: var(--stone); color: var(--ink-soft); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; transition: all var(--d-fast) var(--ease-out); }
.chip:hover { border-color: var(--burgundy-200); color: var(--burgundy); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

/* ───────── Progreso ───────── */
.progress { height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.progress > span { display: block; height: 100%; width: var(--v, 0%); background: var(--burgundy); border-radius: inherit; transform-origin: left; animation: barIn 900ms var(--ease-out) both; }
.progress--thin { height: 5px; }
.progress--light { background: rgba(255,255,255,.22); }
.progress--light > span { background: #fff; }
.progress--ochre > span { background: var(--tile-ochre); }
.progress--green > span { background: var(--ok); }
@keyframes barIn { from { transform: scaleX(0); } }
.ring { --v: 0; --size: 112px; --track: var(--sand); --fill: var(--burgundy); width: var(--size); height: var(--size); border-radius: 50%; background: conic-gradient(var(--fill) calc(var(--v) * 1%), var(--track) 0); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ring-hole, var(--surface)); }
.ring > * { position: relative; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.ring small { font-size: 0.55em; }
@media (prefers-reduced-motion: reduce) { .progress > span { animation: none; } }

/* ───────── Tarjetas ───────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e1); }
.card-pad { padding: var(--s-6); }
.card-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--burgundy); }
.card-title svg { width: 22px; height: 22px; flex: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.card--stone { background: var(--stone); border-color: transparent; box-shadow: none; }
.card--burgundy { background: var(--burgundy); border-color: var(--burgundy); color: var(--on-dark); }
.card--burgundy h2, .card--burgundy h3, .card--burgundy .card-title { color: #fff; }
.card--link { transition: transform var(--d-ui) var(--ease-out), box-shadow var(--d-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card--link:hover { transform: translateY(-3px); box-shadow: var(--e2); }
}
.media { position: relative; overflow: hidden; background: var(--stone); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card--link:hover .media img { transform: scale(1.04); } }
.media .badge { position: absolute; top: 14px; right: 14px; }

/* Tarjeta de escuela / módulo */
.school-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.school-card .media { aspect-ratio: 16 / 10; }
.school-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.school-num { font-family: var(--font-display); color: var(--gold); font-weight: 600; font-size: 1rem; letter-spacing: .08em; }
.school-card h3 { font-size: 1.45rem; }
.school-card .meta { font-size: 0.87rem; color: var(--ink-mute); }
.school-card .prog { margin-top: auto; padding-top: 14px; }
.school-card .prog p { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 7px; }
.school-card .prog b { color: var(--ink); }
.school-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

/* Accesos rápidos */
.tile { --tile: var(--tile-burgundy); position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 22px; min-height: 104px; border-radius: var(--r-md); background: var(--tile); color: #fff; text-decoration: none; overflow: hidden; box-shadow: var(--e1); transition: transform var(--d-ui) var(--ease-out), box-shadow var(--d-ui) var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.10), transparent 55%); pointer-events: none; }
.tile svg.tile-ico { width: 44px; height: 44px; stroke-width: 1.3; flex: none; }
.tile-text { flex: 1; min-width: 0; }
.tile-text strong { display: block; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; line-height: 1.2; }
.tile-text span { display: block; font-size: 0.84rem; color: rgba(255,255,255,.78); margin-top: 3px; line-height: 1.3; }
.tile .tile-arrow { width: 22px; height: 22px; flex: none; transition: transform var(--d-ui) var(--ease-out); }
.tile:hover { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--e2); }
  .tile:hover .tile-arrow { transform: translateX(4px); }
}

/* Estadísticas */
.stat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stat-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--burgundy-50); color: var(--burgundy); display: grid; place-items: center; flex: none; }
.stat-ico svg { width: 21px; height: 21px; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--burgundy); line-height: 1; }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); line-height: 1.25; font-weight: 600; }

/* ───────── Hero de página (banda fotográfica) ───────── */
.page-hero { position: relative; color: var(--on-dark); background: var(--burgundy-800); overflow: hidden; isolation: isolate; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(38,10,4,.92) 0%, rgba(50,12,5,.78) 38%, rgba(50,12,5,.25) 70%, rgba(50,12,5,.05) 100%); }
.page-hero--burgundy::before { background: linear-gradient(90deg, rgba(93,13,0,.96) 0%, rgba(93,13,0,.86) 40%, rgba(93,13,0,.35) 75%, rgba(93,13,0,.15) 100%); }
.page-hero .wrap { position: relative; padding-top: var(--s-9); padding-bottom: var(--s-9); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); align-items: center; max-width: 1480px; }
.page-hero .kicker { display: inline-block; text-transform: uppercase; letter-spacing: .32em; font-size: 0.8rem; font-weight: 600; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.35); color: var(--on-dark-soft); }
.page-hero h1 { color: #fff; font-size: var(--t-3xl); max-width: 16ch; }
.page-hero p.sub { margin-top: 14px; font-size: var(--t-md); color: var(--on-dark-soft); max-width: 52ch; }
.page-hero .hero-quote { max-width: 300px; padding-left: var(--s-6); border-left: 1px solid rgba(255,255,255,.35); }
.hero-quote q { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.25; color: #fff; quotes: "“" "”"; }
.hero-quote cite { display: block; margin-top: 14px; font-style: normal; text-transform: uppercase; letter-spacing: .2em; font-size: 0.74rem; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .page-hero .wrap { grid-template-columns: 1fr; padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .page-hero .hero-quote { display: none; }
  .page-hero::before { background: linear-gradient(180deg, rgba(38,10,4,.55) 0%, rgba(38,10,4,.88) 100%); }
}

/* Migas de pan */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.9rem; margin-bottom: var(--s-4); color: var(--on-dark-soft); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; opacity: .7; }
.crumbs [aria-current] { color: #fff; }
.crumbs--dark { color: var(--ink-mute); }
.crumbs--dark a:hover { color: var(--burgundy); }
.crumbs--dark [aria-current] { color: var(--ink); }

/* Panel flotante que se monta sobre el hero (solapamiento = profundidad) */
.overlap { margin-top: calc(var(--s-8) * -1); position: relative; z-index: 2; }

/* ───────── Pestañas ───────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; transition: color var(--d-fast), border-color var(--d-ui) var(--ease-out), background var(--d-fast); }
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--burgundy); background: var(--burgundy-50); }
.tab[aria-selected="true"] { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.tabs--boxed { border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; display: inline-flex; }
.tabs--boxed .tab { border-bottom: 0; margin: 0; border-right: 1px solid var(--line-strong); padding: 12px 22px; }
.tabs--boxed .tab:last-child { border-right: 0; }
.tabs--boxed .tab[aria-selected="true"] { background: var(--burgundy); color: #fff; }
.tab-panel { padding-top: var(--s-6); }
.tab-panel[hidden] { display: none; }
.seg { display: inline-flex; padding: 4px; background: var(--stone); border-radius: var(--r-md); gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--burgundy); box-shadow: var(--e1); }

/* ───────── Tablas ───────── */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 700; padding: 14px 16px; background: var(--canvas); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FDFBF8; }
.table .num { text-align: right; }

/* ───────── Línea de tiempo (hitos) ───────── */
.milestones { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); position: relative; }
.milestone { position: relative; padding-top: 52px; padding-right: 10px; }
.milestone::before { content: ""; position: absolute; top: 17px; left: 36px; right: 0; height: 3px; background: var(--sand); }
.milestone:last-child::before { display: none; }
.milestone.is-done::before { background: var(--burgundy); }
.milestone .m-dot { position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; background: var(--stone); color: var(--ink-soft); border: 2px solid var(--sand); }
.milestone.is-done .m-dot { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.milestone.is-current .m-dot { background: #fff; border-color: var(--burgundy); color: var(--burgundy); box-shadow: 0 0 0 5px var(--burgundy-100); }
.milestone .m-dot svg { width: 18px; height: 18px; }
.milestone strong { display: block; font-size: 0.98rem; }
.milestone small { display: block; color: var(--ink-mute); font-size: 0.82rem; }
.milestone .m-state { color: var(--burgundy); font-weight: 700; font-size: 0.82rem; }
@media (max-width: 760px) {
  .milestones { grid-template-columns: 1fr; gap: 0; }
  .milestone { padding: 0 0 22px 52px; min-height: 58px; }
  .milestone::before { top: 36px; left: 17px; right: auto; width: 3px; height: calc(100% - 36px); }
}

/* ───────── Listas de recursos ───────── */
.res-list { list-style: none; }
.res { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res-ico { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; background: var(--burgundy-50); color: var(--burgundy); }
.res-ico svg { width: 21px; height: 21px; }
.res-ico[data-kind="video"] { background: var(--info-bg); color: var(--info); }
.res-ico[data-kind="pdf"] { background: var(--danger-bg); color: var(--danger); }
.res-ico[data-kind="doc"] { background: var(--info-bg); color: var(--info); }
.res-ico[data-kind="ppt"] { background: var(--warn-bg); color: var(--warn); }
.res-ico[data-kind="link"] { background: var(--ok-bg); color: var(--ok); }
.res-body { flex: 1; min-width: 0; }
.res-body strong { display: block; font-weight: 600; font-size: 0.97rem; line-height: 1.3; }
.res-body span { font-size: 0.84rem; color: var(--ink-mute); }
.res-thumb { width: 104px; height: 68px; border-radius: var(--r-sm); overflow: hidden; flex: none; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── Citas ───────── */
.quote { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.3; color: var(--burgundy); }
.quote cite { display: block; margin-top: 8px; font-family: var(--font-text); font-style: normal; text-transform: uppercase; letter-spacing: .2em; font-size: 0.72rem; color: var(--ink-mute); }
.quote-block { padding: 18px 24px; background: var(--stone); border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: inset 3px 0 0 var(--burgundy); }

/* ───────── Avatar ───────── */
.avatar { --size: 44px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--burgundy); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--size) * .4); letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--ring { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--burgundy-200); }
.avatar--gold { background: linear-gradient(140deg, #6E1608, #3E0900); box-shadow: inset 0 0 0 2px rgba(217,196,160,.6); }

/* ───────── Formularios ───────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 0.9rem; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px var(--burgundy-100); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2366574F' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.help { font-size: 0.82rem; color: var(--ink-mute); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-mute); pointer-events: none; }
.search .input { padding-left: 44px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { accent-color: var(--burgundy); width: 18px; height: 18px; margin-top: 3px; }
.radio-card { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--d-fast), background var(--d-fast); }
.radio-card:hover { border-color: var(--burgundy-200); }
.radio-card:has(input:checked) { border-color: var(--burgundy); background: var(--burgundy-50); }
.radio-card input { accent-color: var(--burgundy); margin-top: 4px; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 28px; text-align: center; background: var(--canvas); transition: border-color var(--d-fast), background var(--d-fast); cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--burgundy); background: var(--burgundy-50); }
.dropzone svg { width: 34px; height: 34px; color: var(--burgundy); margin: 0 auto 8px; }

/* ───────── Alertas, vacíos, toasts ───────── */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--info-bg); color: var(--info); font-size: 0.93rem; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--ok { background: var(--ok-bg); color: var(--ok); }
.alert--warn { background: var(--warn-bg); color: var(--warn); }
.alert--brand { background: var(--burgundy-50); color: var(--burgundy); }
.empty { text-align: center; padding: var(--s-9) var(--s-6); color: var(--ink-mute); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--burgundy-200); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
@media (max-width: 760px) { .toasts { left: 12px; right: 12px; bottom: 76px; } }
.toast { display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 420px; padding: 14px 18px; border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: var(--e3); font-size: 0.93rem; pointer-events: none; animation: toastIn 320ms var(--ease-out) both; }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--gold-soft); }
.toast.is-out { animation: toastOut 220ms var(--ease-out) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ───────── Modal ───────── */
.modal-root { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(30, 12, 6, .5); opacity: 0; animation: fadeIn 220ms var(--ease-out) forwards; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e3); animation: modalIn 320ms var(--ease-out) both; }
.modal--wide { width: min(820px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { font-size: 1.5rem; color: var(--burgundy); }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--canvas); }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ───────── Banda de cierre (pie institucional) ───────── */
.closing { position: relative; margin-top: var(--s-10); padding: var(--s-8) 0 var(--s-7); overflow: hidden; }
.closing .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-6); max-width: 1480px; }
.closing .script { font-size: 1.7rem; color: var(--burgundy-200); line-height: 1.1; transform: rotate(-6deg); }
.closing .values { display: flex; align-items: center; gap: 18px; color: var(--burgundy); text-transform: uppercase; letter-spacing: .32em; font-size: 0.82rem; font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.closing .values i { width: 3px; height: 3px; border-radius: 50%; background: var(--burgundy); display: inline-block; }
.closing .values::before, .closing .values::after { content: ""; width: 120px; height: 1px; background: var(--burgundy-200); }
.closing .escudo-wm { justify-self: end; width: 96px; color: var(--burgundy-200); }
@media (max-width: 900px) {
  .closing .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .closing .values::before, .closing .values::after { width: 28px; }
  .closing .values { gap: 10px; letter-spacing: .2em; font-size: 0.72rem; }
  .closing .escudo-wm { justify-self: center; width: 64px; }
}

/* ───────── Utilidades ───────── */
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.wrap-row { flex-wrap: wrap; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.divider { height: 1px; background: var(--line); margin: var(--s-5) 0; border: 0; }
.vr { width: 1px; align-self: stretch; background: var(--line); }
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none !important; } }

/* ───────── Hora oficial del campus (Venezuela) ───────── */
.reloj { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.86rem; white-space: nowrap; }
.reloj small { font-size: 0.66rem; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.reloj--header { padding: 0 12px 0 4px; margin-right: 4px; border-right: 1px solid var(--line); line-height: 44px; }
.reloj--drawer { display: flex; margin-top: 2px; font-size: 0.8rem; }
.reloj-corto { display: none; }
/* Con el menú completo visible solo cabe la hora; de 1424 a 1535 px, además, el nombre pasa al menú de usuario */
@media (min-width: 1424px) {
  .app-header .wrap { padding-inline: 32px; gap: var(--s-4); }
  .nav-link { padding: 0 8px; }
  .reloj--header { padding-right: 10px; margin-right: 0; }
  .reloj--header .reloj-full { display: none; }
  .reloj--header .reloj-corto { display: inline; }
  .reloj--header small { font-size: 0.6rem; }
}
@media (min-width: 1424px) and (max-width: 1535px) { .header-tools .user-btn .user-meta { display: none; } }
@media (max-width: 760px) { .reloj--header { display: none; } }
.dd-user { display: flex; flex-direction: column; padding: 10px 14px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.dd-user strong { color: var(--burgundy); }
.dd-user span { font-size: 0.8rem; color: var(--ink-mute); }

/* ───────── Cuenta regresiva ───────── */
.cuenta { display: inline-grid; grid-template-columns: repeat(4, minmax(58px, auto)); gap: 8px; }
.cuenta-u { display: flex; flex-direction: column; align-items: center; padding: 10px 8px 8px; border-radius: var(--r-md); background: var(--burgundy); color: #fff; box-shadow: var(--e1); }
.cuenta-u b { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.cuenta-u small { font-size: 0.66rem; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--on-dark-soft); margin-top: 4px; }
.cuenta-linea { font-variant-numeric: tabular-nums; font-weight: 600; }

.btn--wa { --bg: #0d7a55; --fg: #fff; --bd: #0d7a55; }
.btn--wa:hover { --bg: #0a6446; --fg: #fff; --bd: #0a6446; }
@media (min-width: 1536px) { .app-header .wrap { max-width: 1568px; } }
