/* ============================================
   ICONICA - Main Slider Styles
   ============================================ */

/* --- Contenedor principal --- */
.main-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    width: 100%;
}

/* --- BXSlider overrides --- */
.bx-wrapper {
    max-width: none !important;
    margin: 0 !important;
    border: 0px !important;
}

.bx-wrapper .bx-viewport {
    border: none !important;
    box-shadow: none !important;
}

.slider {
    height: 100%;
}

.bxslider {
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

/* --- Cada slide --- */
.bxslider li {
    position: relative !important;      /* CLAVE: permite posicionar .content dentro del li */
    height: 600px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* --- Overlay oscuro --- */
.bxslider li .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* --- Contenedor del texto: centrado absoluto dentro del slide --- */
.bxslider li .content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    text-align: center !important;
    color: white !important;
    width: 90% !important;
    max-width: 800px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.bxslider li .content .inner {
    animation: fadeInUp 1s ease-out;
    width: 100% !important;
}

/* --- Clase .tal: alineación centrada --- */
.inner.tal {
    text-align: center;
}

/* --- Textos --- */
.bxslider li .content .text h2 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.bxslider li .content .text h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.bxslider li .content .text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

/* ============================================
   Controles de navegación (flechas)
   ============================================ */
.bx-wrapper .bx-controls-direction a {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(1, 156, 140, 0.8) !important;
    color: white !important;
    text-align: center !important;
    line-height: 50px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    display: block !important;
}

.bx-wrapper .bx-controls-direction a:hover {
    background: rgba(1, 156, 140, 1) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(1, 156, 140, 0.4) !important;
}

.bx-wrapper .bx-prev {
    left: 20px !important;
}

.bx-wrapper .bx-next {
    right: 20px !important;
}

.bx-wrapper .bx-controls-direction a i {
    font-size: 20px !important;
    line-height: 50px !important;
    display: block !important;
    text-align: center !important;
    color: white !important;
    font-weight: 900 !important;
}

/* ============================================
   Paginación (puntos)
   ============================================ */
.bx-wrapper .bx-pager {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: block !important;
}

.bx-wrapper .bx-pager .bx-pager-item {
    display: inline-block !important;
    margin: 0 5px !important;
}

.bx-wrapper .bx-pager .bx-pager-item a {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    text-indent: -9999px !important;
    transition: all 0.3s ease !important;
}

.bx-wrapper .bx-pager .bx-pager-item a.active,
.bx-wrapper .bx-pager .bx-pager-item a:hover {
    background: #019C8C !important;
}

/* ============================================
   Animación fadeInUp
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE - Tablet (≤ 768px)
   ============================================ */
@media (max-width: 768px) {

    .main-slider {
        height: 420px;
    }

    .bxslider li {
        height: 420px !important;
    }

    .bxslider li .content {
        width: 88% !important;
        padding: 0 10px !important;
    }

    .bxslider li .content .text h2 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .bxslider li .content .text h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .bxslider li .content .text p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .bx-wrapper .bx-controls-direction a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 22px !important;
    }

    .bx-wrapper .bx-prev {
        left: 10px !important;
    }

    .bx-wrapper .bx-next {
        right: 10px !important;
    }
}

/* ============================================
   RESPONSIVE - Móvil (≤ 480px)
   ============================================ */
@media (max-width: 480px) {

    .main-slider {
        height: 380px;
    }

    .bxslider li {
        height: 380px !important;
    }

    /* Centrado perfecto en móvil */
    .bxslider li .content {
        width: 86% !important;
        padding: 0 8px !important;
        text-align: center !important;
    }

    .bxslider li .content .text {
        text-align: center;
    }

    .bxslider li .content .text h2 {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
        letter-spacing: 1px;
    }

    .bxslider li .content .text h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .bxslider li .content .text p {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }

    /* Flechas más pequeñas y pegadas al borde */
    .bx-wrapper .bx-controls-direction a {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        font-size: 18px !important;
    }

    .bx-wrapper .bx-prev {
        left: 6px !important;
    }

    .bx-wrapper .bx-next {
        right: 6px !important;
    }

    /* Paginación en móvil */
    .bx-wrapper .bx-pager {
        bottom: 12px !important;
    }

    .bx-wrapper .bx-pager .bx-pager-item a {
        width: 9px !important;
        height: 9px !important;
    }
}

/* ============================================
   RESPONSIVE - Móvil muy pequeño (≤ 360px)
   ============================================ */
@media (max-width: 360px) {

    .main-slider {
        height: 360px;
    }

    .bxslider li {
        height: 360px !important;
    }

    .bxslider li .content .text h2 {
        font-size: 1.6rem;
    }

    .bxslider li .content .text h3 {
        font-size: 0.9rem;
    }

    .bxslider li .content .text p {
        font-size: 0.8rem;
    }
}
