/* ============================================ */
/* BANNER ANFECA - VERSIÓN CORREGIDA            */
/* Desktop: 1500×500 (3:1) | Mobile: cuadrado   */
/* ============================================ */

/* Banner ANFECA */
.banner-anfeca {
    width: 100%;
    position: relative;
    background: #000;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ============================================ */
/* DESKTOP BANNER (1500×500) - SOLO ESCRITORIO  */
/* ============================================ */
.desktop-banner {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    background: #000;
    display: block; /* Visible por defecto */
}

/* Contenedor principal con proporción 3:1 */
.desktop-banner .carousel {
    max-width: 1500px;
    margin: 0 auto !important;
    width: 100%;
    padding: 0 !important;
    height: 0;
    padding-bottom: 33.33% !important; /* Proporción 3:1 (500/1500) */
    position: relative;
    overflow: hidden;
    background: #000;
}

.desktop-banner .carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.desktop-banner .carousel-item {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* IMAGEN COMPLETA SIN RECORTAR */
.desktop-banner .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    background-color: #000;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* ============================================ */
/* MOBILE BANNER (CUADRADO) - SOLO MÓVIL        */
/* ============================================ */
.mobile-banner {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    background: #000;
    display: none; /* Oculto por defecto */
}

/* Contenedor cuadrado (1:1) */
.mobile-banner .carousel {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    height: 0;
    padding-bottom: 100% !important; /* Proporción 1:1 */
    position: relative;
    overflow: hidden;
    background: #000;
}

.mobile-banner .carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-banner .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-banner .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    background-color: #000;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* ============================================ */
/* CONTROLES E INDICADORES                      */
/* ============================================ */

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    z-index: 100;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8));
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 20px !important;
    left: 0;
    right: 0;
    margin: 0 auto !important;
    padding-bottom: 0 !important;
    z-index: 100;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.3);
}

/* ============================================ */
/* MEDIA QUERIES - CAMBIAR ENTRE DESKTOP/MOBILE */
/* ============================================ */

/* Para móviles y tablets (hasta 992px) */
@media (max-width: 992px) {
    /* Ocultar desktop, mostrar mobile */
    .desktop-banner {
        display: none !important;
    }
    
    .mobile-banner {
        display: block !important;
    }
    
    /* Ajustar controles para móvil */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px !important;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px !important;
    }
}

/* Para escritorio (más de 992px) */
@media (min-width: 993px) {
    /* Mostrar desktop, ocultar mobile */
    .desktop-banner {
        display: block !important;
    }
    
    .mobile-banner {
        display: none !important;
    }
}

/* Para pantallas muy grandes (más de 1500px) */
@media (min-width: 1501px) {
    .desktop-banner .carousel {
        max-width: 1500px;
    }
}

/* Para pantallas medianas (1200px - 1500px) */
@media (min-width: 1200px) and (max-width: 1500px) {
    .desktop-banner .carousel {
        max-width: 100%;
    }
}

/* Para móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators {
        bottom: 10px !important;
    }
}

/* Fade animation */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

