/* ==========================================================================
   EducaIA - Hoja de Estilos Oficial: Portal de Eventos & Extensión Académica
   Universidad Técnica de Machala (UTMACH) - Posgrado Oficial
   ========================================================================== */

/* Hero Banner para la sección de Eventos */
.events-hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.12) 0%, rgba(6, 14, 38, 0) 60%),
                radial-gradient(circle at 15% 80%, rgba(30, 58, 138, 0.25) 0%, rgba(6, 14, 38, 0) 50%),
                var(--color-navy-section);
    padding: 38px 0 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.events-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 18px;
}

.events-breadcrumbs a {
    color: #38BDF8;
    text-decoration: none;
    transition: color 0.2s;
}

.events-breadcrumbs a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.events-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--color-cyan);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.events-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 14px;
}

.events-hero-desc {
    font-size: 1.05rem;
    color: #CBD5E1;
    max-width: 760px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Tira de Métricas / Contadores */
.events-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.event-stat-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s, border-color 0.25s;
}

.event-stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.35);
}

.event-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 210, 255, 0.12);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.event-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
}

.event-stat-label {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 2px;
}

/* ==========================================================================
   Barra de Filtros y Búsqueda en Vivo
   ========================================================================== */
.events-toolbar-section {
    background: #0B192C;
    padding: 24px 0;
    position: sticky;
    top: 72px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.events-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.events-filter-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-pill-btn.active {
    background: linear-gradient(90deg, var(--color-blue), #0284C7);
    color: #FFFFFF;
    border-color: var(--color-cyan);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.35);
}

.pill-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.74rem;
    font-weight: 700;
}

.filter-pill-btn.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Indicador pulsante de evento En Vivo */
.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
    animation: livePulseAnim 1.6s infinite;
}

@keyframes livePulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.events-search-box {
    position: relative;
    min-width: 280px;
    max-width: 380px;
    flex-grow: 1;
}

.events-search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 10px 40px 10px 42px;
    color: #FFFFFF;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
}

.events-search-box input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-cyan);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
}

.events-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.9rem;
    pointer-events: none;
}

.events-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    display: none;
}

.events-search-clear:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   Catálogo de Eventos (Grid)
   ========================================================================== */
.events-catalog-section {
    background: #060E26;
    padding: 36px 0 80px;
    min-height: 500px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 36px;
    justify-content: center;
}

.event-card-item {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    backdrop-filter: blur(14px);
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
}

.event-card-item:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.18), 0 25px 60px rgba(0, 0, 0, 0.55);
}

/* Imagen del Evento - Formato Amplio y Optimizado para Flyers */
.event-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 290px;
    max-height: 520px;
    overflow: hidden;
    background: #0A132C;
}

.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.45s ease;
}

.event-card-item:hover .event-card-media img {
    transform: scale(1.04);
}

.event-media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 14, 38, 0.15) 0%, rgba(6, 14, 38, 0.82) 100%);
    pointer-events: none;
}

/* Estilos de la Tira de Estadísticas Reorganizada al Fondo */
.events-stats-bottom-wrapper {
    margin-top: 55px;
    padding-top: 38px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.events-stats-bottom-header {
    text-align: center;
    margin-bottom: 22px;
}

.events-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.28);
    color: var(--color-cyan);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.events-stats-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 8px 0 0;
}

/* Badges sobre la imagen */
.event-badge-overlay-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.event-cat-badge {
    background: rgba(11, 25, 44, 0.85);
    backdrop-filter: blur(6px);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 210, 255, 0.3);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

.event-status-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.event-status-badge.status-en_vivo {
    background: rgba(239, 68, 68, 0.9);
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
}

.event-status-badge.status-proximo {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.event-status-badge.status-finalizado {
    background: rgba(100, 116, 139, 0.35);
    color: #CBD5E1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Cuerpo de la Tarjeta */
.event-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-framework-tag {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-desc {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fila de Metadatos */
.event-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: #CBD5E1;
}

.event-meta-item i {
    width: 18px;
    color: var(--color-gold);
    font-size: 0.95rem;
    text-align: center;
    flex-shrink: 0;
}

/* Pie de Tarjeta y Botones de Acción */
.event-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-action-main-btn {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.event-action-main-btn.btn-gold {
    background: linear-gradient(135deg, #FFB703 0%, #F59E0B 100%);
    color: #060E26;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.event-action-main-btn.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
}

.event-action-main-btn.btn-live {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    animation: livePulseGlow 2s infinite;
}

@keyframes livePulseGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(239, 68, 68, 0.7); }
}

.event-action-main-btn.btn-disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    cursor: default;
}

.event-secondary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-sub-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.event-sub-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Estado Vacío de Búsqueda */
.events-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: none;
}

.events-empty-state i {
    font-size: 3rem;
    color: #64748B;
    margin-bottom: 16px;
}

.events-empty-state h3 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.events-empty-state p {
    color: #94A3B8;
    font-size: 0.92rem;
    max-width: 480px;
    margin: 0 auto 20px;
}

/* ==========================================================================
   Sección CTA Institucional: Proponer Evento / Colaboración
   ========================================================================== */
.events-propose-cta {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(11, 25, 44, 0.7) 100%);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: var(--radius-xl);
    padding: 45px 50px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.events-propose-info h3 {
    font-size: 1.6rem;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.events-propose-info p {
    color: #CBD5E1;
    font-size: 0.95rem;
    max-width: 650px;
    line-height: 1.55;
}

/* Toast de notificación rápida */
.event-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0B192C;
    border: 1px solid var(--color-cyan);
    color: #FFFFFF;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.event-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .events-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .events-hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .events-hero-section {
        padding: 40px 0 35px;
    }
    .events-hero-title {
        font-size: 1.85rem;
    }
    .events-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .events-search-box {
        max-width: 100%;
        min-width: 100%;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .events-stats-strip {
        grid-template-columns: 1fr;
    }
    .events-propose-cta {
        padding: 30px 24px;
    }
}

/* ==========================================================================
   Sección Destacada de Transmisión En Vivo (YouTube LIVE)
   ========================================================================== */
.events-live-broadcast-section {
    background: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.15) 0%, rgba(6, 14, 38, 0) 70%),
                radial-gradient(circle at 90% 100%, rgba(0, 210, 255, 0.1) 0%, rgba(6, 14, 38, 0) 50%),
                #081232;
    border-bottom: 1px solid rgba(239, 68, 68, 0.25);
    padding: 36px 0 44px;
    position: relative;
    overflow: hidden;
}

.events-live-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.events-live-card:hover {
    border-color: rgba(239, 68, 68, 0.6);
}

.events-live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(6, 14, 38, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 12px;
}

.live-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #FF5555;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.live-beacon-dot {
    width: 10px;
    height: 10px;
    background-color: #EF4444;
    border-radius: 50%;
    display: inline-block;
    animation: live-dot-pulse 1.6s infinite;
}

@keyframes live-dot-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.live-platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.live-platform-pill i.fa-youtube {
    color: #FF0000;
    font-size: 1.15rem;
}

/* Layout del Contenido En Vivo (Video + Info) */
.events-live-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 0;
}

@media (max-width: 980px) {
    .events-live-grid {
        grid-template-columns: 1fr;
    }
}

.events-live-video-box {
    background: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.live-video-responsive {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000000;
}

.live-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.live-preview-poster {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.live-preview-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.live-preview-poster:hover img {
    transform: scale(1.02);
    filter: brightness(1);
}

.live-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.youtube-big-play-btn {
    width: 78px;
    height: 54px;
    background: rgba(255, 0, 0, 0.95);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.55);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.live-preview-poster:hover .youtube-big-play-btn {
    transform: scale(1.12);
    background: #FF0000;
}

/* Panel Lateral Informativo del Evento en Vivo */
.events-live-info-panel {
    padding: 28px 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
    .events-live-info-panel {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.events-live-tagline {
    font-size: 0.8rem;
    color: var(--color-cyan);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.events-live-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
    margin-bottom: 12px;
}

.events-live-desc {
    font-size: 0.92rem;
    color: #CBD5E1;
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.events-live-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.86rem;
    color: #E2E8F0;
    margin-bottom: 22px;
}

.events-live-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-live-meta-item i {
    width: 18px;
    color: var(--color-cyan);
}

.events-live-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botón Principal: Mirar en YouTube */
.btn-watch-youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF0000 0%, #D32F2F 100%);
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.btn-watch-youtube:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.65);
    background: linear-gradient(135deg, #FF1A1A 0%, #B71C1C 100%);
}

.btn-watch-youtube i.fa-youtube {
    font-size: 1.4rem;
}

.btn-share-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-share-live:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

/* Botón YouTube en Tarjetas */
.btn-live-youtube {
    background: linear-gradient(135deg, #FF0000 0%, #D32F2F 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4) !important;
}

.btn-live-youtube:hover {
    box-shadow: 0 10px 24px rgba(255, 0, 0, 0.6) !important;
    transform: translateY(-2px);
}

.btn-youtube-sub {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #FCA5A5 !important;
}

.btn-youtube-sub:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #FFFFFF !important;
}

.event-sub-btn.btn-sub-yt:hover {
    color: #FF5555;
    border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   Botón de Asistencia en Vivo & Modal de Validación
   ========================================================================== */
.btn-asistencia {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
    padding: 11px 14px !important;
    border-radius: var(--radius-full) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseAttendance 2.2s infinite;
}

@keyframes pulseAttendance {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65), 0 4px 14px rgba(16, 185, 129, 0.35); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0), 0 4px 14px rgba(16, 185, 129, 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 4px 14px rgba(16, 185, 129, 0.35); }
}

.btn-asistencia:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.65) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #FFFFFF !important;
}

.btn-asistencia:active {
    transform: translateY(0);
}

.btn-checkin-link {
    background: none;
    border: none;
    color: #38BDF8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}

.btn-checkin-link:hover {
    color: #FFFFFF;
    background: rgba(56, 189, 248, 0.12);
}

/* ==========================================================================
   MODAL DE ASISTENCIA EN VIVO - OVERLAY Y CENTRADO PERFECTO
   ========================================================================== */
#attendance-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(3, 7, 18, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

#attendance-modal.open {
    display: flex !important;
}

.attendance-modal-box {
    position: relative !important;
    margin: auto !important;
    max-width: 520px !important;
    width: 100% !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-radius: 24px !important;
    padding: 36px 30px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-sizing: border-box !important;
    animation: attendanceModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes attendanceModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#attendance-modal .modal-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.15rem !important;
    transition: all 0.2s ease !important;
    z-index: 20 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

#attendance-modal .modal-close:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
    transform: rotate(90deg);
}

.attendance-icon-badge {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-size: 1.65rem;
}

.attendance-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: #0284C7;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.attendance-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px;
}

.attendance-subtitle {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px;
}

.attendance-event-pill {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


