/* =========================================
   FOOTER
   ========================================= */
footer { 
    background: linear-gradient(180deg, #181818 0%, #0a0a0a 100%); 
    color: #fff; 
    padding: 5rem 1.5rem 2rem; 
    position: relative; 
    font-family: 'Source Sans 3', sans-serif;
}

/* Línea de acento superior */
footer::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; 
    height: 4px; 
    background: linear-gradient(90deg, var(--naranja), var(--amarillo), var(--naranja)); 
}

/* Grilla principal */
footer .inner { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1.2fr 1fr 1.5fr; /* Proporción balanceada: Info | Enlaces | Mapa */
    gap: 4rem; 
    align-items: start;
}

/* Columna 1: Logo y descripción */
footer .inner > div:first-child p { 
    font-size: 0.95rem; 
    color: rgba(255, 255, 255, 0.65); 
    line-height: 1.7; 
    margin-top: 1.5rem; 
    max-width: 90%;
}

/* Columna 2: Contacto */
footer h4 { 
    font-family: 'Bebas Neue', sans-serif; 
    font-size: 1.6rem; 
    color: var(--amarillo); 
    margin-bottom: 1.5rem; 
    letter-spacing: 1.5px; 
}

footer ul { 
    list-style: none; 
    padding: 0;
}

footer ul li { 
    margin-bottom: 1.2rem; 
    color: rgba(255, 255, 255, 0.65); 
    font-size: 0.95rem;
    line-height: 1.5;
}

footer ul li a { 
    color: rgba(255, 255, 255, 0.65); 
    transition: all 0.3s ease; 
    display: inline-block;
}

footer ul li a:hover { 
    color: var(--naranja-light); 
    transform: translateX(6px); 
}

/* Columna 3: Mapa */
footer iframe {
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: #222; /* Placeholder mientras carga */
}

/* Bottom / Copyright y Firma */
.footer-bottom { 
    max-width: 1200px; 
    margin: 4rem auto 0; 
    padding-top: 2rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
    text-align: center;
    font-size: 0.85rem; 
    color: rgba(255, 255, 255, 0.4); 
    letter-spacing: 0.5px; 
}

/* Efecto Firma Dev */
.alex-credit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    transition: 0.3s ease;
    margin-left: 4px;
}

.alex-credit:hover { 
    color: var(--amarillo); 
    transform: translateY(-2px); 
}

.alex-credit svg { 
    transition: 0.3s ease; 
}

.alex-credit:hover svg { 
    transform: scale(1.15) rotate(15deg); 
}

.sparkle {
    position: absolute;
    top: -4px; right: -8px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #fff, 0 0 15px var(--amarillo);
    opacity: 0;
}

.alex-credit:hover .sparkle { 
    animation: sparkleMove 0.9s ease-out infinite; 
}

@keyframes sparkleMove {
    0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translate(14px, -12px) scale(1.4); }
}

/* Responsive Mobile */
@media (max-width: 900px) {
    footer { 
        padding: 4rem 1.5rem 2rem; 
    }
    
    footer .inner { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        text-align: center; 
    }
    
    /* ACÁ ESTÁ EL CAMBIO PARA EL LOGO */
    footer .inner > div:first-child img {
        display: block;
        margin: 0 auto; /* Centra la imagen */
        max-width: 180px; /* Aumenta el tamaño máximo. Ajusta este valor si lo quieres más grande o más chico */
        width: 60%; /* Opcional: hace que escale bien en pantallas muy chicas */
    }

    footer .inner > div:first-child p { 
        margin: 1.5rem auto 0; 
    }
    
    footer ul li a:hover { 
        transform: translateY(-3px); /* En mobile queda mejor que salte hacia arriba y no a un lado */
    }
    
    .footer-bottom { 
        margin-top: 3rem; 
    }
    
    .footer-bottom span {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}