        :root {
            --primary-green: #2a6f47;
            --accent-orange: #f79f1b;
            --light-green-bg: #f3f9f4;
            --background-color: #f0f2f5;
            --card-background: #ffffff;
            --text-color: #555;
            --heading-color: #1a432b;
            --border-color: #e9ecef;
            --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            /* Altura aproximada del header para el cálculo del scroll */
            --header-height: 90px; 
             /* Colores Institucionales "Investigación" Style */
            --uae-dark-green: #004e35;  /* Verde oscuro elegante */
            --uae-accent: #f79f1b;      /* Naranja/Dorado acento */
            --text-main: #333333;       /* Gris oscuro para lectura */
            --text-light: #666666;      /* Gris suave */
            --bg-white: #ffffff;
            --bg-off-white: #f8f9fa;    /* Gris muy claro para secciones */
            --bg-light-green: #eef5f2;  /* Tinte verde muy sutil */
            --uae-dark: #1a432b;
            --uae-gold: #f79f1b;
            --uae-wine: #0b4433;
            
            --border-radius: 12px;
            --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
            --shadow-hover: 0 15px 40px rgba(0,78,53,0.15);
        }   
        * { margin: 0; padding: 0; box-sizing: border-box; }

        /* ======== ESTILOS GENERALES Y FUENTES ======== */
        body {
            margin: 0;
            font-family: 'Poppins', sans-serif;
            background-color: #f4f4f4;
        }

        * {
            box-sizing: border-box;
        }
        /* ================  HEADER Y FOOTER   =============== */
        /* ======== ESTILOS DE LA CABECERA ======== */
        header {
            position: relative;
            width: 100%;
            z-index: 1000;
            transition: top 0.4s ease-in-out;
        }

        .top-bar {
            background-color: #0b4433;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 5%;
            font-size: 12px;
            transition: height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
            height: 40px;
            opacity: 1;
        }

        .top-bar-links {
            flex-grow: 1;
            text-align: center;
        }

        .top-bar a {
            color: #e0e0e0;
            text-decoration: none;
            margin: 0 10px;
            transition: color 0.3s;
        }

        .top-bar a:hover {
            color: #ff9900;
        }

        .main-nav {
            background-color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
            /* MODIFICADO: Aumento de padding para el logo grande y transición suave */
            padding: 15px 5%;
            transition: padding 0.4s ease-in-out;
        }

        .logo img {
            /* MODIFICADO: Tamaño inicial del logo y transición */
            height: 60px;
            display: block;
            transition: height 0.4s ease-in-out;
        }

        .main-nav-links {
            display: flex;
            align-items: center;
        }

        .main-nav-links a,
        .nav-item > a {
            text-decoration: none;
            color: #333;
            margin: 0 15px;
            font-weight: 500;
            transition: color 0.3s;
            padding: 10px 0;
            display: block;
        }

        .main-nav-links a:hover,
        .nav-item > a:hover {
            color: #ff9900;
        }

        .nav-right {
            display: flex;
            align-items: center;
        }

        /* ======== ESTILOS DEL SUBMENÚ ======== */
        .nav-item { position: relative; }

        .submenu {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: white;
            list-style: none;
            padding: 10px 0;
            margin: 0;
            min-width: 200px;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
        }

        .nav-item:hover .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
        }

        .submenu li a {
            color: #333;
            padding: 10px 20px;
            display: block;
            font-size: 14px;
            white-space: nowrap;
        }

        .submenu li a:hover {
            background-color: #f5f5f5;
            color: #ff9900;
        }

        /* ======== ESTADO "STICKY" DE LA CABECERA ======== */
        header.sticky {
            position: fixed;
            top: 0;
            animation: slideDown 0.5s ease-out;
        }

        @keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

        header.sticky .top-bar {
            height: 0;
            opacity: 0;
            padding: 0 5%;
            overflow: hidden;
        }

        /* AÑADIDO: Reducir padding de la barra principal en estado sticky */
        header.sticky .main-nav {
            padding-top: 5px;
            padding-bottom: 5px;
        }

        /* AÑADIDO: Reducir el tamaño del logo en estado sticky */
        header.sticky .logo img {
            height: 50px;
        }

        /* ======== BOTÓN DE HAMBURGUESA ======== */
        .hamburger-menu {
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 30px;
            height: 25px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 2000;
        }

        .hamburger-menu span {
            width: 100%;
            height: 3px;
            background-color: #333;
            border-radius: 10px;
            transition: all 0.3s ease-in-out;
            transform-origin: center;
        }
        /* ======== AÑADIDO: ANIMACIÓN HAMBURGUESA A 'X' ======== */
        .hamburger-menu.active span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger-menu.active span:nth-child(2) {
            opacity: 0;
            transform: scale(0);
        }

        .hamburger-menu.active span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }
        

        /* ======== ESTILOS RESPONSIVOS (MÓVIL) ======== */
        
        @media (max-width: 1024px) {
            /* AÑADIDO: Ocultar la barra superior en dispositivos */
            .top-bar {
                display: none;
            }
            .mision-vision-grid {
                grid-template-columns: 1fr;
            }
            
            /* MODIFICADO: Ajuste del logo en móvil para que no sea tan grande */
            .logo img {
                height: 50px;
            }
            
            .main-nav {
                padding: 10px 5%;
            }
            

            .main-nav-links {
                position: fixed;
                top: 0;
                right: 0;
                width: 80%;
                max-width: 320px;
                height: 100vh;
                background-color: #f4f4f4;
                flex-direction: column;
                align-items: flex-start;
                padding: 80px 30px 30px;
                transform: translateX(100%);
                transition: transform 0.4s ease-in-out;
                z-index: 1500;
            }

            .main-nav-links.active {
                transform: translateX(0);
                box-shadow: -5px 0 15px rgba(0,0,0,0.2);
            }

            .main-nav-links a, .nav-item > a {
                color: #1c1e21;
                width: 100%;
                margin: 0;
                padding: 15px 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

            .nav-item { width: 100%; }
            
            .submenu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                background-color: transparent;
                padding-left: 20px;
                display: none;
            }

            .nav-item.open > .submenu { display: block; }
            
            .submenu li a { color: #0b4433; font-size: 14px; padding: 10px 0; }
            .hamburger-menu { display: flex; margin-left: 20px; }
            .search-icon { display: none; }
        }
        /* ====================================================== */
        /*      ESTILO REUTILIZABLE PARA BANNERS DE IMAGEN        */
        /* ====================================================== */
        .image-banner {
            position: relative;
            padding: 125px 2rem;
            text-align: center;
            color: white;
            background-size: cover;
            background-position: center center;
            overflow: hidden; 
        }

        .image-banner::before { 
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .image-banner .banner-content {
            position: relative;
            z-index: 2;
            animation: fadeInDown 1s ease-out;
            max-width: 800px;
            margin: 0 auto;
        }

        .image-banner .banner-title {
            font-size: 3rem;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
            position: relative;
            display: inline-block;
            padding-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .image-banner .banner-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background-color: var(--accent-orange);
        }

        .image-banner .banner-subtitle {
            font-size: 1.2rem;
            font-weight: 400;
            line-height: 1.7;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        
        /* ================================================================= */
        /* --- ESTILOS PARA LA SECCIÓN  --- */
        /* ================================================================= */
        /* ========================================= */
        /*              HERO SECTION                 */
        /* ========================================= */
        .hero-section {
            position: relative;
            background-image: url('img/posgrado-uae-09.jpg'); 
            background-size: cover;
            background-position: center center;
            height: 750px; 
            display: flex;
            align-items: center;
            z-index: 1;
        }

        .hero-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
            z-index: 1;
        }

        .container-limit {
            max-width: 1300px; margin: 0 auto; padding: 0 20px; width: 100%;
            position: relative; z-index: 2;
            display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
        }

        .hero-content { color: white; padding-bottom: 50px; }
        
        .btn-back {
            display: inline-flex; align-items: center; gap: 8px;
            color: rgba(255,255,255,0.9); text-decoration: none;
            font-size: 0.9rem; margin-bottom: 1.5rem; font-weight: 500;
            transition: 0.3s;
        }
        .btn-back:hover { color: var(--uae-gold); transform: translateX(-5px); }

        .hero-title {
            font-family: 'Poppins', serif;
            font-size: 4rem; line-height: 1.1; font-weight: 700;
            margin: 0; text-transform: uppercase;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
        }

        /* ========================================= */
        /*   TARJETA DE INVERSIÓN (LIQUID GLASS)     */
        /* ========================================= */
        .investment-card {
            background: rgba(255, 255, 255, 0.12); 
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            padding: 3rem 2.5rem; border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            text-align: center; max-width: 400px; margin-left: auto;
            position: relative; animation: floatCard 4s ease-in-out infinite;
        }

        @keyframes floatCard {
            0% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0); }
        }

        .inv-label { color: var(--uae-gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
        .inv-amount { font-size: 4rem; color: #ffffff; font-weight: 800; margin: 0; line-height: 1; font-family: 'Poppins', serif; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
        .inv-details { color: #e0e0e0; font-size: 0.95rem; margin-bottom: 35px; margin-top: 5px; }

        .btn-enroll {
            display: block; width: 100%; padding: 18px 0;
            background-color: var(--uae-gold); color: var(--uae-dark); 
            font-weight: 700; font-size: 1.1rem; border-radius: 50px;
            text-decoration: none; transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(247, 159, 27, 0.3);
        }
        .btn-enroll:hover { background-color: white; color: var(--uae-dark); transform: scale(1.02); }
        .inv-footer { margin-top: 25px; font-size: 0.75rem; color: #ccc; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 15px; }

        /* ========================================= */
        /*           BARRA FLOTANTE                  */
        /* ========================================= */
        .info-wrapper { position: relative; z-index: 10; margin-top: -70px; padding: 0 20px; pointer-events: none; }
        .info-strip {
            max-width: 1200px; margin: 0 auto; background: white; border-radius: 16px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.1); display: grid; grid-template-columns: repeat(4, 1fr);
            padding: 40px 30px; pointer-events: auto;
        }
        .info-box { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; border-right: 1px solid #f0f0f0; transition: transform 0.3s ease; }
        .info-box:last-child { border: none; }
        .info-box:hover { transform: translateY(-5px); }

        .icon-circle {
            width: 55px; height: 55px; background-color: #fcfcfc; border: 1px solid #eee;
            color: var(--uae-wine); border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem; margin-bottom: 15px; transition: 0.3s;
        }
        .info-box:hover .icon-circle { background-color: var(--uae-wine); color: white; border-color: var(--uae-wine); }
        
        .info-title { font-size: 0.8rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
        .info-value { font-size: 1.15rem; color: #2c3e50; font-weight: 700; line-height: 1.3; }
        .info-value2 { font-size: 0.7rem; color: #2c3e50; font-weight: 700; line-height: 1.3; }
        .btn-mini { display: inline-block; margin-top: 10px; color: var(--uae-wine); font-weight: 700; font-size: 0.85rem; text-decoration: none; border-bottom: 2px solid transparent; transition: 0.3s; }
        .btn-mini:hover { border-bottom-color: var(--uae-wine); }

        
        /* ====================================================== */
        /*                   ESTILOS DEL SITIO WEB                */
        /* ====================================================== */
        /* ========================================= */
        /*        PERFILES (LIMPIO Y MODERNO)        */
        /* ========================================= */
        .section-profiles { 
            padding: 180px 20px 100px 20px; /* Aumentamos el padding superior para que el texto no quede tapado por la barra */
            background-color: var(--bg-white); 
            margin-top: -120px;             /* Este margen negativo "sube" la sección detrás de la barra */
            position: relative;             /* Necesario para que funcione el z-index */
            z-index: 1;                     /* Menor al z-index de la barra (que es 10) */
        }

        .profile-container {
            max-width: 1200px; margin: 0 auto;
            display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center;
        }
        
        .profile-content h2 {
            font-size: 2.5rem; color: var(--uae-dark-green); margin-bottom: 30px;
            position: relative; padding-bottom: 15px;
        }
        .profile-content h2::after {
            content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px;
            /*background-color: var(--uae-accent); */
        }

        .profile-card { margin-bottom: 30px; }
        .profile-title { display: flex; align-items: center; gap: 15px; font-size: 1.2rem; font-weight: 700; color: var(--uae-dark-green); margin-bottom: 10px; }
        .profile-title i { color: var(--uae-accent); }
        .profile-desc { color: var(--text-light); font-size: 1rem; text-align: justify; }

        .profile-image-box {
            position: relative; height: 500px; border-radius: 20px; overflow: hidden;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .profile-image-box img { width: 100%; height: 100%; object-fit: cover; }
        /* Cuadro decorativo detrás */
        .profile-image-box::before {
            content: ''; position: absolute; top: -20px; right: -20px; width: 100%; height: 100%;
            border: 2px solid var(--uae-accent); border-radius: 20px; z-index: -1;
        }

        /* ========================================= */
        /*            MALLA CURRICULAR               */
        /* ========================================= */
        .section-curriculum { padding: 80px 20px; background-color: var(--bg-off-white); }
        .section-title { text-align: center; margin-bottom: 60px; }
        .section-title h2 { font-size: 2.5rem; color: var(--uae-dark-green); font-weight: 700; }
        .section-title .line { width: 50px; height: 4px; background: var(--uae-accent); margin: 15px auto 0; }

        .curriculum-grid {
            max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px;
        }

        .semester-card {
            background: white; border-radius: 16px; overflow: hidden;
            box-shadow: var(--shadow-soft); transition: 0.4s ease;
            border: 1px solid #eee;
        }
        /* Animación de "levantar tarjeta" que te gustaba */
        .semester-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

        .semester-header {
            background: var(--uae-dark-green); color: white; padding: 20px;
            text-align: center; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
        }

        .subject-list li {
            padding: 15px 25px; border-bottom: 1px solid #f4f4f4; color: var(--text-light);
            display: flex; align-items: center; gap: 12px; transition: 0.3s; cursor: default;
        }
        .subject-list li:last-child { border-bottom: none; font-weight: 600; color: var(--uae-dark-green); background-color: rgba(0,78,53,0.03); }
        
        .subject-list li i { font-size: 0.8rem; color: var(--uae-accent); opacity: 0.6; transition: 0.3s; }
        
        /* Animación interna de la lista que te gustaba */
        .subject-list li:hover { padding-left: 35px; background-color: #fffcf5; color: var(--uae-dark-green); }
        .subject-list li:hover i { opacity: 1; transform: scale(1.2); }

        /* ========================================= */
        /*        TITULACIÓN (Sin Horarios)          */
        /* ========================================= */
        /*.section-titulacion { padding: 60px 20px; background-color: var(--bg-white); }
        .titulacion-grid {
            max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
        }
        .info-card {
            background: white; padding: 40px; border-radius: 16px; text-align: center;
            border: 1px solid #eee; box-shadow: var(--shadow-soft); position: relative;
            transition: 0.3s;
        }
        .info-card:hover { transform: translateY(-5px); border-color: var(--uae-accent); }
        .info-card::top { content:''; position: absolute; top:0; left:0; width: 100%; height: 4px; background: var(--uae-dark-green); }
        
        .ic-icon { font-size: 3rem; color: var(--uae-dark-green); margin-bottom: 20px; }
        .ic-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
        .ic-text { color: var(--text-light); font-size: 0.95rem; } */

        /* ========================================= */
        /*           REQUISITOS (Style Thay)         */
        /* ========================================= */
        .section-req { padding: 80px 20px; background-color: var(--bg-off-white); }
        
        .req-wrapper {
            max-width: 1200px; margin: 0 auto; background: white; border-radius: 20px;
            overflow: hidden; box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 0.8fr 1.2fr;
        }

        .req-image {
            background-image: url('img/requisitos-posgrado.jpg'); /* Asegúrate de tener esta imagen */
            background-size: cover; background-position: center; min-height: 100%; position: relative;
        }
        .req-image::before {
            content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
            background: rgba(0, 78, 53, 0.4); /* Filtro verde elegante */
        }

        .req-content { padding: 60px 50px; }
        .req-content h3 { font-size: 2rem; color: var(--uae-dark-green); margin-bottom: 30px; }

        .req-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .req-item { display: flex; align-items: flex-start; gap: 15px; color: var(--text-light); font-size: 0.95rem; }
        .req-item i { color: var(--uae-dark-green); margin-top: 5px; }

        /* Nota de la carpeta - Color Dinámico */
        .folder-note {
            margin-top: 40px; padding: 20px; background-color: #f9f9f9; border-radius: 10px;
            display: flex; align-items: center; gap: 20px; border-left: 4px solid #ccc;
        }
        
        /* AQUÍ CAMBIAS EL COLOR DE LA CARPETA SEGÚN LA MAESTRÍA */
        .folder-note.grey { border-left-color: #808080; background-color: #eefdf4; }
        .folder-note.grey i { color: #808080; }
        .folder-note.grey strong { color: #808080; }

        .folder-note.yellow { border-left-color: #f79f1b; background-color: #fff9ed; } /* Ing. Agrícola */
        .folder-note.grey { border-left-color: #808080; background-color: #f4f3f3; } /* Agroecología */
        /* Agrega más clases según necesites */




        /* ====================================================== */
        /* ===== CÓDIGO A AÑADIR PARA LA SECCIÓN PARALLAX   ===== */
        /* ====================================================== */

        .parallax-section { 
            position: relative; 
            padding: 6rem 0; 
            background-image: url('img/futuro-posgrado.jpg'); 
            background-attachment: fixed; 
            background-position: center; 
            background-repeat: no-repeat; 
            background-size: cover; 
            color: white; 
        }
        .parallax-section::before { 
            content: ''; 
            position: absolute; 
            top: 0; left: 0; 
            width: 100%; height: 100%; 
            background-color: rgba(10, 25, 47, .6); 
            z-index: 1; 
        }
        .parallax-section .container-main { 
            position: relative; 
            z-index: 2; 
            text-align: center; 
        }
        .parallax-section h2 { 
            color: white; 
            font-size: 2.8rem; 
            font-weight: 700; 
            margin-bottom: 1rem; 
            text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
        }
        .parallax-section p { 
            font-size: 1.2rem; 
            max-width: 700px; 
            margin: 0 auto 2.5rem auto; 
            line-height: 1.7;
        }
        .parallax-button {
            display: inline-block;
            background-color: var(--accent-orange);
            color: white;
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        .parallax-button:hover {
            background-color: #e68a00;
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }
        .parallax-button i { margin-right: 10px; }

        .cta-button {
            display: inline-block;
            background-color: var(--accent-orange);
            color: white;
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            border: none; 
            cursor: pointer; 
        }
        
        .cta-button:hover {
            background-color: #e68a00; 
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }
        
        .cta-button i {
            margin-right: 10px; 
        }
        
        /* Botón de Scroll-to-Top */
        .scroll-top-btn {
            position: fixed;
            bottom: 25px;
            right: 25px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-green);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            text-decoration: none;
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .scroll-top-btn.show {
            opacity: 1;
            visibility: visible;
        }

        .scroll-top-btn:hover {
            background-color: var(--accent-orange);
            transform: translateY(-5px);
        }

        /* ====================================================== */
        /*          CORRECCIÓN MÓVIL UNIVERSAL (STACKING)         */
        /* ====================================================== */
        @media (max-width: 768px) {
            /* 1. Forzar que todo lo que tenga 2 columnas pase a 1 sola */
            .institute-grid, 
            .profile-container, 
            .req-wrapper, 
            .container-limit {
                grid-template-columns: 1fr !important;
                gap: 30px !important;
            }

            /* 2. Arreglar las imágenes "flacas" */
            .institute-image, 
            .profile-image-box, 
            .req-image {
                height: 300px !important; /* Altura fija para que no se estire */
                width: 100% !important;
                order: -1; /* Esto hace que la imagen suba y el texto quede abajo */
            }

            /* 3. Ajustar títulos gigantes que se cortan */
            .hero-title {
                font-size: 2.2rem !important;
                line-height: 1.2 !important;
            }

            .profile-content h2, 
            .section-title h2 {
                font-size: 1.8rem !important;
            }

            /* 4. Quitar márgenes negativos que tapan contenido */
            .container-main {
                margin-top: 20px !important;
                padding: 1.5rem !important;
            }

            .section-profiles {
                padding-top: 50px !important;
                margin-top: 0 !important;
            }

            /* 5. Ajustar la tarjeta de inversión en el Hero */
            .investment-card {
                margin: 20px auto !important;
                max-width: 100% !important;
                padding: 1.5rem !important;
            }
                        /* 6. Fix para el menú de pestañas (Permitir deslizamiento lateral) */
            .tabs-navigation {
                overflow-x: auto !important; /* Permite mover el menú a la izquierda/derecha */
                display: flex !important;
                flex-wrap: nowrap !important; /* Evita que se bajen a otra fila */
                gap: 1.2rem !important;
                padding-bottom: 10px !important; /* Espacio para que no choque con el borde */
                -webkit-overflow-scrolling: touch; /* Hace que el movimiento sea suave en iPhone */
            }

            .tab-button {
                flex-shrink: 0 !important; /* Evita que los nombres se encojan o deformen */
                font-size: 1rem !important;
                padding: 10px 5px !important;
            }

            /* 7. Ajuste para los títulos de documentación que son muy largos */
            .posgrado-heading {
                font-size: 1.6rem !important;
                flex-direction: row !important; /* Mantiene icono y texto en línea */
                align-items: flex-start !important;
            }
            /* 8. Fix para la barra de información de Maestrías (Título, Resolución, etc.) */
            .info-strip {
                grid-template-columns: 1fr !important; /* Cambia de 4 columnas a 1 sola fila por ítem */
                width: 92% !important;
                margin: 0 auto !important;
                padding: 20px !important;
                gap: 10px !important;
            }

            .info-box {
                border-right: none !important; /* Quita las líneas verticales */
                border-bottom: 1px solid #eee !important; /* Agrega líneas horizontales para separar */
                padding: 15px 0 !important;
                width: 100% !important;
            }

            .info-box:last-child {
                border-bottom: none !important;
            }

            /* 9. Ajuste para que el texto del Hero no se corte en el banner */
            .hero-section {
                height: auto !important; /* Deja que el banner crezca según el texto */
                padding: 100px 0 80px 0 !important;
            }

            .container-limit {
                grid-template-columns: 1fr !important; /* Texto arriba, tarjeta naranja abajo */
                text-align: center !important;
            }

            .hero-title {
                font-size: 2.2rem !important; /* Reduce un poco el título para que quepa */
            }

            .investment-card {
                margin: 30px auto 0 !important; /* Centra la tarjeta de precio */
            }
                        /* 10. Ajuste definitivo para la Malla Curricular */
            .curriculum-grid {
                grid-template-columns: 1fr !important; /* Fuerza una sola columna */
                display: block !important; /* Cambia a bloque para evitar conflictos de ancho */
                width: 100% !important;
            }

            .semester-card {
                min-width: 0 !important; /* Rompe el límite de 450px que pusiste antes */
                width: 100% !important;
                margin-bottom: 25px !important;
            }

            .subject-list li {
                font-size: 0.85rem !important; /* Letra un poco más pequeña para que quepa */
                padding: 12px 10px !important;
                white-space: normal !important; /* Permite que el texto largo salte de línea */
                line-height: 1.3 !important;
            }

            /* Quitar la animación de desplazamiento al pasar el dedo para evitar que el texto se salga */
            .subject-list li:hover {
                padding-left: 10px !important; 
            }
        }
        /* Estilos para Tabulación de Perfiles */
.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Alinea con el borde del header */
}

.tab-btn i {
    margin-right: 8px;
}

.tab-btn:hover {
    color: var(--uae-green, #006837); /* Usa el color verde de tu marca */
}

.tab-btn.active {
    color: var(--uae-green, #006837);
    border-bottom: 3px solid var(--uae-gold, #b5a264); /* Resalte en dorado */
}

/* Manejo de visibilidad */
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.profile-card-tab {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilo para la lista dentro del perfil de egreso */
.tab-pane ul {
    margin-top: 15px;
    padding-left: 20px;
}
.tab-pane li {
    margin-bottom: 8px;
    list-style-type: disc;
}