/* ============================================
   ESTILOS ESPECÍFICOS PARA PSV.BLADE.PHP
   (Población en Situación de Vulnerabilidad)
   ============================================ */

/* 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 PSV (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 */
   /* 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;
}

.nos-banner-subtitle {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'Segoe UI Historic', 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;
}

.nos-banner-caption-mobile .nos-banner-subtitle {
    font-size: 1rem;
}

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

/* 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;
    }
    
    .nos-banner-subtitle {
        font-size: 0.95rem;
    }
}

/* Estilos para secciones mejoradas de Nosotros */
#nos-seccion-nace {
    padding: 40px 0;
    margin: 0 0 30px 0;
    background-color: #ffffff;
}

.nos-texto-nace {
    color: #606060;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

.nos-texto-nace p {
    margin-bottom: 25px;
    color: #606060;
}

.nos-texto-nace p:last-child {
    margin-bottom: 0;
}
