/* ================= ESTILOS GENERALES DEL FOOTER ================= */

/* 1. Forzar blanco en TODOS los elementos de texto dentro del footer */
.footer, 
.footer h4, 
.footer h3, 
.footer p, 
.footer a, 
.footer span, 
.footer-bottom, 
.footer-col {
    color: #ffffff !important;
}

/* Enlaces legales */
.footer-col a {
    color: #ffffff !important;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
    color: #f57c00 !important;
    padding-left: 5px;
}

.footer {
    background: linear-gradient(180deg, #0b1c2d, #081421);
    color: #ffffff; 
    padding: 4rem 2rem 1.5rem;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    z-index: 2;
}

.footer-columns {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-brand h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-logo {
    max-width: 160px;
    display: block; /* Evita espacios extra */
}

.footer-col p {
    font-size: 0.95rem;
    margin: 0.6rem 0;
    line-height: 1.6;
    color: #e0e0e0 !important;
}

/* ================= ICONOS (ADAPTADO A ICONIFY) ================= */

/* Estilos base para todos los iconos iconify en el footer */
iconify-icon {
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}

/* Iconos de Contacto (Naranjas) */
.footer-contact iconify-icon {
    margin-right: 10px;
    color: #f57c00 !important;
    font-size: 18px;
}

/* Redes Sociales */
.footer-social {
    margin-top: 1.2rem;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    color: #ffffff !important;
}

/* Iconos dentro de redes sociales (Naranjas por defecto) */
.footer-social iconify-icon {
    font-size: 20px;
    color: #f57c00 !important; /* CAMBIO CLAVE: Iconos naranjas */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover en Redes: Fondo naranja, icono blanco */
.footer-social a:hover {
    background: #f57c00;
    border-color: #f57c00;
    transform: translateY(-4px);
}

.footer-social a:hover iconify-icon {
    color: #ffffff !important;
    transform: scale(1.1);
}

/* ================= MAPA (CORREGIDO CON WIDTH 100%) ================= */
.footer-map {
    margin: 3rem auto 0;
    width: 100%;             /* ¡ESTA ES LA CLAVE QUE FALTABA! */
    max-width: 1200px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
    filter: grayscale(20%) contrast(1.1); 
}

/* ================= COPYRIGHT Y ANIMACIÓN ================= */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #cccccc !important;
    opacity: 1;
}

.reveal-footer {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease;
}

.reveal-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto;
    }
    
    /* Ajuste contacto móvil */
    .footer-contact p {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .footer-contact iconify-icon {
        margin: 0;
    }

    /* Mapa en móvil ocupa todo el ancho */
    .footer-map {
        width: 100%;
        max-width: 100%;
        margin: 2rem auto 0;
    }
}