/* assets/css/footer.css – Versión FINAL 2025: totalmente compatible con variables.css */

.footer {
    background: #000000;                     /* Negro puro (mantenido como querías) */
    color: var(--blanco);
    padding: 80px 0 0;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

/* Línea superior dorada sutil – ahora con variable oficial */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(var(--maiz-rgb), 0.35);   /* ← #D9B97F con opacidad perfecta */
}

/* Contenedor consistente con el resto del sitio */
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

/* Grid principal */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 6rem;
    margin-bottom: 5rem;
    align-items: start;
}

/* Logo + descripción */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    text-align: center;
    align-items: center;
}

.footer-logo img {
    height: 48px;
    width: auto;
    opacity: 0.95;
    transition: opacity var(--transition);
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-description {
    font-size: 0.96rem;
    line-height: 1.62;
    opacity: 0.82;
    max-width: 420px;
    text-align: center;
}

/* Títulos de columnas */
.footer-column h5 {
    font-family: 600 1rem / 1.2 var(--font-secondary);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    color: var(--blanco);
    opacity: 0.98;
}

/* Enlaces y listas */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.9rem;
}

.footer-column ul li a,
.footer-contact p a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.96rem;
    opacity: 0.82;
    transition: all var(--transition);
}

.footer-column ul li a:hover,
.footer-contact p a:hover {
    opacity: 1;
    color: var(--maiz);
}

/* Contacto */
.footer-contact p {
    margin-bottom: 0.9rem;
    font-size: 0.96rem;
    color: var(--blanco);
    opacity: 0.82;
}

/* Bottom bar minimalista */
.footer-bottom {
    padding: 1.8rem 0;
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--blanco);
    opacity: 0.68;
    border-top: 1px solid rgba(var(--blanco-rgb), 0.1);
    background: rgba(0, 0, 0, 0.4);
}

/* ============================== */
/*          RESPONSIVE           */
/* ============================== */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3.6rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-description {
        max-width: 90%;
        margin: 0 auto;
    }

    .footer-column,
    .footer-contact {
        text-align: center;
    }

    .footer-logo img {
        height: 40px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding-top: 60px;
    }

    .footer-grid {
        gap: 3rem;
    }

    .footer-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .footer-column h5 {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        letter-spacing: 0.18em;
    }

    .footer-column ul li a,
    .footer-contact p a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding: 1.4rem 0;
        font-size: 0.76rem;
    }
}