.navbar-nav .nav-link {
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.container-fluid {
    display: flex;
    justify-content: center;
}

.navbar-centered .navbar-nav {
    margin: 0 auto;
    /* Center the navbar items */
    display: flex;
    justify-content: center;
}

.customcard {
    background: linear-gradient(217deg, rgba(226, 210, 210, 0.2), rgba(255, 0, 0, 0) 20.71%), linear-gradient(127deg, rgba(198, 201, 158, 0.2), rgba(0, 255, 0, 0) 20.71%), linear-gradient(336deg, rgba(197, 69, 230, 0.2), rgba(12, 12, 122, 0) 15.71%);
    border-radius: 30px;
    /*border: 2px solid transparent; /* Set a transparent border */
    /*border-image: linear-gradient(45deg, #44444444, #bbbbbbbb, #44444444, #bbbbbbbb) 1; /* Gradient applied to border */
    /*overflow: hidden; /* Ensures border-radius applies properly */
}


/* Default: Square aspect ratio (1:1) */

.image-container img {
    border-top-left-radius: 30px;
    border: lightgray 5px solid;
    background-clip: content-box;
    -webkit-mask-image: radial-gradient(circle, rgba(255, 255, 255, 1) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle, rgba(255, 255, 255, 1) 60%, rgba(0, 0, 0, 0) 100%);
}


/* Make it wider on larger screens */

@media (min-width: 992px) {
    .image-container {
        aspect-ratio: 16 / 9;
        /* Wider aspect ratio */
    }
}


/* Ensure 1:1 aspect ratio on medium and smaller screens */

@media (max-width: 991px) {
    .image-container {
        aspect-ratio: 1 / 1;
    }
}

.gradient-div {
    width: 100%;
    /* Ajusta según necesidad */
    height: 300px;
    /* Ajusta según necesidad */
    background: linear-gradient( to bottom, rgba(200, 200, 200, 0.3) 0%, /* 30% opacidad al inicio */
    rgba(200, 200, 200, 0.3) 10%, /* Mantiene 30% en el primer 10% */
    rgba(200, 200, 200, 0.5) 50%, /* 50% opacidad en la mitad */
    rgba(200, 200, 200, 0.3) 90%, /* Vuelve a 30% en el último 10% */
    rgba(200, 200, 200, 0.3) 100%/* Mantiene 30% hasta el final */
    );
}


/***********************************
Termina modo obscuro del dropdown menu
************************************/

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-item .row {
    gap: 2rem;
    /* Espacio entre cards */
    padding: 0 1rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.parallax-section {
    background-attachment: fixed !important;
    background-size: cover !important;
}


/* Contenedor principal del carrusel */

.carousel-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    width: 100%;
    overflow-x: auto;
    /* Permite scroll horizontal */
    padding: 20px 0;
    margin: 2rem 0;
}


/* Controles de navegación */

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}


/* Fila de cards (flexbox horizontal) */

.carousel-inner .row {
    display: flex;
    flex-wrap: nowrap;
    /* Evita saltos de línea */
    gap: 30px;
    /* Espacio entre cards */
    padding: 0 60px;
    /* Espacio lateral inicial */
    margin: 0;
}


/*********************************************/


/*Estilos para el carrusel de profes*/

.cardProfessor {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    /* Incluye el padding en el ancho y alto */
    width: 210px;
    /* Ancho fijo */
    height: 380px;
    /* Alto fijo */
}

.cardProfessor img {
    width: 100%;
    /* Ocupar el ancho completo de la tarjeta */
    height: 150px;
    /* Altura fija para la imagen */
    object-fit: cover;
    /* Ajustar la imagen sin distorsionarla */
    border-radius: 10px 10px 0 0;
    /* Bordes redondeados solo en la parte superior */
    display: block;
    /* Evitar espacios extra alrededor de la imagen */
}

.cardProfessor h3 {
    font-size: 1.25rem;
    margin: 10px 0;
    /* Espaciado entre el título y el texto */
}

.cardProfessor p {
    font-size: 1rem;
    color: black;
    /* Color de texto secundario */
    margin: 0;
    /* Eliminar el margen por defecto */
}

.cardProfessor p {
    font-size: 1rem;
    color: black;
    /* Color de texto secundario */
    margin: 0;
    /* Eliminar el margen por defecto */
}

.dark-mode .cardProfessor {
    background: #333;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.dark-mode .cardProfessor p {
    color: white;
}


/* Estilos para títulos en modo oscuro */

.dark-mode .cardProfessor h3 {
    background: #444;
}


/*Modal para la info de los profesores*/

.modal-profe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semi-transparente */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Se mantiene encima de otros elementos */
}

.modal-content-profe {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}


/* Contenido del modal */

.modal-content-profe {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


/* Botón de ver más */

.btn-modal {
    background-color: #007BFF;
    color: white;
    padding: 8px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1px;
}

.btn-modal:hover {
    background-color: #0056b3;
}

.event-title2 {
    /*Estilos de los titulos de las secciones*/
    text-align: center;
}


/* Botón de cerrar */

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end;
}

.close:hover {
    color: black;
}


/* Imagen dentro del modal */

#modalImage {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    align-self: center;
}

.card {
    width: 400px;
    /* Ancho fijo */
    min-height: 300px;
    /* Altura mínima */
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 10px;
    /* Margen adicional */
    flex: 0 0 auto;
    /* Evita que se encojan */
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.1), -4px -4px 12px rgba(0, 0, 0, 0.08);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.card-image-container {
    width: 100%;
    height: 50%;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: rgb(165, 165, 165);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    margin: 0;
    font-size: 17px;
    font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: #0d6efd;
    cursor: default;
    white-space: normal;
    /* Texto en múltiples líneas */
    overflow: visible;
    /* No ocultar el desbordamiento */
    display: block;
    /* Comportamiento normal */
}


/* .card-des {
    height: 60px;
    overflow: auto!important;
    display: block;
    text-overflow: ellipsis;
    word-wrap: break-word;
} */

.card-des {
    height: 60px;
    /* Ajusta la altura */
    overflow: auto !important;
    /* Activa el scroll si el contenido es largo */
    display: block;
    text-overflow: ellipsis;
    word-wrap: break-word;
    /* Para Firefox */
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
}


/* Para navegadores WebKit (Chrome, Edge, Safari) */

.card-des::-webkit-scrollbar {
    width: 3px;
    /* Ancho del scroll, lo hace muy delgado */
}

.card-des::-webkit-scrollbar-track {
    background: transparent;
    /* Fondo del track invisible */
}

.card-des::-webkit-scrollbar-thumb {
    background: #bbb;
    /* Color del scroll (línea delgada) */
    border-radius: 10px;
    /* Redondeado */
}

.card-des::-webkit-scrollbar-thumb:hover {
    background: #888;
    /* Color cuando pasas el mouse */
}

.card-btn {
    font-size: 15px;
    font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0d6efd;
    width: 25px;
    height: 25px;
    max-height: 25px;
    border-radius: 10px;
    overflow: hidden;
    transition: all ease-in-out 0.5s;
    gap: 1px;
    box-sizing: border-box;
    padding-left: 5px;
    margin-top: 8px;
}

.card-btn:hover {
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.06);
    width: 100%;
    border-radius: 8px;
    height: 30px;
    gap: 10px;
    padding: 0;
}

.card-btn-text {
    opacity: 0;
    font-size: 1px;
    font-weight: 500;
    transition: all ease-in-out 0.5s;
}

.card-btn:hover>.card-btn-text {
    opacity: 1;
    font-size: 15px;
}

.video-icon {
    font-size: 40px;
    color: #ffffff;
    /* Color añadido para el icono */
}


/*modal de reproduccion de video*/

.modal-v {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-v-content {
    background: #fff;
    width: 70%;
    max-width: 800px;
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.up {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

video {
    width: 100%;
    border-radius: 10px;
}

.playbar {
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    margin: 15px 0;
    cursor: pointer;
}

.bar {
    height: 100%;
    background: #0d6efd;
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}


/***************************
Estilos para el modal que abre el video arriba
****************************/


/*************
Estilos del modo obscuro para el modal de video
**************/


/*********************************************
Modal de video modo obscuro
**********************************************/

.down {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.down__icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.svg-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #0d6efd;
    transition: all 0.3s;
}

.svg-icon:hover {
    transform: scale(1.1);
}

.time {
    font-family: 'Lucida Sans', sans-serif;
    color: #0d6efd;
    font-size: 14px;
}

.pause {
    display: none;
}

.play {
    display: block;
}

.muted {
    color: #ff0000;
}


/* Estilos para pantalla completa */

:fullscreen .modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/***************************
Estilos para datos dentro del  container de Ingreso
****************************/


/* CSS Mejorado */

.ingreso {
    margin-left: 150px;
    /* Mejor que transform para mantener flujo del layout */
    padding: 20px;
    border-left: 3px solid #007bff;
}

.admission-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.list-small {
    font-size: 0.9em;
    padding-left: 1.5em;
}

.note-section {
    border-left: 3px solid #ffc107;
}

.btn-admision {
    transition: all 0.3s ease;
    text-align: left;
}

.btn-admision:hover {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .ingreso,
    .event-title1 {
        margin-left: 30px;
    }
    .dark-mode .ingreso,
    .dark-mode .event-title1 {
        border-left-color: #4d88ff;
        /* Mantener consistencia en móviles */
    }
}


/***************************
 Modo Oscuro - Sección Ingreso 
****************************/


/*Transicion*/

.note-section {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}