/* ================= PIE DE PÁGINA (común a portada y destinos) ================= */
.footer {
    position: relative;
    margin-top: 60px;
    padding: 48px 24px 0;
    color: #e8f5e9;
    text-align: center;
    border-radius: 40px 40px 0 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='2.2'%3E%3Ccircle cx='200' cy='200' r='150'/%3E%3Ccircle cx='200' cy='200' r='95'/%3E%3Cpath d='M200 50 L200 350 M50 200 L350 200 M94 94 L306 306 M306 94 L94 306'/%3E%3C/g%3E%3C/svg%3E") center / 400px 400px repeat,
        linear-gradient(160deg, #2e7d32 0%, #1b5e20 60%, #144a18 100%);
}

.footer-container {
    max-width: 640px;
    margin: 0 auto;
}

/* Marca */
.footer-marca h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.footer-lema {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a5d6a7;
    margin-bottom: 14px;
}

.footer-marca p:not(.footer-lema) {
    font-size: 14px;
    line-height: 1.65;
    color: #c8e6c9;
}

/* Redes sociales */
.footer-redes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.footer-redes a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-redes a:hover {
    background: #fff;
    color: #1b5e20;
    transform: translateY(-2px);
}

/* Barra inferior */
.footer-inferior {
    max-width: 1200px;
    margin: 36px auto 0;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-inferior .copyright {
    margin: 0;
    font-size: 13px;
    color: #a5d6a7;
}

.footer-arriba {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 30px;
    transition: background 0.2s ease;
}

.footer-arriba:hover {
    background: rgba(255, 255, 255, 0.22);
}

.footer a:focus-visible {
    outline: 3px solid #ffb703;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .footer {
        padding: 40px 20px 0;
        border-radius: 28px 28px 0 0;
    }

    .footer-inferior {
        justify-content: center;
    }
}

/* ================= COOKIES ================= */
/* Botones comunes del aviso y de los mapas */
.cookies-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cookies-btn.principal {
    background: #2e7d32;
    color: #fff;
    border: 2px solid #2e7d32;
}

.cookies-btn.principal:hover {
    background: #1b5e20;
    border-color: #1b5e20;
}

.cookies-btn.secundario {
    background: #fff;
    color: #1b5e20;
    border: 2px solid #2e7d32;
}

.cookies-btn.secundario:hover {
    background: #e8f5e9;
}

.cookies-btn:focus-visible,
.cookies-banner a:focus-visible,
.mapa-aviso a:focus-visible {
    outline: 3px solid #ffb703;
    outline-offset: 3px;
}

/* Aviso abajo de la pantalla */
.cookies-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 2000;
    width: calc(100% - 32px);
    max-width: 820px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #c8e6c9;
    border-top: 4px solid #2e7d32;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 47, 68, 0.25);
}

.cookies-banner[hidden] {
    display: none;
}

.cookies-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #263238;
}

.cookies-banner strong {
    color: #1b5e20;
    margin-right: 4px;
}

.cookies-banner a {
    color: #1b5e20;
    font-weight: 600;
}

.cookies-botones {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Recuadro que sustituye a cada mapa hasta que se acepta */
.mapa-aviso {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px 24px;
    text-align: center;
    background: #fff;
    border-radius: 15px;
}

.mapa-aviso > i {
    font-size: 40px;
    color: #2e7d32;
}

.mapa-aviso p {
    margin: 0;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.6;
    color: #37474f;
}

.mapa-aviso-botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.mapa-aviso a {
    font-size: 13px;
    color: #1b5e20;
}

/* Enlaces legales del pie */
.footer-legal {
    margin: 0;
    font-size: 13px;
    color: #a5d6a7;
}

.footer-legal a,
.footer-legal button {
    color: #c8e6c9;
    font: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover,
.footer-legal button:hover {
    color: #fff;
}

.footer-legal button:focus-visible {
    outline: 3px solid #ffb703;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .cookies-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        bottom: 12px;
        padding: 16px 18px;
    }

    .cookies-botones .cookies-btn {
        flex: 1;
    }
}
