
/* ==========================================
   SECCIÓN WEBINARS - ESIM
   ========================================== */

.actividades-webinar {
    position: relative;
    background-color: #e80b55;
    padding-bottom: 100px !important;
    overflow: hidden;
}

/* ==========================================
   TÍTULO PRINCIPAL
   ========================================== */

.actividades-webinar h2.section-tittle {
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 30px;
}

/* ==========================================
   TARJETAS DE WEBINARS
   ========================================== */

.carrusel-webinar .card-webinar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

/* Imágenes y videos */
.carrusel-webinar .card-webinar img,
.carrusel-webinar .card-webinar video.video-webinar {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* ==========================================
   TÍTULO Y ENLACES A YOUTUBE
   ========================================== */

/* Título dentro de las tarjetas */
.carrusel-webinar .titulo-webinar {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2b4bda;
}

/* Enlace: Ver transmisión aquí */
.carrusel-webinar .titulo-webinar a {
    color: #2b4bda;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Efecto al pasar el mouse */
.carrusel-webinar .titulo-webinar a:hover {
    color: #e80b55;
    text-decoration: underline;
}

/* Accesibilidad con teclado */
.carrusel-webinar .titulo-webinar a:focus-visible {
    outline: 2px solid #e80b55;
    outline-offset: 4px;
    border-radius: 3px;
}

/* Descripción y fecha */
.carrusel-webinar .card-webinar .descripcion {
    font-size: 14px;
    color: #444444;
    padding-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ==========================================
   CARRUSEL OWL CAROUSEL
   ========================================== */

.carrusel-webinar.owl-carousel .owl-item {
    padding: 6px !important;
    box-sizing: border-box;
}

/* ==========================================
   LIGHTBOX - WEBINARS
   ========================================== */

/* Fondo oscuro */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 50px;
    box-sizing: border-box;
}

/* Contenedor de la imagen */
.lightbox-img-container {
    position: relative;
    display: inline-block;
}

/* Imagen del lightbox */
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    object-fit: contain;
}

/* Botón cerrar */
.close-lightbox {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 12px;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    transition: background-color 0.3s;
}

.close-lightbox:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ==========================================
   TARJETA PRÓXIMAMENTE
   ========================================== */

.carrusel-webinar .card-webinar.card-proximamente {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    text-align: center;
    padding: 22px 18px;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

/* Ícono animado */
.carrusel-webinar .icono-prox {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
    animation: flotando-webinar 2.2s ease-in-out infinite;
}

/* Título de próximamente */
.carrusel-webinar .titulo-prox {
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 8px;
    animation: respiracion-webinar 2.3s ease-in-out infinite;
}

/* Descripción */
.carrusel-webinar .descripcion-prox {
    opacity: 0.95;
    max-width: 520px;
    margin: 0 auto;
}

/* Puntitos animados */
.carrusel-webinar .puntos::after {
    content: "";
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: puntos-webinar 1.2s steps(4, end) infinite;
}

/* ==========================================
   ANIMACIONES
   ========================================== */

@keyframes puntos-webinar {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
    100% { content: ""; }
}

@keyframes respiracion-webinar {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.02);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.75;
    }
}

@keyframes flotando-webinar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Accesibilidad: reducir animaciones */
@media (prefers-reduced-motion: reduce) {
    .carrusel-webinar .icono-prox,
    .carrusel-webinar .titulo-prox,
    .carrusel-webinar .puntos::after {
        animation: none;
    }

    .carrusel-webinar .puntos::after {
        content: "...";
    }
}

/* ==========================================
   OLA INFERIOR - WEBINARS
   ========================================== */

.actividades-webinar .wave--bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

/* SVG de la ola */
.actividades-webinar .wave--bottom svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Color de la ola */
.actividades-webinar .wave--bottom path {
    fill: #ffffff;
}

/* ==========================================
   RESPONSIVE - TABLETS
   ========================================== */

@media (max-width: 991px) {

    .actividades-webinar h2.section-tittle {
        font-size: 30px;
    }
}

/* ==========================================
   RESPONSIVE - CELULARES
   ========================================== */

@media (max-width: 767px) {

    .actividades-webinar {
        padding-bottom: 75px !important;
    }

    .actividades-webinar .wave--bottom {
        height: 75px;
    }
}

/* Celulares pequeños */
@media (max-width: 576px) {

    .actividades-webinar h2.section-tittle {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .lightbox {
        padding: 15px !important;
    }

    .lightbox-img {
        max-width: 100%;
        max-height: 70vh;
    }

    .close-lightbox {
        font-size: 1.8rem;
        top: 8px;
        right: 12px;
        padding: 4px 10px;
    }
}
