/* ============================================= */
/* --- ESTILOS SECCIÓN WEBINAR --- */
/* ============================================= */

.webinar-container {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Altura adaptable */
    background-color: #050505;
    /* Si tienes un fondo específico para esta zona, ponlo aquí */
    background-image: url('../media/images/backgrounds/background_webinar.png'); 
    background-size: 100% 100%;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 5%;
    overflow: hidden;
}

.webinar-wrapper {
    width: 100%;
    max-width: 1200px; /* Ancho máximo para mantener la proporción de la imagen */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Separación entre el bloque de texto y la caja grande */
    z-index: 10;
}

/* --- BLOQUE SUPERIOR --- */
.webinar-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineado a la izquierda como en tu diseño */
    gap: 15px; /* Separación entre imágenes de texto */
}

/* Control de tamaños para las imágenes PNG (ajústalos si es necesario) */
.webinar-badge { height: 35px; width: auto; }
.webinar-title { height: 75px; width: auto; margin-top: 5px; }
.webinar-text { max-width: 650px; width: 100%; height: auto; margin-bottom: 10px; }
.webinar-proxima { height: 35px; width: auto; }

/* --- CAJA PROMOCIONAL INFERIOR --- */
.webinar-box-container {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda */
    margin-top: 10px;
}

.webinar-link {
    display: block;
    width: 100%;
    max-width: 1200px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efecto al pasar el mouse sobre la caja de registro */
.webinar-link:hover {
    transform: scale(1.02);
    filter: brightness(1.1) drop-shadow(0 15px 25px rgba(255, 69, 0, 0.3));
}

.webinar-main-box {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================= */
/* --- ESTADO INICIAL DE ANIMACIONES (FADE) ---  */
/* ============================================= */

#webinar-section .fade-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#webinar-section .fade-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* --- RESPONSIVO --- */
/* ============================================= */
@media (max-width: 900px) {
    .webinar-header {
        align-items: center; /* En tablets y móviles, centramos todo */
        text-align: center;
    }
    .webinar-box-container {
        justify-content: center; /* Centramos la caja promocional */
    }
    .webinar-title { height: 50px; }
    .webinar-text { max-width: 90%; }
}

@media (max-width: 500px) {
    .webinar-badge { height: 28px; }
    .webinar-title { height: 40px; }
    .webinar-proxima { height: 28px; }
}