/* Footer Styles */
.footer {
    background: var(--darker-bg);
    color: var(--text-color);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    max-width: 100%;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?...') no-repeat center/cover; */
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: flex;
    align-items: flex-start;     /* mejor alineaci車n vertical */
    justify-content: space-between;
    gap: 30px;                   /* separaci車n entre columnas */
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Anchuras relativas de columnas */
.footer-logo,
.footer-links,
.footer-contact {
    flex: 1 1 260px;  /* base 260px, crecen igual */
    min-width: 220px;
}

.footer-map-col {
    flex: 2 1 520px;  /* ancho m芍s grande para el contenedor del mapa */
    min-width: 300px;
    padding: 0 10px;  /* un poco de padding para mejor espaciado */
    box-sizing: border-box;     /* evita que el padding sume ancho extra */
    max-width: 100%;
    overflow: hidden;           /* oculta cualquier desbordamiento accidental */
}

/* ----- Columna Logo + Admin + Bolet赤n ----- */
.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px 0;
}

.footer-logo .admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.footer-logo .admin-btn i { font-size: 1rem; }
.footer-logo .admin-btn:hover {
    background: var(--gold-gradient);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}
.footer-logo span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Bolet赤n dentro de .footer-logo */
.footer-logo .footer-newsletter {
    margin-top: 18px;
    max-width: 360px;
}
.footer-logo .footer-newsletter h3 {
    margin: 0 0 6px;
}
.newsletter-form {
    margin-top: 10px;
}
.newsletter-form .form-group { position: relative; margin-bottom: 15px; }
.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.newsletter-form button {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

/* ----- Enlaces r芍pidos ----- */
.quick-links-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 250px;
    margin: 15px 0 0;
}
.footer-btn {
    display: block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
}
.footer-btn:hover {
    background: var(--gold-gradient);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    border-color: transparent;
}

/* ----- Contacto ----- */
.footer-links a { color: var(--text-muted); text-decoration: none; transition: all 0.3s ease; display: flex; align-items: center; margin-bottom: 15px; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-links a i { margin-right: 8px; font-size: 0.8rem; color: var(--primary-color); }

/* ----- Mapa (2:1) ----- */
.footer-map {
    width: 100%;
    max-width: 100%;            /* no exceder el ancho disponible */
    aspect-ratio: 2 / 1;        /* relaci車n ancho:alto 2:1 */
    min-height: 280px;          /* altura m赤nima aumentada */
    height: 350px;              /* altura fija m芍s grande */
    display: block;             /* evita inline-gap y respeta ancho completo */
    box-sizing: border-box;     /* incluye bordes en el c芍lculo de ancho */
    border-radius: 8px;
    margin: 15px 0;             /* m芍s margen vertical */
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #0a0a0a;
    transition: all 0.3s ease;   /* suave transici車n al redimensionar */
}

/* Forzar Leaflet a ocupar el contenedor sin overflow */
.footer .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        gap: 24px;
    }
    .footer-map-col { order: 4; } /* se mantiene debajo en tablet/m車vil */
}
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 28px;
        align-items: center; /* centrar columnas en m車vil */
    }
    .footer-map-col { 
        padding: 0;              /* elimina padding lateral que puede causar overflow */
        max-width: 100%;
    }
    .footer-map { 
        aspect-ratio: 16 / 10; 
        min-height: 250px;
        height: auto;
        max-width: 100%;
    }

    /* Centrar enlaces r芍pidos y contacto en m車vil */
    .footer-links,
    .footer-contact {
        text-align: center;
        margin: 0 auto;      /* centrar bloque */
        width: 100%;
        max-width: 100%;
        padding-right: 8px;  /* ligero margen a la derecha */
        display: flex;       /* centrar contenido interno */
        flex-direction: column;
        align-items: center;
    }
    .quick-links-buttons {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 320px;    /* ancho agradable para botones centrados */
        display: flex;       /* asegura centrado de hijos */
        flex-direction: column;
        align-items: center;
    }
    .footer-links a {
        justify-content: center; /* los enlaces son flex, centrarlos */
    }
    .footer-links .footer-btn {
        max-width: 320px;    /* igual que el contenedor, centrado */
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .footer-contact .contact-info {
        list-style: none;
        padding-left: 0;
        margin: 0 auto;
    }
    .footer-contact .contact-info li {
        display: flex;
        justify-content: center;
    }
    .social-links {
        display: flex;
        justify-content: center;
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .footer-logo h2 { font-size: 1.5rem; }
}
