:root {
    --bg-dark: #050505;
    --bg-card: #0c0c0c;
    --gold: #1abc9c;
    --gold-hover: #16a085;
    --border: rgba(26, 188, 156, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-title: 'Oswald', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: #ffffff;
    overflow-x: hidden;
}

/* Background */
.bg-vignette {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 0%, #000 90%);
    z-index: -1; pointer-events: none;
}
.particles-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; background: #080808; overflow: hidden;
}
.particle {
    position: absolute; background: rgba(26, 188, 156, 0.1);
    border: 1px solid rgba(26, 188, 156, 0.15);
    bottom: -50px; animation: riseUp linear infinite;
}
@keyframes riseUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(5, 5, 5, 0.95); border-bottom: 1px solid var(--border);
    padding: 15px 5%; display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-family: var(--font-title); font-size: 1.6rem; color: #fff; text-decoration: none; font-weight: 700; }
.nav-logo span { color: var(--gold); }

.nav-menu { display: flex; list-style: none; gap: 25px; }
.nav-menu a { color: #aaa; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; text-transform: uppercase; }
.nav-menu a:hover { color: var(--gold); }

/* Language Selector */
.custom-lang-selector { position: relative; cursor: pointer; font-size: 0.9rem; }
.selected-lang {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); padding: 8px 15px; border-radius: 20px;
    background: rgba(255,255,255,0.05); transition: 0.3s;
}
.selected-lang:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.1); }
.lang-dropdown {
    position: absolute; top: 120%; right: 0; width: 140px;
    background: #0f0f0f; border: 1px solid var(--border); border-radius: 10px;
    display: none; flex-direction: column; overflow: hidden;
}
.lang-dropdown.show { display: flex; }
.lang-option { padding: 10px 15px; display: flex; align-items: center; gap: 10px; color: #ccc; transition: 0.2s; }
.lang-option:hover { background: var(--gold); color: #000; }
.fi { font-size: 1.2em; border-radius: 2px; }

/* Hero */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 80px; }
.hero-logo { max-width: 320px; margin-bottom: 2rem; filter: drop-shadow(0 0 40px rgba(26,188,156,0.2)); animation: float 6s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.hero-subtitle { color: #ccc; margin-bottom: 2rem; font-size: 1.1rem; }

.ip-wrapper {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 50px; display: flex; overflow: hidden; cursor: pointer;
    transition: 0.3s; margin-bottom: 20px;
}
.ip-wrapper:hover { border-color: var(--gold); box-shadow: 0 0 25px rgba(26,188,156,0.2); transform: scale(1.02); }
.ip-content { padding: 12px 25px; display: flex; align-items: center; gap: 10px; color: var(--gold); font-family: monospace; font-size: 1.1rem; }
.ip-action { background: var(--gold); color: #000; padding: 12px 25px; font-weight: 800; font-family: var(--font-title); transition: 0.3s; }
.ip-wrapper.copied { border-color: #2ecc71; }
.ip-wrapper.copied .ip-content { color: #2ecc71; }
.ip-wrapper.copied .ip-action { background: #2ecc71; color: #fff; }

.online-status { font-size: 0.9rem; color: #666; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; box-shadow: 0 0 5px #2ecc71; }
.social-bar { display: flex; gap: 20px; }
.social-icon { color: #888; font-size: 1.4rem; transition: 0.3s; }
.social-icon:hover { color: var(--gold); transform: translateY(-3px); }

/* General Sections */
section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-title); font-size: 2.5rem; color: var(--gold); }
.gold-line { width: 60px; height: 3px; background: var(--gold); margin: 10px auto; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

/* Staff */
.staff-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 30px; border-radius: 15px; text-align: center; transition: 0.3s;
}
.staff-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.staff-head { width: 80px; border-radius: 15px; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.staff-name { font-size: 1.2rem; font-weight: 700; color: #fff; }
.staff-role { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; margin: 5px 0 10px; }
.staff-bio { color: #888; font-size: 0.9rem; }

/* REGLAS (Hover Effect) */
.rule-card {
    background: var(--bg-card); border-left: 3px solid var(--gold);
    border: 1px solid var(--border); border-left-width: 3px;
    padding: 25px; border-radius: 5px; transition: all 0.3s ease;
}
.rule-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 5px 20px rgba(26, 188, 156, 0.1); background: #111; }
.rule-card h3 { color: var(--gold); font-family: var(--font-title); margin-bottom: 10px; font-size: 1.3rem; }
.rule-card p { color: #aaa; font-size: 0.95rem; }

/* FAQ (Smooth Accordion Grid Trick) */
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; transition: 0.3s;
}
.faq-item:hover { border-color: rgba(212, 175, 55, 0.5); }
.faq-item.active { border-color: var(--gold); background: #0e0e0e; }

.faq-header { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q { color: #fff; font-weight: 600; font-size: 1.05rem; }
.faq-icon { color: var(--gold); transition: 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-body {
    display: grid; 
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.4s ease-out; /* Animación Suave */
    background: rgba(0,0,0,0.2);
}
.faq-item.active .faq-body { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; }
.faq-a { padding: 20px; padding-top: 0; color: #aaa; font-size: 0.95rem; line-height: 1.6; }
.faq-item.active .faq-a { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }


/* Votación */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.vote-card {
    display: block; text-decoration: none; background: #111;
    border: 1px solid var(--border); padding: 30px 20px; border-radius: 10px;
    text-align: center; transition: 0.3s;
}
.vote-card:hover { border-color: var(--gold); transform: translateY(-5px); background: #161616; }
.vote-card h3 { color: #fff; font-family: var(--font-title); margin-bottom: 10px; }
.vote-card span { color: var(--gold); font-size: 0.8rem; font-weight: 600; }

/* Legal Tabs */
.legal-box-wrapper { max-width: 900px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 15px; overflow: hidden; }
.legal-tabs { display: flex; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.3); }
.l-tab { flex: 1; padding: 18px; background: transparent; color: #888; border: none; cursor: pointer; font-weight: 700; transition: 0.3s; font-size: 0.95rem; border-right: 1px solid rgba(255,255,255,0.05); }
.l-tab:last-child { border-right: none; }
.l-tab:hover { color: #fff; background: rgba(255,255,255,0.02); }
.l-tab.active { background: rgba(26, 188, 156, 0.1); color: var(--gold); border-bottom: 2px solid var(--gold); }
.legal-content { padding: 40px; color: #ccc; line-height: 1.8; }
.l-content { display: none; animation: fadeIn 0.4s; }
.l-content.active { display: block; }
@keyframes fadeIn { from{opacity:0; transform: translateY(10px);} to{opacity:1; transform: translateY(0);} }

footer { padding: 50px 20px; text-align: center; border-top: 1px solid var(--border); margin-top: 80px; background: #000; }

/* Countdown Section */
#countdown-section {
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 100%);
    padding: 80px 20px;
    border-top: 1px solid var(--border);
}

.countdown-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.countdown-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.time-box {
    background: rgba(26, 188, 156, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 2rem 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.time-box:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    background: rgba(26, 188, 156, 0.1);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.15);
}

.time-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.time-box:hover .time-number {
    transform: scale(1.1);
}

.time-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.countdown-message {
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .countdown-title {
        font-size: 1.8rem;
    }

    .time-number {
        font-size: 2rem;
    }

    .time-box {
        padding: 1.5rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    #hero { padding-top: 100px; }
    .ip-wrapper { flex-direction: column; width: 100%; }
    .legal-tabs { flex-direction: column; }
    .l-tab { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Mode Sections - Online & Offline */
.mode-section {
    padding: 80px 20px;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 100%);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.online-container, .offline-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.player-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-box {
    background: rgba(26, 188, 156, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 300px;
}

.stat-label {
    font-size: 1.2rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.join-btn {
    background: var(--gold);
    color: #000;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.join-btn:hover {
    background: var(--gold-hover);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.3);
}

.offline-message {
    font-size: 1.3rem;
    color: #aaa;
    margin: 2rem 0;
    line-height: 1.8;
}

.offline-detail {
    color: #888;
    font-size: 1rem;
}