/* ============================================
   ESTILOS ESPECÍFICOS PARA DA.BLADE.PHP
   (Despoblamiento y Aglomeración)
   ============================================ */

/* Ocultar indicadores del carousel (guiones debajo de la imagen) */
#carouselExampleCaptions .carousel-indicators {
    display: none !important;
}

/* Estilos para texto sobre el banner */
.nos-banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 60px;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 10;
}

.nos-banner-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Segoe-ui-bold', sans-serif;
}

/* Banner mobile con texto */
.mobile-static-banner {
    position: relative;
}

.nos-banner-caption-mobile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 10;
}

.nos-banner-caption-mobile .nos-banner-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive para tablet */
@media (max-width: 991.98px) {
    .nos-banner-caption {
        padding: 30px 40px;
    }
    
    .nos-banner-title {
        font-size: 2.5rem;
    }
}

/* Responsive para móvil */
@media (max-width: 767.98px) {
    .nos-banner-caption {
        padding: 25px 20px;
    }
    
    .nos-banner-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
}

/* Banner 2 - Power BI en DA (mismo formato que home pero con fondo gris) */



/* Banner 2 - Power BI en home */
#banner2{
    background-color: #f2f2f2;
    color: white;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 100px;
    padding-right: 100px;
}

/* Aplicar formato arqaam.org solo en desktop para home */
@media (min-width: 577px) {
    #banner2 .powerbi-container {
        background-color: #ffffff;
        border: none;
        border-left: 5px solid #8C1F40;
        border-bottom: 5px solid #8C1F40;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
        padding: 35px;
        margin: 2px auto;
        max-width: 92%;
    }
    
    #banner2 .powerbi-iframe-wrapper {
        background-color: #f8f9fa;
        border-radius: 8px;
        border: none;
        margin-top: 3px;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    }
}

#banner2 h1{
    padding-bottom: 40px;
}

/* Estilos responsive para #banner2 - Tablet */
@media (max-width: 991.98px) {
    #banner2 {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    #banner2 .powerbi-container {
        padding: 30px;
        margin: 2px auto;
        max-width: 94%;
    }
}

/* Estilos responsive para #banner2 - Tablet y Móvil */
@media (max-width: 768px) {
    #banner2 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    #banner2 .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #banner2 .col-sm-12,
    #banner2 .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    #banner2 .powerbi-container {
        margin: 0 auto !important;
        padding: 15px 10px !important;
        border-radius: 8px !important;
        border-left: 3px solid #8C1F40 !important;
        border-bottom: 3px solid #8C1F40 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #banner2 .powerbi-iframe-wrapper {
        border-radius: 4px !important;
        margin-top: 1px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    #banner2 .powerbi-iframe-wrapper .ratio {
        width: 100% !important;
        margin: 0 !important;
    }
    
    #banner2 .powerbi-container iframe {
        width: 100% !important;
        height: 100% !important;
        min-height: 300px;
    }
    
    #banner2 h1 {
        font-size: 1.1rem;
        padding-bottom: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 576px) {
    #banner2 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    #banner2 .powerbi-container {
        margin: 0 auto !important;
        padding: 10px 5px !important;
        border-radius: 6px !important;
        border-left: 2px solid #8C1F40 !important;
        border-bottom: 2px solid #8C1F40 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #banner2 .powerbi-iframe-wrapper {
        margin-top: 1px !important;
        border-radius: 3px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    #banner2 .powerbi-container iframe {
        min-height: 250px;
    }
    
    #banner2 h1 {
        font-size: 1rem;
        padding-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }
}
/* Power BI en home (#banner2) - Formato rectangular */
#banner2 .powerbi-iframe-wrapper .ratio-16x9 {
    --bs-aspect-ratio: 30% !important;
    padding-bottom: 30% !important;
    aspect-ratio: 16 / 4.8 !important;
}

/* Ajustar altura en móvil para mejor visualización */
@media (max-width: 768px) {
    #banner2 .powerbi-iframe-wrapper .ratio-16x9 {
        --bs-aspect-ratio: 50% !important;
        padding-bottom: 50% !important;
        aspect-ratio: 16 / 8 !important;
    }
}

@media (max-width: 576px) {
    #banner2 .powerbi-iframe-wrapper .ratio-16x9 {
        --bs-aspect-ratio: 60% !important;
        padding-bottom: 60% !important;
        aspect-ratio: 16 / 9.6 !important;
    }
}

/* ============================================
   IMAGEN ESTÁTICA PARA MOBILE
   ============================================ */
/* Los estilos comunes de .mobile-static-banner y .mobile-banner-img 
   se encuentran en style.css para evitar duplicación */

/* ============================================
   CARRUSEL DE IMÁGENES POR DEPARTAMENTOS
   ============================================ */

/* Estilos para texto de la sección 2 */
.container-fluid.my-5 h1,
.container-fluid.my-5 h5 {
    font-family: 'Segoe-ui-bold', sans-serif;
}

/* Contenedor del carrusel */
.carousel-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 60px;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
    will-change: transform;
    transform: translate3d(0, 0, 0); /* Aceleración por GPU */
    backface-visibility: hidden; /* Mejora rendimiento en animaciones */
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
}

.carousel-image-container {
    width: 100%;
    height: auto;
    min-height: 400px;
    overflow: visible;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.05);
}

/* Botones de navegación del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive - siempre 1 imagen en móvil/tablet */
@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
    
    .carousel-container {
        padding: 20px 50px;
    }
    
    .carousel-image-container {
        min-height: 300px;
    }
    
    .carousel-image {
        max-height: 500px;
    }
}

