/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
    background-color: color-mix(in srgb, var(--color-text-main), 5% transparent); /* Gris muy oscuro casi negro */
    color: var(--color-border);
    font-size: var(--text-base);
    line-height: 1.8;
}

.site-footer a {
    color: color-mix(in srgb, var(--color-border), 10% transparent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--color-white);
}

/* =====================================================
   MAIN FOOTER (Grid de 4 columnas)
   ===================================================== */
.footer-main {
    padding: 80px 0 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Columna 1: Info Corporativa */
.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 220px; /* Ajusta según el tamaño de tu logo */
    height: auto;
}

.footer-address {
    margin-bottom: 25px;
}

.footer-contact p {
    margin: 5px 0;
}

/* La línea roja debajo del correo (como en tu captura) */
.footer-email {
    padding-bottom: 20px;
    position: relative;
}

.footer-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%; /* Ajusta el ancho de la línea si lo deseas */
    height: 2px;
    background-color: var(--color-secondary);
}

/* Columnas 2, 3, 4: Widgets y Menús */
.widget-title {
    color: var(--color-white);
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    position: relative;
}

/* La línea roja debajo de los títulos de menú */
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

/* =====================================================
   BOTTOM FOOTER (Copyright & Redes)
   ===================================================== */
.footer-bottom {
    background-color: var(--color-text-main); /* Un tono más oscuro para la barra final */
    padding: 30px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* En móvil caerán en dos líneas */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright p {
    margin: 0;
    font-size: var(--text-small);
}

/* Redes Sociales */
.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--color-secondary); /* Rojo corporativo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor; /* Toma el rojo del a */
    transition: transform 0.3s ease;
}

.footer-socials a:hover svg {
    transform: translateY(-3px);
    color: var(--color-white); /* Al pasar el mouse cambian a blanco */
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .footer-grid {
        /* grid-template-columns: repeat(2, 1fr); 2 columnas en tablets */
        gap: 50px;
    }

    .footer-main{
        padding: 60px 20px;
    }

    .footer-bottom-inner{
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}