:root {
    --bg-dark: #050505;
    --bg-card: #0c0c0c;
    --gold: #d4af37;
    --gold-hover: #f1c40f;
    --border: rgba(212, 175, 55, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-title: 'Oswald', sans-serif;
}

body.light-mode {
    --bg-dark: #eef1f6;
    --bg-card: #ffffff;
    --gold: #b9890c;
    --gold-hover: #8c6909;
    --border: rgba(185, 137, 12, 0.25);
    color: #111;
}

* { 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: auto;
}

body.light-mode .particles-container {
    background: #e8edf7;
}
body.light-mode .bg-vignette {
    background: radial-gradient(circle, transparent 0%, rgba(177, 182, 193, 0.6) 100%);
}

/* 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(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 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); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-more { position: relative; }
.nav-more-menu {
    position: absolute;
    top: 130%;
    right: 0;
    min-width: 190px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    list-style: none;
    padding: 8px 0;
    display: none;
    z-index: 1100;
}
.nav-more:hover .nav-more-menu {
    display: block;
}
.nav-more-menu li a {
    display: block;
    padding: 10px 14px;
    text-transform: none;
}
.nav-more-menu li a:hover {
    background: rgba(212, 175, 55, 0.12);
}
.theme-toggle-btn {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 0;
}
body.light-mode .theme-toggle-btn {
    color: #111;
    background: rgba(0,0,0,0.05);
}

/* 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(212,175,55,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(212,175,55,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(212, 175, 55, 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; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.news-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 25px; transition: 0.3s;
}
.news-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 10px 25px rgba(0,0,0,0.35); }
.news-date { color: var(--gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.news-card h3 { color: #fff; font-family: var(--font-title); margin-bottom: 10px; font-size: 1.2rem; }
.news-card p { color: #aaa; line-height: 1.6; font-size: 0.95rem; }
body.light-mode .news-card p,
body.light-mode .staff-bio,
body.light-mode .rule-card p,
body.light-mode .faq-a,
body.light-mode .legal-content,
body.light-mode .nav-menu a {
    color: #333;
}

.support-content form {
    display: grid;
    gap: 14px;
}
.support-content input,
.support-content textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: inherit;
    padding: 12px;
    font: inherit;
}
body.light-mode .support-content input,
body.light-mode .support-content textarea {
    background: #f7f8fb;
}
.support-submit-btn {
    border: none;
    cursor: pointer;
}

/* 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(212, 175, 55, 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; }

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(4px);
}
.cookie-banner.hidden {
    display: none;
}
.cookie-banner p {
    color: #ddd;
    font-size: 0.92rem;
}
.cookie-banner a {
    color: var(--gold);
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
}
.cookie-btn {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.cookie-btn-primary {
    border-color: var(--gold);
    background: var(--gold);
    color: #111;
}
.cookie-btn-secondary {
    background: transparent;
    color: #fff;
}
body.light-mode .cookie-banner {
    background: rgba(255, 255, 255, 0.96);
}
body.light-mode .cookie-banner p {
    color: #222;
}
body.light-mode .cookie-btn-secondary {
    color: #111;
}

.maintenance-page-shell {
    position: fixed; inset: 0; z-index: 9999; background: #000;
}
.maintenance-page-frame {
    width: 100%; height: 100%; border: 0; display: block; background: #000;
}
body.maintenance-mode { overflow: hidden; }
body.maintenance-mode > *:not(.maintenance-page-shell) { display: none; }

/* Desktop-only: bewusst ohne mobile Breakpoints */