 /* CLAVE: Aplicar box-sizing para asegurar que el padding no cause scroll horizontal */
        * {
            box-sizing: border-box;
        }

        /* Definición de la fuente Inter como base */
   /* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');*/
   
     @font-face {
        font-family: 'MiFuenteLocal';
        src: url('./fonts/Morganite-SemiBold.ttf') format('truetype');
        font-weight: normal;
            font-style: normal;
        }
         @font-face {
        font-family: 'Montserrat2';
        src: url('./fonts/fonts/Montserrat-SemiBold.ttf') format('truetype');
        font-weight: normal;
            font-style: normal;
        }

    /* --- VARIABLES DE DISEÑO UFT (Negro, Vino, Gris) --- */
    :root {
        --color-uft-vino: #800f39; 
        --color-uft-negro: #070707ff;
        --color-uft-gris: #5b5b5b;
        --color-uft-gris2: #4c4a4aff;
        --color-texto-claro: #f7f7f7;
    }
    
    /* =====================================================
    --- 1. ESTILOS DEL BANNER HERO (Altura Ajustada) ---
    ===================================================== */
    .hero-banner {
        width: 100%;
        height: 500px; /* ALTURA DE ESCRITORIO */
        position: relative;
        overflow: hidden;
        background-size: cover;
        background-position: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 40px;
    }

    .hero-banner h1 {
        font-size: 15rem;
        color: white; 
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
        text-transform: uppercase;
        padding: 0 10px;
        text-align: center;
        font-family: 'MiFuenteLocal', sans-serif;
    }
    
    /* Media Query para pantallas pequeñas (Móvil) */
    @media (max-width: 768px) {
        .hero-banner {
            height: 130px; /* ALTURA REDUCIDA EN MÓVIL */
        }
        .hero-banner h1 {
            font-size: 5.5rem;
             margin-bottom: 10px; 
        }
        
    }
/*  REGLA PARA TELÉFONOS PEQUEÑOS (<= 480px) */
    @media (max-width: 480px) {
        .hero-banner {
            height: 200px; 
            font-size: 2.5rem;
            
            /* VALOR MÍNIMO: 0px para eliminar el espacio */
            margin-bottom: 10px; 
        }
    }

    /* =====================================================
    --- 2. ESTILOS DE BLOQUE GENERAL DEL MOSAICO INFERIOR ---
    --- LAYOUT HORIZONTAL 50/50 FORZADO EN TODAS LAS PANTALLAS ---
    ===================================================== */
    
    /* Contenedor que desactiva el scroll horizontal y AHORA OCUPA EL 100% */
    .mosaic-wrapper {
        overflow-x: hidden; /* Desactiva el scroll horizontal */
        width: 100%; /* CLAVE: Fuerza al ancho completo */
        margin: 0;   /* CLAVE: Elimina los márgenes exteriores */
        padding: 0;  /* CLAVE: Elimina el padding de los lados */
        justify-content: center;
        align-items: center;
    }
    
    .section-block {
        /* CLAVE: Mantenemos el layout horizontal (row) SIEMPRE */
        display: flex;
        flex-direction: row; 
        
        width: 100%; 
        height: 360px; /* Altura base para consistencia visual */
        
        margin: 0; /* CLAVE: Elimina el margen superior e inferior entre bloques */
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
        text-decoration: none; 
        color: var(--color-texto-claro);
        transition: transform 0.3s ease, box-shadow 0.3s ease; 
        border-radius: 2px; 
    }
    
    .section-block:hover {
        transform: translateY(-5px); 
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }
    
    /* Contenedor de Contenido (Texto) */
    .content-box-base {
        flex: 1; /* Ocupa 50% y se comprime */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 4rem; /* Padding base para escritorio */
        min-width: 200px; 
        text-align: center;
    }

    /* Contenedor de la Imagen */
    .image-box-base {
        flex: 1; /* Ocupa 50% y se comprime */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100%; 
        overflow: hidden;
    }
    

    /* Título Principal (General) */
    .main-title-base {
        font-size: 1rem; 
        font-weight: 800;
        line-height: 1;
        margin-bottom: 0rem; 
        text-transform: uppercase;
    }

    .fuente-diferente { 
        font-family: 'MiFuenteLocal', sans-serif; 
        font-weight: 700; 
    }

    .fuente-diferente2 { 
        font-family: 'Montserrat2', sans-serif; 
        font-weight: 80; 
    }
    
    /* Ajuste para pantallas grandes (Escritorio) */
    @media (min-width: 768px) {
        .section-block {
            min-height: 50px; 
        }
        .mb-20 {
            margin-bottom: 10px !important;
        }
        .main-title-base {
            font-size: 3.5rem; 
        }
    }
    
    @media (min-width: 1024px) {
        .main-title-base {
            font-size: 4.5rem; 
        }
    }

    /* Subtítulo "MÁS INFORMACIÓN" (General) */
    .sub-info-base {
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0.8;
        border-bottom: 2px solid var(--color-texto-claro);
        padding-bottom: 0.3rem;
        transition: opacity 0.3s;
        text-align: center;
        width: 40%;
        margin: 0 auto;

    }

    /* =====================================================
    --- AJUSTES DE COMPRESIÓN PARA MÓVILES (< 768px) ---
    ===================================================== */

    /* AJUSTE INTERMEDIO (Tablets y Móviles grandes: 481px a 768px) */
    @media (min-width: 481px) and (max-width: 768px) {
        .section-block {
            height: auto; 
            flex-direction: row;
        }
        .mb-20 {
            margin-bottom: 10px !important;
        }
        .content-box-base {
            padding: 2rem 1rem; 
            min-width: 120px; 
            order: 1 !important;
            align-items: center;
        }
        .image-box-base {
            min-height: 200px; /* Le da una altura mínima a la imagen */
        }
        .main-title-base {
            font-size: 1.5rem; 
            margin-bottom: 1.5rem;
        }
        .sub-info-base {
            font-size: 0.7rem; 
        }
    }

    /* AJUSTE EXTREMO (Móviles pequeños: <= 480px) */
    @media (max-width: 480px) {
        .section-block {
            height: auto; /* Reducción de altura */
            margin: 0; /* Margen removido */
            flex-direction: row;
        }
        .mb-20 {
            margin-bottom: 10px !important;
        }
        .content-box-base {
            /* MÍNIMO padding posible para que el texto quepa sin scroll */
            padding: 0.5rem 0.1rem; 
            min-width: 100px; 
            order: 1 !important; /* Texto siempre arriba */
            align-items: center;
        }
        .image-box-base {
            min-height: 120px; /* Altura mínima más pequeña para la imagen */
        }
        .main-title-base {
            /* MÍNIMO tamaño de fuente para que quepa la palabra */
            font-size: 0.8rem; 
            line-height: 1.1;
            margin-bottom: 0.3rem;
        }
        .sub-info-base {
            font-size: 0.5rem; /* Subtítulo muy pequeño */
            letter-spacing: 0.5px; 
            padding-bottom: 0.1rem;
            width: 80%;
        }
    }


    /* --- Estilos de Efecto Hover --- */
    .section-block:hover .sub-info-base {
        opacity: 1;
    }

    .zoom-image-wrapper {
        transition: transform 0.4s ease-in-out;
        width: 100%;
        height: 100%;
    }

    .section-block:hover .zoom-image-wrapper {
        transform: scale(1.05);
    }


    /* =====================================================
    --- 3. CLASES ESPECÍFICAS Y ÓRDENES DE LAYOUT (Fijas) ---
    ===================================================== */
    
    /* CLAVE: Eliminar todos los márgenes específicos para que los bloques se peguen verticalmente */
    .INGENIERIA-module { margin-top: 0; } 
    .INGENIERIA-content { background-color: var(--color-uft-negro); order: 1; }
    .INGENIERIA-image { order: 2;}

    .CIENCIASE-module { margin-top: 0; } 
    .CIENCIASE-content { background-color: var(--color-uft-vino); order: 2; }
    .CIENCIASE-image { order: 1; }

    .CIENCIASJ-module { margin-top: 0; } 
    .CIENCIASJ-content { background-color: var(--color-uft-gris); order: 1; }
    .CIENCIASJ-image { order: 2; }

    .POSTGRADO-module { margin-top: 0; } 
    .POSTGRADO-content { background-color: var(--color-uft-gris2); order: 2; }
    .POSTGRADO-image { order: 1; }


    /* =====================================================
    --- 4. ESTILOS PARA LOS BOTONES DE CARRERA (GRID ADAPTABLE) ---
    ===================================================== */

    .career-sections {
        padding: 40px 20px;
        max-width: 1200px; 
        margin: 0 auto;
        overflow-x: hidden; 
    }
    
    .career-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); 
        gap: 20px; 
    }

    @media (max-width: 480px) {
        .career-grid {
            gap: 10px; 
        }
    }


    .career-card {
        text-decoration: none;
        display: block;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.3s ease;
    }

    .career-card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .card-content {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .career-card img {
        width: 100%;
        height: auto;
        display: block;
        transition: opacity 0.3s ease;
    }

    /* Control del efecto hover (cambio de imagen) */
    .hover-image {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }

    .career-card:hover .default-image {
        opacity: 0;
    }

    .career-card:hover .hover-image {
        opacity: 1;
    }