        /*  PALETA INSTITUCIONAL UNIVERSIDAD HERMILIO VALDIZÁN */
        :root {
            /* Colores Institucionales Principales */
            --university-blue: #1e3a8a;        /* Azul institucional principal UNHEVAL */
            --university-navy: #0f172a;        /* Azul marino profundo institucional */
            --academic-blue: #2563eb;          /* Azul académico vibrante */
            --institutional-gray: #334155;     /* Gris institucional moderno */
            --professional-slate: #475569;     /* Pizarra profesional */
            
            /* Acentos Institucionales */
            --accent-sky: #0ea5e9;             /* Celeste institucional */
            --accent-gold: #eab308;            /* Dorado suave académico */
            --accent-emerald: #10b981;         /* Verde esmeralda de excelencia */
            --accent-silver: #94a3b8;          /* Plata elegante */
            
            /* Colores de Texto Institucionales */
            --text-primary: #0f172a;           /* Negro institucional */
            --text-secondary: #1e293b;         /* Gris oscuro académico */
            --text-tertiary: #334155;          /* Gris medio institucional */
            --text-muted: #64748b;             /* Gris suave profesional */
            --text-light: #94a3b8;             /* Gris claro elegante */
            --text-white: #ffffff;             /* Blanco puro */
            
            /* Fondos Institucionales */
            --bg-white: #ffffff;
            --bg-light: #f8fafc;               /* Gris muy claro institucional */
            --bg-slate-50: #f8fafc;
            --bg-slate-100: #f1f5f9;           /* Gris claro profesional */
            --bg-slate-200: #e2e8f0;           /* Gris medio suave */
            --bg-institutional: #0f172a;       /* Fondo institucional oscuro */
            
            /* Estados Académicos */
            --success-academic: #10b981;       /* Verde éxito académico */
            --warning-academic: #f59e0b;       /* Naranja alerta académica */
            --error-academic: #ef4444;         /* Rojo error académico */
            --info-academic: #0ea5e9;          /* Azul información académica */
            
            /* Tipografías Institucionales */
            --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            
            /* Espaciado Institucional */
            --spacing-xs: 0.5rem;    /* 8px */
            --spacing-sm: 0.75rem;   /* 12px */
            --spacing-md: 1rem;      /* 16px */
            --spacing-lg: 1.5rem;    /* 24px */
            --spacing-xl: 2rem;      /* 32px */
            --spacing-2xl: 3rem;     /* 48px */
            --spacing-3xl: 4rem;     /* 64px */
            --spacing-4xl: 5rem;     /* 80px */
            
            /* Sombras Institucionales */
            --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
            --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
            
            /* Bordes Institucionales */
            --border-light: #e2e8f0;
            --border-medium: #cbd5e0;
            --border-strong: #94a3b8;
            
            /* Radios de Borde Profesionales */
            --radius-sm: 0.25rem;    /* 4px */
            --radius-md: 0.375rem;   /* 6px */
            --radius-lg: 0.5rem;     /* 8px */
            --radius-xl: 0.75rem;    /* 12px */
            --radius-2xl: 1rem;      /* 16px */
            
            /* Transiciones Suaves */
            --transition-fast: 150ms ease-in-out;
            --transition-normal: 250ms ease-in-out;
            --transition-slow: 350ms ease-in-out;
        }

        /* 🔧 UTILITY CLASSES - Inspiradas en plantillas profesionales */
        
        /* Clase Space - Espaciado vertical estándar para secciones */
        .space {
            padding-top: 120px;
            padding-bottom: 120px;
        }

        .space-top {
            padding-top: 120px;
        }

        .space-bottom {
            padding-bottom: 120px;
        }

        .space-small {
            padding-top: 80px;
            padding-bottom: 80px;
        }

        .space-extra {
            padding-top: 160px;
            padding-bottom: 160px;
        }

        /* Clase Fix - Correcciones de overflow y posicionamiento */
        .fix {
            overflow: hidden;
            position: relative;
        }

        .fix::before,
        .fix::after {
            content: '';
            position: absolute;
            pointer-events: none;
        }

        /* Project Section - Estilos para sección de proyectos/portafolio */
        .project-section {
            background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
            position: relative;
            z-index: 1;
        }

        .project-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 30%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
            z-index: -1;
        }

        .project-section .container {
            position: relative;
            z-index: 2;
        }

        /* 🎨 SEPARADORES DE SECCIONES */
        .section-divider {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 0;
            position: relative;
        }

        .section-divider::before,
        .section-divider::after {
            content: '';
            flex: 1;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(30, 58, 138, 0.3) 50%, 
                transparent 100%
            );
        }

        .section-divider::before {
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(30, 58, 138, 0.3) 100%
            );
            margin-right: 20px;
        }

        .section-divider::after {
            background: linear-gradient(90deg, 
                rgba(30, 58, 138, 0.3) 0%, 
                transparent 100%
            );
            margin-left: 20px;
        }

        /* Círculo central del separador */
        .section-divider span {
            width: 12px;
            height: 12px;
            background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
            border-radius: 50%;
            position: relative;
            box-shadow: 
                0 0 0 4px rgba(30, 58, 138, 0.1),
                0 0 0 8px rgba(30, 58, 138, 0.05);
            animation: circlePulse 2s ease-in-out infinite;
        }

        @keyframes circlePulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 
                    0 0 0 4px rgba(30, 58, 138, 0.1),
                    0 0 0 8px rgba(30, 58, 138, 0.05);
            }
            50% {
                transform: scale(1.1);
                box-shadow: 
                    0 0 0 6px rgba(30, 58, 138, 0.15),
                    0 0 0 12px rgba(30, 58, 138, 0.08);
            }
        }

        /* Responsive */
        @media (max-width: 767px) {
            .section-divider {
                padding: 30px 0;
            }

            .section-divider::before {
                margin-right: 15px;
            }

            .section-divider::after {
                margin-left: 15px;
            }

            .section-divider span {
                width: 10px;
                height: 10px;
            }
        }

        /* Responsive spacing */
        @media (max-width: 991px) {
            .space {
                padding-top: 80px;
                padding-bottom: 80px;
            }
            
            .space-small {
                padding-top: 60px;
                padding-bottom: 60px;
            }
            
            .space-extra {
                padding-top: 100px;
                padding-bottom: 100px;
            }

            .section-divider-wave {
                height: 40px;
            }

            .section-divider-wave svg {
                height: 40px;
            }
        }

        @media (max-width: 767px) {
            .space {
                padding-top: 60px;
                padding-bottom: 60px;
            }
            
            .space-small {
                padding-top: 40px;
                padding-bottom: 40px;
            }
            
            .space-extra {
                padding-top: 80px;
                padding-bottom: 80px;
            }

            .section-divider-wave {
                height: 30px;
            }

            .section-divider-wave svg {
                height: 30px;
            }

            .section-divider-dots {
                padding: 30px 0;
            }
        }

        /* 🌐 ESTILOS GLOBALES */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-primary);
            line-height: 1.6;
            color: var(--text-primary);
            background-color: var(--bg-white);
        }

        /* 📝 TIPOGRAFÍA INSTITUCIONAL UNHEVAL */
        * {
            font-feature-settings: "kern" 1, "liga" 1;
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-heading);
            font-weight: 600;
            line-height: 1.25;
            color: var(--text-primary);
            letter-spacing: -0.025em;
        }

        .display-1 {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            line-height: 1.1;
            color: var(--university-blue);
            letter-spacing: -0.04em;
        }

        .display-2 {
            font-family: var(--font-display);
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 700;
            line-height: 1.15;
            color: var(--university-navy);
            letter-spacing: -0.03em;
        }

        .section-title {
            font-family: var(--font-heading);
            font-size: clamp(1.875rem, 3vw, 2.5rem);
            font-weight: 700;
            color: var(--university-blue);
            margin-bottom: var(--spacing-lg);
            position: relative;
            text-align: center;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-sky) 0%, var(--accent-gold) 100%);
            border-radius: var(--radius-sm);
        }

        .section-subtitle {
            font-family: var(--font-primary);
            font-size: 1.125rem;
            font-weight: 400;
            color: var(--text-tertiary);
            line-height: 1.7;
            text-align: center;
            max-width: 600px;
            margin: 0 auto;
        }

        .institutional-text {
            font-family: var(--font-primary);
            font-size: 1rem;
            font-weight: 400;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .accent-text {
            color: #38bff8b0;
            font-weight: 900;
            position: relative;
            display: inline-block;
            text-shadow: 
                0 0 20px rgba(56, 189, 248, 0.8),
                0 0 40px rgba(56, 189, 248, 0.5),
                0 2px 8px rgba(0, 0, 0, 0.3),
                0 4px 16px rgba(56, 189, 248, 0.4);
            animation: text-glow-blue 3s ease-in-out infinite;
            filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.9));
        }

        @keyframes text-glow-blue {
            0%, 100% { 
                text-shadow: 
                    0 0 20px rgba(56, 189, 248, 0.2),
                    0 0 40px rgba(56, 189, 248, 0.2),
                    0 2px 8px rgba(0, 0, 0, 0.2),
                    0 4px 16px rgba(56, 189, 248, 0.2);
            }
            50% { 
                text-shadow: 
                    0 0 30px rgba(56, 189, 248, 1),
                    0 0 60px rgba(56, 189, 248, 0.7),
                    0 2px 8px rgba(0, 0, 0, 0.3),
                    0 4px 20px rgba(56, 189, 248, 0.6);
            }
        }

        .gold-text {
            color: #fbbf24;
            font-weight: 900;
            position: relative;
            display: inline-block;
            text-shadow: 
                0 0 20px rgba(251, 191, 36, 0.9),
                0 0 40px rgba(251, 191, 36, 0.6),
                0 2px 8px rgba(0, 0, 0, 0.3),
                0 4px 16px rgba(251, 191, 36, 0.5);
            animation: text-glow-gold 3s ease-in-out infinite 0.5s;
            filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.9));
        }

        @keyframes text-glow-gold {
            0%, 100% { 
                text-shadow: 
                    0 0 20px rgba(251, 191, 36, 0.2),
                    0 0 40px rgba(251, 191, 36, 0.2),
                    0 2px 8px rgba(0, 0, 0, 0.2),
                    0 4px 16px rgba(251, 191, 36, 0.2);
            }
            50% { 
                text-shadow: 
                    0 0 30px rgba(251, 191, 36, 1),
                    0 0 60px rgba(251, 191, 36, 0.3),
                    0 2px 8px rgba(0, 0, 0, 0.3),
                    0 4px 20px rgba(251, 191, 36, 0.3);
            }
        }

        .university-text {
            color: var(--university-blue);
            font-weight: 600;
        }

        /* Estilos de párrafo mejorados */
        p {
            font-family: var(--font-primary);
            line-height: 1.6;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-md);
        }

        .lead-text {
            font-size: 1.25rem;
            font-weight: 400;
            color: var(--text-tertiary);
            line-height: 1.6;
        }

        /* 🎓 NAVBAR INSTITUCIONAL UNHEVAL OPTIMIZADO */
        .navbar-institutional {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 
                0 4px 25px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
            padding: 0.8rem 0;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-bottom: 1px solid var(--border-light);
            min-height: 80px;
            display: flex;
            align-items: center;
        }

        .navbar-institutional.scrolled {
            background: linear-gradient(135deg, #1b417aff 0%, #34588dff 100%);
            box-shadow: 
                0 8px 32px rgba(13, 110, 253, 0.25),
                0 2px 8px rgba(0, 0, 0, 0.15);
            padding: 0.6rem 0;
            border-bottom-color: rgba(255, 255, 255, 0.1);
            min-height: 70px;
        }

        /* Cambiar color de textos cuando el navbar hace scroll */
        .navbar-institutional.scrolled .university-name,
        .navbar-institutional.scrolled .unit-name,
        .navbar-institutional.scrolled .faculty-name {
            color: #ffffff !important;
        }

        /* Links de navegación en navbar scrolled */
        .navbar-institutional.scrolled .nav-link-institutional {
            color: rgba(255, 255, 255, 0.95) !important;
        }

        .navbar-institutional.scrolled .nav-link-institutional:hover,
        .navbar-institutional.scrolled .nav-link-institutional.active {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.15);
        }

        .navbar-institutional.scrolled .nav-link-institutional::before {
            background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
        }

        /* Botón de Trámites en navbar scrolled - Color azul */
        .navbar-institutional.scrolled .btn-institutional-primary {
            background: #1b6ff7;
            border-color: #1475eb;
            color: #ffffff;
            box-shadow: 
                0 4px 15px rgba(27, 111, 247, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .navbar-institutional.scrolled .btn-institutional-primary:hover {
            background: #ffffff;
            border-color: #ffffff;
            color: #0f172a;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 8px 25px rgba(255, 255, 255, 0.4),
                0 0 15px rgba(255, 255, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        /* Botón de Campus (acceso) en navbar scrolled */
        .navbar-institutional.scrolled .btn-access-institutional {
            border-color: rgba(255, 255, 255, 0.6);
            color: #ffffff;
        }

        .navbar-institutional.scrolled .btn-access-institutional:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: #ffffff;
        }

        .navbar-institutional.scrolled .navbar-toggler {
            border-color: rgba(255, 255, 255, 0.3);
        }

        .navbar-institutional.scrolled .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        .institutional-brand {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            text-decoration: none;
            transition: all var(--transition-normal);
        }

        .institutional-brand:hover {
            transform: translateY(-1px);
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
        }

        .logo-unheval {
            height: 44px;
            width: auto;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }

        .logo-upg {
            height: 40px;
            width: auto;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }

        .navbar-institutional.scrolled .logo-unheval {
            height: 36px;
        }

        .navbar-institutional.scrolled .logo-upg {
            height: 32px;
        }

        .brand-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .university-name {
            font-family: var(--font-display);
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--university-blue);
            margin: 0;
            line-height: 1.1;
            letter-spacing: -0.01em;
        }

        .faculty-name {
            font-family: var(--font-heading);
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--accent-sky);
            margin: 0;
            line-height: 1.1;
        }

        .unit-name {
            font-family: var(--font-primary);
            font-size: 0.7rem;
            font-weight: 500;
            color: var(--text-muted);
            margin: 0;
            line-height: 1.1;
        }

        .nav-link-institutional {
            font-family: var(--font-primary);
            color: var(--text-tertiary);
            font-weight: 500;
            font-size: 0.9rem;
            padding: 0.6rem 1rem;
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            text-decoration: none;
            display: flex;
            align-items: center;
            height: 42px;
            white-space: nowrap;
        }

        .nav-link-institutional:hover,
        .nav-link-institutional.active {
            color: var(--university-blue);
            background: linear-gradient(135deg, 
                rgba(30, 58, 138, 0.08) 0%, 
                rgba(30, 58, 138, 0.04) 100%
            );
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
        }

        .nav-link-institutional::before {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--university-blue) 0%, var(--accent-sky) 100%);
            border-radius: var(--radius-sm);
            transition: all var(--transition-normal);
            transform: translateX(-50%);
        }

        .nav-link-institutional:hover::before,
        .nav-link-institutional.active::before {
            width: 75%;
        }

        .dropdown-institutional {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(12px);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-xl);
            padding: var(--spacing-sm);
            min-width: 320px;
        }

        .nav-item.dropdown .nav-link-institutional {
            gap: 0.5rem;
        }

        .nav-item.dropdown .nav-link-institutional::after {
            margin-left: 0.15rem;
            vertical-align: middle;
            transition: transform var(--transition-fast);
        }

        .nav-item.dropdown.show .nav-link-institutional::after,
        .nav-item.dropdown .nav-link-institutional[aria-expanded="true"]::after {
            transform: rotate(180deg);
        }

        .dropdown-menu-group {
            min-width: 340px;
            padding: 0.75rem;
        }

        .dropdown-menu-label {
            display: block;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent-sky);
            padding: 0.35rem 0.75rem 0.6rem;
        }

        .dropdown-item-institutional {
            color: var(--text-secondary);
            font-weight: 500;
            padding: 0.85rem 0.95rem;
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
            display: flex;
            align-items: flex-start;
            gap: 0.85rem;
            white-space: normal;
        }

        .dropdown-item-institutional:hover {
            color: var(--university-blue);
            background-color: var(--bg-slate-50);
            transform: translateX(4px);
        }

        .dropdown-item-institutional i {
            color: var(--academic-blue);
            margin-top: 0.15rem;
            min-width: 18px;
        }

        .dropdown-item-content {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .dropdown-item-title {
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
        }

        .dropdown-item-description {
            font-size: 0.8rem;
            color: var(--text-muted);
            line-height: 1.35;
        }

        .btn-institutional-primary {
            font-family: var(--font-primary);
            background:    linear-gradient(135deg, 
                    rgba(255, 255, 255, 0.15) 0%, 
                    rgba(255, 255, 255, 0.08) 100%
                );
            backdrop-filter: blur(20px);
            border: 2px solid rgba(30, 37, 131, 0.73);
            color: #314174ff;
            font-weight: 600;
            font-size: 0.875rem;
            padding: 0.65rem 1.2rem;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            min-width: 140px;
            height: 42px;
            box-shadow: 
                0 4px 12px rgba(255, 255, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .btn-institutional-primary:hover {
            background: #1b6ff7;
            border-color: #1475eb;
            color: #ffffff;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 8px 25px rgba(59, 130, 246, 0.5),
                0 0 15px rgba(96, 165, 250, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        /* 📋 DROPDOWN DE TRÁMITES */
        .dropdown-tramites {
            position: relative;
            display: inline-block;
        }

        .dropdown-tramites .btn-institutional-primary {
            cursor: pointer;
        }

        .dropdown-tramites .btn-institutional-primary .fa-chevron-down {
            font-size: 0.7rem;
            transition: transform 0.3s ease;
            margin-left: 4px;
        }

        .dropdown-tramites:hover .btn-institutional-primary .fa-chevron-down,
        .dropdown-tramites.show .btn-institutional-primary .fa-chevron-down {
            transform: rotate(180deg);
        }

        .dropdown-tramites-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 260px;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 
                0 10px 40px rgba(15, 23, 42, 0.15),
                0 4px 12px rgba(15, 23, 42, 0.1);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1100;
            overflow: hidden;
            border: 1px solid rgba(226, 232, 240, 0.8);
        }

        .dropdown-tramites:hover .dropdown-tramites-menu,
        .dropdown-tramites.show .dropdown-tramites-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-tramites-menu::before {
            content: '';
            position: absolute;
            top: -8px;
            right: 20px;
            width: 16px;
            height: 16px;
            background: #ffffff;
            transform: rotate(45deg);
            border-left: 1px solid rgba(226, 232, 240, 0.8);
            border-top: 1px solid rgba(226, 232, 240, 0.8);
        }

        .dropdown-tramites-header {
            padding: 12px 16px;
            background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
            color: #ffffff;
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .dropdown-tramites-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            color: #334155;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s ease;
            border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        }

        .dropdown-tramites-item:last-child {
            border-bottom: none;
        }

        .dropdown-tramites-item:hover {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            color: #1e3a8a;
            padding-left: 20px;
        }

        .dropdown-tramites-item i {
            width: 20px;
            text-align: center;
            font-size: 1rem;
            color: #2563eb;
        }

        .dropdown-tramites-item:hover i {
            color: #1e3a8a;
        }

        .dropdown-tramites-item span {
            flex: 1;
        }

        .dropdown-tramites-item .badge-new {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #ffffff;
            font-size: 0.65rem;
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: 600;
            text-transform: uppercase;
        }

        /* Navbar scrolled - dropdown */
        .navbar-institutional.scrolled .dropdown-tramites-menu {
            background: #ffffff;
        }

        /* Responsive dropdown */
        @media (max-width: 991.98px) {
            .dropdown-tramites {
                width: 100%;
            }
            
            .dropdown-tramites-menu {
                position: static;
                width: 100%;
                box-shadow: none;
                border: 1px solid rgba(226, 232, 240, 0.8);
                margin-top: 8px;
                transform: none;
                opacity: 0;
                max-height: 0;
                overflow: hidden;
            }

            .dropdown-tramites.show .dropdown-tramites-menu {
                opacity: 1;
                max-height: 500px;
            }

            .dropdown-tramites-menu::before {
                display: none;
            }
        }

        .btn-institutional-primary2 {
            font-family: var(--font-primary);
            background:    linear-gradient(135deg, 
                    rgba(255, 255, 255, 0.15) 0%, 
                    rgba(255, 255, 255, 0.08) 100%
                );
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.6);
            color: #ffffff;
            font-weight: 600;
            font-size: 0.875rem;
            padding: 0.65rem 1.2rem;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            min-width: 140px;
            height: 42px;
            box-shadow: 
                0 4px 12px rgba(255, 255, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .btn-institutional-primary2:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.9);
            color: #ffffff;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 8px 25px rgba(255, 255, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .btn-institutional-secondary {
            font-family: var(--font-primary);
            background:    linear-gradient(135deg, 
                    rgba(255, 255, 255, 0.15) 0%, 
                    rgba(255, 255, 255, 0.08) 100%
                );
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.6);
            color: #ffffff;
            font-weight: 600;
            font-size: 0.875rem;
            padding: 0.65rem 1.2rem;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            min-width: 140px;
            height: 42px;
            box-shadow: 
                0 4px 12px rgba(255, 255, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .btn-institutional-secondary:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.9);
            color: #ffffff;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 8px 25px rgba(255, 255, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        /* 🔐 BOTÓN DE ACCESO INSTITUCIONAL UNIFORME */
        .btn-access-institutional {
            font-family: var(--font-primary);
            background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%);
            border: 2px solid transparent;
            color: white;
            font-weight: 600;
            font-size: 0.875rem;
            padding: 0.65rem 1.2rem;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin-left: 0.75rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            min-width: 140px;
            height: 42px;
            box-shadow: 
                0 4px 12px rgba(234, 179, 8, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .btn-access-institutional:hover {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 8px 25px rgba(234, 179, 8, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            color: white;
        }

        .btn-access-institutional i {
            font-size: 0.85rem;
        }

        /* 🍔 NAVBAR TOGGLER MEJORADO */
        .navbar-toggler {
            border: none !important;
            padding: 0.5rem;
            border-radius: 8px;
            background: rgba(30, 58, 138, 0.1);
            transition: all 0.3s ease;
        }

        .navbar-toggler:hover {
            background: rgba(30, 58, 138, 0.15);
            transform: scale(1.05);
        }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb%2830, 58, 138%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
            width: 1.2em;
            height: 1.2em;
        }

        /* 📋 BOTÓN FLOTANTE DE TRÁMITES */
        .floating-btn-tramites {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1000;
            border: 3px solid white;
            text-decoration: none;
            /* Animación inicial */
            opacity: 0;
            transform: scale(0.8) translateY(20px);
        }

        .floating-btn-tramites:hover {
            transform: scale(1.05) translateY(-2px);
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            box-shadow: 0 12px 40px rgba(16, 185, 129, 0.6);
            color: white;
        }

        .floating-btn-tramites::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            animation: pulse-tramites 2s infinite;
            z-index: -1;
        }

        @keyframes pulse-tramites {
            0% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.2);
                opacity: 0.3;
            }
            100% {
                transform: scale(1.4);
                opacity: 0;
            }
        }

        /* Tooltip para el botón flotante */
        .floating-btn-tramites .tooltip-tramites {
            position: absolute;
            bottom: 80px;
            right: 0;
            background: var(--text-primary);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .floating-btn-tramites .tooltip-tramites::after {
            content: '';
            position: absolute;
            top: 100%;
            right: 20px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid var(--text-primary);
        }

        .floating-btn-tramites:hover .tooltip-tramites {
            opacity: 1;
            transform: translateY(0);
        }

        /* ============================================================
           📱  NAVBAR MÓVIL — Rediseño espectacular para < 768 px
           ============================================================ */
        @media (max-width: 767px) {

            /* ── Barra fija ── */
            .navbar-institutional {
                padding: 0 !important;
                min-height: 62px !important;
                background: rgba(255,255,255,0.97) !important;
                backdrop-filter: blur(20px) !important;
                border-bottom: 1px solid rgba(30,58,138,0.1) !important;
                box-shadow: 0 2px 16px rgba(30,58,138,0.10) !important;
            }

            .navbar-institutional .container {
                padding: 0 0.75rem;
                min-height: 62px;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            /* ── Brand: logos + texto compacto ── */
            .institutional-brand {
                display: flex;
                align-items: center;
                gap: 0.55rem;
                flex: 1;
                min-width: 0;
                text-decoration: none;
            }

            .logo-container {
                display: flex;
                align-items: center;
                gap: 0.35rem;
                flex-shrink: 0;
            }

            .logo-unheval { height: 32px !important; }
            .logo-upg     { height: 28px !important; }

            .navbar-institutional.scrolled .logo-unheval { height: 30px !important; }
            .navbar-institutional.scrolled .logo-upg     { height: 26px !important; }

            .brand-info {
                display: flex;
                flex-direction: column;
                gap: 1px;
                min-width: 0;
            }

            .university-name {
                font-size: 0.62rem !important;
                font-weight: 700 !important;
                color: #1e3a8a !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 190px;
                line-height: 1.2;
            }

            .faculty-name {
                font-size: 0.56rem !important;
                color: #2563eb !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 190px;
            }

            .unit-name {
                font-size: 0.52rem !important;
                color: #64748b !important;
            }

            /* ── Botón hamburguesa personalizado ── */
            .navbar-toggler {
                width: 42px !important;
                height: 42px !important;
                border-radius: 10px !important;
                background: rgba(30,58,138,0.07) !important;
                border: 1px solid rgba(30,58,138,0.18) !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 5px !important;
                padding: 0 !important;
                flex-shrink: 0;
                transition: all 0.3s ease !important;
                position: relative;
                overflow: hidden;
            }

            .navbar-toggler::before {
                content: '';
                position: absolute;
                inset: 0;
                background: rgba(30,58,138,0.06);
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .navbar-toggler[aria-expanded="true"]::before { opacity: 1; }

            .navbar-toggler:focus {
                box-shadow: 0 0 0 3px rgba(30,58,138,0.2) !important;
            }

            .navbar-toggler-icon {
                display: none !important;
            }

            /* Tres líneas animadas */
            .navbar-toggler .mbn-bar {
                display: block;
                width: 20px;
                height: 2px;
                background: #1e3a8a;
                border-radius: 2px;
                transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
                transform-origin: center;
            }

            .navbar-toggler[aria-expanded="true"] .mbn-bar:nth-child(1) {
                transform: translateY(7px) rotate(45deg);
            }
            .navbar-toggler[aria-expanded="true"] .mbn-bar:nth-child(2) {
                opacity: 0;
                transform: scaleX(0);
            }
            .navbar-toggler[aria-expanded="true"] .mbn-bar:nth-child(3) {
                transform: translateY(-7px) rotate(-45deg);
            }

            /* ── Menú desplegable móvil ── */
            /*
             * Bootstrap 5 aplica display:none vía JS al cerrar el collapse.
             * Usamos display:flex !important para que SIEMPRE esté en el DOM.
             * El ocultamiento visual se hace con translateX(100%) + visibility:hidden
             * así Bootstrap nunca puede hacer display:none y la animación funciona.
             */
            .navbar-collapse {
                display: flex !important;          /* override Bootstrap display:none */
                flex-direction: column !important;
                position: fixed !important;
                top: 62px !important;
                left: 0 !important;
                right: 0 !important;
                height: fit-content !important;    /* alto según contenido */
                max-height: calc(100dvh - 62px) !important; /* no superar pantalla */
                overflow-y: auto !important;       /* fallback si pantalla muy pequeña */
                overflow-x: hidden !important;
                background: linear-gradient(180deg,
                    #ffffff  0%,
                    #f8fafc  50%,
                    #f1f5f9  100%
                ) !important;
                backdrop-filter: blur(24px) !important;
                z-index: 999 !important;
                padding: 1rem 1.25rem 1.25rem !important;
                border-top: 2px solid rgba(30,58,138,0.12) !important;
                box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
                /* Oculto: fuera de pantalla a la derecha */
                transform: translateX(100%) !important;
                visibility: hidden !important;
                pointer-events: none !important;
                transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                            visibility 0s linear 0.35s !important;
            }

            /* Durante la transición de Bootstrap (.collapsing) y cuando está abierto (.show) */
            .navbar-collapse.collapsing,
            .navbar-collapse.show {
                transform: translateX(0) !important;
                visibility: visible !important;
                pointer-events: auto !important;
                transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                            visibility 0s linear 0s !important;
            }

            /* Título del menú — oculto para ahorrar espacio */
            .navbar-collapse::before { display: none !important; }

            /* ── Links de navegación ── */
            .navbar-nav {
                flex-direction: column !important;
                gap: 0.15rem !important;
                width: 100% !important;
                margin: 0 0 0.75rem !important;
            }

            .nav-link-institutional {
                color: #334155 !important;
                font-size: 0.92rem !important;
                font-weight: 600 !important;
                padding: 0.6rem 0.9rem !important;
                height: auto !important;
                border-radius: 10px !important;
                display: flex !important;
                align-items: center !important;
                gap: 0.65rem !important;
                border: 1px solid transparent !important;
                transition: all 0.25s ease !important;
                white-space: normal !important;
            }

            .nav-link-institutional::before { display: none !important; }

            .nav-link-institutional:hover,
            .nav-link-institutional.active {
                color: #1e3a8a !important;
                background: rgba(30,58,138,0.07) !important;
                border-color: rgba(30,58,138,0.15) !important;
                transform: translateX(4px) !important;
                box-shadow: none !important;
            }

            /* Dropdown en mobile */
            .dropdown-institutional {
                background: #f1f5f9 !important;
                border: 1px solid #e2e8f0 !important;
                border-radius: 10px !important;
                box-shadow: none !important;
                padding: 0.25rem !important;
                margin-top: 0.15rem !important;
                min-width: 100% !important;
            }

            .dropdown-item-institutional {
                color: #475569 !important;
                border-radius: 7px !important;
                padding: 0.45rem 0.7rem !important;
                font-size: 0.88rem !important;
            }

            /* Ocultar descripciones en mobile para ahorrar espacio */
            .dropdown-item-description {
                display: none !important;
            }

            .dropdown-menu-group {
                min-width: 100% !important;
                padding: 0.2rem !important;
            }

            .dropdown-menu-label {
                padding: 0.3rem 0.6rem !important;
                font-size: 0.7rem !important;
            }

            .dropdown-item-institutional:hover {
                color: #1e3a8a !important;
                background: rgba(30,58,138,0.08) !important;
                transform: translateX(4px) !important;
            }

            .dropdown-item-institutional i { color: #2563eb !important; }

            /* ── Botones CTA al fondo del menú ── */
            .navbar-collapse .d-flex {
                flex-direction: row !important;    /* lado a lado para ahorrar espacio */
                gap: 0.6rem !important;
                width: 100% !important;
                margin-top: 0 !important;          /* sin empujar al fondo */
                padding-top: 0.75rem !important;
                border-top: 1px solid #e2e8f0 !important;
            }

            .btn-institutional-primary {
                flex: 1 !important;
                min-width: 0 !important;
                height: 44px !important;
                font-size: 0.85rem !important;
                border-radius: 10px !important;
                background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
                color: #ffffff !important;
                border-color: transparent !important;
                justify-content: center !important;
                box-shadow: 0 3px 10px rgba(30,58,138,0.2) !important;
            }

            .btn-institutional-primary:hover,
            .btn-institutional-primary:active {
                background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
                color: #ffffff !important;
            }

            .btn-access-institutional {
                flex: 1 !important;
                min-width: 0 !important;
                height: 44px !important;
                font-size: 0.85rem !important;
                border-radius: 10px !important;
                margin-left: 0 !important;
                background: #f1f5f9 !important;
                border: 2px solid #cbd5e1 !important;
                color: #334155 !important;
                justify-content: center !important;
            }

            .btn-access-institutional:hover,
            .btn-access-institutional:active {
                background: #e2e8f0 !important;
                color: #1e3a8a !important;
            }

            /* Floating btn */
            .floating-btn-tramites {
                width: 60px;
                height: 60px;
                bottom: 20px;
                right: 20px;
                font-size: 1.3rem;
            }
        }

        /* 🎓 HERO SECTION INSTITUCIONAL UNHEVAL */
        .hero-institutional {
            background: 
                /* Gradiente institucional mejorado */
                linear-gradient(135deg, 
                    rgba(130, 186, 250, 0.3) 0%, 
                    rgba(46, 83, 117, 0.5) 25%, 
                    rgba(51, 74, 85, 0.5) 60%,
                    rgba(30, 89, 138, 0.3) 100%
                ), 
                /* Patrón de puntos sutil */
                radial-gradient(circle at 2px 2px, rgba(255,255,255,0.08) 1px, transparent 0),
                /* Imagen de fondo institucional */
                url('../../storage/img/fondo_login.webp'),
                /* Fallback con color sólido */
                var(--university-blue);
            background-size: 
                cover,
                30px 30px,
                cover,
                cover;
            background-position: 
                center,
                0 0,
                center,
                center;
            background-repeat: 
                no-repeat,
                repeat,
                no-repeat,
                no-repeat;
            background-attachment: fixed;
            min-height: 100vh;
            display: flex;
            align-items: center;
            color: var(--text-white);
            position: relative;
            overflow: hidden;
            /* Mejoras visuales */
            box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
            /* Espaciado superior para navbar */
            padding-top: 90px;
        }

        .hero-institutional::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                /* Efectos de luz institucionales mejorados */
                radial-gradient(ellipse at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(234, 179, 8, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
                radial-gradient(ellipse at 10% 80%, rgba(16, 185, 129, 0.10) 0%, transparent 45%),
                /* Gradiente de profundidad */
                linear-gradient(45deg, rgba(30, 58, 138, 0.15) 0%, transparent 100%);
            z-index: 1;
            animation: hero-ambient 20s ease-in-out infinite;
        }

        .hero-institutional::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                /* Patrón geométrico institucional */
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><defs><pattern id="institutional-grid" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.06)"/><rect x="29" y="0" width="2" height="60" fill="rgba(255,255,255,0.02)"/><rect x="0" y="29" width="60" height="2" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="120" height="120" fill="url(%23institutional-grid)"/></svg>'),
                /* Vignette effect */
                radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.25) 100%);
            opacity: 0.4;
            z-index: 2;
        }

        /* Animación ambiental sutil */
        @keyframes hero-ambient {
            0%, 100% { 
                opacity: 0.8;
                transform: scale(1);
            }
            50% { 
                opacity: 1;
                transform: scale(1.02);
            }
        }

        .hero-content {
            position: relative;
            z-index: 100;
            max-width: 800px;
            padding-top: 2rem;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            background: 
                linear-gradient(135deg, 
                    rgba(255, 255, 255, 0.2) 0%, 
                    rgba(255, 255, 255, 0.12) 100%
                );
            backdrop-filter: blur(25px);
            border: 2px solid rgba(255, 255, 255, 0.35);
            color: #ffffff;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 2rem;
            box-shadow: 
                0 10px 40px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 0 0 rgba(14, 165, 233, 0.3);
            transition: all 0.4s ease;
            animation: hero-badge-glow 3s ease-in-out infinite;
            position: relative;
            z-index: 100;
        }

        .hero-badge:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        @keyframes hero-badge-glow {
            0%, 100% { 
                box-shadow: 
                    0 8px 32px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2),
                    0 0 0 rgba(14, 165, 233, 0);
            }
            50% { 
                box-shadow: 
                    0 8px 32px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2),
                    0 0 30px rgba(14, 165, 233, 0.3);
            }
        }

        .hero-title {
            font-family: var(--font-display);
            font-size: clamp(2.8rem, 7vw, 5.2rem);
            font-weight: 900;
            line-height: 1.05;
            color: #ffffff;
            margin-bottom: var(--spacing-lg);
            text-shadow: 
                0 1px 0 rgba(255, 255, 255, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.8),
                0 4px 16px rgba(0, 0, 0, 0.6),
                0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(255, 255, 255, 0.1);
            letter-spacing: -0.03em;
            position: relative;
            filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
            animation: title-entrance 1s ease-out;
        }

        @keyframes title-entrance {
            from {
                opacity: 0;
                transform: translateY(30px);
                filter: blur(10px) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
            }
            to {
                opacity: 1;
                transform: translateY(0);
                filter: blur(0) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
            }
        }

        .hero-subtitle {
            font-family: var(--font-primary);
            font-size: 1.25rem;
            font-weight: 400;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: var(--spacing-2xl);
            text-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
        }

        .hero-stats {
            display: flex;
            gap: var(--spacing-xl);
            margin-top: var(--spacing-2xl);
            flex-wrap: wrap;
            justify-content: center;
        }

        .hero-stat {
            text-align: center;
            position: relative;
            padding: 2rem 1.5rem;
            background: 
                linear-gradient(145deg, 
                    rgba(255, 255, 255, 0.12) 0%, 
                    rgba(255, 255, 255, 0.06) 100%
                );
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            backdrop-filter: blur(25px);
            min-width: 140px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            overflow: hidden;
        }

        .hero-stat::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.1), 
                transparent
            );
            transition: left 0.6s ease;
        }

        .hero-stat:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border-color: rgba(14, 165, 233, 0.4);
        }

        .hero-stat:hover::before {
            left: 100%;
        }

        .hero-stat-number {
            font-family: var(--font-display);
            font-size: 3rem;
            font-weight: 800;
            color: var(--academic-gold);
            line-height: 1;
            text-shadow: 
                0 2px 4px rgba(234, 179, 8, 0.4),
                0 4px 8px rgba(234, 179, 8, 0.3),
                0 0 30px rgba(234, 179, 8, 0.2);
            margin-bottom: 0.5rem;
            display: block;
            position: relative;
            filter: drop-shadow(0 2px 8px rgba(234, 179, 8, 0.5));
        }

        .hero-stat-number::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent, 
                var(--accent-blue), 
                transparent
            );
            border-radius: 1px;
        }

        .hero-stat-label {
            font-family: var(--font-primary);
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-top: 0.5rem;
            position: relative;
        }

        /* 🎨 HERO VISUAL - LOGO ANIMADO */
        .hero-visual {
            position: relative;
            z-index: 50;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 500px;
        }

        .hero-logo-container {
            position: relative;
            width: 400px;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-logo-circle {
            position: absolute;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.2);
            animation: rotate-circle linear infinite;
        }

        .hero-logo-circle-1 {
            width: 350px;
            height: 350px;
            border-color: rgba(14, 165, 233, 0.3);
            animation-duration: 20s;
        }

        .hero-logo-circle-2 {
            width: 280px;
            height: 280px;
            border-color: rgba(234, 179, 8, 0.3);
            animation-duration: 15s;
            animation-direction: reverse;
        }

        .hero-logo-circle-3 {
            width: 210px;
            height: 210px;
            border-color: rgba(255, 255, 255, 0.3);
            animation-duration: 25s;
        }

        @keyframes rotate-circle {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .hero-logo-main {
            position: relative;
            z-index: 10;
            width: 180px;
            height: 180px;
            background: 
                linear-gradient(135deg, 
                    rgba(255, 255, 255, 0.25) 0%, 
                    rgba(255, 255, 255, 0.15) 100%
                );
            backdrop-filter: blur(30px);
            border-radius: 50%;
            border: 3px solid rgba(255, 255, 255, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                0 0 60px rgba(14, 165, 233, 0.2);
            animation: logo-pulse 4s ease-in-out infinite;
        }

        @keyframes logo-pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 
                    0 20px 60px rgba(0, 0, 0, 0.3),
                    inset 0 2px 0 rgba(255, 255, 255, 0.3),
                    0 0 60px rgba(14, 165, 233, 0.2);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 
                    0 25px 70px rgba(0, 0, 0, 0.4),
                    inset 0 2px 0 rgba(255, 255, 255, 0.4),
                    0 0 80px rgba(14, 165, 233, 0.4);
            }
        }

        .hero-logo-img {
            width: 140px;
            height: auto;
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
            animation: logo-float 3s ease-in-out infinite;
        }

        @keyframes logo-float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .hero-floating-icon {
            position: absolute;
            width: 60px;
            height: 60px;
            background: 
                linear-gradient(135deg, 
                    rgba(14, 165, 233, 0.2) 0%, 
                    rgba(30, 58, 138, 0.2) 100%
                );
            backdrop-filter: blur(15px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 1.5rem;
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            animation: icon-float 3s ease-in-out infinite;
        }

        .hero-floating-icon-1 {
            top: 20%;
            right: 10%;
            animation-delay: 0s;
            background: linear-gradient(135deg, 
                rgba(234, 179, 8, 0.25) 0%, 
                rgba(245, 158, 11, 0.2) 100%
            );
        }

        .hero-floating-icon-2 {
            top: 60%;
            right: 5%;
            animation-delay: 0.5s;
        }

        .hero-floating-icon-3 {
            top: 45%;
            left: 5%;
            animation-delay: 1s;
            background: linear-gradient(135deg, 
                rgba(16, 185, 129, 0.25) 0%, 
                rgba(5, 150, 105, 0.2) 100%
            );
        }

        .hero-floating-icon-4 {
            top: 15%;
            left: 15%;
            animation-delay: 1.5s;
            background: linear-gradient(135deg, 
                rgba(234, 179, 8, 0.25) 0%, 
                rgba(245, 158, 11, 0.2) 100%
            );
        }

        @keyframes icon-float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
            }
            50% {
                transform: translateY(-15px) rotate(5deg);
            }
        }

        /* Patrón educativo de fondo */
        .hero-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 20% 80%, rgba(49, 130, 206, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(74, 85, 104, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(44, 122, 123, 0.05) 0%, transparent 50%);
            z-index: 1;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" fill="none"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="10" cy="10" r="0.5" fill="rgba(49,130,206,0.05)"/><circle cx="50" cy="50" r="0.5" fill="rgba(74,85,104,0.04)"/></svg>');
            opacity: 0.3;
            z-index: 1;
        }

        .hero-education-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 1;
            overflow: hidden;
        }

        .floating-element {
            position: absolute;
            animation: floatEducation 8s ease-in-out infinite;
        }

        .floating-book {
            width: 45px;
            height: 35px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 35" fill="none"><rect x="2" y="5" width="40" height="25" rx="2" fill="rgba(49,130,206,0.12)" stroke="rgba(49,130,206,0.2)"/><rect x="5" y="8" width="34" height="2" fill="rgba(49,130,206,0.18)"/><rect x="5" y="12" width="25" height="1" fill="rgba(49,130,206,0.15)"/><rect x="5" y="15" width="30" height="1" fill="rgba(49,130,206,0.15)"/><rect x="5" y="18" width="20" height="1" fill="rgba(49,130,206,0.15)"/></svg>') no-repeat center;
            background-size: contain;
        }

        .floating-diploma {
            width: 50px;
            height: 40px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 40" fill="none"><rect x="2" y="5" width="46" height="30" rx="2" fill="rgba(74,85,104,0.1)" stroke="rgba(74,85,104,0.2)"/><circle cx="25" cy="20" r="8" fill="none" stroke="rgba(49,130,206,0.25)" stroke-width="2"/><path d="M20 20L23 23L30 16" stroke="rgba(49,130,206,0.3)" stroke-width="2" fill="none"/><rect x="5" y="30" width="8" height="15" fill="rgba(49,130,206,0.12)"/><rect x="37" y="30" width="8" height="15" fill="rgba(49,130,206,0.12)"/></svg>') no-repeat center;
            background-size: contain;
        }

        .floating-graduation {
            width: 40px;
            height: 40px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><rect x="5" y="15" width="30" height="4" rx="2" fill="rgba(44,122,123,0.2)"/><polygon points="20,8 10,15 20,22 30,15" fill="rgba(49,130,206,0.15)" stroke="rgba(49,130,206,0.25)"/><rect x="28" y="17" width="2" height="15" fill="rgba(44,122,123,0.15)"/><circle cx="30" cy="32" r="3" fill="rgba(49,130,206,0.2)"/></svg>') no-repeat center;
            background-size: contain;
        }

        .floating-element:nth-child(1) { top: 15%; left: 12%; animation-delay: 0s; }
        .floating-element:nth-child(2) { top: 25%; right: 15%; animation-delay: 1.5s; }
        .floating-element:nth-child(3) { top: 65%; left: 8%; animation-delay: 3s; }
        .floating-element:nth-child(4) { top: 75%; right: 25%; animation-delay: 4.5s; }
        .floating-element:nth-child(5) { top: 45%; left: 5%; animation-delay: 6s; }

        .teacher-silhouette {
            position: absolute;
            right: 8%;
            bottom: 0;
            width: 280px;
            height: 450px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 450" fill="none"><ellipse cx="140" cy="60" rx="35" ry="40" fill="rgba(255,255,255,0.08)"/><path d="M105 120C105 105 120 95 140 95C160 95 175 105 175 120V140L160 160H120L105 140V120Z" fill="rgba(255,255,255,0.06)"/><rect x="120" y="160" width="40" height="200" rx="8" fill="rgba(255,255,255,0.05)"/><ellipse cx="90" cy="190" rx="12" ry="30" fill="rgba(255,255,255,0.04)"/><ellipse cx="190" cy="190" rx="12" ry="30" fill="rgba(255,255,255,0.04)"/><rect x="125" y="360" width="12" height="60" fill="rgba(255,255,255,0.04)"/><rect x="143" y="360" width="12" height="60" fill="rgba(255,255,255,0.04)"/><ellipse cx="131" cy="430" rx="18" ry="8" fill="rgba(255,255,255,0.03)"/><ellipse cx="149" cy="430" rx="18" ry="8" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="150" r="20" fill="rgba(49,130,206,0.1)"/><rect x="75" y="140" width="10" height="20" rx="2" fill="rgba(49,130,206,0.15)"/><path d="M85 135L95 125M85 145L95 155M85 165L95 175" stroke="rgba(49,130,206,0.2)" stroke-width="2"/></svg>') no-repeat center bottom;
            background-size: contain;
            opacity: 0.25;
            z-index: 1;
            animation: teacherFloat 8s ease-in-out infinite;
        }

        @keyframes teacherFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
        }

        /* Pizarra académica decorativa */
        .academic-board {
            position: absolute;
            left: -5%;
            top: 60%;
            width: 200px;
            height: 120px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120" fill="none"><rect x="10" y="10" width="180" height="100" rx="4" fill="rgba(26,54,93,0.08)" stroke="rgba(49,130,206,0.15)" stroke-width="2"/><path d="M25 30Q35 25 45 30T65 30" stroke="rgba(49,130,206,0.2)" stroke-width="2" fill="none"/><path d="M25 45Q40 40 55 45T85 45" stroke="rgba(49,130,206,0.18)" stroke-width="2" fill="none"/><path d="M25 60Q35 55 45 60T65 60" stroke="rgba(49,130,206,0.15)" stroke-width="2" fill="none"/><circle cx="150" cy="40" r="15" fill="none" stroke="rgba(44,122,123,0.2)" stroke-width="2"/><path d="M140 50L150 60L170 40" stroke="rgba(44,122,123,0.25)" stroke-width="2" fill="none"/><rect x="130" y="70" width="40" height="2" fill="rgba(49,130,206,0.15)"/></svg>') no-repeat center;
            background-size: contain;
            opacity: 0.2;
            z-index: 1;
            animation: floatEducation 10s ease-in-out infinite;
            animation-delay: 2s;
        }

        @keyframes floatEducation {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

        .hero-title {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            margin-bottom: var(--spacing-md);
            color: #ffffff;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
        }

        .hero-subtitle {
            font-size: 1.25rem;
            margin-bottom: var(--spacing-xl);
            color: #ffffff;
            opacity: 1;
            max-width: 600px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .btn-hero {
            padding: 1.2rem 2.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            margin-right: var(--spacing-md);
            margin-bottom: var(--spacing-sm);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-family: var(--font-headings);
        }

        .btn-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent
            );
            transition: left 0.6s ease;
        }

        .btn-hero:hover::before {
            left: 100%;
        }

        .btn-hero-primary {
            background: linear-gradient(135deg, 
                var(--accent-blue) 0%, 
                #1e40af 50%, 
                var(--university-blue) 100%
            );
            color: #ffffff;
            border: 2px solid transparent;
            box-shadow: 
                0 8px 32px rgba(30, 58, 138, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            background-size: 200% 200%;
            animation: hero-btn-gradient 3s ease infinite;
        }

        .btn-hero-primary:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 
                0 15px 45px rgba(30, 58, 138, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            color: #ffffff;
            background-position: right center;
        }

        .btn-hero-secondary {
            background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
            color: #ffffff;
            border: 2px solid rgba(13, 110, 253, 0.8);
            backdrop-filter: blur(20px);
            box-shadow: 
                0 8px 32px rgba(13, 110, 253, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .btn-hero-secondary:hover {
            background: linear-gradient(135deg, #0b5ed7 0%, #0bb5e0 100%);
            border-color: rgba(13, 110, 253, 1);
            color: #ffffff;
            transform: translateY(-4px) scale(1.02);
            box-shadow: 
                0 15px 45px rgba(13, 110, 253, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        @keyframes hero-btn-gradient {
            0%, 100% { 
                background-position: 0% 50%; 
            }
            50% { 
                background-position: 100% 50%; 
            }
        }

        /* 🌟 PARTÍCULAS FLOTANTES Y EFECTOS VISUALES */
        .floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
            pointer-events: none;
        }

        .floating-particle {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float-up linear infinite;
        }

        .floating-particle:nth-child(1) {
            width: 8px;
            height: 8px;
            left: 10%;
            animation-duration: 15s;
            animation-delay: 0s;
        }

        .floating-particle:nth-child(2) {
            width: 6px;
            height: 6px;
            left: 25%;
            animation-duration: 12s;
            animation-delay: 2s;
        }

        .floating-particle:nth-child(3) {
            width: 10px;
            height: 10px;
            left: 40%;
            animation-duration: 18s;
            animation-delay: 1s;
        }

        .floating-particle:nth-child(4) {
            width: 4px;
            height: 4px;
            left: 60%;
            animation-duration: 20s;
            animation-delay: 3s;
        }

        .floating-particle:nth-child(5) {
            width: 7px;
            height: 7px;
            left: 75%;
            animation-duration: 14s;
            animation-delay: 0.5s;
        }

        .floating-particle:nth-child(6) {
            width: 5px;
            height: 5px;
            left: 90%;
            animation-duration: 16s;
            animation-delay: 2.5s;
        }

        @keyframes float-up {
            0% {
                bottom: -10px;
                opacity: 0;
                transform: translateX(0) rotate(0deg);
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                bottom: 100vh;
                opacity: 0;
                transform: translateX(100px) rotate(360deg);
            }
        }

        /* Efectos de luz orbitales */
        .orbital-light {
            position: absolute;
            width: 200px;
            height: 200px;
            border: 2px solid rgba(14, 165, 233, 0.3);
            border-radius: 50%;
            top: 20%;
            right: 10%;
            animation: orbital-rotate 25s linear infinite;
            opacity: 0.6;
        }

        .orbital-light::before {
            content: '';
            position: absolute;
            width: 8px;
            height: 8px;
            background: var(--accent-blue);
            border-radius: 50%;
            top: -4px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 0 20px var(--accent-blue);
        }

        .orbital-light:nth-child(2) {
            width: 150px;
            height: 150px;
            top: 60%;
            left: 5%;
            animation-duration: 20s;
            animation-direction: reverse;
            border-color: rgba(234, 179, 8, 0.3);
        }

        .orbital-light:nth-child(2)::before {
            background: var(--academic-gold);
            box-shadow: 0 0 20px var(--academic-gold);
        }

        @keyframes orbital-rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Mejoras de profundidad y dimensión */
        .hero-content {
            position: relative;
            z-index: 10;
            max-width: 800px;
            transform-style: preserve-3d;
        }

        .hero-content > * {
            transform: translateZ(20px);
        }

        /* 📊 STATS SECTION */
        .stats-section {
            padding: 120px 0;
            background: #ffffff;
            position: relative;
            overflow: hidden;
        }

        .stats-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
            z-index: 1;
        }

        .stats-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 60px,
                    rgba(14, 165, 233, 0.02) 60px,
                    rgba(14, 165, 233, 0.02) 61px
                );
            z-index: 1;
        }

        .stats-section .container {
            position: relative;
            z-index: 2;
        }

        .stat-card {
            text-align: center;
            padding: 48px 32px;
            background: #ffffff;
            border-radius: 20px;
            border: 2px solid #e2e8f0;
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.06),
                0 1px 8px rgba(0, 0, 0, 0.03);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #0ea5e9 0%, #1e3a8a 100%);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-card::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
            transform: translate(-50%, -50%) scale(0);
            border-radius: 50%;
            transition: transform 0.5s ease;
            pointer-events: none;
        }

        .stat-card:hover::after {
            transform: translate(-50%, -50%) scale(1.5);
        }

        .stat-card:hover {
            transform: translateY(-8px);
            box-shadow: 
                0 20px 50px rgba(14, 165, 233, 0.15),
                0 5px 20px rgba(0, 0, 0, 0.08);
            border-color: #0ea5e9;
        }

        .stat-number {
            font-size: clamp(3rem, 5vw, 4.2rem);
            font-weight: 800;
            color: #1e3a8a;
            margin-bottom: 12px;
            position: relative;
            z-index: 1;
            transition: all 0.4s ease;
            line-height: 1;
        }

        .stat-card:hover .stat-number {
            color: #0ea5e9;
            transform: scale(1.05);
        }

        .stat-label {
            font-size: 1rem;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            position: relative;
            z-index: 1;
            transition: all 0.3s ease;
        }

        .stat-card:hover .stat-label {
            color: #334155;
            letter-spacing: 2px;
        }

        /* 📚 PROGRAMAS SECTION MEJORADA */
        .programas-section {
            padding: 120px 0;
            background: #f8fafc;
            position: relative;
            overflow: hidden;
        }

        .programas-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(30, 58, 138, 0.02) 0%, transparent 50%);
            z-index: 1;
        }

        .programas-section .container {
            position: relative;
            z-index: 2;
        }

        /* CSS variables for programas — color único */
        .programas-section .col-lg-4,
        .programas-section .col-md-6 {
            --cp-accent: #1e40af;
            --cp-glow: rgba(30,64,175,0.15);
            --cp-tint: rgba(30,64,175,0.06);
            --cp-badge: linear-gradient(135deg,#1e40af,#1d4ed8);
        }

        /* 📰 NOTICIAS SECTION - REDISEÑO MODERNO */
        .noticias-section {
            padding: 120px 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            position: relative;
        }

        .noticias-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 20%, rgba(13, 110, 253, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(25, 135, 84, 0.03) 0%, transparent 50%);
            z-index: 1;
        }

        .noticias-section .container {
            position: relative;
            z-index: 2;
        }

        /* Card de Noticia Rediseñada - Estilo Premium */
        .noticia-card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.06),
                0 1px 4px rgba(0, 0, 0, 0.03);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            height: 100%;
            border: 1px solid #e9ecef;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        /* Barra lateral colorida animada */
        .noticia-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 5px;
            background: linear-gradient(180deg, 
                #0d6efd 0%, 
                #0dcaf0 50%, 
                #198754 100%
            );
            transform: scaleY(0);
            transform-origin: bottom;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 3;
        }

        .noticia-card:hover::before {
            transform: scaleY(1);
            transform-origin: top;
        }

        /* Brillo superior en hover */
        .noticia-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, 
                transparent 0%,
                rgba(13, 110, 253, 0.4) 20%,
                rgba(13, 202, 240, 0.6) 50%,
                rgba(13, 110, 253, 0.4) 80%,
                transparent 100%
            );
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .noticia-card:hover::after {
            opacity: 1;
        }

        .noticia-card:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 
                0 20px 40px rgba(13, 110, 253, 0.15),
                0 8px 20px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(13, 110, 253, 0.1);
            border-color: rgba(13, 110, 253, 0.2);
        }

        /* Wrapper de Imagen Mejorado */
        .noticia-image-wrapper {
            position: relative;
            overflow: hidden;
            height: 180px;
            background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        }

        /* Overlay gradient en imagen */
        .noticia-image-wrapper::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, 
                transparent 0%,
                rgba(0, 0, 0, 0.02) 50%,
                rgba(0, 0, 0, 0.08) 100%
            );
            z-index: 1;
            transition: opacity 0.4s ease;
        }

        .noticia-card:hover .noticia-image-wrapper::before {
            opacity: 0.7;
        }

        .noticia-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
            filter: brightness(1.05) contrast(1.05);
        }

        .noticia-card:hover .noticia-image {
            transform: scale(1.15) rotate(1deg);
            filter: brightness(1.1) contrast(1.1);
        }

        /* Badge de Categoría Mejorado */
        .noticia-category {
            position: absolute;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, rgba(13, 110, 253, 0.95) 0%, rgba(10, 88, 202, 0.95) 100%);
            color: #ffffff;
            padding: 8px 18px;
            border-radius: 25px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 2;
            backdrop-filter: blur(8px);
            box-shadow: 
                0 4px 12px rgba(13, 110, 253, 0.3),
                0 2px 6px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .noticia-card:hover .noticia-category {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 
                0 6px 20px rgba(13, 110, 253, 0.4),
                0 3px 10px rgba(0, 0, 0, 0.2);
        }

        /* Contenido de la Card */
        .noticia-content {
            padding: 24px;
            background: #ffffff;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        /* Fecha con icono mejorado */
        .noticia-date {
            font-size: 0.8rem;
            color: #198754;
            margin-bottom: 12px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0.05) 100%);
            padding: 6px 12px;
            border-radius: 6px;
            border-left: 3px solid #198754;
            transition: all 0.3s ease;
            width: fit-content;
        }

        .noticia-date i {
            font-size: 0.75rem;
            animation: pulse-date 2s ease-in-out infinite;
        }

        @keyframes pulse-date {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .noticia-card:hover .noticia-date {
            background: linear-gradient(135deg, rgba(25, 135, 84, 0.15) 0%, rgba(25, 135, 84, 0.08) 100%);
            transform: translateX(5px);
        }

        /* Título mejorado */
        .noticia-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #212529;
            margin-bottom: 12px;
            line-height: 1.3;
            transition: all 0.3s ease;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-family: var(--font-headings);
        }

        .noticia-card:hover .noticia-title {
            color: #0d6efd;
            text-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
        }

        /* Excerpt mejorado */
        .noticia-excerpt {
            color: #6c757d;
            margin-bottom: auto;
            line-height: 1.6;
            font-size: 0.9rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }

        /* Footer de la Card */
        .noticia-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 16px;
            margin-top: 16px;
            border-top: 2px solid #f8f9fa;
            transition: border-color 0.3s ease;
        }

        .noticia-card:hover .noticia-footer {
            border-color: rgba(13, 110, 253, 0.15);
        }

        /* Botón de Leer Más Premium */
        .btn-leer-mas {
            color: #0d6efd;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.9rem;
            padding: 8px 16px;
            border: 2px solid #0d6efd;
            border-radius: 8px;
            background: transparent;
            position: relative;
            overflow: hidden;
        }

        .btn-leer-mas::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .btn-leer-mas:hover::before {
            opacity: 1;
        }

        .btn-leer-mas:hover {
            color: #ffffff;
            gap: 12px;
            transform: translateX(5px);
            box-shadow: 
                0 8px 20px rgba(13, 110, 253, 0.3),
                0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .btn-leer-mas i {
            transition: transform 0.4s ease;
            font-size: 1rem;
        }

        .btn-leer-mas:hover i {
            transform: translateX(6px);
            animation: arrow-bounce 0.6s ease infinite;
        }

        @keyframes arrow-bounce {
            0%, 100% { transform: translateX(6px); }
            50% { transform: translateX(10px); }
        }

        /* Meta info adicional (opcional) */
        .noticia-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 0.85rem;
            color: #6c757d;
        }

        .noticia-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.3s ease;
        }

        .noticia-meta-item:hover {
            color: #0d6efd;
        }

        .noticia-meta-item i {
            font-size: 0.75rem;
            opacity: 0.7;
        }

        /* 📋 MODAL DE NOTICIAS - ESTILO PREMIUM */
        .modal-noticias .modal-dialog {
            max-width: 900px;
        }

        .modal-noticias .modal-content {
            border-radius: 20px;
            border: none;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .modal-noticias .modal-header {
            background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
            color: white;
            border-radius: 20px 20px 0 0;
            padding: 24px 30px;
            border: none;
        }

        .modal-noticias .modal-title {
            font-size: 1.6rem;
            font-weight: 700;
            font-family: var(--font-headings);
        }

        .modal-noticias .btn-close {
            filter: brightness(0) invert(1);
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .modal-noticias .btn-close:hover {
            opacity: 1;
            transform: rotate(90deg);
        }

        .modal-noticias .modal-body {
            padding: 30px;
            max-height: 70vh;
            overflow-y: auto;
        }

        /* Scroll personalizado para el modal */
        .modal-noticias .modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .modal-noticias .modal-body::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 10px;
        }

        .modal-noticias .modal-body::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
            border-radius: 10px;
        }

        .modal-noticias .modal-body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #0a58ca 0%, #0aa8d8 100%);
        }

        /* Item de noticia en modal */
        .modal-noticia-item {
            display: flex;
            gap: 20px;
            padding: 20px;
            background: #ffffff;
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .modal-noticia-item:last-child {
            margin-bottom: 0;
        }

        .modal-noticia-item:hover {
            background: #f8f9fa;
            border-color: #0d6efd;
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
        }

        .modal-noticia-image {
            width: 140px;
            height: 100px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .modal-noticia-item:hover .modal-noticia-image {
            transform: scale(1.05);
        }

        .modal-noticia-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .modal-noticia-category {
            display: inline-block;
            background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 202, 240, 0.1) 100%);
            color: #0d6efd;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            width: fit-content;
            margin-bottom: 8px;
        }

        .modal-noticia-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #212529;
            margin-bottom: 8px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.3s ease;
        }

        .modal-noticia-item:hover .modal-noticia-title {
            color: #0d6efd;
        }

        .modal-noticia-excerpt {
            font-size: 0.85rem;
            color: #6c757d;
            line-height: 1.6;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .modal-noticia-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .modal-noticia-date {
            font-size: 0.75rem;
            color: #198754;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .modal-noticia-link {
            color: #0d6efd;
            font-weight: 600;
            text-decoration: none;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.3s ease;
        }

        .modal-noticia-link:hover {
            color: #0a58ca;
            gap: 8px;
        }

        .modal-noticia-link i {
            transition: transform 0.3s ease;
        }

        .modal-noticia-link:hover i {
            transform: translateX(4px);
        }

        /* Empty state */
        .modal-empty-state {
            text-align: center;
            padding: 60px 20px;
        }

        .modal-empty-state i {
            font-size: 4rem;
            color: #dee2e6;
            margin-bottom: 20px;
        }

        .modal-empty-state h4 {
            color: #6c757d;
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .modal-empty-state p {
            color: #adb5bd;
            font-size: 0.9rem;
        }

        /* 🎯 SERVICIOS SECTION */
        .servicios-section {
            padding: 100px 0;
            background: #f8fafc;
        }

        /* CSS variables for servicios cards */
        .servicios-section .row > .col-lg-3,
        .servicios-section .row > .col-md-6 {
            --cp-accent: #1e40af;
            --cp-glow: rgba(30,64,175,0.15);
            --cp-tint: rgba(30,64,175,0.06);
            --cp-badge: linear-gradient(135deg,#1e40af,#1d4ed8);
        }

        /* INFORMES SECTION */
        .informes-section {
            padding: 100px 0;
            background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 50%, #f8fafc 100%);
            position: relative;
            overflow: hidden;
        }

        .informes-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(13, 202, 240, 0.05) 0%, transparent 50%);
            z-index: 1;
        }

        .informes-section .container {
            position: relative;
            z-index: 2;
        }

        /* CSS variables for informes cards */
        .informes-section .row > .col-lg-4,
        .informes-section .row > .col-md-6 {
            --cp-accent: #1e40af;
            --cp-glow: rgba(30,64,175,0.15);
            --cp-tint: rgba(30,64,175,0.06);
            --cp-badge: linear-gradient(135deg,#1e40af,#1d4ed8);
        }

        /* 💳 CÓDIGOS DE PAGO SECTION */
        .codigos-pago-section {
            padding: 100px 0;
            background: linear-gradient(160deg, #f8faff 0%, #eef2f7 50%, #f4f6fb 100%);
            position: relative;
            overflow: hidden;
        }

        .codigos-pago-section::before {
            content: '';
            position: absolute;
            top: -150px; left: -150px;
            width: 500px; height: 500px;
            background: radial-gradient(circle, rgba(14,165,233,0.05) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .codigos-pago-section .section-title {
            font-size: clamp(1.875rem, 3vw, 2.5rem);
            font-weight: 800;
            color: var(--university-blue);
            margin-bottom: 1rem;
            text-align: center;
            position: relative;
        }

        .codigos-pago-section .section-title::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-sky) 0%, var(--accent-gold) 100%);
            border-radius: var(--radius-sm);
        }

        .codigos-pago-section .section-subtitle {
            font-size: 1.125rem;
            color: var(--text-tertiary);
            text-align: center;
            margin-bottom: 4rem;
            font-weight: 400;
            line-height: 1.7;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Single accent color for all cards */
        .codigos-pago-section .row > .col-lg-4 {
            --cp-accent: #1e40af;
            --cp-glow: rgba(30,64,175,0.15);
            --cp-tint: rgba(30,64,175,0.06);
            --cp-badge: linear-gradient(135deg,#1e40af,#1d4ed8);
        }

        .codigo-card {
            background: #ffffff;
            border-radius: 24px;
            padding: 1.75rem 1.5rem 1.5rem;
            height: 100%;
            display: flex;
            flex-direction: column;
            box-shadow: 0 2px 16px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.04);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            border: 1.5px solid rgba(0,0,0,0.06);
        }

        .codigo-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 4px;
            background: var(--cp-accent, #0dcaf0);
            border-radius: 24px 24px 0 0;
        }

        .codigo-card::after {
            content: '';
            position: absolute;
            top: -80px; right: -80px;
            width: 220px; height: 220px;
            background: radial-gradient(circle, var(--cp-glow, rgba(13,202,240,0.12)) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            transition: transform 0.4s ease;
        }

        .codigo-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 24px 60px var(--cp-glow, rgba(13,202,240,0.2)), 0 4px 16px rgba(0,0,0,0.07);
            border-color: var(--cp-accent, #0dcaf0);
        }

        .codigo-card:hover::before {
            height: 5px;
        }

        .codigo-card:hover::after {
            transform: scale(1.5);
        }

        .codigo-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 12px;
            background: var(--cp-badge, linear-gradient(135deg,#059669,#047857));
            color: white;
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 1.1rem;
            align-self: flex-start;
            box-shadow: 0 2px 8px var(--cp-glow, rgba(5,150,105,0.3));
            position: relative;
            z-index: 2;
        }

        .codigo-badge i {
            font-size: 0.7rem;
        }

        .codigo-icon-wrapper {
            width: 68px;
            height: 68px;
            background: var(--cp-tint, rgba(13,202,240,0.08));
            border: 2px solid var(--cp-accent, #0dcaf0);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            position: relative;
            transition: all 0.35s ease;
        }

        .codigo-icon-wrapper::before {
            display: none;
        }

        .codigo-card:hover .codigo-icon-wrapper {
            background: var(--cp-accent, #0dcaf0);
            transform: scale(1.08) rotate(-4deg);
            box-shadow: 0 8px 24px var(--cp-glow, rgba(13,202,240,0.35));
            border-color: transparent;
        }

        .codigo-icon-wrapper i {
            font-size: 1.9rem;
            color: var(--cp-accent, #0dcaf0);
            transition: color 0.3s ease;
        }

        .codigo-card:hover .codigo-icon-wrapper i {
            color: #ffffff;
        }

        .codigo-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 0.4rem;
            text-align: center;
        }

        .codigo-descripcion {
            font-size: 0.82rem;
            color: #64748b;
            line-height: 1.55;
            text-align: center;
            margin-bottom: 1rem;
        }

        /* MONTO PRINCIPAL */
        .codigo-monto-container {
            background: var(--cp-tint, rgba(13,202,240,0.06));
            border: 1.5px solid var(--cp-accent, #0dcaf0);
            border-radius: 14px;
            padding: 1.1rem 1rem;
            margin: 0.8rem 0 1rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .codigo-monto-container::before {
            content: '';
            position: absolute;
            top: 0; left: -100%; width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0%, 100% { left: -100%; }
            50% { left: 100%; }
        }

        .codigo-monto-label {
            font-size: 0.68rem;
            font-weight: 700;
            color: var(--cp-accent, #0dcaf0);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 0.25rem;
        }

        .codigo-monto {
            font-size: 2.4rem;
            font-weight: 900;
            color: #0f172a;
            line-height: 1;
            margin: 0.4rem 0;
            position: relative;
            z-index: 1;
        }

        .codigo-monto-info {
            font-size: 0.72rem;
            color: #64748b;
            margin-top: 0.25rem;
            font-style: italic;
        }

        .codigo-detalles {
            background: #f8fafc;
            border-radius: 12px;
            padding: 0.85rem 1rem;
            margin: 0 0 1rem;
            border: 1px solid #e2e8f0;
        }

        .codigo-detalles-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0;
            border-bottom: 1px solid #f1f5f9;
        }

        .codigo-detalles-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .codigo-detalles-item i {
            font-size: 0.9rem;
            color: var(--cp-accent, #0dcaf0);
            min-width: 18px;
        }

        .codigo-detalles-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #64748b;
            min-width: 56px;
        }

        .codigo-detalles-value {
            font-size: 0.82rem;
            color: #1e293b;
            font-weight: 600;
            flex: 1;
        }

        .btn-codigo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px 20px;
            background: var(--cp-accent, #0dcaf0);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 0.82rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            margin-top: auto;
            width: 100%;
            box-shadow: 0 4px 14px var(--cp-glow, rgba(13,202,240,0.3));
        }

        .btn-codigo::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(rgba(255,255,255,0.12), transparent);
            border-radius: inherit;
            pointer-events: none;
        }

        .btn-codigo:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 28px var(--cp-glow, rgba(13,202,240,0.45));
            filter: brightness(1.08);
        }

        .btn-codigo i {
            font-size: 0.95rem;
        }

        /* ===== MODAL CÓDIGO DE PAGO ===== */
        .modal-codigo-pago .modal-content {
            border-radius: 12px;
            border: 1px solid #d1d5db;
            box-shadow: 0 20px 48px rgba(0,0,0,0.18);
            overflow: hidden;
        }
        /* React mount point fill */
        #modal-pago-root { min-height: 100px; }

        /* Responsive */
        @media (max-width: 768px) {
            .codigos-pago-section {
                padding: 60px 0;
            }

            .codigos-pago-section .section-title {
                font-size: 1.8rem;
            }

            .codigo-monto {
                font-size: 2rem;
            }

            .codigo-card {
                padding: 1.5rem 1.2rem;
            }

            .codigo-icon-wrapper {
                width: 55px;
                height: 55px;
                margin-bottom: 0.8rem;
            }

            .codigo-icon-wrapper i {
                font-size: 1.6rem;
            }

            .codigo-title {
                font-size: 1rem;
            }

            .codigo-descripcion {
                font-size: 0.8rem;
                margin-bottom: 1rem;
            }

            .codigo-monto-container {
                padding: 1rem 0.8rem;
                margin: 1rem 0;
            }

            .codigo-detalles {
                padding: 0.8rem;
                margin: 0.8rem 0;
            }

            .btn-codigo {
                padding: 10px 24px;
                font-size: 0.85rem;
            }
        }

        /* 📞 CONTACTO SECTION - CONTRASTE MEJORADO */
        /* 👨‍🏫 DOCENTES SECTION */
        .docentes-section {
            padding: 100px 0;
            background: #f8faff;
            position: relative;
        }

        .docente-filtros {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        .docente-filtro-btn {
            padding: 8px 22px;
            border-radius: 50px;
            border: 2px solid #1e40af;
            background: transparent;
            color: #1e40af;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .docente-filtro-btn:hover,
        .docente-filtro-btn.active {
            background: #1e40af;
            color: #fff;
        }

        /* --- Profile Card (docente) --- */
        .profile-card {
            width: 100%;
            height: auto;
            margin: auto;
            background: #fff;
            border-radius: 18px;
            border: 1px solid #e8edf5;
            box-shadow: 0 2px 18px rgba(30,58,138,0.08);
            position: relative;
            overflow: hidden;
            transform-origin: center;
            transition: transform 0.2s linear, box-shadow 0.2s linear, filter 0.2s linear, border-color 0.2s linear;
        }

        .profile-card:hover {
            transform: translateY(-5px) scale(1.03);
            box-shadow: 0 14px 38px rgba(30,58,138,0.18);
            border-color: #bfdbfe;
        }

        /* Sibling dim+blur — reference technique */
        #docentes-grid:hover > .docente-item:not(:hover) .profile-card {
            filter: brightness(0.6) saturate(0.3) blur(2px);
            transform: scale(0.97);
        }

        .profile-card.active {
            overflow: hidden;
        }

        .profile-card.active .profile-card__cnt {
            filter: blur(6px);
        }

        .profile-card.active .profile-card-message,
        .profile-card.active .profile-card__overlay {
            opacity: 1;
            pointer-events: auto;
            transition-delay: .1s;
        }

        .profile-card.active .profile-card-form {
            transform: none;
            transition-delay: .1s;
        }

        .profile-card__img {
            width: 120px;
            height: 120px;
            margin: -60px auto 0;
            border-radius: 50%;
            overflow: hidden;
            position: relative;
            z-index: 4;
            border: 4px solid #fff;
            box-shadow: 0 4px 20px rgba(30,58,138,0.22);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .profile-card:hover .profile-card__img {
            transform: scale(1.1) translateY(-3px);
            box-shadow: 0 8px 28px rgba(30,58,138,0.35);
        }

        .profile-card__img img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .profile-card__img .docente-photo-placeholder-pc {
            display: flex;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg, #1e3a8a, #2563eb);
            align-items: center;
            justify-content: center;
        }

        .profile-card__img .docente-photo-placeholder-pc i {
            font-size: 1.8rem;
            color: rgba(255,255,255,0.9);
        }

        .profile-card__cnt {
            text-align: center;
            padding: 8px 16px 0;
            transition: all .3s;
        }

        .profile-card__name {
            font-weight: 700;
            font-size: 1rem;
            color: #0f172a;
            margin-bottom: 2px;
            line-height: 1.3;
            letter-spacing: -0.01em;
        }

        .profile-card__txt {
            font-size: 0.78rem;
            font-weight: 500;
            color: #64748b;
            margin-bottom: 3px;
        }

        .profile-card__txt strong { font-weight: 700; }

        .profile-card-loc {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.75rem;
            font-weight: 500;
            color: #94a3b8;
            gap: 4px;
            margin-top: 1px;
        }

        .profile-card-loc__icon {
            color: #94a3b8;
            font-size: 0.75rem;
        }

        .profile-card-inf {
            display: flex;
            justify-content: center;
            align-items: stretch;
            margin: 12px 0 10px;
            border-top: 1px solid #f1f5fb;
            border-bottom: 1px solid #f1f5fb;
            padding: 8px 0;
        }

        .profile-card-inf__item {
            flex: 1;
            text-align: center;
            padding: 2px 4px;
            position: relative;
        }

        .profile-card-inf__item + .profile-card-inf__item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 15%;
            bottom: 15%;
            width: 1px;
            background: #e2e8f4;
        }

        .profile-card-inf__title {
            font-weight: 700;
            font-size: 1rem;
            color: #1e3a8a;
            line-height: 1.2;
        }

        .profile-card-inf__txt {
            font-weight: 500;
            font-size: 0.62rem;
            margin-top: 1px;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }



        .profile-card-ctr {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px 14px 12px;
            gap: 8px;
            flex-wrap: wrap;
        }

        .profile-card-ctr .profile-card__button.button--blue {
            background: transparent;
            box-shadow: none;
            border: 1.5px solid #2563eb;
            color: #2563eb;
            padding: 7px 16px;
            min-height: 34px;
            font-size: 0.78rem;
        }
        .profile-card-ctr .profile-card__button.button--blue:hover {
            background: #2563eb;
            color: #fff;
            box-shadow: 0 4px 14px rgba(37,99,235,0.3);
        }
        .profile-card-ctr .profile-card__button.button--orange {
            background: #1e3a8a;
            box-shadow: 0 3px 12px rgba(30,58,138,0.22);
            border: 1.5px solid #1e3a8a;
            color: #fff;
            padding: 7px 16px;
            min-height: 34px;
            font-size: 0.78rem;
        }
        .profile-card-ctr .profile-card__button.button--orange:hover {
            background: #1d4ed8;
            border-color: #1d4ed8;
            box-shadow: 0 6px 18px rgba(29,78,216,0.35);
        }

        /* Panel de botones */
        .profile-card__expand {
            background: #f8faff;
            border-top: 1px solid #e8edf5;
        }

        .profile-card__button {
            background: none;
            border: none;
            font-family: var(--font-primary);
            font-weight: 700;
            font-size: 0.88rem;
            padding: 10px 22px;
            border-radius: 50px;
            min-height: 42px;
            color: #fff;
            cursor: pointer;
            backface-visibility: hidden;
            transition: all .3s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
        }

        .profile-card__button:focus { outline: none; }

        .profile-card__button:hover { transform: translateY(-3px); }

        .profile-card__button.button--blue {
            background: linear-gradient(45deg, #1da1f2, #0e71c8);
            box-shadow: 0px 4px 20px rgba(19,127,212,0.4);
        }

        .profile-card__button.button--blue:hover {
            box-shadow: 0px 7px 25px rgba(19,127,212,0.7);
        }

        .profile-card__button.button--orange {
            background: linear-gradient(45deg, #1e40af, #2563eb);
            box-shadow: 0px 4px 20px rgba(30,64,175,0.35);
        }

        .profile-card__button.button--orange:hover {
            box-shadow: 0px 7px 25px rgba(30,64,175,0.7);
        }

        .profile-card__button.button--gray {
            box-shadow: none;
            background: #dcdcdc;
            color: #142029;
        }

        .profile-card-message {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            padding: 100px 0 60px;
            opacity: 0;
            pointer-events: none;
            transition: all .3s;
            z-index: 5;
        }

        .profile-card-form {
            box-shadow: 0 4px 30px rgba(15,22,56,0.3);
            max-width: 84%;
            margin: auto;
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            transform: scale(.8);
            position: relative;
            z-index: 3;
            transition: all .3s;
        }

        .profile-card-form__bottom {
            justify-content: space-between;
            display: flex;
            gap: 8px;
        }

        .profile-card textarea {
            width: 100%;
            resize: none;
            height: 130px;
            margin-bottom: 12px;
            border: 2px solid #dcdcdc;
            border-radius: 8px;
            padding: 10px 14px;
            color: #324e63;
            font-weight: 500;
            font-family: var(--font-primary);
            outline: none;
            transition: all .3s;
            font-size: 0.875rem;
        }

        .profile-card textarea:focus {
            border-color: #6944ff;
        }

        .profile-card__overlay {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            pointer-events: none;
            opacity: 0;
            background: rgba(22,33,72,0.35);
            border-radius: 16px;
            transition: all .3s;
            z-index: 2;
        }

        /* Banner de color superior en la card */
        .docente-card-banner {
            height: 78px;
            background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
        }

        .docente-mencion-badge {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 50px;
            background: #f0f7ff;
            color: #2563eb;
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            border: 1px solid #dbeafe;
            margin-bottom: 10px;
        }

        .contacto-section {
            padding: 120px 0;
            background: ;
            position: relative;
            overflow: hidden;
        }

        /* Patrón geométrico de fondo */
        .contacto-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 15% 20%, rgba(13, 110, 253, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(25, 135, 84, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 50% 80%, rgba(13, 202, 240, 0.05) 0%, transparent 40%);
            z-index: 1;
        }

        /* Patrón de puntos decorativos */
        .contacto-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle, rgba(13, 110, 253, 0.15) 1px, transparent 1px),
                radial-gradient(circle, rgba(25, 135, 84, 0.12) 1px, transparent 1px);
            background-size: 50px 50px, 80px 80px;
            background-position: 0 0, 40px 40px;
            opacity: 0.3;
            z-index: 1;
            animation: pattern-move 60s linear infinite;
        }

        @keyframes pattern-move {
            0% {
                background-position: 0 0, 40px 40px;
            }
            100% {
                background-position: 50px 50px, 90px 90px;
            }
        }

        .contacto-section .container {
            position: relative;
            z-index: 2;
        }

        .contacto-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 40px 32px;
            box-shadow: 
                0 4px 16px rgba(0, 0, 0, 0.06),
                0 1px 4px rgba(0, 0, 0, 0.03);
            border: 2px solid rgba(13, 110, 253, 0.1);
            height: 100%;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        /* Brillo de fondo en hover */
        .contacto-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.5s ease;
            z-index: 0;
        }

        .contacto-card:hover::after {
            opacity: 1;
        }

        /* Barra superior animada con gradiente */
        .contacto-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, 
                #0d6efd 0%, 
                #0dcaf0 25%, 
                #198754 50%, 
                #0dcaf0 75%, 
                #0d6efd 100%
            );
            background-size: 200% 100%;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s ease;
            animation: gradient-shift 3s linear infinite;
            z-index: 1;
        }

        @keyframes gradient-shift {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        .contacto-card:hover::before {
            transform: scaleX(1);
        }

        .contacto-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 
                0 16px 40px rgba(13, 110, 253, 0.2),
                0 8px 16px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(13, 110, 253, 0.15);
            border-color: rgba(13, 110, 253, 0.3);
        }

        .contacto-icon {
            width: 72px;
            height: 72px;
            background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 2rem;
            margin-bottom: 24px;
            box-shadow: 
                0 4px 15px rgba(13, 110, 253, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .contacto-card:hover .contacto-icon {
            transform: scale(1.12) rotate(5deg);
            box-shadow: 
                0 8px 24px rgba(13, 110, 253, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .contacto-title {
            font-size: 1.45rem;
            font-weight: 700;
            color: #212529;
            margin-bottom: 14px;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .contacto-info {
            color: #495057;
            line-height: 1.8;
            font-size: 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .contacto-card:hover .contacto-title {
            color: #0d6efd;
            text-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
            transform: translateX(5px);
        }

        .contacto-card:hover .contacto-info {
            color: #212529;
            transform: translateX(5px);
        }

        /* Links dentro de contacto info */
        .contacto-info a {
            color: #495057;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .contacto-info a:hover {
            color: #0d6efd;
            text-decoration: underline;
            transform: translateX(3px);
        }

        /* 🏛️ FOOTER INSTITUCIONAL ESPECTACULAR - DISEÑO PREMIUM */
        .footer-institutional {
            background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #0f1729 100%);
            color: white;
            padding: 0;
            margin-top: 0;
            position: relative;
            overflow: hidden;
        }

        /* Partículas animadas de fondo */
        .footer-institutional::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(13, 110, 253, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(234, 179, 8, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
            animation: footer-ambient 20s ease-in-out infinite;
        }

        @keyframes footer-ambient {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.1); }
        }

        /* Línea superior animada */
        .footer-institutional::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, 
                #0d6efd 0%, 
                #0dcaf0 25%, 
                #198754 50%, 
                #ffc107 75%, 
                #0d6efd 100%
            );
            background-size: 200% 100%;
            animation: gradient-flow 5s linear infinite;
        }

        @keyframes gradient-flow {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        /* Contenedor principal */
        .footer-content-wrapper {
            position: relative;
            z-index: 2;
        }

        /* Sección superior del footer */
        .footer-top {
            padding: 15px 0 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* Logos del Footer con animación */
        .footer-brand-institutional {
            margin-bottom: 0.5rem;
            animation: fadeInUp 1s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .footer-logo-container {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 4px;
        }

        .footer-logo-unheval,
        .footer-logo-upg {
            height: 40px;
            width: auto;
            filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
            transition: all 0.4s ease;
        }

        .footer-logo-unheval:hover,
        .footer-logo-upg:hover {
            transform: scale(1.08) translateY(-4px);
            filter: brightness(1.4) drop-shadow(0 8px 16px rgba(13, 110, 253, 0.4));
        }

        .footer-institution-name {
            color: white;
            font-size: 1.1rem;
            font-weight: 800;
            margin: 0.5rem 0 0.3rem 0;
            font-family: var(--font-headings);
            line-height: 1.3;
            background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
        }

        .footer-unit-name {
            color: #0dcaf0;
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            font-family: var(--font-headings);
            display: inline-block;
            position: relative;
            animation: glow-pulse 3s ease-in-out infinite;
        }

        @keyframes glow-pulse {
            0%, 100% { text-shadow: 0 0 10px rgba(13, 202, 240, 0.5); }
            50% { text-shadow: 0 0 20px rgba(13, 202, 240, 0.8), 0 0 30px rgba(13, 202, 240, 0.4); }
        }

        .footer-description {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.8rem;
            line-height: 1.5;
            margin-bottom: 0.8rem;
            font-weight: 400;
        }

        /* Acreditaciones mejoradas */
        .footer-accreditation {
            margin: 0.8rem 0;
            padding: 10px;
            background: rgba(13, 110, 253, 0.08);
            border-radius: 10px;
            border: 1px solid rgba(13, 110, 253, 0.2);
            backdrop-filter: blur(10px);
        }

        .accreditation-item {
            display: flex;
            align-items: center;
            margin-bottom: 0.4rem;
            color: rgba(255, 255, 255, 0.95);
            font-size: 0.75rem;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 4px;
            border-radius: 6px;
        }

        .accreditation-item:last-child {
            margin-bottom: 0;
        }

        .accreditation-item:hover {
            background: rgba(13, 110, 253, 0.15);
            transform: translateX(8px);
        }

        .accreditation-item i {
            margin-right: 0.8rem;
            font-size: 1.2rem;
            color: #ffc107;
            animation: icon-rotate 4s linear infinite;
        }

        @keyframes icon-rotate {
            0%, 90% { transform: rotate(0deg); }
            95% { transform: rotate(15deg); }
            100% { transform: rotate(0deg); }
        }

        /* Secciones del Footer mejoradas */
        .footer-section-title {
            color: white;
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 0.6rem;
            font-family: var(--font-headings);
            position: relative;
            padding-bottom: 0.3rem;
        }

        .footer-section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
            border-radius: 2px;
            animation: line-expand 2s ease-in-out infinite;
        }

        @keyframes line-expand {
            0%, 100% { width: 40px; }
            50% { width: 55px; }
        }

        /* Enlaces del Footer mejorados */
        .footer-links-institutional {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links-institutional li {
            margin-bottom: 0.3rem;
        }

        .footer-link-institutional {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 0.75rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            padding: 0.2rem 0.3rem;
            border-radius: 4px;
            position: relative;
            overflow: hidden;
        }

        .footer-link-institutional::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #0d6efd 0%, #0dcaf0 100%);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .footer-link-institutional:hover::before {
            transform: scaleY(1);
        }

        .footer-link-institutional:hover {
            color: #0dcaf0;
            transform: translateX(12px);
            background: rgba(13, 110, 253, 0.1);
            padding-left: 1.2rem;
        }

        .footer-link-institutional i {
            color: #0dcaf0;
            font-size: 0.9rem;
            width: 20px;
            margin-right: 8px;
            transition: all 0.3s ease;
        }

        .footer-link-institutional:hover i {
            transform: scale(1.3) rotate(10deg);
            color: #ffc107;
        }

        /* Redes Sociales espectaculares */
        .footer-social-networks {
            margin-top: 0.8rem;
        }

        .social-title {
            color: white;
            font-size: 0.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            font-family: var(--font-headings);
        }

        .social-links-institutional {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
        }

        .social-link-institutional {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 35px;
            height: 35px;
            border-radius: 8px;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
            font-size: 1rem;
        }

        .social-link-institutional::before {
            content: '';
            position: absolute;
            inset: 0;
            background: currentColor;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .social-link-institutional i {
            position: relative;
            z-index: 1;
        }

        .social-link-institutional.facebook {
            background: rgba(24, 119, 242, 0.15);
            color: #1877f2;
        }

        .social-link-institutional.instagram {
            background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(253, 29, 29, 0.15));
            color: #e1306c;
        }

        .social-link-institutional.youtube {
            background: rgba(255, 0, 0, 0.15);
            color: #ff0000;
        }

        .social-link-institutional.linkedin {
            background: rgba(10, 102, 194, 0.15);
            color: #0a66c2;
        }

        .social-link-institutional.twitter {
            background: rgba(29, 161, 242, 0.15);
            color: #1da1f2;
        }

        .social-link-institutional:hover {
            transform: translateY(-8px) scale(1.15) rotate(5deg);
            border-color: currentColor;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 30px currentColor;
        }

        .social-link-institutional:hover::before {
            opacity: 0.2;
        }

        .social-link-institutional:hover i {
            animation: social-bounce 0.6s ease;
        }

        @keyframes social-bounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.3); }
        }

        /* Información de Contacto espectacular */
        .footer-contact-info {
            margin-top: 1.2rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .contact-info-item {
            background: linear-gradient(135deg, 
                rgba(13, 110, 253, 0.12) 0%, 
                rgba(13, 202, 240, 0.08) 100%
            );
            padding: 1rem 0.8rem;
            border-radius: 12px;
            border: 1px solid rgba(13, 110, 253, 0.25);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            height: 100%;
            min-height: 120px;
        }

        /* Efecto de brillo superior */
        .contact-info-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                #0d6efd 30%, 
                #0dcaf0 50%, 
                #0d6efd 70%, 
                transparent 100%
            );
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        /* Efecto de resplandor de fondo */
        .contact-info-item::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, 
                rgba(13, 202, 240, 0.15) 0%, 
                transparent 70%
            );
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .contact-info-item:hover::before {
            opacity: 1;
        }

        .contact-info-item:hover::after {
            opacity: 1;
        }

        .contact-info-item:hover {
            background: linear-gradient(135deg, 
                rgba(13, 110, 253, 0.2) 0%, 
                rgba(13, 202, 240, 0.15) 100%
            );
            transform: translateY(-8px);
            border-color: rgba(13, 202, 240, 0.5);
            box-shadow: 
                0 20px 40px rgba(13, 110, 253, 0.3),
                0 0 30px rgba(13, 202, 240, 0.2);
        }

        .contact-icon-wrapper {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            position: relative;
            margin-bottom: 0.6rem;
            box-shadow: 
                0 8px 20px rgba(13, 110, 253, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
        }

        /* Anillo pulsante alrededor del icono */
        .contact-icon-wrapper::before {
            content: '';
            position: absolute;
            inset: -6px;
            border-radius: 20px;
            border: 2px solid rgba(13, 202, 240, 0.3);
            opacity: 0;
            animation: iconRingPulse 2s ease-in-out infinite;
        }

        @keyframes iconRingPulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.6;
            }
        }

        .contact-info-item:hover .contact-icon-wrapper {
            transform: scale(1.15) rotate(-10deg);
            box-shadow: 
                0 15px 35px rgba(13, 110, 253, 0.6),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
        }

        .contact-info-item:hover .contact-icon-wrapper::before {
            animation: iconRingPulse 1s ease-in-out infinite;
        }

        .contact-icon-wrapper i {
            color: white;
            font-size: 1.2rem;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
            transition: transform 0.3s ease;
        }

        .contact-info-item:hover .contact-icon-wrapper i {
            transform: scale(1.1);
        }

        .contact-info-content {
            width: 100%;
            position: relative;
            z-index: 1;
        }

        .contact-info-label {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
            display: block;
            position: relative;
            padding-bottom: 0.4rem;
        }

        .contact-info-label::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%,
                rgba(13, 202, 240, 0.6) 50%, 
                transparent 100%
            );
        }

        .contact-info-value {
            color: #ffffff;
            font-size: 0.75rem;
            font-weight: 500;
            line-height: 1.6;
            transition: all 0.3s ease;
        }

        .contact-info-item:hover .contact-info-value {
            transform: translateY(-2px);
        }

        .contact-info-value a {
            color: rgba(255, 255, 255, 0.95);
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
            position: relative;
        }

        .contact-info-value a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #0dcaf0 0%, #0d6efd 100%);
            transition: width 0.3s ease;
        }

        .contact-info-value a:hover {
            color: #0dcaf0;
        }

        .contact-info-value a:hover::after {
            width: 100%;
        }

        /* Separador mejorado */
        .footer-divider {
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%,
                rgba(13, 110, 253, 0.4) 20%,
                rgba(13, 202, 240, 0.6) 50%,
                rgba(13, 110, 253, 0.4) 80%,
                transparent 100%
            );
            margin: 2.5rem 0 1.5rem;
            position: relative;
            animation: divider-pulse 3s ease-in-out infinite;
            border: none;
        }

        @keyframes divider-pulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        /* Footer Bottom espectacular */
        .footer-bottom,
        .footer-bottom-institutional {
            padding: 0.8rem 0;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }

        .footer-copyright,
        .copyright-text p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.7rem;
            font-weight: 500;
            margin-bottom: 0.4rem;
            animation: fadeIn 1.5s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .copyright-text {
            text-align: left;
        }

        .footer-legal-links,
        .legal-links {
            display: flex;
            gap: 0.8rem;
            margin-bottom: 0.5rem;
            margin-top: 0.3rem;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .footer-legal-link,
        .legal-link {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 0.65rem;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.2rem 0;
        }

        .footer-legal-link::after,
        .legal-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
            transition: width 0.3s ease;
        }

        .footer-legal-link:hover::after,
        .legal-link:hover::after {
            width: 100%;
        }

        .footer-legal-link:hover,
        .legal-link:hover {
            color: #0dcaf0;
        }

        /* Certificaciones mejoradas */
        .footer-certifications {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 1.2rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        .certification-badge {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.6rem 1.2rem;
            background: rgba(13, 110, 253, 0.1);
            border: 2px solid rgba(13, 110, 253, 0.3);
            border-radius: 10px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            width: auto;
            height: auto;
            filter: none;
            opacity: 1;
        }

        .certification-badge:hover {
            background: rgba(13, 110, 253, 0.2);
            border-color: rgba(13, 110, 253, 0.6);
            transform: scale(1.05) translateY(-3px);
            box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
        }

        .certification-badge i {
            color: #ffc107;
            font-size: 1.5rem;
            filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.4));
            animation: badge-glow 2s ease-in-out infinite;
        }

        @keyframes badge-glow {
            0%, 100% { filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.4)); }
            50% { filter: drop-shadow(0 4px 12px rgba(255, 193, 7, 0.8)); }
        }

        .certification-text {
            display: flex;
            flex-direction: column;
            gap: 0.1rem;
            color: white;
        }

        .certification-title {
            color: white;
            font-size: 0.95rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .certification-subtitle {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.8rem;
            font-weight: 500;
        }

        /* Responsive Design Premium */
        @media (max-width: 992px) {
            .footer-top {
                padding: 30px 0 25px;
            }

            .footer-institution-name {
                font-size: 1.3rem;
            }

            .footer-logo-unheval,
            .footer-logo-upg {
                height: 45px;
            }

            .footer-section-title {
                font-size: 1.1rem;
                margin-bottom: 1rem;
            }

            .contact-info-item {
                padding: 1rem;
            }

            .social-links-institutional {
                justify-content: center;
            }

            .footer-certifications {
                justify-content: center;
            }
        }


        @media (max-width: 768px) {
            .display-title {
                font-size: 2.5rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .hero-title {
                font-size: 2.5rem;
            }
            
            .btn-hero {
                display: block;
                text-align: center;
                margin-bottom: var(--spacing-sm);
            }
            
            .navbar-brand-custom .brand-text {
                display: none;
            }

            /* Hero responsive spacing */
            .hero-institutional {
                padding-top: 80px;
            }

            .hero-content {
                padding-top: 1rem;
            }

            .hero-badge {
                font-size: 0.85rem;
                padding: 0.6rem 1.2rem;
            }

            .hero-stat {
                padding: 1.5rem 1rem;
                min-width: 120px;
            }

            .hero-stat-number {
                font-size: 2.2rem;
            }

            .hero-stat-label {
                font-size: 0.75rem;
            }

            /* Footer Responsive */
            .footer-institutional {
                padding: 0;
                margin-top: 3rem;
            }

            .footer-top {
                padding: 35px 0 25px;
            }

            .footer-institution-name {
                font-size: 1.3rem;
            }

            .footer-unit-name {
                font-size: 1.05rem;
            }

            .footer-description {
                font-size: 0.95rem;
            }

            .footer-logo-container {
                flex-direction: column;
                gap: 16px;
            }

            .footer-logo-unheval,
            .footer-logo-upg {
                height: 45px;
            }

            .footer-section-title {
                font-size: 1.1rem;
                margin-bottom: 1.2rem;
            }

            .contact-info-item {
                padding: 1rem;
                gap: 1rem;
            }

            .contact-icon-wrapper {
                width: 42px;
                height: 42px;
            }

            .contact-icon-wrapper i {
                font-size: 1.3rem;
            }

            .footer-certifications {
                justify-content: center;
                margin-top: 1.5rem;
            }

            .copyright-text {
                text-align: center;
            }

            .footer-legal-links,
            .legal-links {
                flex-direction: column;
                gap: 1rem;
                align-items: center;
                justify-content: center;
            }

            .social-links-institutional {
                justify-content: center;
            }

            .footer-contact-section {
                padding: 2rem 0;
                margin: 2rem 0 1.5rem;
            }
        }

        @media (max-width: 576px) {
            .footer-institution-name {
                font-size: 1.2rem;
            }

            .footer-section-title {
                font-size: 1.1rem;
            }

            .footer-copyright,
            .copyright-text p {
                font-size: 0.9rem;
                text-align: center;
            }

            .social-link-institutional {
                width: 42px;
                height: 42px;
                font-size: 1.1rem;
            }

            .certification-badge {
                width: 100%;
                max-width: 280px;
                justify-content: center;
            }

            .footer-certifications {
                flex-direction: column;
                gap: 1.2rem;
            }
        }


        /* 🎨 UTILIDADES */
        .animate-fade-up {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }

        .animate-fade-up.animated {
            opacity: 1;
            transform: translateY(0);
        }

        .bg-primary-solid {
            background: var(--primary-navy);
        }

        .bg-accent-solid {
            background: var(--accent-blue);
        }

        .text-shadow {
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        /* 👥 SECCIÓN NOSOTROS - MISIÓN, VISIÓN Y EQUIPO */
        .nosotros-section {
            background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
            padding: var(--spacing-xl) 0;
            position: relative;
            overflow: hidden;
        }

        .nosotros-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
            border-radius: 50%;
            z-index: 0;
        }

        /* Misión y Visión Cards */
        /* ── Expandable Slider Misión / Visión ── */
        .mv-slider {
            display: flex;
            gap: 16px;
            height: 440px;
            overflow: hidden;
        }

        .mv-slide {
            flex: 1;
            min-width: 90px;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            background: #1e293b no-repeat center center / cover;
            transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                        box-shadow 0.4s ease;
        }

        .mv-slide.active {
            flex: 3.2;
            box-shadow: 0 20px 60px rgba(15,23,42,0.35);
        }

        /* Dark gradient overlay */
        .mv-slide::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(
                to bottom,
                rgba(15,23,42,0.10) 0%,
                rgba(15,23,42,0.25) 40%,
                rgba(15,23,42,0.88) 100%
            );
            transition: background 0.4s;
        }

        .mv-slide.active::after {
            background: linear-gradient(
                to bottom,
                rgba(15,23,42,0.05) 0%,
                rgba(15,23,42,0.15) 35%,
                rgba(15,23,42,0.92) 100%
            );
        }

        /* Colored top accent per slide */
        .mv-slide::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 4px;
            background: var(--mv-bar, #1e40af);
            z-index: 3;
            border-radius: 20px 20px 0 0;
        }

        .mv-slide-desc {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            padding: 0 28px 24px;
            color: #fff;
            z-index: 2;
            transform: translateY(calc(100% - 62px));
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mv-slide.active .mv-slide-desc {
            transform: translateY(0);
        }

        /* Icon + title always visible */
        .mv-slide-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }

        .mv-slide-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: var(--mv-bar, #1e40af);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: transform 0.4s;
        }

        .mv-slide.active .mv-slide-icon {
            transform: scale(1.1) rotate(-4deg);
        }

        .mv-slide-icon i { font-size: 1.1rem; color: #fff; }

        .mv-slide-label {
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.65);
            line-height: 1;
            margin-bottom: 2px;
        }

        .mv-slide-title {
            font-size: 1.3rem;
            font-weight: 800;
            color: #fff;
            margin: 0;
            line-height: 1.2;
            letter-spacing: -0.3px;
        }

        /* Description slides in */
        .mv-slide-body {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
        }

        .mv-slide.active .mv-slide-body {
            opacity: 1;
            transform: translateY(0);
        }

        .mv-slide-body p {
            font-size: 0.925rem;
            line-height: 1.7;
            color: rgba(255,255,255,0.88);
            margin: 0 0 1rem;
        }

        /* Divider line */
        .mv-slide-divider {
            width: 40px;
            height: 2px;
            background: var(--mv-bar, #1e40af);
            border-radius: 2px;
            margin-bottom: 12px;
        }

        /* Collapsed hint arrow */
        .mv-expand-hint {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            transition: opacity 0.3s;
        }

        .mv-expand-hint i {
            font-size: 4rem;
            color: rgba(255,255,255,0.85);
        }

        .mv-expand-hint span {
            font-size: 1.44rem;
            font-weight: 800;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.65);
            writing-mode: vertical-lr;
        }

        .mv-slide.active .mv-expand-hint { opacity: 0; pointer-events: none; }

        /* Responsive */
        @media (max-width: 768px) {
            .mv-slider { flex-direction: column; height: auto; }
            .mv-slide { min-width: unset; min-height: 80px; flex: unset !important; }
            .mv-slide.active { flex: unset !important; min-height: 380px; }
            .mv-slide-desc { transform: translateY(calc(100% - 54px)); }
        }

        /* Equipo Cards */
        .equipo-section-title {
            font-family: var(--font-heading);
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--university-blue);
            margin-bottom: var(--spacing-lg);
        }

        .equipo-section-title i {
            color: var(--accent-gold);
            margin-right: 0.5rem;
        }

        .equipo-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: var(--spacing-lg);
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(59, 130, 246, 0.08);
            transition: all 0.3s ease;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .equipo-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-sky) 100%);
        }

        .equipo-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
        }

        /* Nueva Card Moderna de Autoridad/Directora */
        .authority-card-v2 {
            background: white;
            border-radius: var(--radius-xl);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(245, 158, 11, 0.2);
            position: relative;
        }

        .authority-card-v2:hover {
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            transform: translateY(-8px);
        }

        .authority-image-container {
            position: relative;
            overflow: hidden;
        }

        .authority-image-wrapper {
            aspect-ratio: 1 / 1;
            width: 100%;
            height: 0;
            padding-bottom: 100%; /* Hace que sea cuadrado */
            position: relative;
            overflow: hidden;
        }

        .authority-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .authority-card-v2:hover .authority-image {
            transform: scale(1.1);
            filter: brightness(1.1) contrast(1.1);
            opacity: 1 !important;
        }

        .admin-card {
            background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
        }

        .equipo-photo-wrapper {
            position: relative;
            width: 120px;
            height: 120px;
            margin: 0 auto var(--spacing-md);
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid var(--accent-sky);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        /* Overlay de Contacto */
        .authority-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(10, 28, 62, 0.85) 0%, rgba(245, 158, 11, 0.85) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .authority-card-v2:hover .authority-overlay {
            opacity: 0;
        }

        .authority-social {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }

        .authority-social-link {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            font-size: 1.25rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .authority-social-link:hover {
            background: white;
            color: var(--accent-gold);
            transform: translateY(-3px) scale(1.1);
            border-color: var(--accent-gold);
        }

        .equipo-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .equipo-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 197, 253, 0.9) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .equipo-card:hover .equipo-overlay {
            opacity: 1;
        }

        .equipo-card:hover .equipo-photo {
            transform: scale(1.1);
        }

        .equipo-social {
            display: flex;
            gap: 0.75rem;
        }

        .equipo-social-link {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .equipo-social-link:hover {
            background: white;
            color: var(--accent-blue);
            transform: translateY(-2px);
        }

        .equipo-info {
            text-align: center;
        }

        .equipo-name {
            font-family: var(--font-heading);
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--university-navy);
            margin-bottom: 0.5rem;
        }

        /* Badge de Autoridad */
        .authority-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            font-size: 0.875rem;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            z-index: 10;
            animation: badge-float 3s ease-in-out infinite;
        }

        .authority-badge i {
            font-size: 1rem;
        }

        /* Contenido de la Card */
        .authority-content {
            padding: 1.5rem;
            text-align: center;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .authority-name {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--university-navy);
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .authority-position {
            font-size: 1rem;
            font-weight: 600;
            color: var(--accent-blue);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .authority-details {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .authority-detail-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            font-size: 0.875rem;
            color: var(--text-secondary);
            background: rgba(245, 158, 11, 0.08);
            padding: 0.5rem 1rem;
            border-radius: var(--radius-md);
            border-left: 3px solid var(--accent-gold);
        }

        .authority-detail-item i {
            color: var(--accent-gold);
            font-size: 1rem;
        }

        /* 🏛️ AUTORIDADES UNIVERSITARIAS CARDS */
        .university-authority-card {
            background: white;
            border-radius: var(--radius-xl);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            border: 2px solid transparent;
            position: relative;
            transform-style: preserve-3d;
        }

        /* Efectos de animación especiales al hover */
        .university-authority-card:hover {
            transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
            border-color: var(--university-blue);
        }

        /* Animación específica para cada autoridad con colores dorados */
        .university-authority-card:nth-child(1):hover {
            border-color: #f59e0b; /* Dorado para Vicerrectora Académica */
            animation: vicerrector-academic-glow 0.6s ease-in-out;
        }

        .university-authority-card:nth-child(2):hover {
            border-color: #eab308; /* Dorado para Rector */
            animation: rector-glow 0.6s ease-in-out;
        }

        .university-authority-card:nth-child(3):hover {
            border-color: #d97706; /* Dorado para Vicerrector de Investigación */
            animation: vicerrector-research-glow 0.6s ease-in-out;
        }

        /* Badge específicos por autoridad */
        .university-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            font-size: 0.875rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            z-index: 10;
            animation: authority-float 4s ease-in-out infinite;
        }

        .rector-badge {
            background: linear-gradient(135deg, #eab308 0%, #d97706 100%);
            box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
        }

        .vicerrector-badge {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
        }

        .investigacion-badge {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
            box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
        }

        /* Efectos especiales para la card de la directora */
        .authority-card-v2:hover {
            transform: translateY(-12px) rotateX(8deg) scale(1.03);
            box-shadow: 0 30px 100px rgba(245, 158, 11, 0.4);
            animation: director-special-glow 0.8s ease-in-out;
        }

        /* Evitar opacidad en la imagen de la directora - igual que autoridades */
        .authority-card-v2 .authority-image {
            opacity: 1 !important;
            transition: all 0.3s ease;
        }

        .authority-card-v2:hover .authority-image {
            opacity: 1 !important;
            filter: brightness(1.1) contrast(1.1) !important;
            transform: scale(1.1) !important;
        }

        /* Asegurar que el overlay no interfiera */
        .authority-card-v2 .authority-overlay {
            opacity: 0 !important;
            pointer-events: none;
        }

        .authority-card-v2:hover .authority-overlay {
            opacity: 0 !important;
        }

        /* Hacer que los nombres siempre sean visibles */
        .authority-content.always-visible {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }

        .authority-content.always-visible .authority-name,
        .authority-content.always-visible .authority-position,
        .authority-content.always-visible .authority-details {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }

        /* Forzar visibilidad de nombres en todas las cards de autoridades */
        .university-authority-card .authority-name,
        .university-authority-card .authority-position,
        .university-authority-card .authority-details {
            opacity: 1 !important;
            visibility: visible !important;
        }

        /* Específicamente para hover - mantener texto visible */
        .university-authority-card:hover .authority-name,
        .university-authority-card:hover .authority-position,
        .university-authority-card:hover .authority-details {
            opacity: 1 !important;
            visibility: visible !important;
            -webkit-text-fill-color: inherit !important;
        }

        /* Overlay mejorado para autoridades */
        .university-authority-card .authority-overlay {
            background: linear-gradient(135deg, 
                rgba(15, 23, 42, 0.9) 0%, 
                rgba(30, 41, 59, 0.9) 50%, 
                rgba(51, 65, 85, 0.9) 100%);
        }

        /* Efectos especiales en los nombres */
        .university-authority-card .authority-name {
            transition: all 0.3s ease;
        }

        .university-authority-card:hover .authority-name {
            color: var(--accent-gold) !important;
            text-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
            transform: scale(1.05);
            opacity: 1 !important;
            visibility: visible !important;
            /* Eliminamos el background-clip transparent que ocultaba el texto */
        }

        /* Partículas flotantes al hover */
        .university-authority-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at center, 
                rgba(59, 130, 246, 0.1) 0%, 
                transparent 70%);
            opacity: 0;
            transition: opacity 0.5s ease;
            pointer-events: none;
            z-index: 0;
        }

        .university-authority-card:hover::before {
            opacity: 1;
            animation: particles-rotate 3s linear infinite;
        }

        /* Efecto de pulso en las imágenes */
        .university-authority-card:hover .authority-image {
            transform: scale(1.1);
            filter: brightness(1.1) contrast(1.1);
            animation: image-pulse 2s ease-in-out infinite;
        }



        /* Animación adicional para el badge */
        @keyframes badge-float {
            0%, 100% { 
                transform: translateY(0px) rotate(-3deg); 
            }
            50% { 
                transform: translateY(-5px) rotate(3deg); 
            }
        }

        /* 🎭 ANIMACIONES ESPECIALES PARA AUTORIDADES */
        @keyframes rector-glow {
            0%, 100% { 
                box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25); 
            }
            50% { 
                box-shadow: 0 30px 100px rgba(234, 179, 8, 0.6); 
            }
        }

        @keyframes vicerrector-academic-glow {
            0%, 100% { 
                box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25); 
            }
            50% { 
                box-shadow: 0 30px 100px rgba(245, 158, 11, 0.6); 
            }
        }

        @keyframes vicerrector-research-glow {
            0%, 100% { 
                box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25); 
            }
            50% { 
                box-shadow: 0 30px 100px rgba(217, 119, 6, 0.6); 
            }
        }

        @keyframes director-special-glow {
            0%, 100% { 
                box-shadow: 0 30px 100px rgba(245, 158, 11, 0.4); 
            }
            50% { 
                box-shadow: 0 35px 120px rgba(245, 158, 11, 0.8); 
            }
        }

        @keyframes authority-float {
            0%, 100% { 
                transform: translateY(0px) rotate(0deg); 
            }
            33% { 
                transform: translateY(-3px) rotate(2deg); 
            }
            66% { 
                transform: translateY(-1px) rotate(-2deg); 
            }
        }

        @keyframes particles-rotate {
            0% { 
                transform: rotate(0deg) scale(1); 
            }
            50% { 
                transform: rotate(180deg) scale(1.1); 
            }
            100% { 
                transform: rotate(360deg) scale(1); 
            }
        }

        @keyframes image-pulse {
            0%, 100% { 
                filter: brightness(1.1) contrast(1.1); 
            }
            50% { 
                filter: brightness(1.2) contrast(1.2) saturate(1.1); 
            }
        }

        .equipo-cargo {
            font-family: var(--font-primary);
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--accent-blue);
            margin-bottom: var(--spacing-sm);
        }

        .equipo-especialidad,
        .equipo-experiencia,
        .equipo-funciones {
            font-family: var(--font-primary);
            font-size: 0.875rem;
            color: var(--text-tertiary);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .equipo-especialidad i,
        .equipo-experiencia i,
        .equipo-funciones i {
            color: var(--accent-sky);
        }

        /* Foto Grupal */
        .foto-grupal-container {
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 16px 60px rgba(0, 0, 0, 0.15);
            max-width: 800px;
            margin: 0 auto;
        }

        .foto-grupal {
            width: 100%;
            height: 400px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .foto-grupal-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
            color: white;
            padding: var(--spacing-lg);
            text-align: center;
        }

        .foto-grupal-title {
            font-family: var(--font-heading);
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .foto-grupal-subtitle {
            font-family: var(--font-primary);
            font-size: 1rem;
            opacity: 0.9;
            margin: 0;
        }

        .foto-grupal-container:hover .foto-grupal {
            transform: scale(1.05);
        }

        /* Valores Institucionales */
        .valores-wrapper {
            background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
            border-radius: 28px;
            padding: 52px 48px;
            position: relative;
            overflow: hidden;
        }

        .valores-wrapper::before {
            content: '';
            position: absolute;
            top: -80px;
            right: -80px;
            width: 320px;
            height: 320px;
            background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, transparent 70%);
            pointer-events: none;
        }

        .valores-wrapper::after {
            content: '';
            position: absolute;
            bottom: -60px;
            left: -60px;
            width: 260px;
            height: 260px;
            background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
            pointer-events: none;
        }

        .valor-card {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            padding: 24px 20px;
            transition: all 0.3s ease;
            height: 100%;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(4px);
        }

        .valor-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--vc-solid, #3b82f6);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.35s ease;
            border-radius: 16px 16px 0 0;
        }

        .valor-card:hover {
            background: rgba(255,255,255,0.09);
            border-color: rgba(255,255,255,0.2);
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(0,0,0,0.3);
        }

        .valor-card:hover::before {
            transform: scaleX(1);
        }

        .valor-icon {
            width: 52px;
            height: 52px;
            min-width: 52px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .valor-card:hover .valor-icon {
            background: var(--vc-solid, #3b82f6);
            border-color: var(--vc-solid, #3b82f6);
        }

        .valor-icon i {
            font-size: 1.3rem;
            color: var(--vc-solid, #60a5fa);
            transition: color 0.3s;
        }

        .valor-card:hover .valor-icon i {
            color: #fff;
        }

        .valor-text {
            flex: 1;
        }

        .valor-num {
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--vc-solid, #60a5fa);
            text-transform: uppercase;
            margin-bottom: 4px;
            display: block;
        }

        .valor-name {
            font-family: var(--font-heading);
            font-size: 1rem;
            font-weight: 700;
            color: #f8fafc;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .valor-description {
            font-family: var(--font-primary);
            font-size: 0.78rem;
            color: rgba(255,255,255,0.55);
            line-height: 1.6;
            margin: 0;
        }

        /* Animaciones */
        @keyframes pulse-glow {
            0%, 100% { opacity: 0.3; transform: scale(1.3); }
            50% { opacity: 0.1; transform: scale(1.5); }
        }

        @keyframes director-glow {
            0%, 100% { 
                opacity: 0.1; 
                transform: scale(1) rotate(0deg); 
            }
            50% { 
                opacity: 0.2; 
                transform: scale(1.1) rotate(180deg); 
            }
        }

        @keyframes crown-float {
            0%, 100% { 
                transform: translateY(0px) rotate(0deg); 
            }
            50% { 
                transform: translateY(-8px) rotate(10deg); 
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nosotros-section {
                padding: var(--spacing-lg) 0;
            }

            .mision-vision-card {
                padding: var(--spacing-lg);
                margin-bottom: var(--spacing-md);
            }

            .mv-title {
                font-size: 1.25rem;
            }

            .equipo-section-title {
                font-size: 1.5rem;
                text-align: center;
            }

            .equipo-photo-wrapper {
                width: 100px;
                height: 100px;
            }

            /* Responsive para Authority Card */
            .authority-badge {
                font-size: 0.75rem;
                padding: 0.4rem 0.8rem;
                top: 10px;
                right: 10px;
            }

            .authority-content {
                padding: 1rem;
            }

            .authority-name {
                font-size: 1.1rem;
            }

            .authority-position {
                font-size: 0.9rem;
            }

            .authority-detail-item {
                font-size: 0.8rem;
                padding: 0.4rem 0.8rem;
                gap: 0.5rem;
            }

            .authority-social {
                gap: 0.75rem;
            }

            .authority-social-link {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }

            /* Responsive para Autoridades Universitarias */
            .university-authority-card:hover {
                transform: translateY(-8px) scale(1.02);
            }

            .university-badge {
                font-size: 0.75rem;
                padding: 0.4rem 0.8rem;
                top: 10px;
                right: 10px;
            }

            .university-authority-card .authority-name {
                font-size: 1.1rem;
            }

            .university-authority-card .authority-position {
                font-size: 0.9rem;
            }

            .foto-grupal {
                height: 300px;
            }

            .foto-grupal-title {
                font-size: 1.25rem;
            }

            .valor-card {
                padding: var(--spacing-md);
            }
        }

        /* ============================================================
           📱  MOBILE HERO — Vista espectacular para dispositivos móviles
           ============================================================ */

        /* --- Ocultar hero de escritorio en móvil --- */
        @media (max-width: 767px) {
            .hero-institutional {
                display: none !important;
            }
        }

        /* --- Sección raíz --- */
        .mobile-hero-section {
            position: relative;
            min-height: 100vh;
            width: 100%;
            overflow: hidden;
            background:
                /* Gradiente azul institucional sobre la imagen */
                linear-gradient(180deg,
                    rgba(7,26,79,0.82)  0%,
                    rgba(15,45,122,0.78) 25%,
                    rgba(26,74,170,0.72) 55%,
                    rgba(30,99,200,0.70) 80%,
                    rgba(14,165,233,0.75) 100%
                ),
                /* Imagen de la ciudad universitaria */
                url('../../storage/img/fondo_login.webp') center center / cover no-repeat;
            padding-top: 70px;   /* navbar height */
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* --- Partículas de fondo animadas --- */
        .mobile-hero-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .mobile-hero-bg::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse at 15% 20%, rgba(14,165,233,0.35) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 80%, rgba(30,58,138,0.45) 0%, transparent 55%),
                radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
            animation: mhBgPulse 8s ease-in-out infinite alternate;
        }

        @keyframes mhBgPulse {
            0%   { opacity: 0.7; transform: scale(1); }
            100% { opacity: 1;   transform: scale(1.06); }
        }

        /* Partículas flotantes */
        .mh-particle {
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.18);
            animation: mhParticleRise linear infinite;
        }
        .mh-p1  { width:6px;  height:6px;  left:8%;   animation-duration:12s; animation-delay:0s; }
        .mh-p2  { width:4px;  height:4px;  left:22%;  animation-duration:9s;  animation-delay:1.5s; }
        .mh-p3  { width:8px;  height:8px;  left:38%;  animation-duration:15s; animation-delay:0.5s; }
        .mh-p4  { width:5px;  height:5px;  left:55%;  animation-duration:11s; animation-delay:2s; }
        .mh-p5  { width:7px;  height:7px;  left:70%;  animation-duration:13s; animation-delay:3s; }
        .mh-p6  { width:3px;  height:3px;  left:85%;  animation-duration:10s; animation-delay:0.8s; }
        .mh-p7  { width:9px;  height:9px;  left:93%;  animation-duration:16s; animation-delay:1.2s; }
        .mh-p8  { width:4px;  height:4px;  left:45%;  animation-duration:8s;  animation-delay:4s; }
        .mh-p9  { width:6px;  height:6px;  left:15%;  animation-duration:14s; animation-delay:2.5s; }
        .mh-p10 { width:5px;  height:5px;  left:60%;  animation-duration:18s; animation-delay:1s; }

        @keyframes mhParticleRise {
            0%   { bottom:-12px; opacity:0;   transform: translateX(0)   rotate(0deg); }
            10%  { opacity: 0.8; }
            90%  { opacity: 0.6; }
            100% { bottom:105vh; opacity:0;   transform: translateX(80px) rotate(360deg); }
        }

        /* Ondas inferiores */
        .mh-wave {
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            line-height: 0;
        }

        /* --- Contenido principal --- */
        .mobile-hero-content {
            position: relative;
            z-index: 10;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 1rem 2rem;
        }

        /* --- Encabezado universidad --- */
        .mh-university-header {
            width: 100%;
            text-align: center;
            padding: 0.9rem 1rem;
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.15);
            margin-bottom: 1.6rem;
        }

        .mh-university-name {
            font-family: var(--font-display);
            font-size: clamp(0.7rem, 3.2vw, 0.92rem);
            font-weight: 800;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            line-height: 1.3;
            text-shadow: 0 2px 8px rgba(0,0,0,0.35);
            margin: 0;
        }

        /* --- Área logo animado --- */
        .mh-logo-area {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 2rem;
            position: relative;
        }

        .mh-logo-rings {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 400px;
            height: 400px;
            pointer-events: none;
        }

        .mh-ring {
            position: absolute;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.2);
            top: 50%; left: 50%;
            transform: translate(-50%,-50%);
            animation: mhRingRotate linear infinite;
        }

        .mh-ring-1 { width:380px; height:380px; border-color:rgba(14,165,233,0.4);  animation-duration:18s; }
        .mh-ring-2 { width:300px; height:300px; border-color:rgba(234,179,8,0.35); animation-duration:13s; animation-direction:reverse; }
        .mh-ring-3 { width:230px; height:230px; border-color:rgba(255,255,255,0.25); animation-duration:22s; }

        @keyframes mhRingRotate {
            from { transform: translate(-50%,-50%) rotate(0deg); }
            to   { transform: translate(-50%,-50%) rotate(360deg); }
        }

        /* Dot en anillo */
        .mh-ring::after {
            content: '';
            position: absolute;
            width: 8px; height: 8px;
            border-radius: 50%;
            background: rgba(14,165,233,0.9);
            top: -4px; left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 0 12px rgba(14,165,233,0.8);
        }

        .mh-ring-2::after { background: rgba(234,179,8,0.9); box-shadow: 0 0 12px rgba(234,179,8,0.8); }
        .mh-ring-3::after { background: rgba(255,255,255,0.9); box-shadow: 0 0 12px rgba(255,255,255,0.8); }

        .mh-logo-circle {
            position: relative;
            z-index: 2;
            width: 260px;
            height: 260px;
            border-radius: 50%;
            background: linear-gradient(145deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.10) 100%);
            backdrop-filter: blur(20px);
            border: 3px solid rgba(255,255,255,0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow:
                0 12px 40px rgba(0,0,0,0.3),
                inset 0 2px 0 rgba(255,255,255,0.3),
                0 0 50px rgba(14,165,233,0.25);
            animation: mhLogoPulse 4s ease-in-out infinite;
        }

        @keyframes mhLogoPulse {
            0%,100% { transform: scale(1);    box-shadow: 0 12px 40px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.3), 0 0 50px rgba(14,165,233,0.2); }
            50%     { transform: scale(1.05); box-shadow: 0 16px 55px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.4), 0 0 70px rgba(14,165,233,0.45); }
        }

        .mh-logo-img {
            width: 190px;
            height: auto;
            filter: drop-shadow(0 3px 10px rgba(0,0,0,0.25));
            animation: mhLogoFloat 3.5s ease-in-out infinite;
        }

        @keyframes mhLogoFloat {
            0%,100% { transform: translateY(0); }
            50%     { transform: translateY(-8px); }
        }

        .mh-upg-title {
            font-family: var(--font-display);
            font-size: 1.15rem;
            font-weight: 800;
            color: #ffffff;
            text-align: center;
            margin-top: 1.1rem;
            margin-bottom: 0.2rem;
            text-shadow: 0 2px 10px rgba(0,0,0,0.35);
            letter-spacing: 0.02em;
        }

        .mh-faculty-name {
            font-family: var(--font-primary);
            font-size: 0.75rem;
            font-weight: 500;
            color: rgba(255,255,255,0.85);
            text-align: center;
            letter-spacing: 0.04em;
            margin: 0;
        }

        /* --- Sección de programas --- */
        .mh-programs-section {
            width: 100%;
            max-width: 440px;
        }

        .mh-programs-title {
            font-family: var(--font-heading);
            font-size: 0.7rem;
            font-weight: 700;
            color: rgba(255,255,255,0.7);
            text-transform: uppercase;
            letter-spacing: 0.2em;
            text-align: center;
            margin-bottom: 0.9rem;
        }

        /* --- Cards de programas --- */
        .mh-program-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.2rem;
            border-radius: 16px;
            margin-bottom: 0.75rem;
            text-decoration: none;
            backdrop-filter: blur(18px);
            border: 1px solid rgba(255,255,255,0.2);
            transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
            position: relative;
            overflow: hidden;
        }

        /* Línea lateral de color */
        .mh-program-card::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 4px;
            border-radius: 0 4px 4px 0;
            transition: width 0.35s ease;
        }

        .mh-program-card:hover::before,
        .mh-program-card:active::before {
            width: 6px;
        }

        /* Shimmer en hover */
        .mh-program-card::after {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
            transition: left 0.5s ease;
        }

        .mh-program-card:hover::after,
        .mh-program-card:active::after {
            left: 100%;
        }

        .mh-program-card:hover,
        .mh-program-card:active {
            transform: translateY(-3px) scale(1.02);
            border-color: rgba(255,255,255,0.4);
            box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        }

        /* Maestría */
        .mh-card-maestria {
            background: linear-gradient(135deg, rgba(30,64,175,0.55) 0%, rgba(37,99,235,0.4) 100%);
        }
        .mh-card-maestria::before { background: #60a5fa; }

        /* Doctorado */
        .mh-card-doctorado {
            background: linear-gradient(135deg, rgba(124,58,237,0.5) 0%, rgba(139,92,246,0.35) 100%);
        }
        .mh-card-doctorado::before { background: #c084fc; }

        /* Posdoctorado */
        .mh-card-posdoctorado {
            background: linear-gradient(135deg, rgba(5,150,105,0.5) 0%, rgba(16,185,129,0.35) 100%);
        }
        .mh-card-posdoctorado::before { background: #34d399; }

        /* Ícono de la card */
        .mh-card-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: #ffffff;
            flex-shrink: 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .mh-card-maestria    .mh-card-icon { background: linear-gradient(135deg,#2563eb,#1d4ed8); }
        .mh-card-doctorado   .mh-card-icon { background: linear-gradient(135deg,#7c3aed,#6d28d9); }
        .mh-card-posdoctorado .mh-card-icon { background: linear-gradient(135deg,#059669,#047857); }

        /* Texto de la card */
        .mh-card-text { flex: 1; }

        .mh-card-title {
            font-family: var(--font-heading);
            font-size: 1rem;
            font-weight: 700;
            color: #ffffff;
            margin: 0 0 0.15rem;
            text-shadow: 0 1px 4px rgba(0,0,0,0.25);
        }

        .mh-card-desc {
            font-family: var(--font-primary);
            font-size: 0.72rem;
            color: rgba(255,255,255,0.78);
            margin: 0;
            line-height: 1.4;
        }

        /* Flecha */
        .mh-card-arrow {
            color: rgba(255,255,255,0.6);
            font-size: 0.8rem;
            transition: transform 0.3s ease, color 0.3s ease;
            flex-shrink: 0;
        }

        .mh-program-card:hover .mh-card-arrow,
        .mh-program-card:active .mh-card-arrow {
            transform: translateX(4px);
            color: #ffffff;
        }

        /* --- Botones CTA mobile --- */
        .mh-cta-row {
            display: flex;
            gap: 0.75rem;
            width: 100%;
            max-width: 440px;
            margin-top: 1.4rem;
        }

        .mh-cta-btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.85rem 1rem;
            border-radius: 12px;
            font-family: var(--font-primary);
            font-size: 0.82rem;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .mh-cta-primary {
            background: #ffffff;
            color: #1e3a8a;
            box-shadow: 0 4px 20px rgba(255,255,255,0.3);
        }

        .mh-cta-primary:hover, .mh-cta-primary:active {
            background: #f0f9ff;
            color: #1e3a8a;
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(255,255,255,0.4);
        }

        .mh-cta-secondary {
            background: rgba(255,255,255,0.12);
            color: #ffffff;
            border: 2px solid rgba(255,255,255,0.45);
            backdrop-filter: blur(10px);
        }

        .mh-cta-secondary:hover, .mh-cta-secondary:active {
            background: rgba(255,255,255,0.22);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255,255,255,0.15);
        }

        /* --- Logo UPG secundario --- */
        .mh-logo-upg-wrap {
            margin-top: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.12);
            backdrop-filter: blur(14px);
            border: 1px solid rgba(255,255,255,0.28);
            border-radius: 14px;
            padding: 0.55rem 1.4rem;
            box-shadow:
                0 6px 20px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.25);
            animation: mhUpgPulse 5s ease-in-out infinite;
        }

        @keyframes mhUpgPulse {
            0%,100% { box-shadow: 0 6px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.25), 0 0 0 rgba(14,165,233,0); }
            50%     { box-shadow: 0 8px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.3),  0 0 22px rgba(14,165,233,0.35); }
        }

        .mh-logo-upg-img {
            height: 42px;
            width: auto;
            filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)) brightness(1.08);
            animation: mhLogoFloat 3.5s ease-in-out infinite 0.8s;
        }

        /* Ocultar en pantallas >= 768px */
        @media (min-width: 768px) {
            .mobile-hero-section { display: none !important; }
        }


/* ═══ MODAL PROGRAMAS ACADÉMICOS ═══ */
        /* ═══ MODAL PROGRAMAS — REDISEÑO PROFESIONAL ═══ */
        .modal-programa .modal-content {
            border-radius: 20px;
            overflow: hidden;
            border: none;
            box-shadow: 0 30px 80px rgba(15,23,42,0.25), 0 8px 24px rgba(15,23,42,0.12);
        }

        .modal-programa .modal-header {
            background: #1e40af;
            color: white;
            border: none;
            padding: 1.75rem 2rem;
            position: relative;
            overflow: hidden;
        }

        /* Subtle geometric decoration */
        .modal-programa .modal-header::before {
            content: '';
            position: absolute;
            top: -60px;
            right: -60px;
            width: 220px;
            height: 220px;
            border: 40px solid rgba(255,255,255,0.07);
            border-radius: 50%;
        }

        .modal-programa .modal-header::after {
            content: '';
            position: absolute;
            bottom: -40px;
            left: 40%;
            width: 140px;
            height: 140px;
            border: 25px solid rgba(255,255,255,0.05);
            border-radius: 50%;
        }

        .modal-programa .modal-title {
            font-weight: 800;
            font-size: 1.45rem;
            position: relative;
            z-index: 1;
            letter-spacing: -0.3px;
        }

        .modal-programa .modal-header p {
            font-size: 0.88rem;
            position: relative;
            z-index: 1;
            color: rgba(255,255,255,0.8) !important;
            margin-top: 0.2rem;
        }

        .modal-programa .modal-header,
        .modal-programa .modal-header * {
            color: white !important;
        }

        .modal-programa .modal-header .btn-close {
            filter: brightness(0) invert(1);
            opacity: 0.7;
            position: relative;
            z-index: 2;
        }

        .modal-programa .modal-header .btn-close:hover { opacity: 1; }

        .modal-programa .modal-body {
            padding: 0;
            background: #f8fafc;
        }

        .modal-programa .modal-footer {
            border: none;
            padding: 1.25rem 2rem 1.5rem;
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            gap: 0.75rem;
        }

        .modal-programa .btn-postular {
            background: #1e40af;
            border: none;
            padding: 0.75rem 1.75rem;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.9rem;
            letter-spacing: 0.3px;
            transition: all 0.25s;
        }

        .modal-programa .btn-postular:hover {
            background: #1d4ed8;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(30,64,175,0.35);
        }

        /* ── Stats banner ── */
        .programa-info-section {
            padding: 1.5rem 2rem 1.25rem;
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
        }

        .programa-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            gap: 0.75rem;
            margin-bottom: 1.25rem;
        }

        .programa-stat {
            background: #f0f4ff;
            border: 1.5px solid #c7d7fd;
            border-radius: 12px;
            padding: 0.875rem 0.75rem;
            text-align: center;
        }

        .programa-stat-value {
            font-size: 1.45rem;
            font-weight: 800;
            color: #1e40af;
            display: block;
            line-height: 1.1;
        }

        .programa-stat-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-top: 0.2rem;
        }

        /* ── Accordion menciones ── */
        .menciones-accordion {
            padding: 1.25rem 2rem 0.5rem;
            background: #f8fafc;
        }

        .mencion-item {
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            margin-bottom: 0.75rem;
            overflow: hidden;
            transition: border-color 0.2s, box-shadow 0.2s;
            background: white;
        }

        .mencion-item:hover {
            border-color: #93c5fd;
        }

        .mencion-item.active {
            border-color: #1e40af;
            box-shadow: 0 4px 16px rgba(30,64,175,0.12);
        }

        .mencion-header {
            padding: 1rem 1.25rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: white;
            transition: background 0.2s;
        }

        .mencion-header:hover { background: #f8fafc; }

        .mencion-item.active .mencion-header {
            background: #1e40af;
            color: white;
        }

        .mencion-title {
            font-weight: 600;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.65rem;
            color: #1e293b;
        }

        .mencion-title i { color: #1e40af; font-size: 1rem; }

        .mencion-item.active .mencion-title { color: white; }
        .mencion-item.active .mencion-title i { color: rgba(255,255,255,0.85); }

        .mencion-toggle {
            width: 28px;
            height: 28px;
            background: #f1f5f9;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s;
            flex-shrink: 0;
        }

        .mencion-toggle i { color: #1e40af; font-size: 0.8rem; }

        .mencion-item.active .mencion-toggle {
            background: rgba(255,255,255,0.2);
            transform: rotate(180deg);
        }

        .mencion-item.active .mencion-toggle i { color: white; }

        .mencion-content {
            display: none;
            background: #f8fafc;
        }

        .mencion-item.active .mencion-content { display: block; }

        /* ── Plan de estudios ── */
        .plan-estudios { padding: 1rem 1.25rem 1.25rem; }

        .semestre-card {
            background: white;
            border-radius: 10px;
            margin-bottom: 0.75rem;
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }

        .semestre-header {
            background: #1e293b;
            color: white;
            padding: 0.875rem 1.25rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .semestre-numero {
            background: #1e40af;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            margin-right: 0.875rem;
            flex-shrink: 0;
        }

        .semestre-info { display: flex; align-items: center; }

        .semestre-titulo {
            font-weight: 700;
            font-size: 0.88rem;
            letter-spacing: 0.3px;
        }

        .semestre-subtitulo {
            font-size: 0.76rem;
            color: rgba(255,255,255,0.65);
            margin-top: 1px;
        }

        .semestre-matricula {
            background: #059669;
            padding: 0.3rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            white-space: nowrap;
        }

        /* ── Tabla cursos ── */
        .cursos-table { width: 100%; border-collapse: collapse; }

        .cursos-table th {
            background: #f1f5f9;
            padding: 0.6rem 1rem;
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #64748b;
            font-weight: 700;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }

        .cursos-table td {
            padding: 0.8rem 1rem;
            border-bottom: 1px solid #f1f5f9;
            font-size: 0.875rem;
            color: #334155;
            vertical-align: middle;
        }

        .cursos-table tr:last-child td { border-bottom: none; }

        .cursos-table tbody tr:hover td { background: #fafbff; }

        .curso-codigo {
            font-family: 'Courier New', monospace;
            background: #e0e7ff;
            color: #1e40af;
            padding: 0.2rem 0.45rem;
            border-radius: 5px;
            font-size: 0.78rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .curso-nombre { font-weight: 500; }

        .curso-creditos {
            text-align: center;
            font-weight: 700;
            color: #1e40af;
        }

        .curso-costo {
            color: #059669;
            font-weight: 700;
            white-space: nowrap;
        }

        .curso-duracion {
            color: #94a3b8;
            font-size: 0.8rem;
            white-space: nowrap;
        }

        /* ── Resumen inversión ── */
        .inversion-resumen {
            padding: 1.25rem 2rem;
            background: white;
            border-top: 1px solid #e2e8f0;
        }

        .inversion-resumen .row > div > div {
            border-radius: 10px !important;
        }

        /* ── Requisitos ── */
        .requisitos-section {
            padding: 1.5rem 2rem 2rem;
            background: white;
            border-top: 1px solid #e2e8f0;
        }

        .requisitos-title {
            color: #1e40af;
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .requisitos-grid { display: grid; gap: 0.5rem; }

        .requisito-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            background: #f8fafc;
            border-radius: 8px;
            border-left: 3px solid #1e40af;
            transition: background 0.2s;
        }

        .requisito-item:hover { background: #f0f4ff; }

        .requisito-item i { color: #059669; margin-top: 2px; flex-shrink: 0; }

        .requisito-item span {
            font-size: 0.88rem;
            color: #334155;
            line-height: 1.55;
        }

        /* ── Responsive ── */
        @media (max-width: 768px) {
            .programa-stats { grid-template-columns: repeat(2, 1fr); }
            .cursos-table { display: block; overflow-x: auto; }
            .modal-programa .modal-header,
            .programa-info-section,
            .menciones-accordion,
            .requisitos-section,
            .inversion-resumen { padding-left: 1.25rem; padding-right: 1.25rem; }
            .semestre-header { flex-direction: column; align-items: flex-start; }
        }
