/* ============================================================
   assets/css/publico/index.css
   Estilos de index.php
   ============================================================ */

.carrusel-3d-container {
    perspective: 1500px;
    perspective-origin: center center;
    padding: 40px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}
.carrusel-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 520px;
    transform-style: preserve-3d;
}
.carrusel-3d .tarjeta-3d {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}
.carrusel-3d .tarjeta-3d.lado-izq {
    transform: perspective(1000px) rotateY(28deg) translateX(50px) scale(0.82);
    z-index: 1;
    opacity: 0.85;
    filter: brightness(0.85);
}
.carrusel-3d .tarjeta-3d.centro {
    transform: perspective(1000px) rotateY(0deg) translateY(-15px) scale(1);
    z-index: 3;
    opacity: 1;
    filter: brightness(1.05);
}
.carrusel-3d .tarjeta-3d.lado-der {
    transform: perspective(1000px) rotateY(-28deg) translateX(-50px) scale(0.82);
    z-index: 1;
    opacity: 0.85;
    filter: brightness(0.85);
}
.carrusel-3d .tarjeta-3d.lado-izq:hover {
    transform: perspective(1000px) rotateY(20deg) translateX(30px) scale(0.88) translateY(-10px);
    opacity: 1;
    filter: brightness(1);
    z-index: 4;
}
.carrusel-3d .tarjeta-3d.lado-der:hover {
    transform: perspective(1000px) rotateY(-20deg) translateX(-30px) scale(0.88) translateY(-10px);
    opacity: 1;
    filter: brightness(1);
    z-index: 4;
}
.carrusel-3d .tarjeta-3d.centro:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-25px) scale(1.03);
}
.tarjeta-evento-3d {
    background: linear-gradient(145deg, #131c2e, #0a0f1c);
    border: 1px solid #1e293b;
    border-radius: 20px;
    width: 340px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}
.tarjeta-evento-3d.destacada {
    width: 380px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 35px 30px;
    border: 2px solid #06b6d4;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.4), 0 0 80px rgba(6, 182, 212, 0.15), 0 25px 60px rgba(0, 0, 0, 0.7);
    background: linear-gradient(145deg, #1a2942, #0d1525);
}
.tarjeta-evento-3d .badge-evento {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.tarjeta-evento-3d .badge-evento.cancelado {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}
.tarjeta-evento-3d .badge-evento.finalizado {
    background: linear-gradient(135deg, #64748b, #334155);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
}
.tarjeta-evento-3d .badge-evento.proximo {
    background: linear-gradient(135deg, #06b6d4, #0e7490);
    color: white;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.5);
}
.tarjeta-evento-3d .badge-evento.siguiente {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}
.tarjeta-evento-3d .colegio-nombre {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 20px;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tarjeta-evento-3d.destacada .colegio-nombre {
    font-size: 1.35rem;
    min-height: 70px;
}
.tarjeta-evento-3d .logo-colegio {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3));
    transition: transform 0.4s ease;
}
.tarjeta-evento-3d.destacada .logo-colegio {
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.6));
}
.tarjeta-evento-3d:hover .logo-colegio { transform: scale(1.08); }
.tarjeta-evento-3d .ciudad {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tarjeta-evento-3d .bloque-fecha {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.tarjeta-evento-3d.destacada .bloque-fecha {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.08);
}
.tarjeta-evento-3d .bloque-fecha p {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}
.tarjeta-evento-3d .temporizador-3d {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.tarjeta-evento-3d .tiempo-caja {
    background: linear-gradient(145deg, #0a0f1c, #131c2e);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px 8px;
    min-width: 65px;
    flex: 1;
    max-width: 80px;
}
.tarjeta-evento-3d .tiempo-caja .numero {
    font-size: 1.6rem;
    font-weight: 800;
    color: #eab308;
    display: block;
    line-height: 1;
    font-family: 'Courier New', monospace;
}
.tarjeta-evento-3d .tiempo-caja .etiqueta {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}
.tarjeta-evento-3d.destacada::before {
    content: '';
    position: absolute;
    top: -2px; left: 20%; right: 20%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    border-radius: 2px;
    filter: blur(1px);
}
.tarjeta-evento-3d.vacia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    opacity: 0.5;
}
.tarjeta-evento-3d.vacia .icono-vacio { font-size: 4rem; margin-bottom: 15px; opacity: 0.4; }
.tarjeta-evento-3d.vacia p { color: #64748b; font-size: 0.85rem; }

/* RESPONSIVE CARRUSEL */
@media (max-width: 1200px) {
    .tarjeta-evento-3d { width: 300px; }
    .tarjeta-evento-3d.destacada { width: 340px; }
    .carrusel-3d .tarjeta-3d.lado-izq { transform: perspective(1000px) rotateY(24deg) translateX(30px) scale(0.8); }
    .carrusel-3d .tarjeta-3d.lado-der { transform: perspective(1000px) rotateY(-24deg) translateX(-30px) scale(0.8); }
}
@media (max-width: 900px) {
    .carrusel-3d-container { padding: 20px 10px 30px; perspective: none; }
    .carrusel-3d { flex-direction: column; gap: 20px; min-height: auto; }
    .carrusel-3d .tarjeta-3d.lado-izq,
    .carrusel-3d .tarjeta-3d.lado-der,
    .carrusel-3d .tarjeta-3d.centro {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        z-index: auto !important;
    }
    .carrusel-3d .tarjeta-3d.centro { order: 1; }
    .carrusel-3d .tarjeta-3d.lado-izq { order: 2; }
    .carrusel-3d .tarjeta-3d.lado-der { order: 3; }
    .tarjeta-evento-3d, .tarjeta-evento-3d.destacada { width: 100%; max-width: 100%; padding: 20px; }
    .tarjeta-evento-3d .logo-colegio,
    .tarjeta-evento-3d.destacada .logo-colegio { width: 90px; height: 90px; }
    .tarjeta-evento-3d .colegio-nombre,
    .tarjeta-evento-3d.destacada .colegio-nombre { font-size: 1rem; min-height: auto; }
    .tarjeta-evento-3d .tiempo-caja { min-width: auto; padding: 8px 5px; }
    .tarjeta-evento-3d .tiempo-caja .numero { font-size: 1.3rem; }
}

/* === Estilos que estaban en línea (style="...") ===
   La clase se repite para igualar la especificidad del atributo style original. */
.ux-d96448.ux-d96448.ux-d96448 {
    font-size: 80px;
    margin-bottom: 20px;
}
.ux-d606bc.ux-d606bc.ux-d606bc {
    font-size: 100px;
    margin-bottom: 20px;
}
.ux-09b5f8.ux-09b5f8.ux-09b5f8 {
    margin-top: 50px;
}
.ux-2e3695.ux-2e3695.ux-2e3695 {
    color: var(--color-acento);
    font-size: 1.6rem;
}

/* === Estilos que estaban en línea dentro del JavaScript === */
.ux-8ec5b3.ux-8ec5b3.ux-8ec5b3 {
    color: #06b6d4;
    font-weight: bold;
    grid-column: 1/-1;
    text-align: center;
}

.countdown-iniciado.countdown-iniciado.countdown-iniciado { color: #06b6d4; font-weight: bold; grid-column: 1/-1; text-align: center; }

/* Transmisión en vivo / votación del público */
.banda-vivo { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 12px 16px; background: #0b1120; border-bottom: 1px solid rgba(148, 163, 184, 0.15); }
.banda-vivo a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 0.95rem; }
.banda-vivo-tv { background: #dc2626; color: #fff; }
.banda-vivo-tv .punto { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: banda-vivo-latido 1.2s infinite; }
.banda-vivo-voto { background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; }
@keyframes banda-vivo-latido { 50% { opacity: 0.25; } }
@media (max-width: 480px) { .banda-vivo a { width: 100%; justify-content: center; } }
