﻿/* Chip PDF premium para transparencia */
.pdf-chip-premium {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 1.1rem 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #e57373 0%, #f8bbd0 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 2px 8px #ffd70022;
    letter-spacing: 1.1px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    text-shadow: 0 1px 0 #fff8;
    transition: box-shadow 0.18s, background 0.18s;
}
.pdf-chip-premium:hover {
    background: linear-gradient(90deg, #f8bbd0 0%, #e57373 100%);
    box-shadow: 0 4px 16px #ffd70044;
}
/* Tarjeta PDF ultra premium */
.pdf-card-premium {
    background: #fff !important;
    color: #222 !important;
    border: 2.5px solid #ffd700 !important;
    box-shadow: 0 8px 32px rgba(198,40,40,0.08), 0 0 0 2px #fff inset;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-align: center;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    padding: 1.7em 1.1em 1.2em 1.1em;
    position: relative;
    overflow: hidden;
}
.pdf-card-premium:hover {
    box-shadow: 0 16px 48px #ffd70033, 0 0 0 2.5px #ffd700 inset;
    border-color: #ffec80 !important;
    transform: translateY(-2px) scale(1.04);
}
.pdf-card-premium-badge {
    position: absolute;
    top: 0.9em;
    left: 0.9em;
    background: linear-gradient(90deg, #e57373 0%, #f8bbd0 100%);
    color: #bfa100;
    font-weight: 900;
    font-size: 0.92em;
    padding: 0.32em 1.1em 0.32em 1.1em;
    border-radius: 8px 16px 16px 8px;
    box-shadow: 0 2px 8px #ffd70022;
    letter-spacing: 1.2px;
    z-index: 2;
    border: 1.5px solid #ffd700;
    text-shadow: none;
}
.pdf-card-premium-icon {
    margin-bottom: 0.7em;
    margin-top: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.25);
    border-radius: 14px;
    box-shadow: 0 2px 12px #ffd70022, 0 1px 4px #e5737322;
    padding: 0.4em;
    backdrop-filter: blur(1.5px);
}
.pdf-card-premium-title {
    font-size: 0.93em;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #fff9, 0 1px 0 #ffd70033;
    margin-bottom: 0.1em;
    max-width: 95%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}
/* Tarjeta premium PDF */
.pdf-card-premium {
    background: linear-gradient(120deg, #e57373 0%, #f06292 100%) !important;
    color: #fff !important;
    border: 2.5px solid #ffd700 !important; /* Borde dorado premium */
    box-shadow: 0 8px 32px rgba(198,40,40,0.13), 0 0 18px 2px #ffe082 inset;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-align: center;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
    padding: 1.5em 1em;
    position: relative;
    overflow: hidden;
}
.pdf-card-premium:hover {
    background: linear-gradient(120deg, #f06292 0%, #e57373 100%) !important;
    box-shadow: 0 16px 48px rgba(198,40,40,0.18), 0 0 32px 4px #ffe082 inset;
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.08) drop-shadow(0 0 8px #ffd70088);
}
.pdf-card-premium-icon {
    margin-bottom: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-card-premium-title {
    font-size: 0.98em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #fff9, 0 1px 0 #ffd700cc;
    margin-bottom: 0.1em;
    max-width: 95%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Solo ícono PDF premium en la tarjeta */
.pdf-icon-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0.7em auto 0.7em auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s;
}
.pdf-icon-only:hover {
    transform: scale(1.12) rotate(-4deg);
    background: none;
}
/* === PDF BUTTON IMPACT === */
.pdf-btn-impact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 180px;
    margin: 0.7em auto 0.7em auto;
    background: linear-gradient(120deg, #c62828 0%, #e53935 100%);
    color: #fff;
    border-radius: 18px;
    padding: 1.2em 0.5em 1em 0.5em;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 6px 32px rgba(198,40,40,0.18);
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
    position: relative;
    overflow: hidden;
}
.pdf-btn-impact:hover {
    background: linear-gradient(120deg, #b71c1c 0%, #d32f2f 100%);
    box-shadow: 0 12px 40px rgba(198,40,40,0.22);
    transform: translateY(-2px) scale(1.04);
}
.pdf-btn-impact-icon {
    margin-bottom: 0.3em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-btn-impact-label {
    font-size: 1.25em;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 0.1em;
    text-shadow: 0 2px 8px rgba(183,28,28,0.10);
}
.pdf-btn-impact-desc {
    font-size: 0.98em;
    font-weight: 600;
    color: #ffeaea;
    opacity: 0.92;
    margin-top: 0.1em;
    letter-spacing: 1px;
}
/* === PDF BUTTON PREMIUM === */
/* Ajuste: ancho máximo, centrado, padding visual */
.pdf-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    min-width: 180px;
    max-width: 100%;
    background: linear-gradient(90deg, #c62828 0%, #e53935 100%);
    color: #fff;
    border-radius: 999px;
    padding: 0.55em 1.7em 0.55em 1.2em;
    font-weight: 800;
    font-size: 1.08rem;
    box-shadow: 0 4px 18px rgba(198,40,40,0.13);
    text-decoration: none;
    margin: 0.7em auto 0.7em auto;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    border: none;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
}
.pdf-btn-premium:hover {
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 100%);
    box-shadow: 0 8px 32px rgba(198,40,40,0.18);
    transform: translateY(-2px) scale(1.03);
}
.pdf-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    background: rgba(255,255,255,0.13);
    border-radius: 6px;
    margin-right: 0.4em;
    flex-shrink: 0;
}
.pdf-btn-text {
    font-size: 1.08em;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 8px rgba(183,28,28,0.10);
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}
/* === PDF PREMIUM BUTTON === */
.pdf-premium-btn {
    display: flex;
    align-items: center;
    gap: 1.1em;
    background: linear-gradient(90deg, #c62828 0%, #e53935 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.1em 2.1em 1.1em 1.3em;
    font-weight: 700;
    font-size: 1.08rem;
    box-shadow: 0 4px 24px rgba(198,40,40,0.13);
    text-decoration: none;
    position: relative;
    min-width: 260px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    overflow: hidden;
}
.pdf-premium-btn:hover {
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 100%);
    box-shadow: 0 8px 32px rgba(198,40,40,0.18);
    transform: translateY(-2px) scale(1.02);
}
.pdf-premium-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.3em;
    height: 2.3em;
    background: rgba(255,255,255,0.13);
    border-radius: 10px;
    margin-right: 0.5em;
}
.pdf-premium-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18em;
    min-width: 0;
}
.pdf-premium-label {
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #fff7f7;
    opacity: 0.82;
    margin-bottom: 0.1em;
}
.pdf-premium-title {
    font-size: 1.13em;
    font-weight: 900;
    color: #fff;
    line-height: 1.18;
    margin-bottom: 0.1em;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdf-premium-date {
    font-size: 0.93em;
    color: #ffeaea;
    font-weight: 500;
    opacity: 0.85;
}
.pdf-premium-badge {
    background: #fff;
    color: #b71c1c;
    font-size: 1em;
    font-weight: 900;
    border-radius: 50px;
    padding: 0.22em 1.1em;
    margin-left: 1.1em;
    margin-right: 0.7em;
    box-shadow: 0 2px 8px rgba(183,28,28,0.10);
    letter-spacing: 1.2px;
    display: inline-block;
}
.pdf-premium-arrow {
    font-size: 1.5em;
    font-weight: 700;
    margin-left: 0.2em;
    color: #fff;
    opacity: 0.85;
    transition: transform 0.18s;
}
.pdf-premium-btn:hover .pdf-premium-arrow {
    transform: translateX(6px);
}
/* === PDF CHIP PREMIUM === */
.level-chip--pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    background: linear-gradient(90deg, #ffebee 0%, #ffcdd2 100%);
    color: #b71c1c;
    border: 1.5px solid #d32f2f;
    border-radius: 22px;
    font-weight: 700;
    font-size: 1.01rem;
    padding: 0.38em 1.2em 0.38em 0.95em;
    box-shadow: 0 2px 10px rgba(211,47,47,0.08);
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
    cursor: pointer;
    text-shadow: 0 1px 0 #fff8f8;
}
.level-chip--pdf:hover {
    background: linear-gradient(90deg, #ffcdd2 0%, #ffebee 100%);
    color: #d32f2f;
    box-shadow: 0 4px 18px rgba(211,47,47,0.13);
}
.level-chip--pdf .pdf-icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.18em;
    vertical-align: middle;
}
.menu-tree-link--no-nav {
    cursor: pointer;
    color: #0b335c;
    text-decoration: none;
}
.menu-tree-link--no-nav:hover {
    color: #0ea5a2;
    text-decoration: underline;
}
/* ══════════════════════════════════════════════════════════════════
   PREMIUM HEADER & NAVIGATION STYLES
   ══════════════════════════════════════════════════════════════════ */

/* Keyframe animations for header */
@keyframes logo-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes header-link-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Logo styling - Premium animation */
.header-navbar a[href="/"] img {
    animation: logo-float 3.2s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.header-navbar a[href="/"] img:hover {
    filter: drop-shadow(0 4px 12px rgba(0,150,136,0.25));
}

.mobile-logo img {
    animation: logo-float 3.2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.mobile-logo:hover img {
    filter: drop-shadow(0 4px 12px rgba(0,150,136,0.25));
}

/* Dropdown items animation enhancement */
.header-public .dropdown-content.academic-dropdown .academic-column ul li {
    animation: fadeInUp 0.4s ease-out backwards;
}

.header-public .dropdown-content.academic-dropdown .academic-column:nth-child(1) ul li:nth-child(1) { animation-delay: 0.05s; }
.header-public .dropdown-content.academic-dropdown .academic-column:nth-child(1) ul li:nth-child(2) { animation-delay: 0.1s; }
.header-public .dropdown-content.academic-dropdown .academic-column:nth-child(1) ul li:nth-child(3) { animation-delay: 0.15s; }
.header-public .dropdown-content.academic-dropdown .academic-column:nth-child(1) ul li:nth-child(4) { animation-delay: 0.2s; }
.header-public .dropdown-content.academic-dropdown .academic-column:nth-child(2) ul li:nth-child(1) { animation-delay: 0.1s; }
.header-public .dropdown-content.academic-dropdown .academic-column:nth-child(2) ul li:nth-child(2) { animation-delay: 0.15s; }
.header-public .dropdown-content.academic-dropdown .academic-column:nth-child(2) ul li:nth-child(3) { animation-delay: 0.2s; }
.header-public .dropdown-content.academic-dropdown .academic-column:nth-child(2) ul li:nth-child(4) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════════════ */

/* Título principal de página de detalle de carrera (header superior) */
.section-page-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #00796b;
    margin-bottom: 0.7rem;
    letter-spacing: -1px;
    text-align: center;
    position: relative;
}
.section-page-title::after {
    content: '';
    display: block;
    height: 4px;
    width: 54px;
    background: linear-gradient(90deg,#1abc9c,#3498db);
    border-radius: 2px;
    margin: 10px auto 0 auto;
}
/* Título principal de página de carrera */
.career-page-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #00796b;
    margin-bottom: 0.7rem;
    letter-spacing: -1px;
    text-align: center;
    position: relative;
}
.career-page-title .career-title-underline {
    display: block;
    height: 4px;
    width: 54px;
    background: linear-gradient(90deg,#1abc9c,#3498db);
    border-radius: 2px;
    margin: 10px auto 0 auto;
}
/* Título de Enlaces Rápidos de Navegación igual a los demás títulos */
.quick-links h2 {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
/* Padding profesional para compensar header fijo en el panel público */
.main-with-header {
    padding-top: 160px;
}

/* ══════════════════════════════════════════════════════════════════
   MISIÓN & VISIÓN — ULTRA PREMIUM SECTION
   ══════════════════════════════════════════════════════════════════ */
@keyframes mvp-card-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-5px) rotate(0.3deg); }
    66%       { transform: translateY(-2px) rotate(-0.3deg); }
}
@keyframes mvp-icon-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-4px) scale(1.04); }
}
@keyframes mvp-orb-expand {
    0%, 100% { transform: scale(1);    opacity: 0.10; }
    50%       { transform: scale(1.20); opacity: 0.22; }
}
@keyframes mvp-shimmer-sweep {
    0%   { left: -130%; }
    100% { left: 130%; }
}
@keyframes mvp-stat-in {
    from { opacity: 0; transform: translateY(18px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes mvp-tag-ring {
    0%, 100% { box-shadow: 0 0 0 0   var(--mvp-tag-glow); }
    50%       { box-shadow: 0 0 0 5px transparent; }
}
@keyframes mvp-divider-in {
    from { width: 0;    opacity: 0; }
    to   { width: 40px; opacity: 1; }
}
@keyframes mvp-num-drift {
    0%, 100% { transform: translateY(0)   translateX(0); }
    50%       { transform: translateY(-8px) translateX(4px); }
}

/* ── Section shell ── */
.mvp-section {
    position: relative;
    background: linear-gradient(160deg, #f0fdf9 0%, #f8faff 50%, #f0f4ff 100%);
    padding: 3.8rem 0 3.4rem;
    overflow: hidden;
}
.mvp-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at  5%  5%, rgba(0,150,136,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 95% 95%, rgba(59,130,246,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(16,185,129,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.mvp-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00796b 0%, #1abc9c 35%, #3b82f6 65%, #1d4ed8 100%);
    box-shadow: 0 2px 12px rgba(0,150,136,0.35);
    z-index: 1;
}
.mvp-inner { position: relative; z-index: 2; }

/* ── Header ── */
.mvp-header { text-align: center; margin-bottom: 2.4rem; }
.mvp-eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    color: #00796b;
    background: rgba(0,150,136,0.10);
    border: 1.5px solid rgba(0,150,136,0.28);
    padding: 0.42rem 1.1rem; border-radius: 50px; margin-bottom: 1.4rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0,150,136,0.12);
}
.mvp-eyebrow svg { width: 13px; height: 13px; }
.mvp-header h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 900; color: #0f172a;
    letter-spacing: -1.5px; line-height: 1.1; margin: 0 0 0.6rem;
}
.mvp-header h2 .mvp-green {
    background: linear-gradient(135deg, #00796b, #1abc9c);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mvp-header h2 .mvp-blue {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mvp-header p { color: #64748b; font-size: 0.95rem; max-width: 100%; white-space: nowrap; margin: 0 auto; line-height: 1.6; }

/* ── Grid ── */
.mvp-cards-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 2rem;
}

/* ── Card ── */
.mvp-card {
    position: relative; isolation: isolate; overflow: hidden;
    background: rgba(255,255,255,0.85);
    border-radius: 24px;
    padding: 2rem 2.2rem 2rem;
    border: 1.5px solid rgba(255,255,255,0.70);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 2px 4px   rgba(15,23,42,0.04),
        0 8px 32px  rgba(15,23,42,0.08),
        0 24px 64px rgba(15,23,42,0.06),
        inset 0  1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(15,23,42,0.04);
    transition:
        transform   0.5s cubic-bezier(0.22,1,0.36,1),
        box-shadow  0.5s cubic-bezier(0.22,1,0.36,1),
        border-color 0.4s ease;
    animation: mvp-card-float 5s ease-in-out infinite;
}
.mvp-card:nth-child(2) { animation-delay: 0.6s; }
.mvp-card:hover {
    transform: translateY(-14px) scale(1.012);
    border-color: rgba(255,255,255,0.95);
    box-shadow:
        0 2px 4px   rgba(15,23,42,0.04),
        0 16px 48px rgba(15,23,42,0.12),
        0 40px 80px rgba(15,23,42,0.08),
        0 0 60px 20px var(--mvp-glow),
        inset 0  1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(15,23,42,0.04);
}

/* (no spinning border glow) */
.mvp-card-border-glow { display: none; }

/* Glass top sheen */
.mvp-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 55%;
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, transparent 100%);
    border-radius: 32px 32px 0 0;
    pointer-events: none; z-index: 1;
}

/* Left accent bar */
.mvp-card::before {
    content: '';
    position: absolute; top: 16px; left: 0;
    width: 6px; height: calc(100% - 32px);
    border-radius: 0 4px 4px 0;
    background: var(--mvp-accent);
    box-shadow: 2px 0 18px var(--mvp-glow);
    transition: width 0.4s ease, box-shadow 0.4s ease;
    z-index: 3;
}
.mvp-card:hover::before { width: 8px; box-shadow: 3px 0 24px var(--mvp-glow); }

/* Decorative orbs */
.mvp-card-pattern {
    position: absolute; top: -50px; right: -50px;
    width: 200px; height: 200px; border-radius: 50%;
    background: var(--mvp-accent-faint);
    pointer-events: none; z-index: 0;
    animation: mvp-orb-expand 4s ease-in-out infinite;
}
.mvp-card-pattern::after {
    content: ''; position: absolute; inset: 30px; border-radius: 50%;
    background: var(--mvp-accent-faint);
    animation: mvp-orb-expand 4s ease-in-out infinite reverse;
}
.mvp-card-orb2 {
    position: absolute; bottom: -40px; left: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: var(--mvp-accent-faint);
    pointer-events: none; z-index: 0; opacity: 0.6;
    animation: mvp-orb-expand 5.5s ease-in-out infinite 1s;
}

/* Color variables per card */
.mvp-card-mision {
    --mvp-accent: linear-gradient(180deg,#00796b,#1abc9c);
    --mvp-accent-faint: rgba(0,150,136,0.09);
    --mvp-glow: rgba(0,150,136,0.20);
    --mvp-tag-glow: rgba(0,150,136,0.30);
}
.mvp-card-vision {
    --mvp-accent: linear-gradient(180deg,#1d4ed8,#3b82f6);
    --mvp-accent-faint: rgba(59,130,246,0.09);
    --mvp-glow: rgba(59,130,246,0.20);
    --mvp-tag-glow: rgba(29,78,216,0.30);
}

/* ── Icon ── */
.mvp-icon {
    width: 72px; height: 72px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.6rem;
    position: relative; z-index: 2;
    animation: mvp-icon-bob 3s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
    overflow: hidden;
}
.mvp-card:hover .mvp-icon { transform: scale(1.12); animation: none; }
.mvp-icon::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 55%;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, transparent 100%);
    z-index: 1;
}
.mvp-icon::after {
    content: '';
    position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    animation: mvp-shimmer-sweep 2.5s ease-in-out infinite;
    z-index: 2;
}
/* (no orbiting particle) */
.mvp-icon-particle { display: none; }

.mvp-card-mision .mvp-icon {
    background: linear-gradient(135deg,#00796b 0%,#1abc9c 100%);
    box-shadow: 0 10px 28px rgba(0,150,136,0.40), inset 0 1px 3px rgba(255,255,255,0.40), 0 0 0 4px rgba(0,150,136,0.12);
}
.mvp-card-vision .mvp-icon {
    background: linear-gradient(135deg,#1d4ed8 0%,#3b82f6 100%);
    box-shadow: 0 10px 28px rgba(29,78,216,0.38), inset 0 1px 3px rgba(255,255,255,0.40), 0 0 0 4px rgba(29,78,216,0.12);
}
.mvp-icon svg { width: 32px; height: 32px; color: #fff; position: relative; z-index: 3; }

/* ── Tag ── */
.mvp-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase;
    padding: 0.45rem 1.1rem; border-radius: 50px;
    margin-bottom: 0.9rem;
    position: relative; z-index: 2;
    backdrop-filter: blur(10px);
    animation: mvp-tag-ring 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.mvp-tag::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; opacity: 0.7;
}
.mvp-card:hover .mvp-tag { transform: scale(1.04); }
.mvp-card-mision .mvp-tag { background: rgba(0,150,136,0.12); color:#00796b; border:1.5px solid rgba(0,150,136,0.28); box-shadow:0 2px 10px rgba(0,150,136,0.12); }
.mvp-card-vision  .mvp-tag { background: rgba(29,78,216,0.12);  color:#1d4ed8; border:1.5px solid rgba(29,78,216,0.28);  box-shadow:0 2px 10px rgba(29,78,216,0.12); }

/* Number watermark */
.mvp-num {
    position: absolute; bottom: -0.5rem; right: 1.4rem;
    font-size: 8rem; font-weight: 900;
    color: rgba(15,23,42,0.03);
    line-height: 1; letter-spacing: -8px;
    user-select: none; pointer-events: none; z-index: 0;
    animation: mvp-num-drift 7s ease-in-out infinite;
}

/* Title */
.mvp-card h3 {
    font-size: 1.75rem; font-weight: 900; color: #0f172a;
    margin: 0 0 0.5rem; letter-spacing: -1px;
    position: relative; z-index: 2;
    transition: color 0.3s ease;
}
.mvp-card-mision:hover h3 { color: #00513d; }
.mvp-card-vision:hover  h3 { color: #1e3a8a; }

/* Divider */
.mvp-divider {
    width: 0; height: 4px; border-radius: 2px;
    margin: 0.9rem 0 1.4rem;
    position: relative; z-index: 2;
    animation: mvp-divider-in 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}
.mvp-card-mision .mvp-divider { background: linear-gradient(90deg,#00796b,#1abc9c); box-shadow: 0 2px 8px rgba(0,150,136,0.35); }
.mvp-card-vision  .mvp-divider { background: linear-gradient(90deg,#1d4ed8,#3b82f6); box-shadow: 0 2px 8px rgba(29,78,216,0.35); }
.mvp-card:hover .mvp-divider { width: 60px; transition: width 0.4s ease; }

/* Body text */
.mvp-card p {
    color: #475569; font-size: 0.99rem; line-height: 1.90;
    margin: 0; position: relative; z-index: 2;
    text-align: justify;
    transition: color 0.3s ease;
}
.mvp-card:hover p { color: #334155; }

/* ── Stats ── */
.mvp-stats-row {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 1.6rem;
}
.mvp-stat {
    position: relative; isolation: isolate; overflow: hidden;
    background: rgba(255,255,255,0.80);
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 22px; padding: 2rem 1.2rem;
    text-align: center;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.90);
    transition: all 0.45s cubic-bezier(0.22,1,0.36,1);
    animation: mvp-stat-in 0.6s ease-out backwards;
}
.mvp-stat:nth-child(1) { animation-delay: 0.10s; }
.mvp-stat:nth-child(2) { animation-delay: 0.20s; }
.mvp-stat:nth-child(3) { animation-delay: 0.30s; }
.mvp-stat:nth-child(4) { animation-delay: 0.40s; }
.mvp-stat::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 55%;
    background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, transparent 100%);
    border-radius: 22px 22px 0 0; pointer-events: none;
}
.mvp-stat::after {
    content: ''; position: absolute; inset: 0; left: -130%; width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
    transform: skewX(-20deg); transition: left 0s;
}
.mvp-stat:hover::after { left: 130%; transition: left 0.5s ease; }
.mvp-stat:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(0,150,136,0.25);
    box-shadow: 0 20px 48px rgba(15,23,42,0.12), 0 0 30px 8px rgba(0,150,136,0.08), inset 0 1px 0 rgba(255,255,255,0.95);
}
.mvp-stat-num {
    font-size: 2.5rem; font-weight: 900;
    background: linear-gradient(135deg,#00796b 0%,#3b82f6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1; margin-bottom: 0.6rem;
    position: relative; z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(0,150,136,0.20));
}
.mvp-stat-label {
    font-size: 0.77rem; font-weight: 700; color: #64748b;
    letter-spacing: 1.5px; text-transform: uppercase;
    position: relative; z-index: 1;
}

@media (max-width: 768px) {
    .main-with-header { padding-top: 200px; }
    .mvp-cards-row { grid-template-columns: 1fr; }
    .mvp-stats-row { grid-template-columns: repeat(2,1fr); }
}
/* Separación profesional para el header de carreras */
.career-header {
    margin-top: 3.5rem;
    display: block;
}
/* Fondo diferenciado para títulos y descripciones en menús desplegables */
.header-public .academic-dropdown-header {
    background: linear-gradient(135deg, rgba(0,150,136,0.12) 0%, rgba(59,130,246,0.12) 100%);
    border: 1px solid rgba(0,150,136,0.15);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
}

.header-public .academic-dropdown-header h3 {
    font-size: 1.4rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.header-public .academic-dropdown-header p {
    font-size: 1.01rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.6;
}
/* Eliminar subrayado/border-bottom de todos los enlaces del header público, incluyendo hover y active */
.header-public .header-link,
.header-public .header-link:active,
.header-public .header-link:focus,
.header-public .header-link:hover {
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
/* Quitar subrayado/border-bottom de los enlaces del header público */
.header-public .header-link {
    border-bottom: none !important;
    box-shadow: none !important;
}
.academic-dropdown-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, max-content));
    gap: 2rem;
    width: auto;
    max-width: 100%;
    overflow: visible;
    align-items: start;
    position: relative;
    z-index: 1;
}

.academic-column {
    flex: 1 1 auto;
    min-width: 240px;
    max-width: 350px;
    padding: 0.5rem 0;
    box-sizing: border-box;
    word-break: break-word;
}

.header-public .academic-dropdown-columns ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.header-public .academic-dropdown-columns ul li {
    margin-bottom: 0.1rem;
}

.header-public .academic-dropdown-columns .academic-title {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #00796b;
}
.header-public,
.header-public .header-navbar,
.header-public .header-menu,
.header-public .container,
.header-public nav,
.header-public ul,
.header-public li,
.header-public a {
/* Solo fondo transparente, sin !important para permitir JS */
    background: transparent;
    box-shadow: none;
    border: none;
}
.header-public .header-navbar,
.header-public .header-menu,
.header-public .dropdown,
.header-public .dropdown-content,
.header-public .header-link {
/* Eliminar !important para permitir cambios dinámicos */
    background: transparent;
    border: none;
    box-shadow: none;
}
/* ==================== VARIABLES Y RESET ==================== */
:root {
    /* Colores ISTS - Paleta Impactante */
    --color-primary: #00a86b; /* Verde vibrante ISTS */
    --color-secondary: #1e3a8a; /* Azul profundo ISTS */
    --color-accent: #f59e0b; /* Dorado para destacar */
    --color-success: #10b981; /* Verde éxito */
    --color-warning: #f59e0b; /* Amarillo advertencia */
    --color-danger: #ef4444; /* Rojo error */
    --color-info: #3b82f6; /* Azul información */

    /* Colores neutros */
    --color-dark: #1f2937; /* Gris muy oscuro */
    --color-light: #f9fafb; /* Gris muy claro */
    --color-white: #ffffff;
    --color-gray: #6b7280; /* Gris medio */
    --color-border: #e5e7eb; /* Gris claro para bordes */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #00a86b 0%, #1e3a8a 100%);
    --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #00a86b 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

    /* Tipografía */
    --font-primary: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Inter", "Georgia", serif;

    /* Transiciones y efectos */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

body.public-sticky-footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.public-sticky-footer .public-page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.public-sticky-footer .public-page-main {
    flex: 1 0 auto;
}

body.public-sticky-footer .public-page-footer {
    margin-top: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe,
video,
canvas,
svg,
table {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 40px;
    }
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/* ==================== HEADER ==================== */

.header {
    background: transparent !important;
    box-shadow: var(--shadow-md);
    position: relative;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
}

.header-top {
    background-color: transparent;
    padding: 0.5rem 0;
}

.header-top .top-nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 2rem;
}

.header-top .top-nav a {
    color: var(--color-white);
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.header-top .login-link {
    background-color: var(--color-primary);
    border-radius: 4px;
    padding: 0.25rem 1rem;
}

.header-main {
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    height: 80px;
}

.logo {
    width: 80px;
    height: 80px;
}

.institution-name {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-dark);
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.search-box {
    display: flex;
    max-width: 400px;
    margin: 1rem auto 0;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.search-box button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--color-secondary);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 200px; /* AGREGAR ESTA LÍNEA */
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-content::before {
    content: "";
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    border-radius: 8px;
}

.hero-content h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Ajuste para el nuevo diseño de página completa */
.hero-background {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ocupar al menos toda la altura de la pantalla */
    width: 100%;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==================== FEATURED SECTION ==================== */
.featured-section {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: none !important;
}

.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-primary);
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.card-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== NEWS SECTION ==================== */
.news-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-dark);
}

.view-all {
    color: var(--color-primary);
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content time {
    display: block;
    color: var(--color-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.news-content p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==================== UPDATES/NOVEDADES SECTION ==================== */
.updates-section {
    padding: 3rem 0 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.updates-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(0, 168, 107, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.updates-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.updates-header h2 {
    font-size: 2.8rem;
    color: var(--harvard-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.updates-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Contenedor de actualizaciones */
.updates-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta completa: Texto arriba + Video e Imagen abajo */
.update-card-full {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.update-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 168, 107, 0.15);
    border-color: var(--harvard-primary);
}

/* Sección superior - Contenido de texto */
.update-header-section {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(0, 168, 107, 0.15) 0%,
        rgba(30, 58, 138, 0.15) 100%
    );
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 168, 107, 0.2);
    text-align: center;
}

.update-header-section h3 {
    font-size: 1.8rem;
    color: var(--harvard-primary);
    margin-bottom: 0.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.update-header-section p {
    color: #555;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

/* Sección inferior - Grid de 2 columnas (Video + Imagen) */
.update-media-section {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    height: 400px;
}

/* Columna izquierda - Video (60%, más amplio) */
.update-video-column {
    position: relative;
    background: #000;
    overflow: hidden;
    height: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Columna derecha - Imagen (40%, más estrecha) */
.update-image-column {
    position: relative;
    background: linear-gradient(135deg, #e8f5f1 0%, #d4ede6 100%);
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-image-column img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.update-card-full:hover .update-image-column img {
    transform: scale(1.02);
}

.video-link-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    background: linear-gradient(
        135deg,
        var(--harvard-primary) 0%,
        var(--harvard-secondary) 100%
    );
    transition: all 0.3s ease;
}

.video-link-full:hover {
    transform: scale(1.05);
}

.video-link-full svg {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.video-link-full span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Estilos para fecha y botón */
.update-date-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.date-icon {
    font-size: 1.2rem;
}

.date-text {
    font-weight: 500;
}

.btn-update-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(
        135deg,
        var(--harvard-primary),
        var(--harvard-secondary)
    );
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
}

.btn-update-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
    background: linear-gradient(
        135deg,
        var(--harvard-secondary),
        var(--harvard-primary)
    );
    gap: 1rem;
}

.btn-update-link svg {
    transition: transform 0.3s ease;
}

.btn-update-link:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 992px) {
    .update-media-section {
        grid-template-columns: 1fr;
        height: auto;
    }

    .update-video-column,
    .update-image-column {
        height: 300px;
    }

    .update-header-section {
        padding: 2rem;
    }

    .update-header-section h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .updates-section {
        padding: 3rem 0;
    }

    .updates-header h2 {
        font-size: 2rem;
    }

    .updates-container {
        gap: 2.5rem;
    }

    .update-header-section {
        padding: 1.5rem;
    }

    .update-header-section h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .update-header-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .update-video-column,
    .update-image-column {
        height: 250px;
    }

    .btn-update-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==================== ACADEMIC PROGRAMS SECTION ==================== */
.academic-programs-section {
    padding: 0.5rem 0 3rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.programs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.programs-header h2 {
    font-size: 2.8rem;
    color: var(--harvard-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.programs-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Careers Carousel */
.careers-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 4rem;
}

.careers-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    overflow: visible;
}

.career-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.career-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 168, 107, 0.2);
    border-color: var(--harvard-primary);
}

.career-images {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5f1 0%, #d4ede6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-images::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--harvard-primary) 0%,
        var(--harvard-secondary) 100%
    );
    border-radius: 50%;
    opacity: 0.1;
}

.career-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    visibility: visible;
    display: flex;
    transform: translateX(-50%) translateY(0);
}

.career-image.active {
    opacity: 1;
}

.career-content {
    padding: 2rem;
}

.career-content h3 {
    font-size: 1.5rem;
    color: var(--harvard-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.career-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.btn-career {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(
        135deg,
        var(--harvard-primary) 0%,
        var(--harvard-secondary) 100%
    );
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 168, 107, 0.3);
}

.btn-career:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 168, 107, 0.4);
}

.btn-career svg {
    transition: transform 0.3s ease;
}

.btn-career:hover svg {
    transform: translateX(3px);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--harvard-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--harvard-primary);
}

.carousel-btn:hover {
    background: var(--harvard-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.programs-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-primary-large {
    background: linear-gradient(
        135deg,
        var(--harvard-primary) 0%,
        var(--harvard-secondary) 100%
    );
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 168, 107, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 168, 107, 0.4);
}

/* ==================== CHATBOT ==================== */
.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

/* === PREMIUM CHATBOT TOGGLE === */
.chatbot-toggle {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    overflow: visible;
    animation: chatbot-float 3.6s ease-in-out infinite;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

/* Glow ring pulsante debajo del avatar */
.chatbot-toggle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,168,107,0.35) 0%, transparent 70%);
    animation: chatbot-glow-pulse 2.8s ease-in-out infinite;
    z-index: -1;
}

/* Anillo exterior animado */
.chatbot-toggle::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2.5px solid rgba(0,168,107,0.55);
    animation: chatbot-ring-spin 6s linear infinite;
    background: transparent;
}

.chatbot-toggle:hover {
    transform: scale(1.1) translateY(-4px);
}
.chatbot-toggle:hover::before {
    background: radial-gradient(circle, rgba(0,168,107,0.55) 0%, transparent 70%);
}

/* Avatar con glass container */
.chatbot-avatar-wrap {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    box-shadow:
        0 8px 32px rgba(0,168,107,0.28),
        0 2px 8px rgba(0,0,0,0.12),
        inset 0 1px 2px rgba(255,255,255,1),
        inset 0 -1px 2px rgba(0,0,0,0.06);
    border: 2px solid rgba(255,255,255,0.9);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
    transition: box-shadow 0.35s ease;
}

/* Brillo superior en el círculo */
.chatbot-avatar-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, transparent 100%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.chatbot-toggle:hover .chatbot-avatar-wrap {
    box-shadow:
        0 14px 48px rgba(0,168,107,0.45),
        0 4px 16px rgba(0,0,0,0.14),
        inset 0 1px 2px rgba(255,255,255,1);
}

.chatbot-avatar {
    width: 68px;
    height: 68px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: chatbot-bob 2.8s ease-in-out infinite;
    transition: transform 0.35s ease;
    border-radius: 50%;
}
.chatbot-toggle:hover .chatbot-avatar {
    transform: scale(1.06) rotate(-3deg);
}

/* Badge "Online" indicator */
.chatbot-online-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 15px;
    height: 15px;
    background: #22c55e;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
    animation: chatbot-dot-pulse 2s ease infinite;
    z-index: 10;
}

/* Label flotante */
.chatbot-label {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,23,42,0.88);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}
.chatbot-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(15,23,42,0.88);
}
.chatbot-toggle:hover .chatbot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Keyframes */
@keyframes chatbot-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-9px); }
}
@keyframes chatbot-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}
@keyframes chatbot-glow-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.12); }
}
@keyframes chatbot-ring-spin {
    0%   { transform: rotate(0deg); border-color: rgba(0,168,107,0.55) rgba(0,168,107,0.15) rgba(0,168,107,0.55) rgba(0,168,107,0.15); }
    100% { transform: rotate(360deg); border-color: rgba(0,168,107,0.55) rgba(0,168,107,0.15) rgba(0,168,107,0.55) rgba(0,168,107,0.15); }
}
@keyframes chatbot-dot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* legacy keep */
@keyframes chatbot-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.04); }
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 400px;
    height: 550px;
    max-height: calc(100vh - 120px);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 168, 107, 0.3);
    display: none;
    flex-direction: column;
    border: 2px solid #00a86b;
    overflow: hidden;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(135deg, #00a86b 0%, #1e3a8a 100%);
    color: var(--color-white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    min-height: 60px;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: chatbot-header-pulse 2s ease-in-out infinite;
}

@keyframes chatbot-header-pulse {
    0%,
    100% {
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 0.6);
    }
}

.chatbot-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    font-weight: 600;
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chatbot-header-actions button {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

.chatbot-header-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#chatbot-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
    min-height: 0;
    max-height: 350px; 
}

.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00a86b 0%, #008c5a 100%);
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #008c5a 0%, #00a86b 100%);
}

.bot-message,
.user-message {
    padding: 0.85rem 1.15rem;
    border-radius: 16px;
    max-width: 80%;
    animation: message-slide-in 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

@keyframes message-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: linear-gradient(135deg, #e8f5f1 0%, #d4ede6 100%);
    border: 2px solid #00a86b;
    border-left: 4px solid #00a86b;
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 168, 107, 0.1);
}

.bot-message button,
.bot-message .quick-reply-btn,
.chatbot-messages button {
    background: linear-gradient(135deg, #00a86b 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.3rem 0.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 168, 107, 0.3);
}

.bot-message button:hover,
.bot-message .quick-reply-btn:hover,
.chatbot-messages button:hover {
    background: linear-gradient(135deg, #008c5a 0%, #162d6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 168, 107, 0.4);
}

.user-message {
    background: linear-gradient(135deg, #00a86b 0%, #008c5a 100%);
    margin-left: auto;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 168, 107, 0.3);
    border-bottom-right-radius: 4px;
    color: var(--color-white);
    margin-left: auto;
    border: 2px solid #008c5a;
    box-shadow: 0 2px 8px rgba(0, 168, 107, 0.3);
}

.chatbot-form {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
    background: linear-gradient(to top, #f8f9fa 0%, #ffffff 100%);
    border-top: 2px solid #00a86b;
    flex-shrink: 0;
    min-height: 70px;
}

.chatbot-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #00a86b;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    min-width: 0;
}

.chatbot-form input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

.chatbot-form button {
    background: linear-gradient(135deg, #00a86b 0%, #1e3a8a 100%);
    color: var(--color-white);
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 168, 107, 0.3);
}

.chatbot-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.16), transparent 38%),
        radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.14), transparent 34%),
        linear-gradient(135deg, #0f131b 0%, #171c27 55%, #11151f 100%);
    color: var(--color-white);
    padding: 0.56rem 0 0.26rem;
    width: 100%;
    min-width: 100%;
    position: relative;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.footer h4,
.footer p,
.footer a,
.footer li,
.footer address,
.footer nav,
.footer span {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    letter-spacing: 0;
}

.footer::before,
.footer::after {
    display: none;
}

.footer-inner {
    width: min(1200px, 94vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.15fr;
    align-items: stretch;
    gap: 0.55rem;
    margin-bottom: 0.3rem;
    width: 100%;
}

.footer-section {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.46rem 0.56rem;
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    height: 100%;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.footer-grid .footer-section:nth-child(1) {
    --footer-accent-start: #22d3ee;
    --footer-accent-end: #38bdf8;
}

.footer-grid .footer-section:nth-child(2) {
    --footer-accent-start: #34d399;
    --footer-accent-end: #10b981;
}

.footer-grid .footer-section:nth-child(3) {
    --footer-accent-start: #f59e0b;
    --footer-accent-end: #f97316;
}

.footer-grid .footer-section:nth-child(4) {
    --footer-accent-start: #f472b6;
    --footer-accent-end: #ec4899;
}

.footer-section h4 {
    margin: 0 0 0.12rem 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.18;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 0.2rem;
}

.footer-section h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22));
}

.footer-section p,
.footer-section address {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.24;
    font-size: 0.8rem;
    margin: 0;
}

.footer-section address {
    font-style: normal;
}

.footer-brand-title {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    white-space: normal;
}

.footer-brand-title span {
    white-space: normal;
    line-height: 1.2;
}

.footer-brand-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.95;
    transform: translateY(1px);
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-section li {
    margin: 0;
    line-height: 1.25;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.16;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.22s ease, color 0.22s ease;
}

.footer-section a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-section ul li a::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
}

.footer-quick-links {
    gap: 0.04rem;
}

.footer-quick-links li {
    line-height: 1.25;
}

.footer-quick-links a {
    line-height: 1.15;
}

.footer-resources-list {
    gap: 0.04rem;
}

.footer-resources-list li {
    line-height: 1.25;
}

.footer-resources-list a {
    line-height: 1.15;
}

.footer-resources-extra {
    margin-top: 0.12rem;
}

.footer-resources-extra .footer-calendar-card {
    margin-top: 0 !important;
    padding: 0.5rem !important;
    border-radius: 9px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.footer-resources-extra .footer-calendar-card .btn {
    margin-top: 0.4rem !important;
    padding: 0.28rem 0.6rem !important;
    font-size: 0.76rem !important;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 0.28rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.22rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.78);
}

.footer-nav {
    display: flex;
    gap: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.24rem;
    margin: 0;
    line-height: 1.22;
    padding: 0.08rem 0.12rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.98rem;
    width: 0.98rem;
    height: 0.98rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: none;
}

.footer-contact-icon svg {
    width: 0.98rem;
    height: 0.98rem;
    fill: currentColor;
    display: block;
}

.footer-contact-address {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .footer {
        padding-top: 0.5rem;
        padding-bottom: 0.24rem;
    }

    .footer-inner {
        width: min(1200px, 92vw);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0.32rem;
        margin-bottom: 0.28rem;
    }

    .footer-section {
        padding: 0.42rem 0.5rem;
        border-radius: 10px;
        gap: 0.16rem;
    }

    .footer-section h4 {
        font-size: 0.84rem;
    }

    .footer-section h4::after {
        width: 20px;
    }

    .footer-section p,
    .footer-section address,
    .footer-section a {
        font-size: 0.78rem;
    }

    .footer-brand-title {
        justify-content: flex-start;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
        padding-top: 0.24rem;
        gap: 0.18rem;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 0.72rem;
    }

    .header-top .top-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .chatbot-window {
        width: 90vw;
        right: 5vw;
        bottom: 5rem;
        height: 500px;
        max-height: calc(100vh - 7rem);
    }

    .chatbot-header {
        padding: 0.75rem;
        min-height: 50px;
    }

    .chatbot-header h3 {
        font-size: 0.95rem;
    }

    .chatbot-form {
        padding: 0.75rem;
        min-height: 60px;
    }

    .chatbot-form input {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }
}

@media (max-width: 900px) {
    .mv-cards {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        max-width: 98vw;
    }
    .mv-card {
        width: 100%;
        padding: 1rem 0.5rem;
        min-height: 0;
    }
}

/* ==================== ANIMACIONES SCROLL REVEAL ==================== */
.scroll-reveal {
    opacity: 0;
    transition:
        opacity 0.8s ease-out,
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Elementos impares vienen desde la izquierda */
.content-item-row.scroll-reveal:nth-child(odd) {
    transform: translate3d(-80px, 0, 0);
}

/* Elementos pares vienen desde la derecha */
.content-item-row.scroll-reveal:nth-child(even) {
    transform: translate3d(80px, 0, 0);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Delays escalonados para efecto cascada */
.content-item-row.scroll-reveal:nth-child(1) {
    transition-delay: 0s;
}
.content-item-row.scroll-reveal:nth-child(2) {
    transition-delay: 0.15s;
}
.content-item-row.scroll-reveal:nth-child(3) {
    transition-delay: 0.3s;
}
.content-item-row.scroll-reveal:nth-child(4) {
    transition-delay: 0.45s;
}
.content-item-row.scroll-reveal:nth-child(5) {
    transition-delay: 0.6s;
}
.content-item-row.scroll-reveal:nth-child(6) {
    transition-delay: 0.75s;
}
.content-item-row.scroll-reveal:nth-child(7) {
    transition-delay: 0.9s;
}
/* ==================== DROPDOWN MENU ==================== */
/* Menú desplegable aparece justo debajo del ítem correspondiente */
.header-public .dropdown {
    position: relative;
}

/* Dropdown base styles */
.header-public .dropdown {
    position: relative;
}

/* Puente de hover para evitar que el menú se cierre al bajar el cursor */
.header-public .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    pointer-events: auto;
    z-index: 1999;
}

.header-public .dropdown-content.academic-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    transform: translate(0, -8px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.60);
    border-radius: 18px;
    box-shadow: 
        0 14px 38px rgba(15,23,42,0.16),
        inset 0 1px 2px rgba(255,255,255,0.80);
    min-width: 280px;
    width: max-content;
    max-width: min(90vw, 620px);
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 0.25s cubic-bezier(0.22,1,0.36,1),
        visibility 0.25s ease,
        transform 0.25s cubic-bezier(0.22,1,0.36,1);
    z-index: 2000;
    padding: 1.3rem 1.7rem;
    pointer-events: none;
}

.header-public .dropdown-content.academic-dropdown::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.50) 0%, transparent 100%);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

.header-public .dropdown-content.academic-dropdown.single-column {
    max-width: min(90vw, 360px);
}

.header-public .dropdown-content.academic-dropdown.single-column .academic-dropdown-columns {
    grid-template-columns: minmax(200px, 1fr);
}

/* Show dropdown only when JS sets menu-open to avoid overlapping panels */
.header-public .dropdown.menu-open .dropdown-content.academic-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, 0);
}

.header-public .academic-dropdown-columns ul li a {
    color: #475569;
    font-weight: 600;
    font-size: 0.93rem;
    padding: 0.45rem 0.62rem;
    border-radius: 9px;
    transition: 
        background 0.3s cubic-bezier(0.22,1,0.36,1),
        color 0.3s ease,
        transform 0.3s ease;
    display: block;
    border: none;
    box-shadow: none;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.header-public .academic-dropdown-columns ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 4px;
    height: 60%;
    border-radius: 2px;
    background: linear-gradient(180deg, #00796b, #1abc9c);
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.header-public .academic-dropdown-columns ul li a:hover {
    background: rgba(0,150,136,0.12);
    color: #00796b;
    transform: translateX(4px);
}

.header-public .academic-dropdown-columns ul li a:hover::before {
    transform: translateY(-50%) scaleX(1);
}
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 400px;
    z-index: 1000;
    padding: 1rem;
    /* El control de visibilidad lo maneja Bootstrap JS */
    /* El control de visibilidad lo maneja Bootstrap JS, no forzar con hover */
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}


.dropdown-modes span {
    font-size: 0.75rem;
    color: var(--color-secondary);
    background: rgba(30, 58, 138, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* ==================== ACADÉMICOS PAGE ==================== */
.academicos-page {
    padding: 2rem 0;
}

.academicos-content {
    margin-top: 2rem;
}

.careers-section,
.sections-section {
    margin-bottom: 3rem;
}

.careers-section h2,
.sections-section h2 {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.careers-grid,
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.career-card,
.section-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.career-card.has-image,
.section-card.has-image {
    display: block;
}

.career-card.no-image,
.section-card.no-image {
    display: block;
}

.career-card:hover,
.section-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.career-image,
.section-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #ff0000;
}

.career-image img,
.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.career-card:hover .career-image img,
.section-card:hover .section-image img {
    transform: scale(1.05);
}

.career-info,
.section-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.career-card.has-image .career-info,
.section-card.has-image .section-info {
    width: 100%;
}

.career-card.no-image .career-info,
.section-card.no-image .section-info {
    width: 100%;
}

.career-info h3,
.section-info h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.career-info h3 a,
.section-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.career-info h3 a:hover,
.section-info h3 a:hover {
    color: var(--color-primary);
}

.career-info p,
.section-info p {
    color: var(--color-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ==================== CONTENT DETAIL (CAREER/SECTIONS) ==================== */
.content-detail {
    padding: 2rem 0;
}

.content-detail .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.content-detail .page-header h1 {
    color: var(--color-dark);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.content-detail .page-header .lead {
    color: var(--color-gray);
    font-size: 1.125rem;
}

.content-body {
    margin-top: 2rem;
}

.career-image,
.section-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.career-description,
.section-content {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--color-dark);
}

.section-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.section-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.section-section h2 {
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.career-section,
.career-coordinator,
.career-pdf {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.career-section:hover,
.career-coordinator:hover,
.career-pdf:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.career-section h2,
.career-coordinator h3,
.career-pdf h3 {
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.career-pdf .btn {
    margin-top: 1rem;
}
/* ==================== PUBLIC HEADER STYLES ==================== */

.header-public {
    position: fixed; /* Header fijo */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: linear-gradient(90deg, rgba(52,152,219,0.95) 0%, rgba(72,224,164,0.95) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s ease-in-out;
    transform: translateY(0);
    min-height: 80px; /* Altura mínima para asegurar espacio */
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.header-hidden {
    transform: translateY(-100%);
}

.scrolled-header {
    background: rgba(
        44,
        62,
        80,
        0.95
    ) !important; /* Color oscuro al hacer scroll */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Ajuste dinámico para el título de carrera debajo del header */
.career-title-container {
    margin-top: 300px !important; /* Ajuste para evitar interferencias con el encabezado */
    text-align: center;
}

/* Eliminar conjunto de reglas vacío */
/* .header-public, .header-public * { } */

/* Agrupar propiedades sueltas en un selector válido */
.flex-gap {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

/* Estilos para sección Misión y Visión en el dashboard principal */
.mv-section {
    margin-top: 80px;
    padding: 3.5rem 0;
    background: linear-gradient(90deg, #e3eafc 0%, #e0f7ef 100%);
    opacity: 0;
    transform: translateY(40px);
    animation: mv-fadein-up 1.1s cubic-bezier(0.4,0,0.2,1) 0.1s forwards;
}
@keyframes mv-fadein-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.mv-cards {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 80vw;
    margin: 0 auto;
}
.mv-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(23,102,163,0.16);
    padding: 2.2rem 2rem;
    max-width: 480px;
    min-width: 320px;
    flex: 1 1 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
    min-height: 260px;
    opacity: 0;
    transform: translateY(40px);
    animation: mv-fadein-up-card 1s cubic-bezier(0.4,0,0.2,1) 0.5s forwards;
}
.mv-card:nth-child(2) {
    animation-delay: 0.7s;
}
@keyframes mv-fadein-up-card {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.mv-card:hover {
    box-shadow: 0 16px 40px rgba(23,102,163,0.22);
}
.mv-card-icon {
    margin-bottom: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mv-card:hover .mv-card-icon {
    transform: scale(1.08) rotate(-2deg);
}
.mv-card h3 {
    color: #1766a3;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.mv-excerpt {
    color: #222;
    font-size: 1.08rem;
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 0;
}
@media (max-width: 1200px) {
    .mv-cards {
        max-width: 98vw;
        gap: 1.2rem;
    }
    .mv-card {
        max-width: 98vw;
        flex: 1 1 98vw;
        padding: 1.2rem 1rem;
    }
}
@media (max-width: 900px) {
    .mv-cards {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        max-width: 98vw;
    }
    .mv-card {
        max-width: 98vw;
        min-width: 0;
        width: 100%;
        padding: 1rem 0.5rem;
        min-height: 0;
    }
}

.mv-section .section-page-title {
    color: #1766a3;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.mv-section .section-page-subtitle {
    color: #10b981;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Diseño profesional para reglamento en transparencia */
.reglamento-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
  margin-bottom: 2.5rem;
}
.reglamento-flex-img {
  flex: 0 0 260px;
  max-width: 260px;
}
.reglamento-flex-content {
  flex: 1;
  min-width: 220px;
}
@media (max-width: 700px) {
  .reglamento-flex { flex-direction: column; }
  .reglamento-flex-img, .reglamento-flex-content { max-width: 100%; }
}

/* Diseño profesional para reglamento en transparencia (estilo caja) */
.reglamento-box {
    display: flex;
    align-items: stretch;
    background: #e9eef2;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    margin-bottom: 2.5rem;
    gap: 2.5rem;
}
.reglamento-img {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reglamento-img img {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.reglamento-content {
    flex: 1;
    background: #f6fafd;
    border-radius: 12px;
    padding: 2rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 900px) {
    .reglamento-box { flex-direction: column; }
    .reglamento-img, .reglamento-content { max-width: 100%; }
}

/* Enlaces PDF con estilo profesional reutilizable */
.pdf-pro-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    min-height: 44px;
    padding: 0.62rem 1.05rem 0.62rem 0.72rem;
    border-radius: 14px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,241,242,0.96) 100%),
        radial-gradient(circle at 12% 20%, rgba(248, 113, 113, 0.18), transparent 34%);
    color: #7f1d1d !important;
    text-decoration: none;
    font-weight: 850;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.01em;
    box-shadow:
        0 12px 28px rgba(127, 29, 29, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.pdf-pro-link::before {
    content: "PDF";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 25px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 7px 14px rgba(185, 28, 28, 0.26);
}

.pdf-pro-link::after {
    content: "→";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.08);
    color: #991b1b;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.22s ease, background 0.22s ease;
}

.pdf-pro-link:hover {
    transform: translateY(-2px);
    border-color: rgba(185, 28, 28, 0.32);
    box-shadow:
        0 18px 34px rgba(127, 29, 29, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #7f1d1d !important;
    background:
        linear-gradient(135deg, #ffffff 0%, #ffe4e6 100%),
        radial-gradient(circle at 12% 20%, rgba(248, 113, 113, 0.22), transparent 34%);
}

.pdf-pro-link:hover::after {
    transform: translateX(3px);
    background: rgba(185, 28, 28, 0.12);
}

.pdf-pro-link:focus-visible {
    outline: 3px solid rgba(248, 113, 113, 0.34);
    outline-offset: 3px;
}

.pdf-pro-link--download {
    border-left-color: #d32f2f;
}

.pdf-pro-link--download::before {
    content: "PDF";
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
}

/* Ajuste profesional para imágenes de eventos institucionales */
.news-image img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.news-image img:hover {
  transform: scale(1.04);
}
.news-image {
  width: 100%;
  height: 220px !important;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 0 !important;
}
