/* ============================================
   NITROAIR WOW EFFECTS - SUPER INTERACTIVO
   ============================================ */

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
/* IMPORTANTE: Contenido SIEMPRE visible por defecto */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animaciones opcionales solo si JS está cargado Y activo */
.js-loaded .reveal:not(.active) {
    opacity: 0;
    transform: translateY(50px);
}

.js-loaded .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.js-loaded .reveal-left:not(.active) {
    opacity: 0;
    transform: translateX(-100px);
}

.js-loaded .reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.js-loaded .reveal-right:not(.active) {
    opacity: 0;
    transform: translateX(100px);
}

.js-loaded .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.js-loaded .reveal-scale:not(.active) {
    opacity: 0;
    transform: scale(0.8);
}

.js-loaded .reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   PARTICLE BACKGROUND EFFECT
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 20s infinite;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* ============================================
   STATUS CARDS SUPER INTERACTIVAS
   ============================================ */
.status-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.status-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.status-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(74, 144, 226, 0.4),
        0 0 40px rgba(100, 181, 246, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.status-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(100, 181, 246, 0.8),
        transparent
    );
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.status-card:hover::after {
    transform: scaleX(1);
}

/* Animación de contador de números */
.status-value {
    position: relative;
    animation: countUp 1.5s ease-out forwards;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    60% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Pulse effect para iconos */
.status-icon {
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(100, 181, 246, 0.6);
    }
}

.status-icon i {
    display: inline-block;
    animation: iconRotate 3s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-5deg) scale(1.1);
    }
    75% {
        transform: rotate(5deg) scale(1.1);
    }
}

/* ============================================
   TOOLTIPS INTERACTIVOS
   ============================================ */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.98), rgba(45, 27, 78, 0.98));
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(100, 181, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(26, 31, 58, 0.98);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ============================================
   LOADING SKELETON ANIMADO
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(26, 31, 58, 0.4) 0%,
        rgba(74, 144, 226, 0.3) 50%,
        rgba(26, 31, 58, 0.4) 100%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   BOTONES SUPER INTERACTIVOS
   ============================================ */
.btn-wow {
    position: relative;
    overflow: hidden;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #4a90e2, #64b5f6);
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

.btn-wow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-wow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-wow:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(74, 144, 226, 0.6),
        0 0 30px rgba(100, 181, 246, 0.4);
}

.btn-wow:active {
    transform: translateY(-2px) scale(1.02);
}

/* Ripple effect */
.btn-wow .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   INFO CARDS CON FLIP EFFECT
   ============================================ */
.flip-card {
    perspective: 1000px;
    height: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.flip-card-front {
    background: linear-gradient(145deg, rgba(26, 31, 58, 0.95), rgba(45, 27, 78, 0.95));
    border: 2px solid rgba(74, 144, 226, 0.4);
}

.flip-card-back {
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.95), rgba(100, 181, 246, 0.95));
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

/* ============================================
   PROGRESS BARS ANIMADOS
   ============================================ */
.progress-container {
    width: 100%;
    height: 12px;
    background: rgba(26, 31, 58, 0.6);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #64b5f6, #4facfe);
    background-size: 200% 100%;
    border-radius: 20px;
    position: relative;
    animation: progressShine 2s ease-in-out infinite;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: progressGlide 1.5s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
}

@keyframes progressGlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* ============================================
   NOTIFICACIONES TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 300px;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.98), rgba(45, 27, 78, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 2px solid rgba(100, 181, 246, 0.4);
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 6px solid #43e97b;
}

.toast-error {
    border-left: 6px solid #ff6b81;
}

.toast-info {
    border-left: 6px solid #4facfe;
}

.toast-warning {
    border-left: 6px solid #feca57;
}

/* ============================================
   MODAL MEJORADO
   ============================================ */
.modal-wow {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    animation: modalFadeIn 0.4s ease-out;
}

.modal-wow.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content-wow {
    background: linear-gradient(145deg, rgba(10, 14, 39, 0.98), rgba(26, 31, 58, 0.98));
    border-radius: 30px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    border: 2px solid rgba(100, 181, 246, 0.4);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(74, 144, 226, 0.3);
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================================
   TABS INTERACTIVOS
   ============================================ */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
    position: relative;
}

.tab-button {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #64b5f6);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-button.active {
    color: white;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-button:hover {
    color: #64b5f6;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    background: linear-gradient(145deg, rgba(26, 31, 58, 0.8), rgba(45, 27, 78, 0.6));
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #64b5f6;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.6);
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   ANIMATED ICONS
   ============================================ */
.icon-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.icon-spin {
    animation: iconSpin 3s linear infinite;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-pulse-glow {
    animation: iconPulseGlow 2s ease-in-out infinite;
}

@keyframes iconPulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(100, 181, 246, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(100, 181, 246, 0.8));
        transform: scale(1.1);
    }
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-card {
    background: rgba(26, 31, 58, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
    background: rgba(26, 31, 58, 0.6);
    transform: translateY(-10px);
    box-shadow: 
        0 15px 50px rgba(74, 144, 226, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   TYPING ANIMATION
   ============================================ */
.typing-text {
    overflow: hidden;
    border-right: 3px solid #64b5f6;
    white-space: nowrap;
    animation: 
        typing 3s steps(40) 1s 1 normal both,
        blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .toast {
        min-width: 250px;
        bottom: 20px;
        right: 20px;
    }
    
    .modal-content-wow {
        padding: 2rem;
        width: 95%;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .tabs-container {
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .tab-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
