/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0e27;
    color: #fff;
    overflow-x: hidden;
}

/* ============ Hero Section — nuevo layout dos columnas ============ */
/*
 * El fondo usa múltiples radial-gradient() en lugar de divs con filter:blur().
 * Los gradientes CSS se pintan en un único paso de composición por el browser,
 * sin capas GPU adicionales ni texturas intermedias — coste prácticamente cero.
 * Las cinco "manchas" de nebulosa quedan como colores difusos en el background.
 */
.hero-logo-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 65% 55% at 8%  40%,  rgba(91,37,197,0.32)   0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 95% 18%,  rgba(255,120,30,0.11)  0%, transparent 70%),
        radial-gradient(ellipse 70% 60% at 60% 110%, rgba(69,34,160,0.26)   0%, transparent 65%),
        radial-gradient(ellipse 38% 38% at 50% 50%,  rgba(120,60,220,0.14)  0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 5%  95%,  rgba(30,60,180,0.16)   0%, transparent 65%),
        radial-gradient(ellipse at 45% 50%, #12173a 0%, #0a0e27 68%);
}

/* Estrellas de fondo — three-bg.js (WebGL) las gestiona */
.stars { display: none; }

/* Perspectiva 3D para hover GSAP — solo en dispositivos con puntero fino (no táctil) */
/* En móvil, will-change:transform en cada card fuerza capas compositor y causa scroll jank */
@media (hover: hover) and (pointer: fine) {
    .gamemode-card,
    .fact-card {
        transform-style: preserve-3d;
        will-change: transform;
    }
}

/* ── Nebulosa — oculta (reemplazada por gradientes en .hero-logo-section background) ── */
/* Los divs .nb ya no son necesarios; el fondo de nebulosa es el background del hero.
   Se mantiene la clase por si algún JS los referencia, pero no se renderizan. */
.nebula { display: none; }

/* ── Layout principal (z-index 10) ───────────────────────────────── */
.hero-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    padding: 0 clamp(2rem, 5vw, 6rem);
    width: 100%;
    max-width: 1260px;
}

/* Fila superior: logo + contenido */
.hero-top {
    display: flex;
    align-items: center;
    gap: clamp(3.5rem, 6vw, 8rem);
    width: 100%;
}

/* ── Columna izquierda — Logo ─────────────────────────────────────── */
.logo-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrap {
    position: relative;
    animation: logoFloat 7s ease-in-out infinite;
}

.server-logo img {
    width: clamp(190px, 18vw, 280px);
    height: auto;
    display: block;
    filter:
        drop-shadow(0 0 28px rgba(100,50,220,0.65))
        drop-shadow(0 0 70px rgba(80,30,180,0.35));
}

.logo-glow {
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle, rgba(120,60,220,0.22) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: -1;
    animation: glowPulse 5s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}
@keyframes glowPulse {
    from { opacity: 0.6; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.12); }
}

/* ── Columna derecha — Badges, título, slogan, IP ─────────────────── */
.content-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Badges de estado */
.badges-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    border-radius: 20px;
    padding: 0.28rem 0.82rem;
    font-size: 0.77rem;
    font-weight: 500;
    width: fit-content;
}
.status-badge.mc {
    background: rgba(74,222,128,0.07);
    border: 1px solid rgba(74,222,128,0.22);
    color: rgba(110,230,155,0.90);
}
.status-badge.mc .dot { background: #4ade80; }
.status-badge.dc {
    background: rgba(88,101,242,0.09);
    border: 1px solid rgba(88,101,242,0.24);
    color: rgba(165,180,252,0.88);
}
.status-badge.dc .dot { background: #818cf8; }
.status-badge.offline {
    background: rgba(148,163,184,0.07);
    border: 1px solid rgba(148,163,184,0.18);
    color: rgba(148,163,184,0.70);
}
.status-badge.offline .dot { background: #94a3b8; animation: none !important; }

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.8; transform:scale(0.88); }
}

/* Título hero */
.hero-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #f0f2ff;
    position: relative;
    z-index: 2;
}
.hero-title .grad {
    background: linear-gradient(110deg, #a78bfa, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title .grad-warm {
    background: linear-gradient(110deg, #8147f2, #FF9C2B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Slogan */
.hero-slogan {
    font-size: clamp(0.88rem, 1.45vw, 1.02rem);
    color: rgba(200,210,238,0.58);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.01em;
    margin-top: -0.3rem;
    position: relative;
    z-index: 2;
}

/* Divisor */
.divider {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #8147f2 0%, transparent 100%);
    transform-origin: left;
}

/* IP block */
.hero-info {
    position: relative;
    z-index: 2;
}
.ip-block {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}
.ip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(129,71,242,0.30);
    border-radius: 10px;
    padding: 0.58rem 1.1rem;
    width: fit-content;
    max-width: 100%;
    transition: border-color 0.2s;
}
.ip-pill:hover { border-color: rgba(129,71,242,0.55); }
.ip-addr {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #c4b5fd;
    white-space: nowrap;
    transition: opacity 0.4s ease;
}
.copy-btn {
    background: rgba(129,71,242,0.18);
    border: none;
    color: #a78bfa;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.copy-btn:hover { background: rgba(129,71,242,0.38); color: #e0d7ff; }
.copy-btn.ok    { color: #4ade80; background: rgba(74,222,128,0.14); }
.bedrock-note {
    font-size: 0.77rem;
    color: #7c83a0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.bedrock-note i      { color: #FF9C2B; font-size: 0.74rem; }
.bedrock-note strong { color: #FF9C2B; font-weight: 600; }

/* ── Nav — separador sutil + fila distribuida de borde a borde ─────── */
.hero-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    position: relative;
    z-index: 10;
}
.hero-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: rgba(232,234,246,0.62);
    white-space: nowrap;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
    flex: 1;
    max-width: 180px;
}
.hero-nav a i { font-size: 0.78rem; opacity: 0.75; transition: opacity 0.18s; }
.hero-nav a:hover {
    background: rgba(129,71,242,0.12);
    border-color: rgba(129,71,242,0.35);
    color: #fff;
    transform: translateY(-2px);
}
.hero-nav a:hover i { opacity: 1; }

/* Tienda — destacada */
.hero-nav a.store {
    background: linear-gradient(120deg, #8147f2 0%, #b060e0 55%, #FF9C2B 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(129,71,242,0.30);
}
.hero-nav a.store i { opacity: 1; }
.hero-nav a.store:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(129,71,242,0.45);
}

/* Sticky nav — flota fija en la parte superior al salir del hero */
.hero-nav.sticky {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(1260px - 4rem);
    min-width: 520px;
    padding: 0.5rem 1rem;
    border-top: none;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,14,39,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    z-index: 1000;
    animation: slideDown 0.28s ease;
    gap: 0.25rem;
}
.hero-nav.sticky a { max-width: 160px; padding: 0.5rem 1.2rem; }
.hero-nav.sticky a.store { box-shadow: 0 0 12px rgba(129,71,242,0.25); }

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-16px); }
    to   { transform: translateX(-50%) translateY(0); }
}

/* ── Botón login fijo top-right (cuando no hay sesión) ──────────── */
.fixed-login {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(88,101,242,0.14);
    border: 1px solid rgba(88,101,242,0.34);
    border-radius: 9px;
    padding: 0.5rem 1.05rem;
    color: #bbc8ff;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.fixed-login:hover {
    background: rgba(88,101,242,0.28);
    border-color: rgba(88,101,242,0.56);
    color: #dde6ff;
}

/* ── Indicador de scroll ─────────────────────────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(200,205,230,0.26);
    font-size: 0.9rem;
    z-index: 10;
    pointer-events: none;
    animation: bounceScroll 2.2s ease-in-out infinite;
}
@keyframes bounceScroll {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(9px); }
}

/* ── Reduced motion: detiene todas las animaciones decorativas continuas ──── */
@media (prefers-reduced-motion: reduce) {
    .logo-wrap       { animation: none !important; }
    .logo-glow       { animation: none !important; }
    .scroll-indicator { animation: none !important; }
    .dot             { animation: none !important; }
}

/* ============ User Account Button (Fixed Top-Right) ============ */
.user-account-fixed {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10001;
}

.user-account-btn {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 101, 242, 0.4);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.user-account-btn:hover {
    background: rgba(10, 14, 39, 0.95);
    border-color: rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.user-account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.6);
}

.user-account-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-account-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-account-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-account-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-account-fixed.active .user-account-arrow {
    transform: rotate(180deg);
}

/* User Account Dropdown */
.user-account-dropdown {
    position: fixed;
    top: 6rem;
    right: 2rem;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 250px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.user-account-fixed.active .user-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-account-dropdown-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-account-dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.6);
}

.user-account-dropdown-info h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.user-account-dropdown-menu {
    padding: 0.5rem;
}

.user-account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.user-account-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.user-account-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.user-account-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Usuario logueado en el navbar con dropdown */
.nav-user-container {
    position: relative;
    margin-left: auto;
}

.nav-user-btn {
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.nav-user-btn:hover {
    background: rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

.nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.6);
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-user-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-user-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-user-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-user-container.active .nav-user-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-user-dropdown {
    position: fixed;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 250px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-user-container.active .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-dropdown-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user-dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.6);
}

.nav-user-dropdown-info h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.nav-user-dropdown-menu {
    padding: 0.5rem;
}

.nav-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-user-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* ============ Contenido Principal ============ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Quick Facts Section */
.quick-facts-section {
    margin-bottom: 4rem;
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.fact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(129, 71, 242, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(129, 71, 242, 0.2);
}

.fact-icon {
    font-size: 3.5rem;
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(129, 71, 242, 0.2) 0%, rgba(255, 156, 43, 0.2) 100%);
    border-radius: 12px;
    filter: drop-shadow(0 0 15px rgba(129, 71, 242, 0.3));
}

.fact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fact-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8147f2 0%, #FF9C2B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mission & Vision Cards */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.mv-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.mv-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-10px);
}

.mv-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    color: transparent;
}

.mv-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.mv-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-10px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.value-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ── Gallery Carousel (glr-*) ────────────────────────── */
.gallery-section { overflow: visible; }

/* Contenedor principal */
.glr-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto 4rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(10,11,25,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(129,71,242,0.12);
    user-select: none;
}

/* Stage: altura fija, las imágenes se superponen con position:absolute */
.glr-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #080910;
}

/* Cada slide: ocupa todo el stage, opacity controla el fade */
.glr-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.glr-slide--active {
    opacity: 1;
    pointer-events: auto;
}
.glr-slide--exit {
    opacity: 0;
}

.glr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}
.glr-slide--active .glr-img {
    transform: scale(1.05);
}

/* Degradado inferior sobre la imagen */
.glr-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(8,9,16,0.92) 100%);
    pointer-events: none;
}

/* Caption fijo debajo de la imagen */
.glr-caption {
    padding: 1.4rem 2rem 1.6rem;
    background: rgba(8,9,16,0.75);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.07);
    min-height: 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glr-caption-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    background: linear-gradient(135deg, #a78bfa, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.glr-caption-desc {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.58);
    line-height: 1.55;
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Fade-out del caption al cambiar */
.glr-caption--out {
    opacity: 0;
    transform: translateY(6px);
}

/* Botones prev / next */
.glr-btn {
    position: absolute;
    top: calc(50% - 2.75rem);
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(8,9,16,0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s, border-color 0.22s, transform 0.22s;
    z-index: 10;
    opacity: 0;
}
.glr-wrap:hover .glr-btn { opacity: 1; }
.glr-btn:hover {
    background: rgba(129,71,242,0.65);
    border-color: rgba(129,71,242,0.9);
    transform: translateY(-50%) scale(1.12);
}
.glr-btn--prev { left: 1rem; }
.glr-btn--next { right: 1rem; }

/* Dots */
.glr-dots {
    position: absolute;
    bottom: 5.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.glr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.28);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, width 0.25s;
}
.glr-dot--active {
    background: #8147f2;
    transform: scale(1.35);
    width: 20px;
    border-radius: 4px;
}

/* Barra de progreso auto-play */
.glr-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #8147f2, #fb923c);
    z-index: 10;
    border-radius: 0 2px 2px 0;
}

/* Gamemodes Grid */
.gamemodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gamemode-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.gamemode-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-10px);
}

.gamemode-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gamemode-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.gamemode-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gamemode-features {
    list-style: none;
    margin-bottom: 2rem;
}

.gamemode-features li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gamemode-features i {
    color: #667eea;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(88, 101, 242, 0.5);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    color: transparent;
}

.cta p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0.5rem 0;
}

/* ============ Responsive ============ */

/* Tablet grande */
@media (max-width: 1024px) {
    .hero-inner { padding: 0 clamp(1.5rem, 4vw, 4rem); }
    .hero-nav.sticky { min-width: 480px; }
}

/* Tablet */
@media (max-width: 860px) {
    .hero-inner      { padding-top: 5rem; padding-bottom: 5rem; gap: 1.8rem; }
    .hero-top        { flex-direction: column; text-align: center; gap: 2rem; align-items: center; }
    .server-logo img { width: clamp(150px, 42vw, 210px) !important; }
    .divider         { margin: 0 auto; }
    .ip-pill         { margin: 0 auto; }
    .badges-row      { justify-content: center; }
    .bedrock-note    { justify-content: center; }
    /* En móvil el nav vuelve a centrado con wrap */
    .hero-nav        { flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
    .hero-nav a      { flex: 0 0 auto; max-width: none; padding: 0.55rem 1.1rem; }
    /* Sticky en tablet */
    .hero-nav.sticky { min-width: auto; width: 90vw; max-width: 90vw; }
    /* Scroll indicator oculto en tablet */
    .scroll-indicator { display: none; }

    /* Main content */
    .mv-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .gamemodes-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .quick-facts-grid { grid-template-columns: 1fr; }
}

/* Móvil */
@media (max-width: 768px) {
    .hero-logo-section { align-items: flex-start; padding-top: 5rem; }
    .hero-inner { padding-top: 0; }

    .fact-card  { padding: 1.5rem; }
    .fact-icon  { font-size: 2.5rem; min-width: 60px; height: 60px; }
    .fact-value { font-size: 1.4rem; }
    .section-title { font-size: 1.8rem; }
    .cta h2    { font-size: 1.8rem; }
    .cta p     { font-size: 1rem; }

    /* User account fixed en móvil */
    .user-account-fixed { top: 1rem; right: 1rem; }
    .user-account-btn   { padding: 0.5rem; }
    .user-account-info,
    .user-account-arrow { display: none; }
    .user-account-avatar { width: 35px; height: 35px; }

    /* Gallery */
    .glr-wrap          { border-radius: 1rem; max-width: 100%; }
    .glr-stage         { aspect-ratio: 16 / 9; }
    .glr-btn           { width: 36px; height: 36px; font-size: 0.8rem; opacity: 1; }
    .glr-caption       { padding: 1.1rem 1.4rem 1.3rem; min-height: 4.8rem; }
    .glr-caption-title { font-size: 1.1rem; }
    .glr-dots          { bottom: 5.2rem; }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .hero-inner  { padding: 0 1rem; padding-top: 0; padding-bottom: 4rem; }
    .main-content { padding: 2rem 1rem; }

    .mv-card,
    .value-card,
    .gamemode-card { padding: 1.5rem; }
    .mv-card h2    { font-size: 1.5rem; }
    .gamemode-card h3 { font-size: 1.4rem; }
    .section-header { margin-bottom: 2rem; }
    .section-title  { font-size: 1.5rem; }
    .section-subtitle { font-size: 1rem; }

    .glr-stage         { aspect-ratio: 4 / 3; }
    .glr-btn           { display: none; }
    .glr-caption       { padding: 0.9rem 1.1rem 1.1rem; }
    .glr-caption-title { font-size: 1rem; }
    .glr-caption-desc  { font-size: 0.85rem; }
    .glr-dots          { bottom: 5rem; }
}
