:root {
    --bg-main: #0a0a0c;
    --bg-card: rgba(18, 18, 22, 0.85);
    --gold: #dfb249;
    --gold-bright: #ffe299;
    --text-light: #f5f5f7;
    --text-muted: #9a9a9f;
    --border-gold: rgba(223, 178, 73, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* --- AMBIENTACIÓN CINEMÁTICA: EL OLIMPO --- */
.welcome-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(10, 10, 12, 0.6), rgba(10, 10, 12, 0.93)), url('spawn.jpg');
    background-size: cover;
    background-position: center;
    animation: dynamicBackgroundMobile 20s ease-in-out infinite alternate;
}

.olympus-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(223, 178, 73, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

.welcome-center { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }

.logo-divine-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    animation: scaleInLogo 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatLogo 4s ease-in-out infinite 1.4s;
    opacity: 0;
}

.server-logo { width: 210px; height: auto; filter: drop-shadow(0 0 25px rgba(223, 178, 73, 0.55)); }

.hero-title {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
    animation: fadeInUp 1s ease-out forwards 0.4s;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    animation: fadeInUp 1s ease-out forwards 0.7s;
    opacity: 0;
}

.server-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out forwards 0.9s;
    opacity: 0;
}

.feat-tag { font-size: 0.85rem; font-weight: 700; color: #e4e4e7; letter-spacing: 0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.feat-sep { color: var(--gold); font-weight: bold; }

/* --- BOTONES DE LA PORTADA --- */
.btn-adventure {
    background: linear-gradient(135deg, #b38924 0%, #dfb249 50%, #b38924 100%);
    background-size: 200% auto;
    color: #0b0b0d;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    padding: 18px 38px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(223, 178, 73, 0.4), inset 0 0 10px rgba(255,255,255,0.3);
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-adventure::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    animation: elementShine 4s infinite;
}

.btn-adventure:active { transform: scale(0.96); box-shadow: 0 0 15px rgba(223, 178, 73, 0.6); }

.welcome-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 320px;
    animation: fadeInUp 1s ease-out forwards 1.1s;
    opacity: 0;
}

.btn-store-hero {
    background: linear-gradient(135deg, #9a2222 0%, #ce3737 50%, #9a2222 100%) !important;
    color: #fff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(206, 55, 55, 0.4), inset 0 0 10px rgba(255,255,255,0.2);
}

.btn-store-hero::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); }

/* --- NAVEGACIÓN STICKY --- */
.navbar {
    position: sticky; top: 0;
    background-color: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
}

.nav-container { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.logo-nav { display: flex; align-items: center; gap: 8px; }
.nav-logo-img { width: 34px; height: 34px; }
.logo-title {
    font-weight: 800; font-size: 1.15rem;
    background: linear-gradient(135deg, #fff 40%, var(--gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-btn-store {
    background: linear-gradient(135deg, #b38924 0%, #dfb249 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #0b0b0d !important; padding: 8px 18px; border-radius: 20px;
    text-decoration: none; font-size: 0.85rem; font-weight: 800;
    box-shadow: 0 0 15px rgba(223, 178, 73, 0.4);
    animation: pulseStoreBtn 2s infinite;
}

@keyframes pulseStoreBtn { 0% { box-shadow: 0 0 0 0 rgba(223, 178, 73, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(223, 178, 73, 0); } 100% { box-shadow: 0 0 0 0 rgba(223, 178, 73, 0); } }

/* --- SISTEMA DE PESTAÑAS (TABS) --- */
.tabs-navigation-wrapper {
    position: sticky; top: 59px;
    background-color: #0d0d11;
    border-bottom: 1px solid rgba(223, 178, 73, 0.15);
    z-index: 999; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch;
}
.tabs-navigation-wrapper::-webkit-scrollbar { display: none; }
.tabs-container { max-width: 900px; margin: 0 auto; display: flex; padding: 5px 15px; }

.tab-btn { background: transparent; border: none; color: var(--text-muted); padding: 15px 20px; font-size: 0.95rem; font-weight: 700; cursor: pointer; position: relative; transition: color 0.2s; }
.tab-btn.active { color: var(--gold); }
.tab-btn.active::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 2px; background-color: var(--gold); box-shadow: 0 0 8px var(--gold); }

.tab-content { display: none; flex-direction: column; gap: 30px; width: 100%; }
.tab-content.active { display: flex; animation: fadeInTab 0.35s ease-out forwards; }

@keyframes fadeInTab { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }

/* --- CONTENEDOR CENTRAL --- */
.main-layout { max-width: 900px; margin: 0 auto; padding: 35px 20px; display: flex; flex-direction: column; gap: 30px; }
.ip-card { background: radial-gradient(circle at top left, rgba(223, 178, 73, 0.04), transparent); border: 1px dashed var(--border-gold); border-radius: 20px; padding: 24px; text-align: center; width: 100%; }
.ip-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; }

.ip-container { background-color: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.06); padding: 14px 24px; border-radius: 40px; display: inline-flex; align-items: center; gap: 15px; cursor: pointer; }
.status-dot { width: 9px; height: 9px; background-color: #2ecc71; border-radius: 50%; box-shadow: 0 0 10px #2ecc71; }
#player-count { font-family: monospace; font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.ip-action { font-size: 0.8rem; color: var(--text-muted); border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 15px; }

.content-card { background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 100%; }
.card-header h2 { font-size: 1.4rem; font-weight: 700; }
.gold-line { display: block; width: 45px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin-top: 6px; margin-bottom: 22px; }
.content-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.7; margin-bottom: 15px; }

/* --- 📝 ESTILIZACIÓN DE SEGMENTOS DE LA WIKI --- */
.wiki-segment { margin-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.04); padding-top: 20px; }
.wiki-segment h3 { font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.wiki-list { color: var(--text-muted); padding-left: 20px; font-size: 0.95rem; line-height: 1.8; }
.wiki-list li { margin-bottom: 8px; }
.wiki-list code { background-color: rgba(0, 0, 0, 0.4); color: var(--gold-bright); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.9rem; }

/* --- 📊 TABLAS COMPLETAS --- */
.table-scroll-wrapper { width: 100%; overflow-x: auto; margin-top: 15px; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; }
.wiki-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; color: var(--text-muted); min-width: 500px; }
.wiki-table th { background-color: rgba(223, 178, 73, 0.05); color: var(--gold); padding: 12px; font-weight: 700; text-align: left; border-bottom: 2px solid var(--border-gold); }
.wiki-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.wiki-table tr:hover { background-color: rgba(255,255,255,0.01); }
.wiki-table td:first-child { font-family: monospace; color: #fff; font-weight: bold; }

.btn-discord { display: block; text-align: center; text-decoration: none; background: linear-gradient(135deg, #5865F2, #4752C4); color: #fff; padding: 14px; border-radius: 10px; font-weight: 700; }
.main-footer { text-align: center; padding: 40px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.12); }

/* --- ANIMACIONES --- */
@keyframes dynamicBackgroundMobile { 0% { background-position: 47% center; } 100% { background-position: 53% center; } }
@keyframes pulseGlow { 0% { transform: scale(0.95); opacity: 0.7; } 100% { transform: scale(1.05); opacity: 1; } }
@keyframes scaleInLogo { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes floatLogo { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }
@keyframes fadeInUp { 0% { transform: translateY(20px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes elementShine { 0% { left: -120%; } 20% { left: 120%; } 100% { left: 120%; } }

/* --- SUB-SISTEMA DE PESTAÑAS INTERNAS (REGLAS) --- */
.subtabs-container {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2); padding: 6px; border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.03); flex-wrap: wrap;
}
.subtab-btn {
    background: transparent; border: none; color: var(--text-muted);
    padding: 10px 20px; font-size: 0.88rem; font-weight: 700;
    border-radius: 20px; cursor: pointer; transition: all 0.25s ease;
}
.subtab-btn.active { background: var(--gold); color: #0b0b0d; box-shadow: 0 4px 12px rgba(223, 178, 73, 0.25); }
.subtab-content { display: none; flex-direction: column; gap: 25px; }
.subtab-content.active { display: flex; animation: fadeInTab 0.3s ease-out forwards; }

/* --- VERSION PC --- */
@media (min-width: 768px) {
    .welcome-screen { background-position: center 35%; animation: dynamicBackgroundDesktop 25s ease-in-out infinite alternate; }
    .server-logo { width: 290px; }
    .hero-title { font-size: 3.5rem; margin-bottom: 12px; }
    .hero-subtitle { font-size: 1.5rem; margin-bottom: 30px; }
    .server-features { gap: 15px; margin-bottom: 40px; }
    .feat-tag { font-size: 1.1rem; }
    .welcome-buttons-container { flex-direction: row; max-width: none; justify-content: center; gap: 20px; }
    .btn-adventure { font-size: 1.3rem; padding: 20px 50px; }
    .tabs-container { justify-content: center; }
    .tab-btn { font-size: 1.05rem; padding: 18px 30px; }
}
@keyframes dynamicBackgroundDesktop { 0% { background-position: 48% 35%; } 100% { background-position: 52% 35%; } }

/* --- ESTILOS ÉPICOS PARA NUESTRA HISTORIA --- */
.lore-epic-container {
    background: radial-gradient(circle at center, rgba(223, 178, 73, 0.03) 0%, transparent 80%);
    padding: 10px 5px;
}

.lore-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 5px;
}

.lore-main-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(223, 178, 73, 0.2);
}

.myth-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

/* Línea dorada vertical */
.myth-timeline::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(223, 178, 73, 0.3), var(--gold));
    box-shadow: 0 0 8px rgba(223, 178, 73, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* Iconos circulares */
.timeline-icon {
    position: absolute;
    left: -20px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #121216;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    z-index: 2;
    box-shadow: 0 0 12px var(--gold);
}

/* Tarjetas de texto */
.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    margin-left: 35px;
    transition: transform 0.2s ease;
}

.timeline-content:hover {
    transform: translateX(3px);
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.highlight-lore-box {
    background: linear-gradient(135deg, rgba(223, 178, 73, 0.05) 0%, rgba(18, 18, 22, 0.9) 100%);
    border: 1px solid var(--border-gold);
    border-left: 3px solid var(--gold);
}

/* Ajustes para computadoras */
@media (min-width: 768px) {
    .lore-main-title { font-size: 2.4rem; }
    .myth-timeline { padding-left: 45px; }
    .myth-timeline::before { left: 59px; }
    .timeline-icon { width: 34px; height: 34px; font-size: 1.1rem; left: -17px; }
}

/* Corrección de estilos para la tarjeta de dudas */
.faq-main-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

/* ==================== ESTILOS COMPLETOS PARA DUDAS ==================== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item:hover {
    border-color: var(--border-gold, #dfb249);
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.02) !important;
    border: none !important;
    color: #fff !important;
    padding: 18px 22px !important;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(223, 178, 73, 0.05) !important;
}

.faq-toggle {
    color: var(--gold, #dfb249);
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.25s ease;
}

/* Ocultar las respuestas por defecto */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 22px;
}

.faq-answer p {
    color: var(--text-muted, #a1a1a6);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-answer code {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Estado activo cuando se hace clic */
.faq-item.active {
    border-color: var(--gold, #dfb249);
    background: rgba(223, 178, 73, 0.02) !important;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.35s cubic-bezier(1, 0, 1, 0);
    padding-bottom: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #e74c3c;
}

/* --- 📱 BOTÓN DE WHATSAPP OFICIAL --- */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.25s ease;
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    color: #ffffff;
}
