/* --- Variables de referencia --- */
/* --azul-oscuro: #15233A; */
/* --azul-cian:   #187495; */
/* --blanco:      #FFFFFF; */

.site-footer {
    background-color: var(--azul-oscuro);
    width: 100%;
    color: #ffffff;
    padding: 4rem 0 2rem;
    font-family: 'Outfit', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.1); /* Detalle sutil arriba */
}

.site-footer .contenedor {
    max-width: 1000px; /* Ancho estándar corporativo */
    width: 90%;        /* En móviles usa el 90% */
    margin: 0 auto;    /* Centra el bloque en la pantalla */
    padding: 0;        /* Quitamos padding extra si es necesario */
}

/* --- 1. Top Section (Logo + Links) --- */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 3rem;
}

/* Logo Footer */
.logo-footer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blanco);
    text-decoration: none;
    font-style: italic;
}
.logo-footer .punto { color: var(--azul-cian); }

/* Columnas de Links */
.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-column h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.link-column nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-column a {
    color: #b0b8c6; /* Gris azulado suave para leer bien sobre oscuro */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: var(--azul-cian);
    text-decoration: underline;
}

/* --- 2. Middle Section (Barra de Acción) --- */
.footer-middle {
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Botón "Pastilla" */
.btn-footer-contact {
    display: inline-block;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px; /* Borde tipo "Pill" */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-footer-contact:hover {
    background-color: var(--blanco);
    color: var(--azul-oscuro);
    border-color: var(--blanco);
}

/* Iconos Sociales */
.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--azul-cian);
}

/* --- 3. Bottom Section (Copyright) --- */
.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
}

/* --- Responsive Móvil (Estilo Samsara Centrado) --- */
@media (max-width: 768px) {
    
    /* 1. Centrado de Textos y Columnas */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center; /* Todo centrado */
    }
    
    .footer-links {
        flex-direction: column; 
        gap: 2.5rem;
        width: 100%;
    }

    /* Asegurar que los links se vean bien centrados */
    .link-column nav {
        align-items: center; 
    }

    /* 2. Sección Media (Botón + Redes) */
    .footer-middle {
        flex-direction: column;
        gap: 1.5rem;
        border: none; /* Quitamos bordes en móvil para limpieza */
    }

    /* 3. Botón de Contacto (Grande y Azul) */
    .middle-left {
        width: 100%;
        display: flex;
        justify-content: center; /* Centrado horizontalmente */
    }
    
    .btn-footer-contact {
        /* Revertimos al estilo Desktop */
        background-color: transparent; 
        color: #ffffff;
        border: 1px solid rgba(255,255,255,0.6);
        width: auto; /* IMPORTANTE: Ya no se estira */
        padding: 0.5rem 2rem; /* Tamaño original */
        margin-bottom: 0.5rem; /* Un poco de aire antes de la pastilla social */
    }

    .btn-footer-contact:active {
        background-color: rgba(255,255,255,0.1); /* Feedback táctil sutil */
    }

    /* 4. La "Pastilla" de Redes Sociales (White Pill) */
    .social-icons {
        background-color: #ffffff;
        border-radius: 50px;
        padding: 10px 40px;
        margin: 0 auto;
        display: flex;
        gap: 2rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* Cambiamos el color de los iconos a oscuro para contraste */
    .social-icons a {
        color: #15233A !important;
        transform: scale(1.1);
    }
}