/* Academic Horizon: estilos locales para las páginas públicas de consulta.
   Se carga desde cada vista; no modifica el encabezado ni el menú del portal. */
.horizon-page {
    --hp-surface:#fff; --hp-canvas:#f8fafc; --hp-ink:#172033; --hp-muted:#64748b;
    --hp-line:#e2e8f0; --hp-accent:#0284c7; --hp-soft:#f0f9ff; --hp-edge:#bae6fd;
    width:100%; max-width:1320px; min-width:0; margin:0 auto;
    color:var(--hp-ink); font-family:Inter,Arial,sans-serif; font-size:14px; line-height:1.6;
}
.horizon-violet { --hp-accent:#7c3aed; --hp-soft:#faf5ff; --hp-edge:#e9d5ff; }
.horizon-amber { --hp-accent:#c2410c; --hp-soft:#fff7ed; --hp-edge:#fed7aa; }
.horizon-green { --hp-accent:#15803d; --hp-soft:#f0fdf4; --hp-edge:#bbf7d0; }
.horizon-rose { --hp-accent:#be185d; --hp-soft:#fff1f2; --hp-edge:#fecdd3; }
.horizon-page * { box-sizing:border-box; }
.horizon-page :is(h1,h2,h3,h4,p) { margin:0; }
.horizon-page :is(button,input,select) { font:inherit; }
.horizon-page button { cursor:pointer; }
.horizon-page button:disabled { cursor:default; opacity:.55; }
.horizon-page :is(a,button,input,select,summary):focus-visible { outline:3px solid #38bdf8; outline-offset:3px; }
.horizon-page svg.hp-svg { display:block; width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; }
.hp-hero { display:flex; position:relative; isolation:isolate; overflow:hidden; align-items:center; gap:20px; padding:28px 30px; margin-bottom:22px; border:1px solid var(--hp-edge); border-radius:18px; background:linear-gradient(110deg,var(--hp-surface) 25%,var(--hp-soft)); }
.hp-hero::before { content:''; position:absolute; z-index:-1; inset:0 0 0 50%; background-image:radial-gradient(var(--hp-edge) 1.3px,transparent 1.3px); background-size:18px 18px; mask-image:linear-gradient(90deg,transparent,#000); }
.hp-hero::after { content:''; position:absolute; z-index:-1; right:35px; top:-65px; width:180px; height:220px; border:20px solid var(--hp-edge); opacity:.35; border-radius:35px; transform:rotate(30deg); }
.hp-hero-icon { display:grid; place-items:center; width:58px; height:58px; flex-shrink:0; border:1px solid var(--hp-edge); border-radius:17px; background:var(--hp-surface); color:var(--hp-accent); box-shadow:0 3px 8px #0f172a06; }
.hp-hero-icon .hp-svg { width:29px; height:29px; }
.hp-eyebrow { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:7px; font-size:10px; letter-spacing:.06em; font-weight:700; text-transform:uppercase; color:var(--hp-accent); }
.hp-eyebrow span { padding:2px 8px; background:var(--hp-soft); border:1px solid var(--hp-edge); border-radius:20px; }
.hp-eyebrow small { font-size:10px; color:var(--hp-muted); }
.hp-hero h1 { font-size:clamp(22px,2.4vw,29px); line-height:1.2; font-weight:800; letter-spacing:-.035em; }
.hp-hero p { max-width:700px; margin-top:8px; font-size:13px; color:var(--hp-muted); }
.hp-grid { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:22px; align-items:start; }
.hp-main,.hp-aside { min-width:0; }
.hp-stack { display:grid; gap:16px; }
.hp-panel { min-width:0; background:var(--hp-surface); border:1px solid var(--hp-line); border-radius:15px; box-shadow:0 1px 3px #0f172a06; padding:22px; }
.hp-panel h2,.hp-section-title { font-size:16px; font-weight:750; line-height:1.4; }
.hp-panel-title { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.hp-panel-title .hp-svg { color:var(--hp-accent); }
.hp-panel > p + p { margin-top:12px; }
.hp-copy { color:var(--hp-muted); font-size:14px; }
.hp-copy p { max-width:78ch; }
.hp-copy p + p { margin-top:14px; }
.hp-section { margin-top:24px; }
.hp-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.hp-caption { color:var(--hp-muted); font-size:12px; }
.hp-count { color:var(--hp-accent); background:var(--hp-soft); border:1px solid var(--hp-edge); border-radius:20px; padding:3px 10px; font-size:11px; font-weight:700; white-space:nowrap; }
.hp-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 15px; min-height:42px; border:1px solid var(--hp-accent); border-radius:9px; background:var(--hp-accent); color:#fff; text-decoration:none; font-size:12px; font-weight:700; line-height:1.5; }
.hp-button:hover { filter:brightness(.96); }
.hp-button-secondary { background:var(--hp-surface); color:var(--hp-accent); border-color:var(--hp-edge); }
.hp-buttons { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.hp-toolbar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:16px; }
.hp-search { display:flex; align-items:center; gap:10px; flex:1 1 260px; min-width:0; border:1px solid var(--hp-line); background:var(--hp-canvas); border-radius:9px; padding:0 12px; }
.hp-search:focus-within { border-color:var(--hp-accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--hp-accent) 12%,transparent); }
.hp-search .hp-svg { width:17px; height:17px; color:var(--hp-muted); }
.hp-search input { width:100%; min-width:0; border:0; background:transparent; color:var(--hp-ink); padding:11px 0; outline:none; font-size:13px; }
.horizon-page .hp-search input:focus-visible { outline:none; box-shadow:none; }
.hp-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; display:none; }
.hp-search button { padding:3px; min-width:30px; border:0; background:transparent; color:var(--hp-muted); font-size:20px; }
.hp-toolbar-meta { color:var(--hp-muted); font-size:12px; }
.hp-document-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; }
.hp-document { display:flex; flex-direction:column; padding:18px; border-top:3px solid var(--hp-edge); transition:box-shadow .2s,transform .2s; }
.hp-document:hover { transform:translateY(-2px); box-shadow:0 6px 18px #0f172a09; }
.hp-document-top { display:flex; align-items:flex-start; gap:12px; flex:1; }
.hp-tile-icon { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--hp-edge); border-radius:12px; background:var(--hp-soft); color:var(--hp-accent); flex-shrink:0; }
.hp-document h2 { font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.hp-document h2 a { color:var(--hp-ink); text-decoration:none; }
.hp-document h2 a:hover { color:var(--hp-accent); }
.hp-document small { display:block; color:var(--hp-muted); font-size:11px; margin:5px 0; overflow-wrap:anywhere; }
.hp-document-actions { display:flex; flex-wrap:wrap; gap:9px; align-items:center; justify-content:space-between; padding-top:14px; margin-top:16px; border-top:1px solid var(--hp-line); }
.hp-text-link { display:inline-flex; align-items:center; gap:6px; color:var(--hp-accent); text-decoration:none; font-weight:650; font-size:12px; }
.hp-text-link:hover { text-decoration:underline; }
.hp-text-link .hp-svg { width:16px; height:16px; }
.hp-side-title { font-size:12px!important; text-transform:uppercase; letter-spacing:.04em; margin-bottom:14px!important; }
.hp-side-link { display:flex; align-items:center; gap:10px; color:var(--hp-muted); border-top:1px solid var(--hp-line); padding:12px 0; text-decoration:none; font-size:12px; }
.hp-side-link .hp-svg { color:var(--hp-accent); width:17px; height:17px; }
.hp-side-link:hover { color:var(--hp-accent); }
.hp-note { border-left:3px solid var(--hp-accent); background:var(--hp-soft); border-radius:0 10px 10px 0; padding:14px 16px; color:var(--hp-muted); font-size:12px; }
.hp-steps { list-style:none; padding:0; margin:0; counter-reset:hp-step; display:grid; gap:15px; }
.hp-steps li { counter-increment:hp-step; display:grid; grid-template-columns:25px 1fr; align-items:start; gap:9px; color:var(--hp-muted); font-size:12px; }
.hp-steps li::before { content:counter(hp-step,decimal-leading-zero); display:grid; place-items:center; width:25px; height:25px; border-radius:8px; background:var(--hp-soft); color:var(--hp-accent); font-size:10px; font-weight:700; }
.hp-empty { padding:35px 20px; text-align:center; color:var(--hp-muted); }
.hp-empty .hp-svg { margin:0 auto 12px; width:30px; height:30px; color:var(--hp-accent); }
.hp-empty h2 { font-size:16px; margin-bottom:6px; color:var(--hp-ink); }
.hp-empty p { font-size:13px; }
.hp-help { background:linear-gradient(130deg,#172033,#29384c); color:white; border-color:#334155; }
.hp-help h2 { color:white; font-size:14px; }
.hp-help p { margin-top:10px; font-size:12px; color:#cbd5e1; }
.hp-help a { color:#7dd3fc; margin-top:15px; }
.hp-two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.hp-service { display:flex; flex-direction:column; gap:12px; }
.hp-service h2 { font-size:17px; }
.hp-service p { font-size:13px; color:var(--hp-muted); flex:1; }
.hp-service .hp-buttons { margin-top:0; }
.hp-contact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.hp-contact-item { min-width:0; padding-left:14px; border-left:2px solid var(--hp-edge); }
.hp-contact-item h3 { font-size:13px; margin:7px 0; }
.hp-contact-item p,.hp-contact-item a { font-size:12px; color:var(--hp-muted); overflow-wrap:anywhere; }
.hp-contact-item .hp-svg { color:var(--hp-accent); }
.hp-details { border:1px solid var(--hp-line); border-radius:10px; margin-top:18px; }
.hp-details summary { padding:12px 15px; color:var(--hp-accent); font-weight:600; font-size:13px; cursor:pointer; }
.hp-details-content { padding:0 15px 15px; font-size:13px; color:var(--hp-muted); }
.hp-details-content p + p { margin-top:12px; }
.hp-signature { display:flex; gap:12px; align-items:center; border-top:1px solid var(--hp-line); padding-top:16px; margin-top:18px; }
.hp-signature strong { display:block; font-size:12px; }.hp-signature small { color:var(--hp-muted); font-size:11px; }
.hp-role { display:inline-block; padding:3px 9px; border-radius:20px; color:var(--hp-accent); background:var(--hp-soft); border:1px solid var(--hp-edge); font-size:11px; }
.hp-function-list { list-style:none; margin:0; padding:0; display:grid; gap:0; }
.hp-function-list li { padding:13px 0 13px 26px; border-top:1px solid var(--hp-line); position:relative; color:var(--hp-muted); font-size:13px; }
.hp-function-list li:first-child { border-top:0; }
.hp-function-list li::before { content:'✓'; position:absolute; left:0; color:var(--hp-accent); font-weight:700; }
.hp-director { display:flex; flex-direction:column; align-items:center; text-align:center; border-top:3px solid var(--hp-edge); }
.hp-director img { width:125px; height:125px; border-radius:50%; object-fit:cover; padding:4px; border:1px solid var(--hp-edge); background:var(--hp-soft); margin-bottom:15px; }
.hp-director h2 { margin:6px 0 8px; font-size:16px; }
.hp-team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.hp-person { padding:18px; display:flex; align-items:center; gap:14px; }
.hp-person img { width:65px; height:65px; border-radius:15px; object-fit:cover; background:var(--hp-soft); flex-shrink:0; }
.hp-person h3 { font-size:13px; line-height:1.4; margin-bottom:6px; overflow-wrap:anywhere; }
.hp-person p { font-size:11px; color:var(--hp-muted); }
.hp-tasa-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.hp-tasa-card { padding:0; overflow:hidden; }
.hp-tasa-header { display:flex; align-items:center; gap:11px; width:100%; padding:16px; background:transparent; color:var(--hp-ink); border:0; text-align:left; }
.hp-tasa-header strong { flex:1; min-width:0; font-size:12px; line-height:1.4; }
.hp-tasa-header .hp-tile-icon { width:34px; height:34px; }
.hp-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.hp-table th { background:var(--hp-canvas); color:var(--hp-muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; text-align:left; padding:10px 13px; }
.hp-table td { border-top:1px solid var(--hp-line); padding:11px 13px; font-size:12px; color:var(--hp-ink); overflow-wrap:anywhere; }
.hp-table tr:nth-child(even) { background:var(--hp-canvas); }
.hp-table .hp-code { width:85px; color:var(--hp-muted); font-family:monospace; }
.hp-table .hp-amount { width:105px; text-align:right; font-variant-numeric:tabular-nums; font-weight:700; white-space:nowrap; }
.hp-tasa-footer { border-top:1px solid var(--hp-line); text-align:center; padding:10px; }
.hp-select { background:var(--hp-surface); border:1px solid var(--hp-line); color:var(--hp-ink); padding:9px; border-radius:8px; max-width:100%; font-size:12px!important; }
.hp-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
/* Currículas conserva sus colores por facultad y sus componentes dinámicos. */
.horizon-page .facultad-card { border-radius:15px; box-shadow:0 1px 3px #0f172a08; }
.horizon-page .carrera-header { width:100%; text-align:left; min-height:52px; border:0; background:var(--hp-surface)!important; }
.horizon-page .carrera-header:hover { background:var(--hp-canvas)!important; }
.horizon-page .carrera-header span { color:var(--hp-ink)!important; overflow-wrap:anywhere; }
.horizon-page .carrera-planes { background:var(--hp-canvas)!important; }
.horizon-page .plan-btn { white-space:normal; text-align:left; min-height:38px; }
.hp-curriculum-hint { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:20px; padding:14px 18px; }
.hp-curriculum-hint span { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--hp-muted); }
.hp-curriculum-hint b { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; color:var(--hp-accent); background:var(--hp-soft); font-size:10px; }
.horizon-page #overlayPlan { padding:20px 12px; }
.horizon-page #overlayPlan > div { background:var(--hp-surface); width:min(960px,100%); }
.horizon-page #modalCuerpo { color:#172033; background:white; overscroll-behavior:contain; }
.horizon-page #modalCuerpo table { min-width:600px; }
.horizon-page #modalCuerpo > div { max-width:none; }
.horizon-page .hp-modal-footer { background:var(--hp-canvas); border-color:var(--hp-line); }
[data-theme='dark'] .horizon-page { --hp-surface:#1e2a3a; --hp-canvas:#172232; --hp-ink:#e2e8f0; --hp-muted:#a4b3c7; --hp-line:#334155; --hp-soft:#20394b; --hp-edge:#365b72; --hp-accent:#7dd3fc; }
[data-theme='dark'] .horizon-violet { --hp-accent:#c4b5fd; --hp-soft:#332c48; --hp-edge:#584575; }
[data-theme='dark'] .horizon-amber { --hp-accent:#fdba74; --hp-soft:#3d302a; --hp-edge:#705138; }
[data-theme='dark'] .horizon-green { --hp-accent:#86efac; --hp-soft:#203c33; --hp-edge:#37654c; }
[data-theme='dark'] .horizon-rose { --hp-accent:#fda4af; --hp-soft:#402b3c; --hp-edge:#714257; }
[data-theme='dark'] .horizon-page .hp-button:not(.hp-button-secondary) { background:var(--hp-soft); color:var(--hp-accent); border-color:var(--hp-edge); }
[data-theme='dark'] .horizon-page .facultad-card > div:first-child { background:var(--hp-surface)!important; }
@media (max-width:1100px) { .hp-grid { grid-template-columns:minmax(0,1fr) 245px; gap:16px; } .hp-team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:900px) { .hp-grid { grid-template-columns:1fr; } .hp-aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .hp-tasa-grid { grid-template-columns:1fr; } }
@media (max-width:600px) {
    .hp-hero { align-items:flex-start; gap:12px; padding:20px 16px; margin-bottom:16px; }
    .hp-hero-icon { width:39px; height:39px; border-radius:12px; }.hp-hero-icon .hp-svg { width:22px; height:22px; }
    .hp-hero h1 { font-size:21px; }.hp-hero p { font-size:12px; }.hp-eyebrow { font-size:9px; }
    .hp-panel { padding:16px; }.hp-toolbar { padding:12px; gap:10px; }
    .hp-two-col,.hp-document-grid,.hp-team-grid,.hp-aside { grid-template-columns:1fr; }
    .hp-contact-grid { grid-template-columns:1fr; gap:18px; }.hp-contact-item { padding:0 0 0 13px; }
    .hp-service { gap:10px; }.hp-copy { font-size:13px; }
    .hp-buttons .hp-button { flex:1 1 auto; }
    .hp-tasa-card { padding:0; }.hp-tasa-header { padding:13px 11px; gap:8px; }
    .hp-tasa-header strong { font-size:11px; }.hp-tasa-header .hp-count { font-size:9px; padding:3px 6px; }
    .hp-table :is(th,td) { padding:10px 8px; }.hp-table .hp-code { width:66px; }.hp-table .hp-amount { width:90px; }
    .hp-table td { font-size:11px; }.hp-table th { font-size:9px; }
    .horizon-page #modalCuerpo { padding:14px; }.horizon-page #modalHeader { padding:16px; }
    .hp-curriculum-hint { gap:9px; }.hp-person img { width:56px; height:56px; }
}
@media (prefers-reduced-motion:reduce) { .horizon-page * { transition:none!important; animation:none!important; } }
