:root {
    --footer-green: #1f5c42;
    --footer-green-dark: #174a35;

    --footer-red: #6B1E11;
    --footer-red-dark: #8a2818;

    --footer-white: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.14);
    --footer-text-soft: rgba(255, 255, 255, 0.88);
    --footer-text-muted: rgba(255, 255, 255, 0.74);

    --footer-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --footer-radius: 14px;
}

/* FOOTER */
.site-footer {
    margin-top: 60px;
    color: var(--footer-white);
}

/* BLOQUE PRINCIPAL */
.footer-main {
    background: linear-gradient(135deg, var(--footer-green-dark) 0%, var(--footer-green) 100%);
    padding: 64px 0 38px;
    box-shadow: var(--footer-shadow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* MARCA */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo img {
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-brand-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--footer-text-soft);
    max-width: 280px;
}

/* COLUMNAS */
.footer-column h3 {
    margin: 0 0 18px;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--footer-white);
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.01em;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
}

/* LISTAS */
.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: var(--footer-text-soft);
    font-size: 0.98rem;
    line-height: 1.65;
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    transform: translateX(4px);
    color: var(--footer-white);
}

/* BOTONES DEL FOOTER */
.footer-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 125px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--footer-radius);
    color: var(--footer-white);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* FRANJA INFERIOR */
.footer-bottom {
    background: linear-gradient(90deg, var(--footer-red) 0%, var(--footer-red-dark) 100%);
    padding: 18px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-bottom-content p {
    margin: 0;
    color: var(--footer-white);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* SEPARADORES SUTILES OPCIONALES ENTRE COLUMNAS EN ESCRITORIO */
@media (min-width: 769px) {
    .footer-column {
        position: relative;
    }
}

/* RESPONSIVE FOOTER */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 28px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 48px;
    }

    .footer-main {
        padding: 45px 0 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-map-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-btn {
        width: 100%;
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .footer-column h3 {
        font-size: 1.05rem;
    }

    .footer-links a,
    .footer-contact a,
    .footer-bottom-content p,
    .footer-brand-text {
        font-size: 0.94rem;
    }
}