/* ==========================================================
   HACIENDA YANAY – FOOTER COMPLETO (OPTIMIZADO Y CORREGIDO)
   ========================================================== */

/* =====================================
   FIX GLOBAL — Quitar límites de ancho
   de Elementor / Hello Theme
   ===================================== */
.site-footer,
footer.site-footer,
.site-footer-inner,
footer .site-footer-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body, html,
#page,
.elementor,
.elementor-section,
.elementor-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}


/* =====================================
   FOOTER — CONTENEDOR GENERAL
   ===================================== */
.site-footer {
    background-color: #4A6C3D;
    font-family: 'Poppins', sans-serif;
    color: #d5d8c1;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* =====================================
   FOOTER HERO (BANNER SUPERIOR)
   ===================================== */
.footer-hero {
    position: relative;
    width: 100%;
    background-image: url('../images/footer-hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    padding: 100px 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    min-height: 230px;
    color: #fff;
}

.footer-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.footer-hero > * {
    position: relative;
    z-index: 2;
}

/* Contenedor interno del footer hero */
.footer-hero-inner {
    max-width: 1200px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 60px !important;
}

/* Título del footer hero */
.footer-hero-inner h2 {
    white-space: nowrap !important;
    font-size: 2.2rem !important;
    margin: 0 !important;
}

/* Botón "Reserva ahora!" */
.btn-reserva-footer {
    border: 3px solid #ffffff !important;
    border-radius: 30px !important;
    padding: 12px 32px !important;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
    transition: 0.25s ease-out;
    outline: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-reserva-footer:hover {
    background: #ffffff !important;
    color: #4A6C3D !important;
}

.btn-reserva-footer:focus,
.btn-reserva-footer:active {
    border: 3px solid #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}


/* =====================================
   CONTENIDO PRINCIPAL DEL FOOTER
   ===================================== */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-links,
.footer-info,
.footer-map {
    flex: 1;
    min-width: 260px;
}

.footer-links h3,
.footer-info h3,
.footer-map h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 20px;
}


/* =====================================
   ENLACES
   ===================================== */
.footer-links a {
    display: block;
    margin-bottom: 14px;
    font-size: 1.1rem;
    color: #d5d8c1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}


/* =====================================
   CONTACTO
   ===================================== */
.footer-info p {
    margin-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.9;
}

.footer-info i {
    margin-right: 10px;
    color: #e0e3c8;
}

/* Enlaces del footer SIEMPRE blancos */
.footer-info a,
.footer-info a:visited,
.footer-info .footer-link {
    color: #fff !important;
    text-decoration: none !important;
}

.footer-info a:hover,
.footer-info .footer-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =====================================
   ICONOS DE REDES SOCIALES
   ===================================== */
.footer-social {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.35);
}


/* =====================================
   MAPA
   ===================================== */
.footer-map iframe {
    width: 100%;
    max-width: 350px;
    height: 300px;
    border-radius: 12px;
    border: none;
}





/* =====================================
   RESPONSIVE
   ===================================== */
@media (max-width: 1100px) {
    .footer-hero-inner {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 25px !important;
    }
}

@media (max-width: 900px) {
    .footer-hero {
        padding: 70px 20px !important;
    }

    .btn-reserva-footer {
        margin-top: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-map iframe {
        max-width: 100%;
    }
    
    /* En móvil centrar los enlaces legales */
    .footer-legal-bar {
        text-align: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 500px) {
    .footer-hero {
        padding: 50px 15px !important;
    }

    .footer-hero-inner h2 {
        font-size: 1.6rem !important;
        white-space: normal !important;
    }

    .btn-reserva-footer {
        padding: 10px 25px !important;
        font-size: 1rem !important;
    }
}


/* =====================================================
   FOOTER LEGAL — ALINEADO CON COLUMNA DE ENLACES
===================================================== */

/* Contenedor wrapper para alinear con el contenido del footer */
.footer-legal-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenedor de los enlaces legales - alineado a la izquierda */
.footer-legal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    text-align: left;
}

/* Enlaces legales con el mismo estilo que los enlaces normales */
.footer-legal-bar .footer-link {
    display: inline-block;
    font-size: 1.1rem;
    color: #d5d8c1 !important;
    text-decoration: none !important;
    transition: 0.3s;
}

.footer-legal-bar .footer-link:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Separador */
.footer-legal-sep {
    color: #d5d8c1;
    margin: 0 4px;
}

/* Ajuste para el contenedor del footer para posicionamiento absoluto */
.site-footer {
    position: relative;
}



/* En pantallas medianas y móvil */
@media (max-width: 900px) {
    .footer-legal-bar {
        justify-content: center;
        text-align: center;
        padding-bottom: 20px;
    }
}

.footer-legal-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Enlaces a la izquierda */
    gap: 8px;
}

/*  Esto empuja el copyright a la derecha */
.footer-copyright-final {
    margin-left: auto;
    text-align: right;
    font-size: 1.05rem;
    color: #d5d8c1;
    white-space: nowrap;
}
