:root {
    --accent: #1A56BD;
    --accent-light: #2468d4;
    --accent-dark: #0f3d8a;
    --bg: #060609;
    --glass: rgba(255, 255, 255, 0.025);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--accent-light)); border-radius: 3px; }

/* --- ANIMACIONES --- */
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }
@keyframes spin-slow { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes shimmer { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }
@keyframes scanline { 0% { transform: translateY(-100%) } 100% { transform: translateY(100vh) } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 1 } 100% { transform: scale(2.4); opacity: 0 } }
@keyframes card-reveal { from { opacity: 0; transform: translateY(32px) scale(0.96) } to { opacity: 1; transform: translateY(0) scale(1) } }

/* --- EFECTOS VISUALES --- */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 40%, #fff 60%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 250% auto;
    animation: shimmer 5s linear infinite;
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.reveal.section-visible { opacity: 1; transform: translateY(0); }

#cursor-glow {
    position: fixed; pointer-events: none; z-index: 9999;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 86, 189, 0.11) 0%, transparent 70%);
    transform: translate(-50%, -50%); transition: left 0.08s ease, top 0.08s ease;
}

.scanline {
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    z-index: 9998; pointer-events: none;
    background: linear-gradient(transparent, rgba(26, 86, 189, 0.2), transparent);
    animation: scanline 8s linear infinite; opacity: 0.3;
}

/* --- LOGO --- */
.main-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(26, 86, 189, 0.5));
}

.footer-logo {
    width: 38px;
    height: 38px;
}

/* --- NAVBAR --- */
#navbar {
    position: fixed; top: 0; width: 100%; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4%; z-index: 100; transition: all 0.4s ease;
}

#navbar.solid {
    background: rgba(6, 6, 9, 0.93); backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-text .main { display: block; font-weight: 800; font-size: 16px; letter-spacing: 3px; line-height: 1; }
.logo-text .sub { font-weight: 400; font-size: 9px; letter-spacing: 4px; color: var(--accent-light); }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-link {
    background: none; border: none; color: rgba(255,255,255,0.65);
    font-size: 14px; font-weight: 500; cursor: pointer; transition: 0.3s;
    position: relative; font-family: inherit;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; right: 50%;
    height: 1px; background: var(--accent-light); transition: 0.3s;
}
.nav-link:hover::after { left: 0; right: 0; }

/* --- HERO --- */
#hero {
    height: 100vh; position: relative; display: flex;
    align-items: center; justify-content: center; overflow: hidden; padding: 2rem;
}

#starfield { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.blob { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.blob.b1 { width: 70vw; height: 70vw; background: radial-gradient(ellipse, rgba(26, 86, 189, 0.07) 0%, transparent 65%); animation: float 12s ease-in-out infinite; }
.blob.b2 { width: 300px; height: 300px; left: 10%; top: 15%; background: radial-gradient(circle, rgba(36, 104, 212, 0.1) 0%, transparent 70%); animation: float 8s ease-in-out infinite reverse; }

.grid-overlay {
    position: absolute; inset: 0; z-index: 1;
    background-image: linear-gradient(rgba(26, 86, 189, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 86, 189, 0.04) 1px, transparent 1px);
    background-size: 80px 80px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.ring { position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 1; }
.ring.r1 { width: 600px; height: 600px; border: 1px solid rgba(26, 86, 189, 0.11); animation: spin-slow 30s linear infinite; }
.ring.r2 { width: 800px; height: 800px; border: 1px solid rgba(26, 86, 189, 0.05); animation: spin-slow 45s linear infinite reverse; }

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 950px; }

.tag-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px; border-radius: 50px; border: 1px solid rgba(26, 86, 189, 0.2);
    background: rgba(26, 86, 189, 0.05); font-size: 11px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 20px;
}
.tag-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-light); box-shadow: 0 0 8px var(--accent-light);
    animation: pulse-ring 2s ease-in-out infinite;
}

h1 { font-size: clamp(3.5rem, 10vw, 8rem); font-weight: 900; line-height: 0.95; letter-spacing: -5px; margin-bottom: 8px; }
h1 .outline { color: rgba(255, 255, 255, 0.05); -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2); }
h2 { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 300; letter-spacing: 1.2rem; color: rgba(255, 255, 255, 0.35); text-transform: uppercase; margin-bottom: 36px; }

.hero-line { width: 120px; height: 2px; margin: 0 auto 36px; background: linear-gradient(90deg, transparent, var(--accent-light), transparent); box-shadow: 0 0 20px var(--accent-light); }

.hero-content p { font-size: clamp(0.95rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, 0.4); max-width: 560px; margin: 0 auto 52px; font-weight: 300; }

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-glow {
    padding: 14px 28px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff; font-weight: 700; text-decoration: none; transition: 0.3s;
    position: relative; overflow: hidden; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.btn-glow.large { padding: 18px 44px; font-size: 15px; }
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 15px 50px rgba(26, 86, 189, 0.4); }

.btn-outline-glow {
    padding: 18px 44px; border-radius: 14px; border: 1px solid rgba(26, 86, 189, 0.5);
    background: transparent; color: var(--accent-light); font-weight: 600;
    cursor: pointer; transition: 0.3s; font-family: inherit;
}
.btn-outline-glow:hover { background: rgba(26, 86, 189, 0.1); transform: translateY(-3px); box-shadow: 0 0 20px rgba(26, 86, 189, 0.2); }

.scroll-indicator { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: float 3s infinite; }
.scroll-indicator span { font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,0.2); text-transform: uppercase; }
.scroll-indicator .line { width: 1px; height: 50px; background: linear-gradient(var(--accent-light), transparent); }

/* --- STATS --- */
#stats { padding: 0 4% 60px; }
.stats-grid {
    max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(26, 86, 189, 0.05); border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(26, 86, 189, 0.15);
}
.stat-card { padding: 40px 24px; text-align: center; border-right: 1px solid rgba(26, 86, 189, 0.1); position: relative; }
.stat-card:last-child { border-right: none; }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; background: linear-gradient(135deg, #fff, var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-top: 8px; }

/* --- FEATURES --- */
#features, #gallery, #faq { padding: 100px 4%; max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; letter-spacing: -2px; text-transform: none; margin-bottom: 18px; font-weight: 900; }
.accent-color { color: var(--accent-light); }
.section-header p { color: rgba(255,255,255,0.35); max-width: 520px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feature-card {
    background: var(--glass); padding: 36px 28px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.07); backdrop-filter: blur(24px);
    transition: 0.4s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-10px); border-color: rgba(26, 86, 189, 0.4); box-shadow: 0 30px 80px rgba(26, 86, 189, 0.15); }
.feat-icon-box {
    width: 58px; height: 58px; border-radius: 16px; background: rgba(26, 86, 189, 0.1);
    border: 1px solid rgba(26, 86, 189, 0.2); display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 22px; transition: 0.4s;
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 13.5px; color: rgba(255,255,255,0.4); font-weight: 300; }

/* --- GALLERY (Arreglada: Todo mismo tamaño) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en PC */
    gap: 15px;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    aspect-ratio: 16 / 9; /* Esto hace que todas midan lo mismo */
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gal-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,6,9,0.85), transparent);
    opacity: 0; transition: 0.4s; display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gal-overlay { opacity: 1; }

/* --- CORRECCIÓN DE ESTILO FAQ --- */

.faq-list { 
    max-width: 820px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.faq-item { 
    background: var(--glass); 
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.06); 
    cursor: pointer; 
    transition: all 0.3s ease; 
    overflow: hidden; 
    backdrop-filter: blur(20px);
}

.faq-item:hover {
    border-color: rgba(26, 86, 189, 0.4);
    background: rgba(26, 86, 189, 0.03);
}

.faq-question { 
    padding: 22px 28px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px;
}

.faq-q-text {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.faq-num { 
    width: 32px; 
    height: 32px; 
    border-radius: 10px; 
    background: rgba(255,255,255,0.04); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 12px; 
    font-weight: 800;
    color: rgba(255,255,255,0.25); 
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-plus {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    line-height: 1;
}

/* Respuesta oculta por defecto */
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.5s cubic-bezier(0, 1, 0, 1); 
    padding: 0 28px 0 76px; /* Alineado con el texto de la pregunta */
}

.faq-answer p {
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 300;
    padding-bottom: 24px;
}

/* ESTADO ACTIVO (Cuando se hace click) */
.faq-item.active {
    border-color: rgba(26, 86, 189, 0.5);
    background: rgba(26, 86, 189, 0.08);
}

.faq-item.active .faq-answer { 
    max-height: 300px; /* Suficiente para el texto */
}

.faq-item.active .faq-num {
    background: rgba(26, 86, 189, 0.3);
    color: var(--accent-light);
}

.faq-item.active .faq-plus {
    transform: rotate(45deg);
    color: var(--accent-light);
}
/* --- DISCORD CTA --- */
.cta-box {
    max-width: 1100px; margin: 0 auto; border-radius: 28px; padding: 80px 40px;
    text-align: center; background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-dark));
    background-size: 200% 200%; position: relative; overflow: hidden;
    box-shadow: 0 0 100px rgba(26, 86, 189, 0.2);
}
.btn-discord-white {
    display: inline-block; padding: 18px 48px; background: #fff; color: var(--accent-dark);
    border-radius: 14px; text-decoration: none; font-weight: 800; transition: 0.3s; margin-top: 20px;
}
.btn-discord-white:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* --- FOOTER & WWEB --- */
footer { padding: 60px 4% 40px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.footer-links { display: flex; gap: 30px; }
.footer-links button { background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer; font-size: 13px; transition: 0.3s; }
.footer-links button:hover { color: var(--accent-light); }
.footer-divider { width: 80px; height: 1px; background: rgba(255,255,255,0.08); }
.copyright { font-size: 11px; color: rgba(255,255,255,0.15); text-align: center; }

.wweb-credit { font-size: 12px; color: rgba(255,255,255,0.2); margin-top: -10px; letter-spacing: 1px; }
.wweb-credit a { color: var(--accent-light); text-decoration: none; font-weight: 700; transition: 0.3s; }
.wweb-credit a:hover { color: #fff; text-shadow: 0 0 10px var(--accent-light); }

/* --- LIGHTBOX --- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.97); z-index: 1000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(12px); }
.lightbox.active { display: flex; }
.lightbox-content img { max-width: 85vw; max-height: 80vh; border-radius: 16px; box-shadow: 0 0 80px rgba(26, 86, 189, 0.3); }
.close-lightbox, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.close-lightbox { top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 12px; font-size: 24px; }
.lightbox-prev { left: 24px; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; }
.lightbox-next { right: 24px; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links, .stats-grid { display: none; } /* Ocultar nav en móvil para simplificar o usar menú hamburguesa */
    .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 4rem; letter-spacing: -2px; }
}