﻿:root {
    --blue: #0b3f91;
    --blue-dark: #08285f;
    --red: #d71920;
    --yellow: #ffc928;
    --ink: #101828;
    --muted: #667085;
    --line: #d7dfec;
    --soft: #f3f6fb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(8, 40, 95, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
    color: var(--ink);
    background: #eef3fa;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    margin: 0;
    padding: 8px clamp(16px, 5vw, 72px);
    background: rgba(255,255,255,.98);
    border: 0;
    border-bottom: 1px solid rgba(215,223,236,.9);
    backdrop-filter: blur(18px);
}
.brand-static { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-static img { flex: 0 0 58px; width: 58px; height: 58px; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; min-width: 0; line-height: 1.05; }
.brand-copy strong { color: var(--blue-dark); font-family: "Montserrat", "Poppins", Arial, sans-serif; font-size: 18px; font-weight: 900; white-space: nowrap; }
.brand-copy small { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.top-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.top-nav a { border: 1px solid transparent; border-radius: 12px; background: transparent; color: #344054; font-size: 14px; font-weight: 900; line-height: 1; padding: 11px 12px; white-space: nowrap; }
.top-nav a:hover, .top-nav a:focus-visible { border-color: rgba(11,63,145,.16); background: #edf4ff; color: var(--blue); outline: 0; }
.header-cta { min-height: 42px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--red), #ff4650); color: #fff; font-size: 14px; font-weight: 900; line-height: 1.05; padding: 11px 15px; box-shadow: 0 12px 24px rgba(215,25,32,.22); white-space: nowrap; }

main#inicio { margin: 0; padding: 0; overflow: hidden; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
    gap: 56px;
    align-items: center;
    margin: 0;
    padding: 82px 6vw 70px;
    overflow: hidden;
    background: linear-gradient(135deg, #071f3d 0%, #0d4297 55%, #123f7c 100%);
    color: #fff;
}
.hero-copy { min-width: 0; max-width: 760px; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff8d8; font-size: 13px; font-weight: 900; padding: 8px 12px; }
.hero-title { max-width: 100%; margin: 24px 0; color: #fff; font-family: "Poppins", sans-serif; font-size: clamp(4rem, 6.2vw, 7.4rem); font-weight: 900; letter-spacing: -4px; line-height: .88; }
.hero-title strong { display: block; color: var(--yellow); font-size: .86em; line-height: .9; }
.desktop-title { display: block; }
.mobile-title { display: none; }
.lead { max-width: 700px; margin: 0; color: #fff; font-size: clamp(1.2rem, 1.7vw, 2rem); font-weight: 700; line-height: 1.35; }
.hero-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 34px 0 24px; }
.hero-steps span { display: flex; align-items: center; gap: 10px; min-height: 58px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(255,255,255,.13); color: #fff; font-size: 14px; font-weight: 800; line-height: 1.2; padding: 12px; box-shadow: 0 16px 30px rgba(0,0,0,.13); }
.hero-steps b { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--yellow), #fff08c); color: var(--blue-dark); font-size: 12px; font-weight: 900; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 900; padding: 12px 16px; text-align: center; }
.btn.primary { background: var(--yellow); color: #172033; box-shadow: 0 14px 28px rgba(255,201,40,.25); }
.btn.whatsapp, .hero-whatsapp { background: #159947; color: #fff; box-shadow: 0 14px 28px rgba(21,153,71,.22); }
.btn.outline { border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.12); color: #fff; }
.btn.full { width: 100%; }
.btn:hover { transform: translateY(-1px); }
.hero-media { position: relative; min-width: 0; overflow: hidden; border-radius: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hero-media img { width: 100%; height: 520px; object-fit: cover; display: block; }
.promo-card { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 3; border: 0; border-radius: 24px; padding: 28px; background: linear-gradient(135deg, #ffd12f, #fff0a4); color: #09234a; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.promo-card strong { display: block; color: #e31b2f; font-size: clamp(1.8rem, 2.4vw, 3rem); line-height: 1; }
.promo-card span { display: block; margin-top: 12px; color: #09234a; font-weight: 900; }

.section { padding: clamp(32px, 5vw, 70px) clamp(16px, 5vw, 72px); }
.section-title { max-width: 760px; margin-bottom: 22px; }
.section-title span { display: inline-flex; color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.section-title h2 { margin: 8px 0 0; color: var(--blue-dark); font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.section-title.compact h2 { font-size: clamp(24px, 3vw, 34px); }
.faculty-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.faculty-summary-card { position: relative; display: grid; grid-template-rows: 220px 1fr; min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 18px 38px rgba(8,40,95,.12); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.faculty-summary-card:hover, .faculty-summary-card:focus-visible { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(8,40,95,.24); outline: 0; }
.faculty-photo { position: relative; min-height: 220px; overflow: hidden; background: var(--blue-dark); }
.faculty-photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.faculty-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,40,95,.02), rgba(8,40,95,.74)); }
.faculty-number { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 16px; background: var(--yellow); color: var(--blue-dark); font-size: 17px; font-weight: 900; }
.faculty-badge { position: absolute; top: 16px; right: -8px; z-index: 2; border-radius: 999px 0 0 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; padding: 9px 14px; }
.faculty-address { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--blue-dark); font-size: 12px; font-weight: 900; padding: 9px 11px; }
.faculty-body { display: grid; gap: 12px; padding: 18px; }
.faculty-body h3 { margin: 0; color: var(--blue-dark); font-size: 22px; line-height: 1.08; }
.faculty-body p { margin: 0; color: #475467; font-size: 14px; font-weight: 700; line-height: 1.45; }
.career-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.career-tags small { border-radius: 999px; background: #eef4ff; color: var(--blue); font-size: 12px; font-weight: 900; padding: 8px 10px; }
.faculty-preview-careers { display: grid; gap: 7px; }
.faculty-preview-careers b { border-left: 4px solid var(--yellow); border-radius: 10px; background: #f8fbff; color: #344054; font-size: 13px; padding: 8px 10px; }
.faculty-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: auto; border-radius: 14px; background: linear-gradient(135deg, var(--red), #ff4d55); color: #fff; font-size: 14px; font-weight: 900; padding: 11px 12px; }

.split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; background: #f8fbff; }
.panel, .quick-panel { border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.blue-panel { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.blue-panel .section-title h2, .blue-panel .section-title span { color: #fff; }
.white-panel, .quick-panel { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; border-radius: 14px; background: rgba(255,255,255,.12); font-weight: 800; line-height: 1.4; padding: 13px 13px 13px 40px; }
.check-list li::before { content: "✓"; position: absolute; left: 14px; top: 13px; color: var(--yellow); font-weight: 900; }
.advantage-list { display: flex; flex-wrap: wrap; gap: 10px; }
.advantage-list span { border-radius: 999px; background: #eef4ff; color: var(--blue); font-weight: 900; padding: 10px 12px; }
.quick-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: #eef4ff; }
.schedule-grid, .cost-grid { display: grid; gap: 14px; }
.schedule-card, .cost-card { border: 1px solid var(--line); border-radius: 20px; background: var(--soft); padding: 18px; }
.schedule-card h3 { margin: 0 0 12px; color: var(--blue-dark); font-size: 22px; }
.schedule-card p { margin: 8px 0 0; border-radius: 14px; background: #fff; color: #344054; font-size: 20px; font-weight: 900; padding: 12px; }
.cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cost-card { background: #fff; }
.cost-card span { display: block; color: var(--muted); font-weight: 900; }
.cost-card strong { display: block; margin-top: 10px; color: var(--blue-dark); font-size: 28px; }
.cost-card.free { border-color: transparent; background: linear-gradient(135deg, var(--red), #ff5a61); }
.cost-card.free span, .cost-card.free strong { color: #fff; }
.promotion { width: 100%; margin-top: 16px; border: 0; border-radius: 20px; background: linear-gradient(135deg, var(--yellow), #fff1a3); color: #231f20; padding: 18px; text-align: left; box-shadow: var(--shadow); }
.promotion span { display: block; color: var(--red); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.promotion strong { display: block; margin-top: 5px; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; }

.footer { display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: 20px; align-items: stretch; padding: 30px clamp(16px, 5vw, 72px) 104px; background: linear-gradient(135deg, #08285f, #0b3f91); color: #e7efff; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; }
.footer-brand span, .footer-brand strong { display: block; color: #fff; font-weight: 900; }
.footer-brand p { margin: 5px 0 0; }
.footer-info { display: grid; gap: 10px; }
.footer-info button { border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.09); color: #fff; text-align: left; padding: 12px; }
.footer-info small { display: block; color: #fff5bf; font-weight: 900; text-transform: uppercase; }
.footer-info b { display: block; margin-top: 4px; line-height: 1.3; }
.footer-actions { display: grid; gap: 10px; align-content: center; min-width: 170px; }
.floating-actions { position: fixed; left: 50%; bottom: 12px; z-index: 210; display: none; grid-template-columns: 1fr 1fr; gap: 8px; width: min(420px, calc(100% - 24px)); transform: translateX(-50%); }
.floating-actions a, .floating-actions button { min-height: 48px; border: 0; border-radius: 14px; background: #159947; color: #fff; font-weight: 900; padding: 12px; text-align: center; box-shadow: var(--shadow); }
.floating-actions a + a { background: var(--blue); }
.floating-actions.is-hidden { display: none !important; }

.catalog-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 18px; }
.catalog-modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,18,44,.74); backdrop-filter: blur(5px); }
.modal-panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: min(88vh, 760px); overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; background: #fff; box-shadow: 0 34px 90px rgba(0,0,0,.38); }
.modal-close { position: sticky; top: 12px; float: right; z-index: 3; width: 44px; height: 44px; margin: 12px 12px -56px 0; border: 1px solid rgba(8,40,95,.12); border-radius: 50%; background: #fff; color: var(--blue-dark); font-size: 26px; font-weight: 900; line-height: 1; box-shadow: 0 12px 28px rgba(8,40,95,.16); }
.modal-image { height: 230px; overflow: hidden; background: var(--blue-dark); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 26px; }
.modal-kicker { display: inline-flex; border-radius: 999px; background: #fff4bc; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .5px; padding: 7px 10px; text-transform: uppercase; }
.modal-content h2 { margin: 12px 0 14px; color: var(--blue-dark); font-size: clamp(27px, 5vw, 40px); line-height: 1.05; }
.modal-content p { margin: 0 0 12px; color: #344054; font-size: 16px; font-weight: 700; line-height: 1.58; }
.modal-subtitle { margin: 18px 0 8px; color: var(--blue-dark); }
.modal-list { display: grid; gap: 9px; margin: 14px 0 18px; padding: 0; list-style: none; }
.modal-list li { border-left: 5px solid var(--red); border-radius: 12px; background: #f6f9ff; color: #344054; font-weight: 800; padding: 11px 12px; }
.modal-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.modal-chip-grid span { border-radius: 999px; background: #eef4ff; color: var(--blue); font-weight: 900; padding: 9px 11px; }
.reserve-card { display: grid; gap: 13px; }
.modal-form { border: 0; box-shadow: none; padding: 0; }
.reserve-card label { display: grid; gap: 7px; }
.reserve-card label span { color: var(--blue-dark); font-size: 13px; font-weight: 900; }
.reserve-card input, .reserve-card select, .reserve-card textarea { width: 100%; border: 1px solid #bdc9dc; border-radius: 14px; background: #f8fbff; color: var(--ink); font-weight: 800; outline: 0; padding: 13px 14px; }
.reserve-card textarea { min-height: 104px; resize: vertical; }
.reserve-card input:focus, .reserve-card select:focus, .reserve-card textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,63,145,.12); background: #fff; }
.reserve-card small { color: var(--red); font-size: 12px; font-weight: 900; }
.form-alert { border: 1px solid #fecaca; border-radius: 14px; background: #fff1f2; color: #9f1239; font-weight: 900; padding: 12px; }

@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; gap: 36px; }
    .hero-media img { height: 420px; }
    .faculty-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .quick-info, .footer { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    body { padding-bottom: 90px; }
    .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 52px 38px; grid-template-areas: "brand cta" "nav nav"; align-items: center; gap: 7px 10px; min-height: 104px; padding: 8px 12px 7px; }
    .brand-static { grid-area: brand; gap: 9px; }
    .brand-static img { flex-basis: 48px; width: 48px; height: 48px; }
    .brand-copy strong { max-width: calc(100vw - 190px); overflow: hidden; font-size: 15px; text-overflow: ellipsis; }
    .brand-copy small { font-size: 10px; }
    .header-actions { display: contents; }
    .header-cta { grid-area: cta; min-height: 42px; font-size: 14px; padding: 11px 15px; }
    .top-nav { grid-area: nav; justify-content: flex-start; gap: 6px; width: 100%; overflow-x: auto; overflow-y: hidden; white-space: nowrap; flex-wrap: nowrap; scrollbar-width: none; padding: 0; }
    .top-nav::-webkit-scrollbar { display: none; }
    .top-nav a { flex: 0 0 auto; font-size: 14px; padding: 10px 12px; }
    .hero { display: block; padding: 32px 20px 120px; }
    .desktop-title { display: none; }
    .mobile-title { display: block; }
    .hero-title { margin: 18px 0; font-size: clamp(3.4rem, 18vw, 5rem); line-height: .86; letter-spacing: -2px; }
    .hero-title strong { font-size: 1em; }
    .lead { font-size: 1.05rem; line-height: 1.45; }
    .hero-steps { grid-template-columns: 1fr; gap: 10px; margin: 24px 0 20px; }
    .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .hero-actions .btn { width: 100%; }
    .hero-media { margin-top: 28px; border-radius: 24px; }
    .hero-media img { height: 280px; }
    .promo-card { left: 14px; right: 14px; bottom: 14px; border-radius: 18px; padding: 18px; }
    .promo-card strong { font-size: 24px; }
    .promo-card span { margin-top: 6px; font-size: 12px; line-height: 1.25; }
    .section { padding: 30px 14px; }
    .faculty-summary-grid, .check-list, .cost-grid { grid-template-columns: 1fr; }
    .faculty-summary-card { grid-template-rows: 190px 1fr; min-height: auto; }
    .faculty-photo, .faculty-photo img { min-height: 190px; }
    .footer { padding-bottom: 120px; }
    .floating-actions { display: grid; }
    .catalog-modal { align-items: flex-end; padding: 8px; }
    .modal-panel { max-height: 92vh; border-radius: 24px 24px 16px 16px; }
    .modal-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; margin: 0; }
    .modal-image { height: 180px; }
    .modal-content { padding: 22px 16px 18px; }
}
@media (max-width: 380px) {
    .site-header { min-height: 100px; grid-template-rows: 50px 36px; padding: 7px 10px; }
    .brand-static img { flex-basis: 44px; width: 44px; height: 44px; }
    .brand-copy strong { max-width: calc(100vw - 176px); font-size: 14px; }
    .header-cta { min-height: 40px; font-size: 13px; padding: 10px 12px; }
    .top-nav a { font-size: 13px; padding: 9px 10px; }
    .hero { padding: 28px 12px 112px; }
    .hero-title { font-size: clamp(3rem, 16vw, 4rem); }
    .hero-media img { height: 250px; }
}

/* Ajuste final: sin franja arriba dentro del header */
html,
body,
body.catalogo-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-header {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 8px !important;
    border-top: 0 !important;
}

@media (max-width: 768px) {
    .site-header {
        padding-top: 0 !important;
        padding-bottom: 7px !important;
    }
}

@media (max-width: 380px) {
    .site-header {
        padding-top: 0 !important;
        padding-bottom: 6px !important;
    }
}

/* Correccion definitiva: header fijo sin espacio superior */
html,
body,
body.catalogo-page {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow-x: hidden;
}

.site-header,
.site-header.site-header-clean,
.catalogo-page .site-header.site-header-clean {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 500 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    transform: none !important;
    background: #fff !important;
}

main#inicio,
.catalogo-page main#inicio {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.catalogo-page .hero {
    margin-top: 0 !important;
    padding-top: 92px !important;
}

@media (max-width: 768px) {
    .site-header,
    .site-header.site-header-clean,
    .catalogo-page .site-header.site-header-clean {
        padding-top: 0 !important;
        background: #fff !important;
    }

    .catalogo-page .hero {
        margin-top: 0 !important;
        padding-top: 124px !important;
    }
}

@media (max-width: 380px) {
    .catalogo-page .hero {
        padding-top: 116px !important;
    }
}

/* Restaurar interior del header, conservando fixed top */
.site-header,
.site-header.site-header-clean,
.catalogo-page .site-header.site-header-clean {
    min-height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 8px clamp(16px, 5vw, 72px) !important;
    background: rgba(255,255,255,.98) !important;
    border-bottom: 1px solid rgba(215,223,236,.9) !important;
}

.brand-static {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.brand-static img {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 58px !important;
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.top-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
}

.top-nav a {
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #344054 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 11px 12px !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a:active {
    border-color: rgba(11, 63, 145, .16) !important;
    background: #edf4ff !important;
    color: var(--blue) !important;
}

.header-cta {
    min-width: 0 !important;
    max-width: none !important;
    min-height: 42px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    padding: 11px 15px !important;
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .site-header,
    .site-header.site-header-clean,
    .catalogo-page .site-header.site-header-clean {
        min-height: 104px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: 52px 38px !important;
        grid-template-areas: "brand cta" "nav nav" !important;
        align-items: center !important;
        gap: 7px 10px !important;
        padding: 8px 12px 7px !important;
    }

    .brand-static { grid-area: brand; gap: 9px !important; }
    .brand-static img { flex-basis: 48px !important; width: 48px !important; height: 48px !important; }
    .header-actions { display: contents !important; }
    .header-cta { grid-area: cta; min-height: 42px !important; font-size: 14px !important; padding: 11px 15px !important; }
    .top-nav {
        grid-area: nav;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        padding: 0 !important;
    }
    .top-nav::-webkit-scrollbar { display: none !important; }
}

/* Header movil pulido */
@media (max-width: 768px) {
    .site-header,
    .site-header.site-header-clean,
    .catalogo-page .site-header.site-header-clean {
        min-height: 100px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: 48px 36px !important;
        gap: 6px 10px !important;
        padding: 7px 12px 8px !important;
    }

    .brand-static {
        min-width: 0 !important;
        gap: 8px !important;
    }

    .brand-static img {
        flex: 0 0 46px !important;
        width: 46px !important;
        height: 46px !important;
    }

    .brand-copy {
        min-width: 0 !important;
        gap: 1px !important;
    }

    .brand-copy strong {
        display: block !important;
        max-width: calc(100vw - 188px) !important;
        overflow: hidden !important;
        font-size: 15px !important;
        line-height: 1.05 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .brand-copy small {
        font-size: 10px !important;
        line-height: 1.05 !important;
    }

    .header-cta {
        min-height: 38px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        line-height: 1.05 !important;
        padding: 8px 11px !important;
        white-space: normal !important;
        max-width: 104px !important;
        text-align: center !important;
    }

    .top-nav {
        gap: 4px !important;
        -webkit-overflow-scrolling: touch;
    }

    .top-nav a {
        flex: 0 0 auto !important;
        min-height: 34px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
        padding: 9px 10px !important;
    }

    .catalogo-page .hero {
        padding-top: 116px !important;
    }
}

@media (max-width: 380px) {
    .site-header,
    .site-header.site-header-clean,
    .catalogo-page .site-header.site-header-clean {
        min-height: 96px !important;
        grid-template-rows: 46px 34px !important;
        padding: 6px 10px 7px !important;
    }

    .brand-static img {
        flex-basis: 42px !important;
        width: 42px !important;
        height: 42px !important;
    }

    .brand-copy strong {
        max-width: calc(100vw - 172px) !important;
        font-size: 14px !important;
    }

    .header-cta {
        min-height: 36px !important;
        max-width: 96px !important;
        font-size: 11px !important;
        padding: 7px 9px !important;
    }

    .top-nav a {
        min-height: 32px !important;
        font-size: 12px !important;
        padding: 8px 9px !important;
    }

    .catalogo-page .hero {
        padding-top: 108px !important;
    }
}

/* Hero refinado: mensajes claros y cards premium */
.hero-title {
    font-size: clamp(3.7rem, 5.8vw, 6.7rem);
    letter-spacing: -3px;
}
.hero-title strong {
    font-size: .92em;
}
.hero-steps span {
    align-items: flex-start;
    gap: 12px;
    min-height: 86px;
    padding: 14px;
}
.hero-steps em {
    display: grid;
    gap: 4px;
    min-width: 0;
    font-style: normal;
}
.hero-steps em strong {
    color: #fff;
    font-family: "Montserrat", "Poppins", Arial, sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.08;
}
.hero-steps em small {
    color: #dce8ff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.28;
}
.hero-whatsapp {
    background: linear-gradient(135deg, #159947, #19b85a);
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5,18,44,.04) 38%, rgba(5,18,44,.68));
    pointer-events: none;
}
.hero-media-badge,
.hero-media-pill {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-family: "Montserrat", "Poppins", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 10px 13px;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}
.hero-media-badge {
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,.94);
    color: var(--blue-dark);
}
.hero-media-pill {
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--yellow), #fff08c);
    color: #172033;
}
.promo-card { z-index: 3; }

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 14vw, 4.25rem);
        letter-spacing: -2px;
    }
    .hero-steps span {
        min-height: 74px;
        padding: 12px;
    }
    .hero-steps em strong { font-size: 14px; }
    .hero-steps em small { font-size: 12px; }
    .hero-media-badge,
    .hero-media-pill {
        font-size: 10.5px;
        padding: 8px 10px;
    }
    .hero-media-badge { top: 10px; right: 10px; }
    .hero-media-pill { top: 10px; left: 10px; }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: clamp(2.65rem, 13vw, 3.6rem);
    }
    .hero-media-pill { display: none; }
}

/* Ajuste hero: titulo menos grande y beneficios sin abreviaciones */
.hero-title {
    font-size: clamp(3.2rem, 5.1vw, 5.8rem);
    letter-spacing: -2.8px;
}
.hero-steps b {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: auto;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    padding: 9px 10px;
    white-space: nowrap;
}
.hero-steps span {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.75rem, 12vw, 3.85rem);
        letter-spacing: -1.5px;
    }
    .hero-steps span {
        min-height: 88px;
    }
    .hero-steps b {
        width: max-content;
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: clamp(2.35rem, 11vw, 3.2rem);
    }
}

/* Hero movil: usar mejor el espacio */
@media (max-width: 768px) {
    .hero {
        padding: 108px 14px 92px;
    }
    .eyebrow {
        font-size: 11px;
        padding: 7px 10px;
    }
    .hero-title {
        margin: 12px 0 10px;
        font-size: clamp(2.35rem, 10.8vw, 3.35rem);
        line-height: .9;
        letter-spacing: -1.2px;
    }
    .lead {
        font-size: .96rem;
        line-height: 1.42;
    }
    .hero-steps {
        gap: 8px;
        margin: 16px 0 16px;
    }
    .hero-steps span {
        min-height: auto;
        gap: 7px;
        border-radius: 14px;
        padding: 10px 11px;
    }
    .hero-steps b {
        font-size: 10.5px;
        padding: 7px 9px;
    }
    .hero-steps em strong {
        font-size: 13.5px;
    }
    .hero-steps em small {
        font-size: 11.5px;
        line-height: 1.24;
    }
    .hero-actions {
        gap: 9px;
    }
    .hero-actions .btn {
        min-height: 45px;
        border-radius: 13px;
        font-size: 13.5px;
        padding: 11px 13px;
    }
    .hero-media {
        margin-top: 18px;
        border-radius: 20px;
    }
    .hero-media img {
        height: 235px;
    }
    .hero-media-badge,
    .hero-media-pill {
        font-size: 10px;
        padding: 7px 9px;
    }
    .promo-card {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 15px;
        padding: 12px;
    }
    .promo-card strong {
        font-size: 20px;
    }
    .promo-card span {
        margin-top: 4px;
        font-size: 11.5px;
        line-height: 1.22;
    }
}

@media (max-width: 380px) {
    .hero {
        padding: 102px 12px 88px;
    }
    .hero-title {
        font-size: clamp(2.2rem, 10.5vw, 2.9rem);
    }
    .lead {
        font-size: .9rem;
    }
    .hero-media img {
        height: 218px;
    }
}

/* Reducir espacio final excesivo en movil */
@media (max-width: 768px) {
    body {
        padding-bottom: 64px;
    }
    .hero {
        padding-bottom: 72px;
    }
    .footer {
        padding-bottom: 76px;
    }
    .floating-actions {
        bottom: 8px;
    }
    .floating-actions a,
    .floating-actions button {
        min-height: 44px;
        padding: 10px;
    }
}

@media (max-width: 380px) {
    body {
        padding-bottom: 60px;
    }
    .hero {
        padding-bottom: 66px;
    }
    .footer {
        padding-bottom: 72px;
    }
}

/* Facultades: tarjetas mas limpias y compactas */
.faculty-summary-card {
    grid-template-rows: 210px 1fr;
    min-height: 455px;
}
.faculty-photo,
.faculty-photo img {
    min-height: 210px;
}
.faculty-address {
    display: none !important;
}
.faculty-body {
    gap: 11px;
    padding: 17px;
}
.faculty-body h3 {
    font-size: 21px;
}
.faculty-body p {
    color: #5b667a;
    font-size: 13.5px;
}
.career-tags small {
    background: #f2f6ff;
    color: var(--blue-dark);
    font-size: 12px;
    padding: 7px 10px;
}
.faculty-preview-careers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.faculty-preview-careers b {
    border: 1px solid #dfe7f5;
    border-left: 0;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    padding: 8px 10px;
}
.faculty-action {
    min-height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 12px 24px rgba(8, 40, 95, .16);
}

@media (max-width: 768px) {
    .faculty-summary-card {
        grid-template-rows: 170px 1fr;
        border-radius: 20px;
    }
    .faculty-photo,
    .faculty-photo img {
        min-height: 170px;
    }
    .faculty-body {
        padding: 15px;
    }
    .faculty-body h3 {
        font-size: 19px;
    }
    .faculty-preview-careers b {
        font-size: 11.5px;
        padding: 7px 9px;
    }
}

/* Modal por encima del header al abrir facultades */
.catalog-modal {
    z-index: 1200 !important;
}
.catalog-modal.is-open {
    display: flex !important;
}
body.modal-open .site-header {
    pointer-events: none;
}
body.modal-open .floating-actions {
    display: none !important;
}
.modal-backdrop {
    z-index: 0;
}
.modal-panel {
    z-index: 2;
}

/* Facultades: badges utiles sin numeros ni ingreso */
.faculty-number {
    display: none !important;
}
.faculty-badge {
    right: auto;
    border-radius: 999px;
    font-size: 11px;
    padding: 9px 12px;
}
.faculty-badge-primary {
    top: 14px;
    left: 14px;
    background: var(--yellow);
    color: var(--blue-dark);
}
.faculty-badge-secondary {
    top: 14px;
    right: 14px;
    background: rgba(8, 40, 95, .88);
    color: #fff;
}

@media (max-width: 768px) {
    .faculty-badge {
        font-size: 10px;
        padding: 8px 10px;
    }
    .faculty-badge-primary {
        left: 10px;
        top: 10px;
    }
    .faculty-badge-secondary {
        right: 10px;
        top: 10px;
    }
}
