/* ============================================
   ESTILOS ESPECÍFICOS PARA HOME.BLADE.PHP
   ============================================ */

/* Estilos para tarjetas de home */
.card{
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

/* Asegurar que las imágenes de las cards mantengan sus proporciones naturales */
#tarj .card-img-top {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    max-height: 300px;
    aspect-ratio: auto;
}


#tarj{
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 13%;
    padding-right: 13%;
}
#tarj .card{
    margin-left: 5%;
    margin-right: 5%;
}
#tarj .btn-primary{
    background-color: #F40055;
    color: white;
    border: 2px solid #F40055;
    border-radius: 5px;
}

/* Hacer que las cards tengan la misma altura en MD, LG y XL */
@media (min-width: 768px) {
    #tarj .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    #tarj .row > [class*="col-md"],
    #tarj .row > [class*="col-lg"],
    #tarj .row > [class*="col-xl"] {
        display: flex;
        flex-direction: column;
    }
    
    #tarj .card {
        display: flex;
        flex-direction: column;
        height: 100%;
        margin-left: 5%;
        margin-right: 5%;
    }
    
    #tarj .card-body {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    #tarj .card-body .btn-primary {
        margin-top: auto;
    }
}


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

/* Botones del carrusel en home */
#carouselExampleCaptions .btn-primary{
    background-color: #F40055;
    color: white;
    border: 2px solid #F40055;
    border-radius: 5px;
}

#banner1 .btn-primary{
    background-color: #F40055;
    color: white;
    border: 2px solid #F40055;
    border-radius: 5px;
}

/* Estilos para el contenedor #informa con imagen de fondo */
#informa {
    background-image: url('/images/home-ban2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    width: 100%;
    color: white;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Mejorar centrado del formulario en lg, xl y md */
@media (min-width: 768px) {
    /* Centrar el contenedor del formulario */
    #informa .row.g-3 {
        max-width: 1050px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 992px) {
    /* Para pantallas grandes (lg y xl) - mejor centrado */
    #informa .row.g-3 {
        max-width: 1150px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Ajustar columnas vacías para mejor centrado simétrico */
    #informa .col-md-1,
    #informa .col-xl-1,
    #informa .col-lg-1 {
        flex: 0 0 2.5%;
        max-width: 2.5%;
    }
    
    #informa .col-md-2 {
        flex: 0 0 5%;
        max-width: 5%;
    }
    
    /* Asegurar que los campos de selección tengan un ancho consistente */
    #informa .col-md-3,
    #informa .col-xl-3,
    #informa .col-lg-3 {
        flex: 0 0 28%;
        max-width: 28%;
    }
}

/* Overlay oscuro para mejorar legibilidad del texto */
#informa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Contenido sobre el overlay */
#informa > .row {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Centrar y dar formato a los títulos */
#informa h3 {
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
}

#informa h5 {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    width: 100%;
}

#info h4{
    margin-top: 20px;
    padding-bottom: 20px;
}

/* Estilos para los campos de selección en #informa */
#informa .form-label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#informa .form-select {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 1rem;
    color: #212529;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px 12px;
    padding-left: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#informa .form-select:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

#informa .form-select:focus {
    background-color: #ffffff;
    border-color: #F40055;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(244, 0, 85, 0.25);
}

#informa .form-select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Ajustar el contenedor de los campos de selección */
#info .row.g-3 {
    margin-top: 20px;
    margin-bottom: 20px;
}

#info .col-md-4 {
    margin-bottom: 10px;
}

/* Estilos adicionales para #informa - mantener compatibilidad */
#informa.container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevenir overflow en las filas y columnas de #informa */
#informa .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-x: hidden;
}

#informa .row > * {
    padding-left: calc(var(--bs-gutter-x, 1rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1rem) * 0.5);
    max-width: 100%;
}

/* Asegurar que las columnas no excedan el ancho */
#informa .col-lg-8,
#informa .col-lg-4,
#informa .col-md-12,
#informa .col-md-1,
#informa .col-md-2,
#informa .col-md-3,
#informa .col-sm-6 {
    max-width: 100%;
    overflow-x: hidden;
}

/* Controlar la imagen en la columna derecha */
#informa .carousel-inner,
#informa .carousel-item,
#informa .carousel-item img {
    max-width: 100%;
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

/* Estilos responsive para #informa - Móvil */
@media (max-width: 768px) {
    #informa {
        padding: 40px 15px;
        min-height: 400px;
    }
    
    #informa h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    #informa h5 {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    #informa .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    #informa .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    #informa .col-md-1,
    #informa .col-md-2,
    #informa .col-xl-1,
    #informa .col-lg-1 {
        display: none;
    }
    
    #informa .col-md-3,
    #informa .col-xl-3,
    #informa .col-lg-3 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    #informa {
        padding: 30px 10px;
        min-height: 350px;
    }
    
    #informa h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    #informa h5 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    #informa .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    #informa .col-md-3,
    #informa .col-xl-3,
    #informa .col-lg-3 {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 12px;
    }
}

/* Estilos para el buscador de infografías */
#btnBuscar {
    background-color: #CD0F4F;
    border-color: #CD0F4F;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: none;
    transition: all 0.3s ease;
}

#btnBuscar:hover {
    background-color: #a00d3f;
    border-color: #a00d3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 15, 79, 0.3);
}

#btnNotaTecnica {
    background-color: #8C1F40;
    border-color: #8C1F40;
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: none;
    transition: all 0.3s ease;
}

#btnNotaTecnica:hover {
    background-color: #6b162f;
    border-color: #6b162f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(140, 31, 64, 0.3);
    color: white;
}

#btnNotaTecnica:active {
    background-color: #5a1226;
    border-color: #5a1226;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(140, 31, 64, 0.3);
}

/* Estilos para el buscador de infografías versión 2 (dentro de #informa) */
#informa #btnBuscar2 {
    background-color: #CD0F4F;
    border-color: #CD0F4F;
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: none;
    transition: all 0.3s ease;
}

#informa #btnBuscar2:hover {
    background-color: #a00d3f;
    border-color: #a00d3f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 15, 79, 0.3);
}

#informa #btnBuscar2:active {
    background-color: #8b0a35;
    border-color: #8b0a35;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(205, 15, 79, 0.3);
}

#informa #btnBuscar2Link {
    background-color: #8C1F40;
    border-color: #8C1F40;
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: none;
    transition: all 0.3s ease;
}

#informa #btnBuscar2Link:hover {
    background-color: #6b162f;
    border-color: #6b162f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(140, 31, 64, 0.3);
}

#informa #btnBuscar2Link:active {
    background-color: #5a1226;
    border-color: #5a1226;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(140, 31, 64, 0.3);
}

/* Estilos para el modal de resultado de búsqueda */
#modalResultadoBusqueda .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#modalResultadoBusqueda .modal-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px 25px;
}

#modalResultadoBusqueda .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

#modalResultadoBusqueda .modal-body {
    padding: 25px;
    background-color: #f8f9fa;
    min-height: 150px;
}

.resultado-busqueda-modal {
    color: #333;
}

.resultado-busqueda-modal p {
    margin-bottom: 15px;
}

.resultado-busqueda-modal hr {
    border-color: #CD0F4F;
    opacity: 0.3;
    margin: 20px 0;
}

#modalResultadoBusqueda .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px 25px;
    background-color: #ffffff;
}

#modalResultadoBusqueda .btn-primary {
    background-color: #CD0F4F;
    border-color: #CD0F4F;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

#modalResultadoBusqueda .btn-primary:hover {
    background-color: #a00d3f;
    border-color: #a00d3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 15, 79, 0.3);
}

#modalResultadoBusqueda .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 10px 25px;
}

#modalResultadoBusqueda .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Animación de entrada del modal */
#modalResultadoBusqueda.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

#modalResultadoBusqueda.modal.show .modal-dialog {
    transform: none;
}

/* Animación para el resultado */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para los selectores */
#departamento:disabled,
#provincia:disabled,
#distrito:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

#departamento:not(:disabled),
#provincia:not(:disabled),
#distrito:not(:disabled) {
    cursor: pointer;
}

/* Estilos responsive para el buscador */
@media (max-width: 768px) {
    #btnBuscar {
        width: 100%;
        padding: 12px;
    }
    
    #btnNotaTecnica {
        width: 100%;
        padding: 12px;
    }
    
    #informa #btnBuscar2 {
        width: 100%;
        padding: 12px;
    }
    
    #informa #btnBuscar2Link {
        width: 100%;
        padding: 12px;
    }
    
    #informa2 #btnBuscar2 {
        width: 100%;
        padding: 12px;
    }
    
    #resultadoBusqueda {
        margin-top: 15px;
    }
    
    /* Ajustes responsivos para campos de selección en #info */
    #info .form-select {
        padding: 8px 10px;
        padding-left: 35px;
        font-size: 0.9rem;
    }
    
    #info .form-label {
        font-size: 0.9rem;
    }
    
    #info .col-md-4 {
        margin-bottom: 20px;
    }
}

/* Estilos responsive para #banner1 */
@media (max-width: 768px) {
    #banner1 {
        min-height: 250px;
    }
    
    #banner1 .carousel-item img {
        min-height: 250px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    #banner1 {
        min-height: 200px;
    }
    
    #banner1 .carousel-item img {
        min-height: 200px;
    }
    
    #btnNotaTecnica {
        width: 100%;
        padding: 12px;
        font-size: 1.05rem;
    }
    
    #btnBuscar {
        font-size: 1.05rem;
    }
    
    #informa #btnBuscar2 {
        width: 100%;
        padding: 12px;
        font-size: 1.05rem;
    }
    
    #informa #btnBuscar2Link {
        width: 100%;
        padding: 12px;
        font-size: 1.05rem;
    }
}

/* ============================================
   ESTILOS PARA #informa2 (Buscador versión 2)
   ============================================ */

/* Estilos para el contenedor #informa2 con imagen de fondo */
#informa2 {
    background-image: url('/images/home-ban2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    width: 100%;
    color: white;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Mejorar centrado del formulario en lg, xl y md */
@media (min-width: 768px) {
    /* Centrar el contenedor del formulario */
    #informa2 .row.g-3 {
        max-width: 1050px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 992px) {
    /* Para pantallas grandes (lg y xl) - mejor centrado */
    #informa2 .row.g-3 {
        max-width: 1150px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Ajustar columnas vacías para mejor centrado simétrico */
    #informa2 .col-md-1,
    #informa2 .col-xl-1,
    #informa2 .col-lg-1 {
        flex: 0 0 2.5%;
        max-width: 2.5%;
    }
    
    #informa2 .col-md-2 {
        flex: 0 0 5%;
        max-width: 5%;
    }
    
    /* Asegurar que los campos de selección tengan un ancho consistente */
    #informa2 .col-md-3,
    #informa2 .col-xl-3,
    #informa2 .col-lg-3 {
        flex: 0 0 28%;
        max-width: 28%;
    }
}

/* Overlay oscuro para mejorar legibilidad del texto */
#informa2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Contenido sobre el overlay */
#informa2 > .row {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Centrar y dar formato a los títulos */
#informa2 h3 {
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
}

#informa2 h5 {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    width: 100%;
}

/* Estilos para los campos de selección en #informa2 */
#informa2 .form-label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#informa2 .form-select {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 1rem;
    color: #212529;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px 12px;
    padding-left: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#informa2 .form-select:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

#informa2 .form-select:focus {
    background-color: #ffffff;
    border-color: #F40055;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(244, 0, 85, 0.25);
}

#informa2 .form-select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Estilos adicionales para #informa2 - mantener compatibilidad */
#informa2.container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevenir overflow en las filas y columnas de #informa2 */
#informa2 .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-x: hidden;
}

#informa2 .row > * {
    padding-left: calc(var(--bs-gutter-x, 1rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1rem) * 0.5);
    max-width: 100%;
}

/* Asegurar que las columnas no excedan el ancho */
#informa2 .col-lg-8,
#informa2 .col-lg-4,
#informa2 .col-md-12,
#informa2 .col-md-1,
#informa2 .col-md-2,
#informa2 .col-md-3,
#informa2 .col-sm-6 {
    max-width: 100%;
    overflow-x: hidden;
}

/* Estilos responsive para #informa2 - Móvil */
@media (max-width: 768px) {
    #informa2 {
        padding: 40px 15px;
        min-height: 400px;
    }
    
    #informa2 h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    #informa2 h5 {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    #informa2 .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    #informa2 .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    #informa2 .col-md-1,
    #informa2 .col-md-2,
    #informa2 .col-xl-1,
    #informa2 .col-lg-1 {
        display: none;
    }
    
    #informa2 .col-md-3,
    #informa2 .col-xl-3,
    #informa2 .col-lg-3 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    #informa2 {
        padding: 30px 10px;
        min-height: 350px;
    }
    
    #informa2 h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    #informa2 h5 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    #informa2 .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    #informa2 .col-md-3,
    #informa2 .col-xl-3,
    #informa2 .col-lg-3 {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 12px;
    }
}

/* Estilos para el botón de búsqueda versión 2 */
#informa2 #btnBuscar2 {
    background-color: #CD0F4F;
    border-color: #CD0F4F;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: none;
    transition: all 0.3s ease;
}

#informa2 #btnBuscar2:hover {
    background-color: #a00d3f;
    border-color: #a00d3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 15, 79, 0.3);
}

/* Estilos para el enlace de Nota Técnica versión 2 */
#informa2 #btnBuscar2Link {
    background-color: #8C1F40;
    border-color: #8C1F40;
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: none;
    transition: all 0.3s ease;
}

#informa2 #btnBuscar2Link:hover {
    background-color: #6b162f;
    border-color: #6b162f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(140, 31, 64, 0.3);
    color: white;
}

#informa2 #btnBuscar2Link:active {
    background-color: #5a1226;
    border-color: #5a1226;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(140, 31, 64, 0.3);
}

/* Estilos para los selectores versión 2 */
#departamento2:disabled,
#provincia2:disabled,
#distrito2:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

#departamento2:not(:disabled),
#provincia2:not(:disabled),
#distrito2:not(:disabled) {
    cursor: pointer;
}

/* Estilos responsive para el buscador versión 2 */
@media (max-width: 768px) {
    #informa2 #btnBuscar2 {
        width: 100%;
        padding: 12px;
    }
    
    #informa2 #btnBuscar2Link {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 576px) {
    #informa2 #btnBuscar2 {
        width: 100%;
        padding: 12px;
        font-size: 1.05rem;
    }
    
    #informa2 #btnBuscar2Link {
        width: 100%;
        padding: 12px;
        font-size: 1.05rem;
    }
}

/* Estilos para el modal de resultado de búsqueda versión 2 */
#modalResultadoBusqueda2 .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#modalResultadoBusqueda2 .modal-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px 25px;
}

#modalResultadoBusqueda2 .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

#modalResultadoBusqueda2 .modal-body {
    padding: 25px;
    background-color: #f8f9fa;
    min-height: 150px;
}

#modalResultadoBusqueda2 .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px 25px;
    background-color: #ffffff;
}

#modalResultadoBusqueda2 .btn-primary {
    background-color: #CD0F4F;
    border-color: #CD0F4F;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

#modalResultadoBusqueda2 .btn-primary:hover {
    background-color: #a00d3f;
    border-color: #a00d3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 15, 79, 0.3);
}

#modalResultadoBusqueda2 .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 10px 25px;
}

#modalResultadoBusqueda2 .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Animación de entrada del modal versión 2 */
#modalResultadoBusqueda2.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

#modalResultadoBusqueda2.modal.show .modal-dialog {
    transform: none;
}

/* ============================================
   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 */
