/**************Collage de imagenes****************************/

.collage-img {
    width: 48%;
    /* Hace que las imágenes ocupen la mitad del contenedor */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}


/**********************Fin Collage****************/


/* Estilos del botón de modo oscuro */

#darkModeToggle {
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    border-color: #000;
    transition: background 0.3s ease, transform 0.2s ease;
}


/* Efecto al hacer clic */

#darkModeToggle:active {
    transform: scale(0.9);
}


/* Modo Oscuro */

.dark-mode {
    background-color: #1a1a1a;
    color: white;
}

.dark-mode .custom-header,
.dark-mode .hero-section,
.dark-mode .hero-section-expo {
    background-color: #333;
}

.dark-mode .animate-image {
    background-color: #fff;
}

.dark-mode .clase-logo,
.dark-mode .nav-link {
    color: white;
}


/* Termina Estilos del botón de modo oscuro */

.carousel-container {
    width: 1000px;
    height: 400px;
    margin: auto;
    overflow: hidden;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.parallax-section {
    background-attachment: fixed !important;
    background-size: cover !important;
}

html,
body {
    overflow-x: hidden;
}

#home {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background: url("../assets/entrada.png") center/cover no-repeat;
}

#home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Efecto de oscurecimiento */
}

.home-text {
    position: relative;
    z-index: 2;
}

.btn-custom {
    background: #0004ff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.btn-custom:hover {
    background: #ffffff;
    color: #0004ff;
    border-color: #0004ff;
}

.hero-section {
    background-color: #f8f9fa;
    padding: 50px 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hero-section-expo {
    background-color: #f8f9fa;
    padding: 50px 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    clip-path: ellipse(80% 50%);
}

.btn-primary {
    background: linear-gradient(to right, #0036ff, #005fff);
    border: none;
}


/* Contenedor principal del carrusel */

.carousel-container {
    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%);
}

.carousel-control-prev {
    left: 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;
}

.carousel-control-next {
    right: 10px;
}


/* Estilos de la card */

.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: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 150, 255, 0.4);
}


/* Imagen de la card */

.card img {
    height: 180px;
    border-radius: 15px 15px 0 0;
}


/* Contenido interno */

.card-content {
    padding: 20px;
}


/* Fila de cards - Espaciado entre elementos */

.carousel-item .row {
    gap: 2rem;
    /* Espacio entre cards */
    padding: 0 1rem;
    justify-content: center;
    flex-wrap: nowrap;
}


/* Ajustes para el texto */

.justificado {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    text-align: justify;
}


/* Título de la card */

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}


/* Modo oscuro */

.dark-mode .card {
    background: #2d2d2d;
    color: white;
}

.dark-mode .card-content h3 {
    color: #fff;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 1rem;
    }
    .carousel-item .row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .card {
        width: 100%;
        margin: 0;
    }
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

.containerProfessor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    /* Limita el ancho del contenedor */
    margin: auto;
    /* Centra el contenedor en la pantalla */
}

.profeTitle {
    text-align: center;
    margin-bottom: 20px;
}

.cardProfessor {
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Transiciones suaves */
}


/* 🔥 Efecto hover: agrandar la tarjeta y resaltar la sombra */

.cardProfessor:hover {
    transform: scale(1.05);
    /* Hace la tarjeta un 5% más grande */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    /* Sombra más pronunciada */
}

.cardProfessor img {
    width: 100%;
    /* Ocupar el ancho completo de la tarjeta */
    height: 150px;
    /* Altura fija */
    object-fit: cover;
    display: block;
    /* Evita espacios extra alrededor de la imagen */
}

.cardProfessor h3 {
    padding: 10px;
    font-size: 18px;
    background: #f4f4f4;
}

.dark-mode .cardProfessor {
    background: #333;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}


/* Estilos para títulos en modo oscuro */

.dark-mode .cardProfessor h3 {
    background: #444;
}

.professors-section {
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}


/***************************
Estilos para el footer
****************************/

.footer {
    background: #012970;
    color: white;
    padding: 40px 0;
    font-size: 14px;
}

.container {
    width: 85%;
    margin: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-section p {
    margin-bottom: 10px;
}

.social-icons a {
    margin-right: 10px;
    color: white;
    font-size: 20px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ffcc00;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 13px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}


/***************************
Estilos para el footer arriba 
****************************/


/***************************
  Nuevos Estilos para las Cards
****************************/

.card {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 350px;
    max-height: 380px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0px 10px 12px rgba(0, 0, 0, 0.08), -4px -4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-sizing: border-box;
    padding: 10px;
}

.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-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;
}

.video-icon {
    font-size: 40px;
    color: #ffffff;
    /* Color añadido para el icono */
}

.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;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.card-des {
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    margin: 0;
    font-size: 13px;
    font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    color: #0d6efd;
    cursor: default;
}

.videoCompleto {
    background-color: #e47317;
}

.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;
}

.videoCompleto {
    background-color: #e47317;
}

.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;
}


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

.profeTitle {
    text-align: center;
    margin-bottom: 20px;
}


/***************************
Estilos para el modal que abre el video arriba
****************************/

.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;
}

.event-title1 {
    margin-left: 150px;
}

.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 {
    transition: all 0.3s ease;
    text-align: left;
}

.btn:hover {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .ingreso,
    .event-title1 {
        margin-left: 30px;
    }
}