/* Custom fixes for Alquimsur */

/* Menú desktop: márgenes del tema (69px) hacen que el último ítem quede
   comprimido o encima del botón blanco "Contacto" → texto casi invisible */
@media (min-width: 992px) {
    header.style1 #mainnav > ul.menu > li {
        margin-right: 32px;
    }

    header.style1 #mainnav > ul.menu > li:last-child {
        margin-right: 16px;
    }

    header.style1 #mainnav > ul.menu {
        margin-left: 28px;
    }

    header.style1 .header-button h3 a {
        padding: 29px 32px;
    }
}

/* Cabecera fija: fondo sólido para que los enlaces no queden sobre blanco del body */
header.style1.fixed-header {
    background-color: #131d3b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

header.style1.fixed-header #site-header {
    background-color: transparent;
}

/* Slider Text Fixes - Configuración estándar para cualquier texto */
.tp-caption.best.creative.slider2 {
    max-width: 90% !important;
}

@media (min-width: 768px) {
    .tp-caption.best.creative.slider2 {
        max-width: 1200px !important;
    }
}

/* MOBILE: Forzar ancho mínimo para que quepan varias palabras por línea */
@media (max-width: 767px) {
    .tp-caption.best.creative.slider2 {
        min-width: 85vw !important;
        max-width: 85vw !important;
        width: 85vw !important;
    }
}

/* Footer Styles - Exactamente el mismo azul del header (#223a66) */
footer.style1,
body footer.style1 {
    background-color: #223a66 !important;
    color: #fff;
    padding: 70px 0 0;
}

footer.style1 .widget h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
}

footer.style1 .widget ul li {
    margin-bottom: 10px;
}

footer.style1 .widget ul li a {
    color: #cdd5e3;
    transition: all 0.3s ease;
}

footer.style1 .widget ul li a:hover {
    color: #ffc107;
}

footer.style1 .widget ul li.active a {
    color: #ffc107;
}

footer.style1 .widget-social ul {
    margin-top: 20px;
}

footer.style1 .widget-social ul li {
    display: inline-block;
    margin-right: 15px;
}

footer.style1 .widget-social ul li a {
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

footer.style1 .widget-social ul li a:hover,
footer.style1 .widget-social ul li.active a {
    color: #ffc107;
}

footer.style1 .bottom-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 50px;
    padding: 25px 0;
}

footer.style1 .bottom-footer p {
    color: #cdd5e3;
    margin: 0;
    text-align: center;
    font-size: 14px;
}

/* Footer Widget Layout */
footer.style1 .footer .col-lg-12 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer.style1 .widget {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
}

/* Móvil: centrar todo el footer (el tema usa float + anchos fijos) */
@media (max-width: 767px) {
    footer.style1 .footer .col-lg-12 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    footer.style1 .widget,
    footer.style1 .widget-about,
    footer.style1 .widget-explore,
    footer.style1 .widget-links,
    footer.style1 .widget-blog,
    footer.style1 .widget-contact {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    footer.style1 .widget h2 {
        text-align: center;
    }

    footer.style1 .widget ul {
        text-align: center;
        padding-left: 0;
        margin-left: auto;
        margin-right: auto;
    }

    footer.style1 .widget-menu ul li a {
        margin-left: 0 !important;
    }

    footer.style1 .widget-contact .widget-social ul {
        text-align: center;
        padding-left: 0;
        margin-left: auto;
        margin-right: auto;
    }

    footer.style1 .widget-contact .widget-social ul li {
        float: none !important;
        display: inline-block;
        margin: 0 10px 8px;
    }

    footer.style1 .bottom-footer,
    footer.style1 .bottom-footer-content {
        text-align: center;
        width: 100%;
    }

    footer.style1 .bottom-footer p {
        text-align: center;
    }
}
