footer {
    background: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
}

/* ============================
   BLOQUE SUPERIOR (LOGOS)
   ============================ */
.footer-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* DESKTOP: 5 + 5 */
    justify-items: center;
    align-items: center;
    gap: 2rem 3rem;
    padding: 3rem 1rem;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}

.footer-logos img {
    max-width: 150px;
    max-height: 80px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity .2s ease;
}

.footer-logos img:hover {
    opacity: .85;
}

/* ============================
   BLOQUE INFERIOR (BARRA ROJA)
   ============================ */
.footer-info {
    background: #a31e33;
    padding: 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: white;
    gap: 1rem;
}

/* ---------- CONTACTO ---------- */
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: flex-start;
    min-width: 200px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.footer-contact span {
    color: rgba(255,255,255,0.7);
}

/* ---------- LOGO CENTRAL ---------- */
.footer-logo {
    text-align: center;
    flex: 0 0 auto;
}

.footer-logo img {
    height: 50px;
    object-fit: contain;
}

/* ---------- ENLACES LEGALES + REDES ---------- */
.footer-links-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 200px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    color: rgba(255,255,255,0.7);
}

/* ---------- REDES SOCIALES ---------- */
.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.footer-social a svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: fill 0.2s ease;
}

.footer-social a:hover svg {
    fill: #d4af37;
}

/* ============================
   TABLET
   ============================ */
@media (max-width: 1024px){

    .footer-logos{
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }

    /* fuerza centrado visual del grid */
    .footer-logos{
        justify-items: center;
    }
}

/* ============================
   MÓVIL
   ============================ */
@media (max-width: 600px) {

    .footer-logos {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 1.5rem 1rem;
    }

    .footer-contact,
    .footer-links-social,
    .footer-logo {
        width: 100%;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}