:root {
    --blue: #0B3D91;
    --burgundy: #611232;
    --blue-dark: #081F45;
    --blue-mid: #123B73;
    --blue-soft: #EAF1FF;
    --gold: #D4AF37;
    --gold-soft: #FFF6D8;
    --white: #FFFFFF;
    --bg: #F5F7FB;
    --text: #172033;
    --muted: #667085;
    --border: #DFE7F2;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --radius: 26px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    --shadow-strong: 0 34px 90px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 999;
    background: var(--gold);
    color: var(--blue-dark);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 900;
}

    .skip-link:focus {
        top: 16px;
    }

/* HEADER COMPACTO */

.courses-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--white);
    border-bottom: 1px solid rgba(223, 231, 242, 0.85);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

/* Barra Gobierno */
.gov-bar {
    max-height: 48px;
    overflow: hidden;
    background: var(--burgundy);
    color: var(--white);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}

.gov-content {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gov-brand {
    display: inline-flex;
    align-items: center;
}

    .gov-brand img {
        height: 34px;
        width: auto;
        object-fit: contain;
        display: block;
    }

.gov-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 900;
}

    .gov-links a {
        color: var(--white);
        opacity: 0.96;
        transition: 0.2s ease;
    }

        .gov-links a:hover {
            opacity: 1;
            text-decoration: underline;
            text-underline-offset: 4px;
        }

.icon-button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    display: grid;
    place-items: center;
    transition: 0.2s ease;
}

    .icon-button:hover {
        background: rgba(255, 255, 255, 0.24);
    }

/* =========================
   NAVBAR / SITE BAR
========================= */

.site-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(223, 231, 242, 0.85);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

.site-content {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 1.6vw, 22px);
    min-width: 0;
}

/* =========================
   LOGOS
========================= */

.institution-brand {
    min-width: 0;
    display: flex;
    align-items: center;
}

.institution-logos {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 12px);
    min-width: 0;
}

    .institution-logos img {
        display: block;
        width: auto;
        object-fit: contain;
        flex: 0 0 auto;
    }

.logo-congress,
.logo-itgam {
    height: clamp(44px, 4.4vw, 58px);
    max-width: 66px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.logo-educacion {
    height: clamp(18px, 2.2vw, 28px);
    max-width: 88px;
}

.logo-tecnm {
    height: clamp(30px, 3.2vw, 42px);
    max-width: 90px;
}

/* =========================
   DESKTOP NAV
========================= */

.desktop-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 0.95vw, 16px);
    font-weight: 900;
    color: var(--blue-dark);
    overflow: hidden;
}

    .desktop-nav a {
        position: relative;
        opacity: 0.86;
        transition: 0.2s ease;
        white-space: nowrap;
        font-size: clamp(12px, 0.86vw, 14px);
        line-height: 1;
    }

        .desktop-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -10px;
            height: 3px;
            border-radius: 999px;
            background: var(--gold);
            transform: scaleX(0);
            transform-origin: center;
            transition: 0.2s ease;
        }

        .desktop-nav a:hover {
            opacity: 1;
            color: var(--blue);
        }

            .desktop-nav a:hover::after {
                transform: scaleX(1);
            }

/* =========================
   ACTIONS
========================= */

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: max-content;
}

.login-link {
    color: var(--white);
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 950;
    transition: 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

    .login-link span {
        font-size: 20px;
    }

    .login-link:hover {
        transform: translateY(-2px);
        filter: brightness(0.96);
    }

    .login-link.docentes {
        background: var(--gold);
        color: var(--white);
    }

    .login-link.alumnos {
        background: var(--blue);
    }

/* =========================
   MENU TOGGLE
========================= */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: var(--blue);
    color: var(--white);
    place-items: center;
    transition: 0.2s ease;
}

    .menu-toggle:hover {
        background: var(--blue-dark);
        transform: translateY(-2px);
    }

    .menu-toggle span {
        font-size: 26px;
    }

/* =========================
   MOBILE NAV
========================= */

.mobile-nav {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    padding: 0 20px;
    background: var(--white);
    transition: max-height 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
}

    .mobile-nav.open,
    .mobile-nav.show,
    .mobile-nav.active {
        max-height: 560px;
        display: grid;
        gap: 10px;
        padding: 12px 20px 18px;
        border-top-color: var(--border);
    }

    .mobile-nav a {
        padding: 13px 14px;
        border-radius: 14px;
        background: var(--bg);
        font-weight: 850;
        color: var(--blue-dark);
        transition: 0.2s ease;
    }

        .mobile-nav a:hover {
            background: var(--blue-soft);
            color: var(--blue);
        }


.courses-hero {
    position: relative;
    padding: 90px 0 70px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.25), transparent 34%), radial-gradient(circle at bottom right, rgba(11, 61, 145, 0.18), transparent 32%), linear-gradient(135deg, #FFFFFF, #EEF5FF);
}

    .courses-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(11, 61, 145, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 61, 145, 0.05) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: linear-gradient(to bottom, black, transparent 88%);
        pointer-events: none;
    }

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 44px;
}

.pill,
.label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 950;
}

.hero-copy h1 {
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.065em;
    color: var(--blue-dark);
    margin: 22px 0;
    max-width: 820px;
}

.hero-copy p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 950;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 16px 34px rgba(11, 61, 145, 0.24);
}

    .btn-primary:hover {
        background: var(--blue-dark);
        transform: translateY(-2px);
    }

.btn-outline {
    background: var(--white);
    color: var(--blue-dark);
    border: 1px solid var(--border);
}

    .btn-outline:hover {
        transform: translateY(-2px);
        border-color: var(--blue);
    }

.search-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 650px;
    box-shadow: var(--shadow);
}

    .search-box span {
        color: var(--blue);
    }

    .search-box input {
        border: none;
        outline: none;
        width: 100%;
        padding: 15px 0;
        background: transparent;
        color: var(--text);
    }

.hero-panel {
    position: relative;
    isolation: isolate;
    background: linear-gradient(145deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);
    padding: 38px;
    border-radius: 38px;
    min-height: 390px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-panel-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.22);
    top: -120px;
    right: -120px;
    z-index: -1;
}

.hero-panel-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 44px;
    margin-bottom: 22px;
}

.hero-panel h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.hero-panel p {
    color: #D8E2F0;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

    .stats-grid div {
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 20px;
        padding: 16px;
    }

    .stats-grid strong,
    .stats-grid span {
        display: block;
    }

    .stats-grid strong {
        font-size: 30px;
        color: var(--gold);
    }

    .stats-grid span {
        color: #D8E2F0;
        font-size: 13px;
        font-weight: 800;
    }

.catalog {
    padding: 76px 0;
}

.catalog-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

    .catalog-top h2,
    .benefits h2,
    .process h2,
    .faq h2 {
        font-size: clamp(34px, 4vw, 56px);
        color: var(--blue-dark);
        line-height: 1.04;
        letter-spacing: -0.045em;
        margin-top: 12px;
    }

    .catalog-top p,
    .benefits p,
    .process p,
    .faq p {
        color: var(--muted);
        line-height: 1.7;
        margin-top: 10px;
    }

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--blue-dark);
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 950;
    transition: 0.2s ease;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: var(--blue);
        color: var(--white);
        border-color: var(--blue);
    }

.catalog-tools {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.result-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 850;
}

    .result-count span:first-child {
        color: var(--blue);
    }

.sort-select {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 11px 13px;
    background: var(--bg);
    color: var(--blue-dark);
    font-weight: 800;
    outline: none;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.course-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 390px;
    overflow: hidden;
    transition: 0.22s ease;
}

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-strong);
    }

    .course-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        background: linear-gradient(90deg, var(--blue), var(--gold));
    }

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.course-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
}

    .course-icon span {
        font-size: 32px;
    }

.badge {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    text-transform: capitalize;
}

.badge-activo {
    background: #DCFCE7;
    color: #166534;
}

.badge-finalizado {
    background: #FEF3C7;
    color: #92400E;
}

.badge-cancelado {
    background: #FEE2E2;
    color: #991B1B;
}

.course-card h3 {
    font-size: 23px;
    color: var(--blue-dark);
    margin-bottom: 12px;
    line-height: 1.15;
}

.course-card p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.course-meta {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

    .course-meta div {
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--muted);
        font-weight: 780;
    }

    .course-meta span {
        color: var(--blue);
        font-size: 21px;
    }

.capacity-box {
    margin-top: 18px;
}

.capacity-row {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 8px;
}

.capacity-track {
    height: 9px;
    background: var(--blue-soft);
    border-radius: 999px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    width: 42%;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    border-radius: inherit;
}

.course-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.course-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    padding: 12px 14px;
    font-weight: 950;
    transition: 0.2s ease;
}

    .course-action.primary {
        background: var(--blue);
        color: var(--white);
    }

    .course-action.secondary {
        background: var(--blue-soft);
        color: var(--blue);
    }

    .course-action:hover {
        transform: translateY(-2px);
    }

.skeleton-card {
    min-height: 390px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #EDF2F7 25%, #F8FAFC 37%, #EDF2F7 63%);
    background-size: 400% 100%;
    animation: shimmer 1.25s ease infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.empty-state {
    grid-column: 1 / -1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 42px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

    .empty-state span {
        font-size: 56px;
        color: var(--gold);
        margin-bottom: 12px;
    }

    .empty-state h3 {
        color: var(--blue-dark);
        font-size: 26px;
        margin-bottom: 8px;
    }

.benefits {
    padding: 86px 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.20), transparent 32%), linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 46px;
    align-items: center;
}

.benefits h2,
.benefits p {
    color: var(--white);
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

    .benefit-list article {
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 24px;
        padding: 24px;
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
        will-change: transform;
    }

    .benefit-list article:hover,
    .benefit-list article:focus-within {
        transform: translateY(-8px);
        background: rgba(255, 255, 255, 0.16);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
    }

    .benefit-list span {
        color: var(--gold);
        font-size: 42px;
    }

    .benefit-list h3 {
        margin: 12px 0 8px;
        font-size: 22px;
    }

    .benefit-list p {
        color: #D8E2F0;
    }

/* =========================================================
   PROCESO DE REGISTRO
   ========================================================= */

.process {
    position: relative;
    padding: 100px 0;
    background: var(--bg);
    overflow: hidden;
}


/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.process-heading {
    max-width: 900px;
    margin: 0 auto 55px;
}

.process-heading-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.process-heading .label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 20px;

    background: var(--blue-soft);
    color: var(--blue);

    border-radius: 999px;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
}


/* Título principal */

.process-heading h2 {
    margin: 0;

    color: var(--blue-dark);

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 900;
}


/* Texto debajo del título */

.process-intro {
    max-width: 680px;
    margin: 18px 0 0;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   BOTÓN DEL MANUAL
   --------------------------------------------------------- */

.process-manual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 22px;

    border: 0;
    border-radius: 999px;

    background: var(--blue);
    color: var(--white);

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(11, 61, 145, 0.20);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.process-manual:hover {
    transform: translateY(-3px);

    background: var(--blue-dark);

    box-shadow:
        0 18px 35px rgba(11, 61, 145, 0.25);
}

.process-manual .material-symbols-rounded {
    font-size: 22px;
}


/* ---------------------------------------------------------
   GRID DE TARJETAS
   --------------------------------------------------------- */

.process-grid {
    display: grid;

    /*
       6 columnas nos permiten centrar perfectamente
       las tarjetas 04 y 05 en la segunda fila.
    */
    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 24px;

    max-width: 1250px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   TARJETAS
   --------------------------------------------------------- */

.process-card {
    grid-column: span 2;

    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 390px;

    padding: 34px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Tarjetas 04 y 05 centradas */

.process-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.process-card:nth-child(5) {
    grid-column: 4 / span 2;
}


/* Efecto hover */

.process-card:hover {
    transform: translateY(-8px);

    border-color: rgba(11, 61, 145, 0.18);

    box-shadow: var(--shadow-strong);
}


/* ---------------------------------------------------------
   NÚMERO
   --------------------------------------------------------- */

.process-number {
    color: var(--gold);

    font-size: 48px;
    line-height: 1;

    font-weight: 950;
    letter-spacing: -0.04em;

    margin-bottom: 32px;
}


/* ---------------------------------------------------------
   CONTENIDO
   --------------------------------------------------------- */

.process-card-content {
    flex: 1;
}

.process-card h3 {
    margin: 0 0 14px;

    color: var(--blue-dark);

    font-size: 25px;
    line-height: 1.2;

    font-weight: 850;
    letter-spacing: -0.025em;
}

.process-card p {
    margin: 0;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.75;
}

.process-card strong {
    color: var(--blue-dark);
    font-weight: 800;
}


/* ---------------------------------------------------------
   BOTONES DE LAS TARJETAS
   --------------------------------------------------------- */

.process-action {
    margin-top: 30px;
}

.process-action .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 50px;

    padding: 0 20px;

    border-radius: 999px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.process-action .btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(11, 61, 145, 0.20);
}

.process-action .material-symbols-rounded {
    font-size: 21px;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .process {
        padding: 80px 0;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-card,
    .process-card:nth-child(4),
    .process-card:nth-child(5) {
        grid-column: span 1;
    }

    .process-card {
        min-height: 360px;
    }
}


/* ---------------------------------------------------------
   MÓVIL
   --------------------------------------------------------- */

@media (max-width: 680px) {

    .process {
        padding: 65px 0;
    }

    .process-heading {
        margin-bottom: 38px;
    }

    .process-heading-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .process-heading h2 {
        font-size: 42px;
    }

    .process-intro {
        font-size: 16px;
        line-height: 1.65;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .process-card,
    .process-card:nth-child(4),
    .process-card:nth-child(5) {
        grid-column: 1;
    }

    .process-card {
        min-height: auto;
        padding: 28px;
    }

    .process-number {
        font-size: 42px;
        margin-bottom: 25px;
    }

    .process-card h3 {
        font-size: 23px;
    }

    .process-card p {
        font-size: 16px;
    }

    .process-action .btn {
        width: 100%;
    }

    .process-manual {
        width: 100%;
    }
}
.faq {
    padding: 86px 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 46px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

    .faq-list article {
        display: flex;
        gap: 18px;
        background: var(--bg);
        border-radius: 22px;
        padding: 22px;
        border: 1px solid var(--border);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        will-change: transform;
    }

    .faq-list article:hover,
    .faq-list article:focus-within {
        transform: translateY(-8px);
        box-shadow: var(--shadow-strong);
        border-color: var(--gold);
    }

    .faq-list span {
        color: var(--gold);
        font-size: 36px;
    }

    .faq-list h3 {
        margin-bottom: 8px;
        color: var(--blue-dark);
    }

.course-modal {
    width: min(760px, calc(100% - 32px));
    border: none;
    border-radius: 28px;
    padding: 0;
    background: transparent;
    margin: auto;
}

    .course-modal::backdrop {
        background: rgba(8, 31, 69, 0.72);
        backdrop-filter: blur(8px);
    }

.modal-card {
    background: var(--white);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-strong);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
}

.modal-kicker {
    color: var(--gold);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.modal-title {
    font-size: clamp(30px, 5vw, 46px);
    color: var(--blue-dark);
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin: 10px 52px 14px 0;
}

.modal-description {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.modal-info-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    .modal-info-item span {
        color: var(--blue);
    }

    .modal-info-item strong {
        display: block;
        color: var(--blue-dark);
        margin-bottom: 4px;
    }

    .modal-info-item small {
        color: var(--muted);
        font-weight: 800;
    }

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.register-modal {
    width: min(860px, calc(100% - 32px));
    border: none;
    border-radius: 30px;
    padding: 0;
    background: transparent;
    margin: auto;
}

    .register-modal::backdrop {
        background: rgba(8, 31, 69, 0.74);
        backdrop-filter: blur(8px);
    }

.register-card {
    background: var(--white);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow-strong);
    position: relative;
}

.register-heading {
    margin-bottom: 24px;
    max-width: 680px;
}

    .register-heading h2 {
        font-size: clamp(30px, 5vw, 46px);
        color: var(--blue-dark);
        letter-spacing: -0.045em;
        line-height: 1.04;
        margin: 10px 52px 10px 0;
    }

    .register-heading p {
        color: var(--muted);
        line-height: 1.7;
    }

.registration-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

    .form-group label {
        color: var(--blue-dark);
        font-weight: 900;
        font-size: 14px;
    }

    .form-group input {
        width: 100%;
        border: 1px solid var(--border);
        background: var(--bg);
        border-radius: 16px;
        padding: 13px 14px;
        outline: none;
        color: var(--text);
        transition: 0.2s ease;
    }

        .form-group input:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.12);
            background: var(--white);
        }

.full {
    grid-column: 1 / -1;
}

.student-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.type-option {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    padding: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .type-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .type-option span {
        display: grid;
        gap: 4px;
    }

    .type-option strong {
        color: var(--blue-dark);
    }

    .type-option small {
        color: var(--muted);
        font-weight: 800;
    }

    .type-option:has(input:checked) {
        border-color: var(--blue);
        background: var(--blue-soft);
        box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.08);
    }

.register-alert {
    grid-column: 1 / -1;
    padding: 16px;
    border-radius: 18px;
    font-weight: 850;
    line-height: 1.6;
}

    .register-alert.success {
        background: #DCFCE7;
        color: #166534;
    }

    .register-alert.error {
        background: #FEE2E2;
        color: #991B1B;
    }

    .register-alert.info {
        background: var(--blue-soft);
        color: var(--blue);
    }

.hidden {
    display: none !important;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

@media (max-width: 680px) {
    .registration-form,
    .student-type-grid {
        grid-template-columns: 1fr;
    }

    .register-card {
        padding: 24px;
    }
}

/* =========================
   FOOTER INSTITUCIONAL + GOBIERNO
========================= */

.site-footer {
    color: var(--white);
}

/* =========================
   FOOTER INSTITUCIONAL
========================= */

.institution-footer {
    background: #1F477B;
    color: var(--white);
    padding: 28px 0 22px;
}

.institution-footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr 260px;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.institution-footer-column h3,
.visit-counter h3 {
    color: var(--white);
    font-size: 17px;
    font-weight: 950;
    margin-bottom: 18px;
    text-align: center;
}

.institution-footer-column p {
    color: #FFFFFF;
    line-height: 1.55;
    font-size: 15px;
    font-weight: 650;
    text-align: center;
}

.institution-contact {
    margin-top: 26px;
}

.institution-links {
    display: grid;
    gap: 8px;
    justify-items: center;
}

    .institution-links a {
        color: rgba(255, 255, 255, 0.82);
        font-size: 15px;
        font-weight: 750;
        line-height: 1.35;
        text-align: center;
        transition: 0.2s ease;
    }

        .institution-links a:hover {
            color: var(--white);
            text-decoration: underline;
            text-underline-offset: 4px;
        }

.visit-counter {
    margin-top: 28px;
    text-align: center;
}

    .visit-counter span {
        display: inline-flex;
        min-width: 72px;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.10);
        color: var(--white);
        border: 1px solid rgba(255, 255, 255, 0.16);
        font-weight: 950;
    }

.institution-map-card {
    width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    justify-self: end;
}

    .institution-map-card iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

.institution-footer-bottom {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    gap: 18px;
    justify-items: center;
    text-align: center;
}

    .institution-footer-bottom p {
        color: var(--white);
        font-size: 14px;
        line-height: 1.5;
    }

    .institution-footer-bottom strong,
    .institution-footer-bottom span {
        display: block;
    }


/* =========================
   FOOTER RESPONSIVE
========================= */

@media (max-width: 1120px) {
    .institution-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .institution-map-card {
        grid-column: 1 / -1;
        justify-self: center;
        width: 240px;
    }

    .government-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .institution-footer {
        padding: 24px 0 20px;
    }

    .institution-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .institution-map-card {
        width: min(230px, 100%);
    }

    .institution-footer-column h3,
    .visit-counter h3,
    .institution-footer-column p,
    .institution-links a {
        text-align: center;
    }

    .government-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .government-brand {
        justify-content: center;
    }

    .government-column {
        text-align: left;
    }

    .social-icons {
        gap: 16px;
    }
}

@media (max-width: 420px) {
    .institution-map-card {
        width: 210px;
    }

    .government-footer {
        padding-bottom: 24px;
    }

    .help-line {
        align-items: flex-start;
    }
}



@media (max-width: 980px) {
    .footer-content {
        display: grid;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .courses-footer {
        padding: 38px 0 24px;
    }

    .footer-brand {
        display: grid;
    }

    .footer-mark {
        width: 58px;
        height: 58px;
        border-radius: 20px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .footer-links a {
            text-align: center;
        }

    .footer-privacy > div {
        display: grid;
    }

    .footer-bottom {
        display: grid;
    }
}

@media (max-width: 420px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--gold);
    color: var(--blue-dark);
    display: none;
    place-items: center;
    box-shadow: var(--shadow);
    z-index: 90;
}

    .back-to-top.show {
        display: grid;
    }

@media (max-width: 1180px) {
    .institution-content {
        display: grid;
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .institution-brand {
        flex-wrap: wrap;
        gap: 18px;
    }

        .institution-brand img {
            height: 48px;
            max-width: 220px;
        }

    .brand-text {
        min-width: min(100%, 380px);
    }

    .desktop-nav {
        gap: 16px;
    }

    .login-link {
        padding-inline: 14px;
    }
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .header-content {
        min-height: 72px;
    }

    .brand {
        min-width: 0;
    }

    .hero-grid,
    .benefits-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-top,
    .catalog-tools,
    .footer-content {
        display: grid;
    }

    .hero-panel {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .gov-content {
        min-height: 56px;
    }

    .gov-brand img {
        height: 34px;
    }

    .gov-links {
        gap: 14px;
        font-size: 14px;
    }

    .institution-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .institution-brand {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

        .institution-brand img {
            height: auto;
            max-height: 46px;
            max-width: 100%;
        }

    .brand-text {
        padding-left: 0;
        min-width: 0;
    }

    .privacy-link {
        max-width: none;
        font-size: 15px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .login-link {
        display: none;
    }

    .brand small {
        display: none;
    }

    .courses-hero {
        padding: 64px 0 52px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 13vw, 54px);
    }

    .stats-grid,
    .courses-grid,
    .benefit-list,
    .process-grid,
    .modal-info-grid {
        grid-template-columns: 1fr;
    }

    .course-actions {
        grid-template-columns: 1fr;
    }

    .catalog,
    .benefits,
    .process,
    .faq {
        padding: 62px 0;
    }

    .modal-card {
        padding: 24px;
    }
}

/* =========================
   HEADER RESPONSIVE NUEVO
========================= */

@media (max-width: 1180px) {
    .site-content {
        grid-template-columns: minmax(280px, 1fr) auto;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .privacy-link {
        display: none;
    }
}

@media (max-width: 900px) {
    .site-content {
        min-height: 72px;
        display: flex;
        justify-content: space-between;
        gap: 16px;
    }

    .institution-brand {
        flex: 1;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text span {
        font-size: 12px;
    }

    .login-link {
        min-height: 40px;
        padding-inline: 13px;
    }
}

@media (max-width: 760px) {
    .gov-content {
        min-height: 44px;
    }

    .gov-bar {
        max-height: 44px;
    }

    .gov-brand img {
        height: 30px;
    }

    .gov-links {
        gap: 12px;
        font-size: 13px;
    }

        .gov-links a {
            display: none;
        }

    .site-content {
        min-height: 70px;
    }

    .institution-logos {
        gap: 7px;
    }

    .logo-educacion {
        height: 24px;
        max-width: 78px;
    }

    .logo-tecnm {
        height: 38px;
        max-width: 72px;
    }

    .brand-text strong {
        font-size: 15px;
        line-height: 1.12;
    }

    .brand-text span {
        display: none;
    }

    .login-link {
        display: none;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .site-content {
        min-height: 66px;
        gap: 10px;
    }

    .institution-brand {
        gap: 10px;
    }

    .logo-educacion {
        display: none;
    }

    .logo-tecnm {
        height: 40px;
        max-width: 74px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .mobile-nav.open {
        padding-inline: 12px;
    }
}

/* BOTÓN DE CONTACTO */

.contact-section {
    margin-top: 24px;
}

.contact-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 16px;
    background: var(--blue);
    color: var(--white);
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(11, 61, 145, .2);
    transition: .25s ease;
}

    .contact-open-btn:hover {
        background: var(--blue-dark);
        transform: translateY(-2px);
    }

/* MODAL */

.contact-dialog {
    width: min(900px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 28px;
    background: var(--white);
    color: var(--text);
    overflow-y: auto;
    box-shadow: 0 30px 90px rgba(8,31,69,.30);
}

    .contact-dialog::backdrop {
        background: rgba(8,31,69,.76);
        backdrop-filter: blur(7px);
    }

    .contact-dialog[open] {
        animation: contact-in .25s ease-out;
    }

@keyframes contact-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ENCABEZADO */

.contact-dialog-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 32px;
    background: linear-gradient( 125deg, var(--blue-dark), var(--blue-mid) );
    color: white;
}

    .contact-dialog-header h2 {
        margin: 12px 0;
        font-size: clamp(24px, 3vw, 32px);
        color: white;
    }

    .contact-dialog-header p {
        color: #DAE6FA;
        line-height: 1.6;
    }

.contact-dialog-kicker {
    color: var(--gold);
    font-weight: 900;
}

.contact-dialog-close {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    background: rgba(255,255,255,.15);
    color: white;
}

/* NAVEGACIÓN */

.contact-dialog-body {
    display: grid;
    grid-template-columns: 34% 66%;
}

.contact-dialog-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 14px;
    background: var(--bg);
    border-right: 1px solid var(--border);
}

.contact-dialog-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: transparent;
    color: var(--blue-dark);
    font-weight: 850;
    text-align: left;
    transition: .2s ease;
}

    .contact-dialog-tab:hover {
        background: var(--blue-soft);
    }

    .contact-dialog-tab[aria-selected="true"] {
        background: white;
        color: var(--blue);
        box-shadow: 0 5px 18px rgba(8,31,69,.07);
    }

/* INFORMACIÓN */

.contact-dialog-panel {
    min-width: 0;
    padding: 32px;
}

    .contact-dialog-panel h3 {
        margin: 14px 0 25px;
        font-size: clamp(23px, 3vw, 30px);
        color: var(--blue-dark);
    }

.contact-dialog-panel-top {
    display: flex;
    justify-content: space-between;
}

.contact-dialog-eyebrow,
.contact-dialog-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.contact-dialog-person strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    color: var(--blue-dark);
}

.contact-dialog-person p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.contact-dialog-email {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin: 25px 0 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow-wrap: anywhere;
}

.contact-dialog-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--blue);
    color: white;
    border-radius: 14px;
    font-weight: 900;
}

    .contact-dialog-mail:hover {
        background: var(--blue-dark);
    }

    .contact-dialog-mail.is-disabled {
        opacity: .5;
        pointer-events: none;
    }

.contact-dialog-notice {
    margin-top: 12px;
    color: var(--burgundy);
    font-size: 13px;
}

    .contact-dialog-notice[hidden] {
        display: none;
    }

.contact-dialog-footer {
    padding: 14px;
    background: var(--bg);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

/* RESPONSIVO */

@media (max-width: 660px) {
    .contact-open-btn {
        width: 100%;
        flex-wrap: wrap;
    }

    .contact-dialog-body {
        grid-template-columns: 1fr;
    }

    .contact-dialog-tabs {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .contact-dialog-tab {
        flex: 0 0 auto;
        max-width: 195px;
    }

    .contact-dialog-header,
    .contact-dialog-panel {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-dialog[open] {
        animation: none;
    }
}