/* ========================================
   ESTILOS GLOBALES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ========================================
   FONDO ANIMADO
   ======================================== */

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #0a0e27 0%,
        #16213e 25%,
        #1a3a52 50%,
        #0f2744 75%,
        #0a0e27 100%);
    animation: gradientShift 15s ease infinite;
    opacity: 0.8;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, 
            #0a0e27 0%,
            #16213e 25%,
            #1a3a52 50%,
            #0f2744 75%,
            #0a0e27 100%);
    }
    50% {
        background: linear-gradient(135deg,
            #1a3a52 0%,
            #0a0e27 25%,
            #16213e 50%,
            #1a3a52 75%,
            #16213e 100%);
    }
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

#particle-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ========================================
   ORBES FLOTANTES
   ======================================== */

.floating-orbs::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
    filter: blur(60px);
}

.floating-orbs::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.15), transparent);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    animation: float 25s ease-in-out infinite reverse;
    filter: blur(60px);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-60px) translateX(-30px); }
    75% { transform: translateY(-30px) translateX(50px); }
}

/* ========================================
   PAGE WRAPPER
   ======================================== */

.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 100;
    padding: 1rem 0;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.5rem;
    animation: fadeInLeft 0.8s ease;
}

.logo-icon {
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    background: linear-gradient(135deg, #00d4ff, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    animation: fadeInRight 0.8s ease;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 255, 136, 0.8); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(0, 255, 136, 1); }
}

.online-count {
    font-weight: 700;
    color: #00ff88;
    font-size: 0.9rem;
}

.status-text {
    color: #aaa;
    font-size: 0.85rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.hero-content {
    text-align: center;
    max-width: 600px;
    animation: fadeUp 1s ease 0.3s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.icon-container {
    margin-bottom: 2rem;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.main-icon {
    font-size: 5rem;
    display: inline-block;
}

.icon-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
    filter: blur(30px);
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #ff006e 50%, #00d4ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 1rem;
    font-weight: 500;
    animation: fadeUp 1s ease 0.5s both;
}

.description {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
    animation: fadeUp 1s ease 0.7s both;
}

.progress-container {
    margin: 2rem 0;
    animation: fadeUp 1s ease 0.9s both;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ff006e, #00d4ff);
    border-radius: 10px;
    animation: slideProgress 2s ease-in-out infinite;
}

@keyframes slideProgress {
    0%, 100% { width: 20%; }
    50% { width: 80%; }
}

.progress-text {
    display: block;
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    animation: fadeUp 1s ease 1.1s both;
}

.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
}

.btn-icon {
    font-size: 1.2rem;
    animation: wobble 0.8s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-5deg); }
    30% { transform: rotate(5deg); }
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #ff006e);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-text {
    font-weight: 600;
}

.timer {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: fadeUp 1s ease 1.3s both;
}

.timer-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

#timer-value {
    display: inline-block;
    animation: pulse-text 1s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.footer {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    animation: fadeUp 1s ease 1.5s both;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .logo-text { display: none; }
    .nav-container { padding: 0 1rem; }
    .main-title { font-size: 2rem; }
    .subtitle { font-size: 1.1rem; }
    .button-group { flex-direction: column; gap: 1rem; }
    .btn { width: 100%; justify-content: center; }
    .timer { margin-top: 1.5rem; }
    .timer-display { font-size: 1.5rem; }
    .hero-content { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .main-icon { font-size: 3.5rem; }
    .main-title { font-size: 1.8rem; margin-bottom: 0.8rem; }
    .subtitle { font-size: 1rem; }
    .description { font-size: 0.95rem; }
    .timer-display { font-size: 1.3rem; }
}