/* =========================================
   1. CONFIGURACIÓN PRINCIPAL DEL FOOTER
   ========================================= */
.site-footer {
    background-color: #020b16;      
    color: #b0c4de;                 
    padding: 60px 0 0 0;            
    font-size: 0.9rem;              
    border-top: 3px solid var(--accent-cyan); 
    margin-top: 50px;               
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    display: flex;                  
    flex-wrap: wrap;                
    justify-content: space-between; 
    max-width: 1200px;             
    margin: 0 auto;                 
    padding: 0 20px 40px 20px;      
    gap: 30px;                      
}

/* =========================================
   2. COLUMNAS Y TÍTULOS
   ========================================= */
.footer-col {
    flex: 1;                        
    min-width: 250px;               
    margin-bottom: 20px;
}

/* Títulos de las columnas (con línea debajo) */
.footer-col h3 {
    color: white;                   
    font-size: 0.95rem;             
    margin-bottom: 20px;           
    position: relative;             
    display: inline-block;
    font-weight: 600;               
    line-height: 1.4;              
    margin-top: 0;                 
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;                   
    height: 2px;                    
    background: var(--accent-cyan); 
    margin-top: 8px;               
}

/* Párrafos e Información General */
.footer-col p { margin-bottom: 10px; line-height: 1.6; }
.footer-col p i { color: var(--accent-cyan); margin-right: 10px; width: 20px; text-align: center; }

/* =========================================
   3. ENCABEZADO UNT (LOGO + TEXTO)
   ========================================= */
.unt-header-wrapper {
    display: flex;                
    align-items: center;          
    gap: 15px; /* Espacio limpio y positivo */                    
    text-decoration: none;         
    margin-bottom: 25px;
    transition: transform 0.3s, opacity 0.3s;
}

.unt-header-wrapper:hover {
    opacity: 0.9;
    transform: translateX(5px); /* Pequeño movimiento elegante */
}

.unt-logo-icon {
    width: 65px; /* Tamaño ajustado para elegancia */                 
    height: auto;                 
    display: block;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

/* Título UNT específico (sin línea debajo) */
.footer-col .unt-header-wrapper h3 {
    margin-bottom: 0;             
    border: none;
    font-size: 0.95rem;            
    text-align: left;
}
.footer-col .unt-header-wrapper h3::after {
    display: none; /* Quitamos la línea aquí */
}

/* Información del Grupo GMIN */
.gmin-content {
    margin-top: 25px;               
}

.gmin-name {
    color: var(--accent-cyan);    
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

/* =========================================
   4. ENLACES (EFECTO PREMIUM)
   ========================================= */
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a { 
    color: #b0c4de; 
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    padding-left: 0;
}

.footer-col ul li a:hover { 
    color: var(--accent-cyan); 
    transform: translateX(10px); /* Se desliza a la derecha */
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3); /* Brillo sutil */
    padding-left: 5px;
}

/* Flechita invisible que aparece al pasar el mouse */
.footer-col ul li a::before {
    content: '›';
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: 0.3s;
    color: var(--accent-cyan);
    font-weight: bold;
}
.footer-col ul li a:hover::before {
    opacity: 1;
    left: -5px;
}

/* =========================================
   5. MAPA "CINTA ELEGANTE"
   ========================================= */
.footer-map-container {
    width: 100%;
    height: 85px; /* Altura reducida tipo banner */
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    
    /* Estilo inactivo (Grayscale) */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    filter: grayscale(100%) opacity(0.6);
    
    transition: all 0.4s ease;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.footer-map-container:hover {
    /* Estilo activo (Color) */
    filter: grayscale(0%) opacity(1);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.15);
}

/* =========================================
   6. REDES SOCIALES
   ========================================= */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;                    
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;                   
    height: 40px;               
    background-color: rgba(255, 255, 255, 0.1); 
    color: white;
    border-radius: 50%;             
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-btn:hover {
    transform: translateY(-3px);
    background-color: white;
    box-shadow: 0 0 15px var(--accent-cyan);
}
.social-btn.facebook:hover { color: #0554bc; }
.social-btn.linkedin:hover { color: #0077B5; }

/* =========================================
   7. COPYRIGHT Y BOTÓN SUBIR
   ========================================= */
.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid rgba(255,255,255,0.05); 
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-cyan);
    color: #020b16;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    z-index: 1000;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    transform: translateY(20px);
}
.back-to-top:hover { background-color: white; transform: translateY(-5px); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }





/* =========================================
   DISEÑO COMPACTO: REDES + MAPA LADO A LADO
   ========================================= */

/* El contenedor que los pone uno al lado del otro */
.contact-row {
    display: flex;
    align-items: stretch; /* Se estiran para tener la misma altura */
    gap: 15px; /* Espacio entre redes y mapa */
    margin-top: 15px;
    height: 90px; /* Altura fija para que todo cuadre perfecto */
}

/* 1. Columna de Redes Sociales */
.social-column {
    display: flex;
    flex-direction: column; /* Una encima de otra */
    justify-content: space-between; /* Se separan para ocupar todo el alto */
    width: 40px; /* Ancho fijo para los botones */
}

/* Ajuste de los botones para este diseño */
.social-btn {
    width: 40px;
    height: 40px; /* 40px + 40px + 10px de espacio = 90px total */
    background-color: rgba(255, 255, 255, 0.08);
    /* El resto de estilos se hereda del CSS anterior */
}

/* 2. Ajuste del Mapa para este diseño */
.footer-map-container {
    flex: 1; /* Ocupa todo el espacio restante a la derecha */
    height: 100% !important; /* Fuerza a ocupar los 90px del padre */
    margin: 0 !important; /* Quitamos márgenes viejos */
    
    /* Mantenemos los estilos de cinta elegante */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Efectos Hover (se mantienen igual de bonitos) */
.footer-map-container:hover {
    filter: grayscale(0%) opacity(1);
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.15);
}







/* =========================================
   8. RESPONSIVE (MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .unt-header-wrapper {
        justify-content: center;  
        text-align: left;          
    }

    .social-icons {
        justify-content: center;
    }

    .footer-col h3::after {
        margin: 8px auto 0 auto;
    }
}

