.ie-panel {
    display: none;
    background: #212121;
    padding: 10px 0;
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, .3);
    clear: both;
    text-align: center;
    position: relative;
    z-index: 1;
}

html.ie-10 .ie-panel,
html.lt-ie-10 .ie-panel {
    display: block;
}

.rd-navbar-default.rd-navbar-static .rd-navbar-nav>li.active>a,
.rd-navbar-transparent.rd-navbar-static .rd-navbar-nav>li.active>a,
.rd-navbar-center.rd-navbar-static .rd-navbar-nav>li.active>a,
.rd-navbar-minimal.rd-navbar-static .rd-navbar-nav>li.active>a,
.rd-navbar-default.rd-navbar-static .rd-navbar-nav>li.focus>a,
.rd-navbar-transparent.rd-navbar-static .rd-navbar-nav>li.focus>a,
.rd-navbar-center.rd-navbar-static .rd-navbar-nav>li.focus>a,
.rd-navbar-minimal.rd-navbar-static .rd-navbar-nav>li.focus>a,
.rd-navbar-default.rd-navbar-static .rd-navbar-nav>li>a:hover,
.rd-navbar-transparent.rd-navbar-static .rd-navbar-nav>li>a:hover,
.rd-navbar-center.rd-navbar-static .rd-navbar-nav>li>a:hover,
.rd-navbar-minimal.rd-navbar-static .rd-navbar-nav>li>a:hover {
    color: #660219;
}

.ModalInicio {
    z-index: 300000 !important;
}

/* Establece un ancho máximo del 90% del ancho de la ventana del navegador */
.modal-custom-width {
    max-width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding: 20px;
}

.button-default,
.button-default:focus,
.button-default:hover {
    color: #660219;
    /* Color del texto */
    background-color: #ffffff;
    /* Color de fondo */
    border: 3px solid #660219;
    /* Color del borde, asegúrate de que sea visible */
    padding: 20px 40px;
    /* Ajusta el padding */
    font-size: 20px !important;
    /* Ajusta el tamaño de la letra */
    border-radius: 5px;
    /* Bordes redondeados (opcional) */
    text-align: center !important;
    /* Texto centrado */
    display: inline-block;
    /* Comportamiento de bloque */
    transition: all 0.3s ease;
    /* Transición suave para efectos de hover */
    min-width: 200px;
    /* Ancho mínimo para el botón */
    min-height: 60px;
    /* Alto mínimo para el botón */
}

.button-default:hover {
    background-color: #f0f0f0;
    /* Cambia el color de fondo al pasar el mouse (opcional) */
    /* Asegúrate de que no haya cambios en padding o font-size aquí */
}

.button-default {
    margin-top: 40px;
    /* Ajusta este valor según sea necesario */
}

/* Contenedor para centrar los botones */
.carousel-caption {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
    width: 100%;
    /* Ocupa todo el ancho disponible */
    left: 0;
    /* Asegura que esté centrado */
    bottom: 30%;
    /* Ajusta la posición vertical si es necesario */
}

/* Asegúrate de que los botones estén alineados correctamente */
.inset-sm-left-1 {
    display: flex;
    gap: 20px;
    /* Espaciado entre botones */
    flex-wrap: wrap;
    /* Permite que los botones se ajusten en pantallas pequeñas */
}

/* Media query para pantallas medianas */
@media (max-width: 1024px) {

    .button-default,
    .button-default:focus,
    .button-default:hover {
        padding: 15px 30px;
        /* Reduce el padding */
        font-size: 18px !important;
        /* Reduce el tamaño de la letra */
    }

    .carousel-caption {
        bottom: 25%;
        /* Ajusta la posición vertical si es necesario */
    }
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {

    .button-default,
    .button-default:focus,
    .button-default:hover {
        padding: 10px 20px;
        /* Reduce el padding */
        font-size: 16px !important;
        /* Reduce el tamaño de la letra */
    }

    .carousel-caption {
        bottom: 20%;
        /* Ajusta la posición vertical si es necesario */
    }
}

/* Media query para pantallas aún más pequeñas */
@media (max-width: 480px) {

    .button-default,
    .button-default:focus,
    .button-default:hover {
        padding: 5px 10px;
        /* Reduce aún más el padding */
        font-size: 14px !important;
        /* Reduce aún más el tamaño de la letra */
        border-width: 2px;
        /* Reduce el grosor del borde */
        min-width: 150px;
        /* Ajusta el ancho mínimo */
        min-height: 50px;
        /* Ajusta el alto mínimo */
    }

    .carousel-caption {
        bottom: 10%;
        /* Ajusta la posición vertical si es necesario */
    }

    .inset-sm-left-1 {
        gap: 10px;
        /* Reduce el espaciado entre botones */
    }
}


#vph_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#vph_modal_inner {
    position: relative;
}

#vph_modal video {
    max-width: 90vw;
    max-height: 80vh;
}

#vph_close {
    position: absolute;
    top: -30px;
    right: -30px;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

/* ================================================= */
/*      INICIO: CSS PARA EL NUEVO POP-UP ASCENSO     */
/* ================================================= */
.custom-modal-overlay {
    position: fixed;
    /* Se queda fijo en la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Fondo oscuro semitransparente */
    display: none;
    /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 100000;
    /* Asegura que esté por encima de todo */
    padding: 20px;
    box-sizing: border-box;
}

.custom-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    width: 100%;
    max-width: 650px;
    /* Ancho máximo */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    box-sizing: border-box;
}

.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    line-height: 1;
}

.custom-modal-close:hover {
    color: #000;
}

.custom-modal-content .button-default {
    margin-top: 10px !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    width: 100%;
    box-sizing: border-box;
}

/* =============================================== */
/*      FIN: CSS PARA EL NUEVO POP-UP ASCENSO      */
/* =============================================== */

/* =============================================== */
/*    INICIO: CSS PARA EL BLOQUE DE DESCARGA PDF   */
/* =============================================== */
.download-box {
    border: 2px dashed #660219;
    background-color: #fef5f7;
    padding: 25px;
    margin: 30px auto;
    max-width: 90%;
    width: 1000px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.download-box h3 {
    color: #660219;
    font-weight: bold;
    margin-top: 0;
    font-size: 24px;
}

.download-box p {
    font-size: 16px;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    background-color: #660219;
    color: #ffffff !important;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
    background-color: #4c0113;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.download-btn i {
    margin-right: 10px;
}

/* =============================================== */
/*     FIN: CSS PARA EL BLOQUE DE DESCARGA PDF     */
/* =============================================== */

/* El fondo oscuro que cubre toda la página */
.custom-modal-overlay {
    position: fixed;
    /* Se queda fijo en la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Fondo negro semitransparente */
    display: none;
    /* Oculto por defecto */
    justify-content: center;
    /* Centra el contenido horizontalmente */
    align-items: center;
    /* Centra el contenido verticalmente */
    z-index: 1050;
    /* Se asegura que esté por encima de otros elementos */
    padding: 20px;
}

/* El contenedor blanco donde va el contenido (imagen, video, etc.) */
.custom-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    /* Centra el contenido interno como la imagen */
}

/* El botón de cierre (la 'X') */
.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.custom-modal-close:hover {
    color: #d9534f;
    /* Color rojo al pasar el mouse */
}