/* ESTILOS MEJORADOS PARA MÓVIL */
.swal-neon-popup {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.asistencia-neon {
    width: 100% !important;
    height: 100vh;
    text-align: center;
    color: #39ff14;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    box-sizing: border-box;
}

.neon-header {
    margin-top: 10vh;
    padding: 15px;
    animation: pulse 2s infinite;
}

.asistencia-neon h1 {
    margin: 0;
    font-size: clamp(20px, 6vw, 26px);
    text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14;
    letter-spacing: 1px;
}

.seccion-title {
    margin: 10px 0 5px 0;
    font-size: clamp(22px, 7vw, 28px);
    text-shadow: 0 0 15px #00ff88;
    font-weight: bold;
}

.subtitle {
    font-size: clamp(12px, 3.5vw, 14px);
    opacity: 0.8;
    margin-top: 5px;
}

.emoji-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    margin: 20px 0;
}

.emoji-neon {
    position: absolute;
    bottom: -30px;
    font-size: 24px;
    opacity: 0;
    filter: drop-shadow(0 0 8px #39ff14) drop-shadow(0 0 12px #00ff88);
    animation: floatUp 1.4s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

.neon-footer {
    padding: 20px 15px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px 20px 0 0;
    margin-top: auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

#mensaje-progreso {
    font-weight: 500;
}

#porcentaje {
    font-weight: bold;
    text-shadow: 0 0 5px #39ff14;
}

.barra-neon {
    width: 100%;
    height: 8px;
    background: rgba(57, 255, 20, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
}

#barra-progreso {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #39ff14 0%, 
        #00ff88 50%, 
        #39ff14 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.barra-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(57, 255, 20, 0.3) 50%, 
        transparent 100%);
    animation: glowMove 2s infinite linear;
    z-index: 1;
}

.loading-text {
    margin-top: 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pulse {
    color: #00ff88;
    animation: pulseDot 1.5s infinite;
}

/* ANIMACIONES OPTIMIZADAS */
@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(-75vh) scale(1.3);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes glowMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* MEJORAS TÁCTILES PARA MÓVIL */
@media (max-height: 700px) {
    .neon-header {
        margin-top: 5vh;
    }
    
    .emoji-container {
        margin: 10px 0;
    }
}

/* PREVENIR ZOOM EN INPUTS */
.asistencia-neon {
    touch-action: pan-y;
}

/* OPTIMIZACIÓN PARA iOS */
@supports (-webkit-touch-callout: none) {
    .asistencia-neon {
        height: -webkit-fill-available;
    }
}