/* ===== FOOTER SECTION ===== */
.site-footer {
    background: linear-gradient(180deg, var(--gris-texto) 0%, #1a2a33 100%);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-principal), var(--azul-claro), var(--azul-principal));
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER GRID ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    animation: fadeInUp 0.6s ease-out both;
}

.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }
.footer-col:nth-child(4) { animation-delay: 0.4s; }

/* ===== LOGO (ahora es un <a>) ===== */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover {
    opacity: 0.85;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--azul-claro);
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blanco);
}

.footer-logo .logo-text span {
    color: var(--azul-claro);
}

/* ===== DESCRIPCIÓN ===== */
.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.75;
}

/* ===== REDES SOCIALES ===== */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--azul-principal);
    border-color: var(--azul-principal);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 98, 204, 0.35);
}

/* ===== TÍTULOS DE COLUMNA ===== */
.footer-title {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--azul-claro);
    border-radius: 2px;
}

/* ===== NAVEGACIÓN / ENLACES ===== */
/*
 * Los <nav> del footer no necesitan estilo propio,
 * solo encapsulan las <ul> para semántica.
 */
.footer-col nav {
    display: contents;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.84rem;
    line-height: 1.5;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.6rem;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-links a:hover {
    color: var(--azul-claro);
    transform: translateX(4px);
}

.footer-links a:hover i {
    transform: translateX(3px);
    opacity: 1;
}

/* ===== CONTACTO (ahora dentro de <address>) ===== */
/*
 * <address> es un elemento semántico inline por defecto.
 * Lo reseteamos para que se comporte como bloque.
 */
.footer-contact {
    font-style: normal; /* <address> aplica italic por defecto */
    display: block;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact ul li {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.84rem;
    line-height: 1.55;
}

.footer-contact ul li i {
    font-size: 0.95rem;
    color: var(--azul-claro);
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all; /* para el email largo */
}

.footer-contact ul li a:hover {
    color: var(--azul-claro);
}

.footer-contact ul li strong {
    color: var(--blanco);
    font-weight: 600;
}

/* ===== COBERTURA GEOGRÁFICA ===== */
.footer-coverage {
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.coverage-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blanco);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.coverage-title i {
    color: var(--azul-claro);
    font-size: 0.85rem;
}

/* ── Badges de ciudades (ahora son <a>) ── */
.coverage-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
}

.coverage-badges a {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: background 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease;
    display: inline-block;
    line-height: 1.4;
}

.coverage-badges a:hover {
    background: var(--azul-principal);
    color: var(--blanco);
    border-color: var(--azul-principal);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 98, 204, 0.25);
}

/* ── Subsección: Barrios de Montevideo ── */
.coverage-title-barrios {
    margin-top: 1.25rem;
    opacity: 0.8;
    font-size: 0.78rem;
}

.coverage-badges-barrios {
    gap: 0.45rem;
}

.coverage-badges-barrios a {
    font-size: 0.7rem;
    padding: 0.22rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.5);
}

.coverage-badges-barrios a:hover {
    background: rgba(0, 98, 204, 0.7);
    color: var(--blanco);
    border-color: rgba(0, 98, 204, 0.7);
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    font-size: 0.75rem;
}

.copyright p {
    margin: 0;
    opacity: 0.6;
    line-height: 1.6;
}

/* Legal nav */
.footer-legal {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.72rem;
}

.footer-legal a:hover {
    color: var(--azul-claro);
}

.footer-legal .separator {
    opacity: 0.35;
    font-size: 0.65rem;
}

/* Dev credit */
.footer-dev p {
    margin: 0;
    opacity: 0.5;
    font-size: 0.72rem;
}

.footer-dev a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-dev a:hover {
    color: var(--azul-claro);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .footer-container {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
        text-align: center;
    }

    .footer-logo a {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-description {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Cobertura centrada */
    .coverage-title,
    .coverage-title-barrios {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .coverage-badges,
    .coverage-badges-barrios {
        justify-content: center;
    }

    /* Bottom centrado */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .copyright p {
        text-align: center;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .footer-container {
        padding: 2rem 1rem 1rem;
    }

    .footer-logo .logo-text {
        font-size: 1.25rem;
    }

    .footer-title {
        font-size: 0.95rem;
    }

    .footer-links a,
    .footer-contact ul li,
    .footer-description {
        font-size: 0.8rem;
    }

    .coverage-badges a {
        font-size: 0.68rem;
        padding: 0.2rem 0.55rem;
    }

    .coverage-badges-barrios a {
        font-size: 0.64rem;
        padding: 0.18rem 0.5rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal .separator {
        display: none;
    }

    .footer-contact ul li a {
        word-break: break-word;
    }
}