/* =========================================================
   banco_experiencia_page.css – Página de detalle de la experiencia
   Banco de Experiencias – ANH Portal
   ========================================================= */

:root {
    --banco-exp-white: #ffffff;
    --banco-exp-blue-primary: #0f2c45;
    --banco-exp-blue-dark: #002B46;
    --banco-exp-gray-light: #e0e0e0;
}

.banco-experiencia-richtext-light,
.banco-experiencia-richtext-light p,
.banco-experiencia-richtext-light li,
.banco-experiencia-richtext-light ul,
.banco-experiencia-richtext-light ol {
    color: var(--banco-exp-white) !important;
    font-size: 1rem;
}
.banco-experiencia-richtext-light ul,
.banco-experiencia-richtext-light ol {
    padding-left: 20px;
}
.banco-experiencia-richtext-light li {
    margin-bottom: 8px;
}
.banco-experiencia-carousel-btn {
    border: 2px solid var(--banco-exp-blue-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--banco-exp-blue-primary);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}
.banco-experiencia-carousel-btn:hover {
    background-color: var(--banco-exp-blue-primary);
    color: var(--banco-exp-white);
}
.banco-experiencia-gallery-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 0;
    scrollbar-width: none; /* Firefox */
}
.banco-experiencia-gallery-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.banco-experiencia-gallery-img {
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    width: 250px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}
.banco-experiencia-general-title {
    font-size: 5rem !important;
    font-weight: 900 !important;
    margin-bottom: 2rem !important;
    color: var(--banco-exp-white) !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: -1px !important;
    line-height: 1.1 !important;
}
.banco-experiencia-section-title {
    font-size: 4.5rem !important;
    font-weight: 900 !important;
    color: var(--banco-exp-blue-primary) !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: -1px !important;
    line-height: 1.1 !important;
}
.banco-experiencia-subtitle {
    font-size: 2.2rem !important;
    font-weight: 400 !important;
    color: var(--banco-exp-blue-dark) !important;
}
.banco-experiencia-multimedia-subtitle {
    color: var(--banco-exp-blue-primary) !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
    margin-bottom: 2rem !important;
    margin-left: 2rem !important;
    font-family: 'Montserrat', sans-serif !important;
}
.banco-experiencia-label {
    font-weight: 700 !important;
    margin-bottom: 0.2rem !important;
    color: var(--banco-exp-white) !important;
    font-size: 1.3rem !important;
    font-family: 'Montserrat', sans-serif !important;
}
.banco-experiencia-value {
    color: var(--banco-exp-gray-light) !important;
    font-size: 1.1rem !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-bottom: 1.5rem !important;
}
.banco-experiencia-impact-title {
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: var(--banco-exp-white) !important;
    font-size: 1.3rem !important;
    font-family: 'Montserrat', sans-serif !important;
}
.exp-section-white {
    position: relative;
    z-index: 1;
    background-color: var(--banco-exp-white);
    box-shadow: 0 0 0 100vmax var(--banco-exp-white);
    clip-path: inset(0 -100vmax);
    padding: 4rem 0;
}
.exp-section-blue {
    position: relative;
    z-index: 1;
    background-color: var(--banco-exp-blue-primary);
    box-shadow: 0 0 0 100vmax var(--banco-exp-blue-primary);
    clip-path: inset(0 -100vmax);
    color: var(--banco-exp-white);
    padding: 5rem 0;
}
.banco-experiencia-resumen-text {
    color: var(--banco-exp-blue-dark) !important;
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
    text-align: left !important;
    font-weight: 500 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Ajustes Mobile (mismas reglas del home) */
@media (max-width: 767.98px) {
    .banco-experiencia-general-title,
    .banco-experiencia-section-title,
    .banco-experiencia-multimedia-subtitle {
        font-size: 22px !important;
        text-align: left !important;
    }
    .banco-experiencia-subtitle {
        font-size: 18px !important;
        text-align: left !important;
    }
    .banco-experiencia-label,
    .banco-experiencia-impact-title {
        font-size: 16px !important;
        text-align: left !important;
    }
    .banco-experiencia-value,
    .banco-experiencia-resumen-text,
    .banco-experiencia-richtext-light,
    .banco-experiencia-richtext-light p,
    .banco-experiencia-richtext-light li {
        font-size: 16px !important;
        text-align: left !important;
    }
    .exp-section-white,
    .exp-section-blue {
        padding: 3rem 0 !important;
    }
}

/* =========================================================
   Interactive Lightbox Styles
   ========================================================= */

.banco-experiencia-gallery-img {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.banco-experiencia-gallery-img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    filter: brightness(1.05);
}

/* Modal and Navigation styling */
#imageViewerModal .modal-content {
    background: transparent;
    border: none;
}

#modalImage {
    transition: transform 0.3s ease;
}

/* Botón de cierre fijo en la pantalla */
.modal-close-btn {
    position: fixed !important;
    top: 25px;
    right: 25px;
    z-index: 1070;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.8rem !important;
    font-weight: 300;
    line-height: 46px;
    text-align: center;
    opacity: 0.85;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: scale(1.1);
    color: #ffffff !important;
}

/* Botones de navegación fijos a los lados de la pantalla */
.modal-nav-btn {
    position: fixed !important;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1070;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.prev {
    left: 30px;
}

.modal-nav-btn.next {
    right: 30px;
}

@media (max-width: 767.98px) {
    .modal-close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem !important;
    }
    
    .modal-nav-btn {
        width: 44px;
        height: 44px;
    }
    
    .modal-nav-btn.prev {
        left: 15px;
    }
    
    .modal-nav-btn.next {
        right: 15px;
    }
}

@media (max-width: 575.98px) {
    .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.3rem !important;
    }
    
    .modal-nav-btn {
        width: 38px;
        height: 38px;
    }
    
    .modal-nav-btn.prev {
        left: 10px;
    }
    
    .modal-nav-btn.next {
        right: 10px;
    }
}
