/* frontend/css/footer-styles.css */

/* =========================================
   ESTRUCTURA DEL FOOTER (COLOR OSCURO PREMIUM)
   ========================================= */
.footer {
    position: relative;
    background-color: #0f172a; 
    border-top: 2px solid #1e293b;
    padding: 50px 20px 30px 20px;
    margin-top: 50px;
    color: #f8fafc;
    transition: all 0.3s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-info h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin: 0 0 8px 0;
    font-weight: 800;
}

.footer-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 350px;
}

/* --- CONTACTO --- */
.footer-links-box p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 5px 0;
}

.footer-links-box strong {
    color: #ffffff;
}

/* --- COPYRIGHT --- */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #64748b;
    font-size: 0.85rem;
}

/* =========================================
   BOTONES SOCIALES (AJUSTE PARA FONDO OSCURO)
   ========================================= */
.footer-social {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.footer-social .icon-content { position: relative; }

.footer-social .icon-content .tooltip {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.footer-social .icon-content:hover .tooltip { opacity: 1; visibility: visible; top: -45px; }

.footer-social .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #cbd5e1;
    background-color: #1e293b; /* Fondo que resalta sobre el footer oscuro */
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    border: 1px solid #334155;
}

.footer-social .icon-content a:hover { color: white; border-color: transparent; }
.footer-social .icon-content a i { position: relative; z-index: 1; font-size: 1.4rem; }

.social-svg-logo {
    position: relative;
    z-index: 1;

    width: 32px; 
    height: auto;
    transition: all 0.3s ease-in-out;
    filter: brightness(0) invert(0.8);
}

.footer-social .icon-content a:hover .social-svg-logo {
    /* Al pasar el ratón, se vuelve blanco puro */
    filter: brightness(0) invert(1);
}

.footer-social .icon-content a .filled { position: absolute; bottom: 0; left: 0; width: 100%; height: 0; transition: all 0.3s ease-in-out; }
.footer-social .icon-content a:hover .filled { height: 100%; }

/* Colores */
.footer-social .icon-content a[data-social="university"] .filled,
.footer-social .icon-content a[data-social="university"] ~ .tooltip { background-color: #006847; }

.footer-social .icon-content a[data-social="github"] .filled,
.footer-social .icon-content a[data-social="github"] ~ .tooltip { background-color: #24262a; }

.footer-social .icon-content a[data-social="instagram"] .filled,
.footer-social .icon-content a[data-social="instagram"] ~ .tooltip {
    background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f);
}

@media (max-width: 768px) { .footer-container { flex-direction: column; text-align: center; } .footer-info p { margin: 0 auto; } }

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-info p {
        max-width: 100%;
    }
}