/* =============================================
   PuffCase — base.css
   Variables, reset, base, header, nav, alertas,
   hero, secciones, footer, popup, ban screen
   Importado en TODAS las páginas
   ============================================= */

/* ── VARIABLES ─────────────────────────────── */
:root {
    --purple-deep:   #0d0a1a;
    --purple-dark:   #120e24;
    --purple-mid:    #1e1535;
    --purple-soft:   #2d2050;
    --purple-accent: #7c3aed;
    --purple-bright: #9d5ff5;
    --purple-glow:   #b57bff;
    --purple-border: #3d2a6e;
    --gold:          #f0c040;
    --gold-dark:     #d4a010;
    --white:         #ffffff;
    --gray-light:    #c4b8e0;
    --gray-mid:      #7a6a9a;
    --gray-dark:     #3a2d5a;
    --card-bg:       #160f2e;
    --header-h:      68px;
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── BASE ───────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--purple-deep);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

/* ── HEADER ─────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(13, 10, 26, 0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(124,58,237,0.3);
    box-shadow: 0 4px 40px rgba(124, 58, 237, 0.18), 0 1px 0 rgba(181,123,255,0.08) inset;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    gap: 20px;
}

.header-logo img { height: 44px; display: block; }

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav-item {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.nav-item:hover { color: var(--white); background: rgba(124, 58, 237, 0.2); }
.nav-item-active { color: var(--white) !important; }

.header-user-zone {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Monedas header */
.header-coins {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.35);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}


/* ── Monedas clicables → depositar ─────────────────── */
.header-coins-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
}
.header-coins-link .header-coins {
    transition: all 0.2s cubic-bezier(.22,1,.36,1);
    cursor: pointer;
}
.header-coins-link:hover .header-coins {
    background: rgba(240,192,64,0.2) !important;
    border-color: rgba(240,192,64,0.6) !important;
    transform: scale(1.06);
    animation: none; /* pausar pulse al hover */
}
.header-coins-plus {
    font-size: 0.78rem;
    font-weight: 800;
    color: #f0c040;
    margin-left: 3px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.2s;
    text-shadow: 0 0 8px rgba(240,192,64,0.6);
}
.header-coins-link:hover .header-coins-plus {
    opacity: 1;
    transform: translateX(0);
}

/* Botón usuario */
.header-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    background: var(--purple-mid);
    border: 1px solid var(--purple-border);
    padding: 5px 14px 5px 6px;
    border-radius: 50px;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.header-user-btn:hover { background: var(--purple-soft); border-color: var(--purple-accent); }
.header-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple-accent);
}

/* Botón Steam */
.btn-steam {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid #4c6b8a;
    transition: all 0.25s;
    white-space: nowrap;
}
.btn-steam:hover {
    background: linear-gradient(135deg, #2a3f55, #3a6080);
    border-color: #66a0c8;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(74,144,226,0.3);
}

/* Logout */
.btn-logout {
    color: #ff6666;
    text-decoration: none;
    font-size: 0.82rem;
    border: 1px solid rgba(255,100,100,0.3);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-logout:hover { background: rgba(255,100,100,0.1); color: #ff9999; }

/* Botón admin header */
.btn-admin-header {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--purple-accent), var(--purple-bright));
    color: #fff;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-admin-header:hover {
    background: linear-gradient(135deg, var(--purple-bright), #c090ff);
    box-shadow: 0 4px 18px rgba(124,58,237,.45);
    transform: translateY(-1px);
}

/* ── HAMBURGER ──────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--gray-light);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV MÓVIL ──────────────────────────────── */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--purple-dark);
    border-top: 1px solid var(--purple-border);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.nav-mobile.open { max-height: 300px; }
.nav-mobile-item {
    color: var(--gray-light);
    text-decoration: none;
    padding: 14px 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(61,42,110,0.4);
    transition: all 0.2s;
}
.nav-mobile-item:hover { color: var(--white); background: rgba(124,58,237,0.15); }

/* ── ALERTAS ────────────────────────────────── */
.alerta {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alerta-ok    { background: #0a2010; border: 1px solid #1a5a30; color: #4caf7d; }
.alerta-error { background: #200a0a; border: 1px solid #5a1a1a; color: #f44336; }
.alerta-center { margin: 16px auto; max-width: 600px; text-align: center; }

/* ── HERO ───────────────────────────────────── */
.hero {
    position: relative;
    padding: 120px 24px 100px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Fondo base con gradiente profundo */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -10%, rgba(124,58,237,0.65) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 90%,  rgba(157,95,245,0.3)  0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%,  rgba(100,50,200,0.25) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(50,10,100,0.4)   0%, transparent 60%);
    pointer-events: none;
}

/* Líneas de luz diagonales */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(181,123,255,0.04) 50%, transparent 60%),
        linear-gradient(225deg, transparent 35%, rgba(124,58,237,0.06)  48%, transparent 58%);
    pointer-events: none;
}

/* Grid perspectiva sutil */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.05;
    margin-bottom: 20px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.purple-glow {
    color: var(--purple-glow);
    text-shadow: 0 0 40px rgba(181,123,255,0.75), 0 0 80px rgba(124,58,237,0.5), 0 0 120px rgba(124,58,237,0.25);
}
.hero-sub {
    color: var(--gray-light);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
    opacity: 0.9;
}

/* ── SECCIONES ──────────────────────────────── */
section { padding: 80px 24px; position: relative; }

/* Separadores entre secciones: ver .section-divider en index.css */

/* Sin fondos alternos — fondo uniforme en todas las secciones */

.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 0 0 40px rgba(181,123,255,0.3);
}
.section-title::after {
    content: '';
    display: block;
    width: 70px; height: 3px;
    background: linear-gradient(90deg, var(--purple-accent), var(--purple-glow), transparent);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ── COMING SOON ────────────────────────────── */
.coming-section {
    text-align: center;
}
.coming-inner { max-width: 500px; margin: 0 auto; padding: 20px 0; }
.coming-icon  { font-size: 3.5rem; margin-bottom: 16px; }
.coming-inner h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.coming-inner p { color: var(--gray-light); font-size: 0.95rem; margin-bottom: 20px; }
.coming-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-accent), var(--purple-bright));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── SCROLL PERSONALIZADO ────────────────────────────── */

/* Para navegadores basados en WebKit (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px; /* Por si hay scroll horizontal */
}

::-webkit-scrollbar-track {
    background: var(--purple-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-mid);
    border-radius: 10px;
    border: 1px solid var(--purple-border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-accent);
}

/* Para Firefox (Estándar moderno) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--purple-mid) var(--purple-deep);
}

/* Para ajustar el color en Firefox al pasar el ratón (depende del sistema, pero asegura coherencia) */
html {
    overflow-y: scroll;
}

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, rgba(10,5,24,.0) 0%, rgba(6,3,15,.95) 100%);
    border-top: 1px solid rgba(61,42,110,.45);
    margin-top: 40px;
    position: relative; z-index: 1;
}
.sf-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 52px 32px 36px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
.sf-brand { display: flex; flex-direction: column; gap: 14px; }
.sf-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 700; color: #e0d5ff;
}
.sf-logo img { border-radius: 8px; }
.sf-desc { font-size: .82rem; color: #5a4a7a; line-height: 1.7; margin: 0; }
.sf-disclaimer {
    display: inline-block; font-size: .68rem; color: #4a3a68;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
    border-radius: 8px; padding: 5px 10px;
}
.sf-col { display: flex; flex-direction: column; gap: 10px; }
.sf-col-title {
    font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.25); margin-bottom: 4px;
}
.sf-link {
    font-size: .82rem; color: #5a4a7a; text-decoration: none;
    display: flex; align-items: center; gap: 7px;
    transition: color .18s;
}
.sf-link:hover { color: #c0b0e0; }
.sf-link--discord:hover { color: #7289da; }
.sf-link--twitter:hover { color: #1da1f2; }
.sf-link--yt:hover      { color: #ff4444; }

.sf-bottom {
    max-width: 1200px; margin: 0 auto;
    padding: 16px 32px 24px;
    border-top: 1px solid rgba(255,255,255,.05);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    font-size: .75rem; color: #3a2a58;
}
.sf-bottom-links { display: flex; align-items: center; gap: 8px; }
.sf-bottom-link { color: #3a2a58; text-decoration: none; transition: color .15s; }
.sf-bottom-link:hover { color: #8070a8; }
.sf-sep { color: #2a1a48; }

@media (max-width: 860px) {
    .sf-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .sf-inner { grid-template-columns: 1fr; padding: 36px 20px 24px; }
    .sf-bottom { flex-direction: column; text-align: center; padding: 14px 20px 20px; }
}

/* ── BAN SCREEN ─────────────────────────────── */
.ban-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}
.ban-box {
    background: var(--card-bg);
    border: 1px solid #5a1a1a;
    border-radius: 18px;
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 0 60px rgba(180,30,30,.2);
}
.ban-icon  { font-size: 4rem; margin-bottom: 16px; }
.ban-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #f44336;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.ban-sub { color: var(--gray-light); margin-bottom: 24px; }
.ban-motivo {
    background: rgba(180,30,30,.12);
    border: 1px solid rgba(180,30,30,.35);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    text-align: left;
}
.ban-motivo-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #f44336;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.ban-motivo-text { color: var(--white); font-size: 0.92rem; }
.ban-contact { color: var(--gray-mid); font-size: 0.82rem; }

/* Suprimir transiciones en el primer frame para evitar vibración del layout */
.no-transition, .no-transition *, .no-transition *::before, .no-transition *::after { transition: none !important; }

/* ── RESPONSIVE GLOBAL ──────────────────────── */
/* Compensar el chat lateral cuando está abierto */
body.chat-activo #page-main {
    padding-left: 280px;
    transition: padding-left .3s cubic-bezier(.4,0,.2,1);
}
body.chat-activo.chat-cerrado #page-main {
    padding-left: 12px;
}
@media (max-width: 900px) {
    body.chat-activo #page-main { padding-left: 12px; }
}

@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .hamburger   { display: flex; }
    .nav-mobile  { display: flex; }
}
@media (max-width: 640px) {
    .header-coins span { display: none; }
}

/* ── BOTÓN VIP HEADER ───────────────────────── */
.btn-vip-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    border-radius: 20px;
    border: 1.5px solid #d4a010;
    background: linear-gradient(135deg, #f0c040, #ffd060, #e8a800);
    color: #6a3000;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 14px rgba(240,192,64,0.35), 0 0 0 0 rgba(240,192,64,0);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.btn-vip-header:hover {
    background: linear-gradient(135deg, #ffd060, #ffe080, #f0b800);
    border-color: #f0c040;
    box-shadow: 0 4px 22px rgba(240,192,64,0.55);
    transform: translateY(-1px) scale(1.03);
}
.btn-vip-header-shine {
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    animation: vip-shine 3s ease-in-out infinite;
    pointer-events: none;
}
.btn-vip-header-crown {
    font-size: 14px;
    display: inline-block;
    animation: vip-crown 2.5s ease-in-out infinite;
    line-height: 1;
}
@keyframes vip-shine {
    0%, 55% { left: -80%; }
    75%, 100% { left: 140%; }
}
@keyframes vip-crown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40%       { transform: translateY(-2px) rotate(-6deg); }
    60%       { transform: translateY(-2px) rotate(6deg); }
}
@media (max-width: 900px) {
    .btn-vip-header span:not(.btn-vip-header-crown):not(.btn-vip-header-shine) {
        display: inline; /* VISIBLE en mobile */
    }
    .btn-vip-header {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}
@media (max-width: 480px) {
    .btn-vip-header span:not(.btn-vip-header-crown):not(.btn-vip-header-shine) {
        display: none; /* Solo ocultar en pantallas muy pequeñas */
    }
    .btn-vip-header {
        padding: 6px 10px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
}
/* ── VIP RGB name (global — used by chat, perfil publico, popups) ── */
.chat-nombre-rgb--bronce,
.chat-nombre-rgb--plata,
.chat-nombre-rgb--oro {
    font-weight: 700;
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent !important;
    animation: vip-rgb-scroll 3s linear infinite;
}
.chat-nombre-rgb--bronce {
    background-image: linear-gradient(90deg, #8b4513, #cd7f32, #e8a050, #ffd700, #e8a050, #cd7f32, #8b4513);
}
.chat-nombre-rgb--plata {
    background-image: linear-gradient(90deg, #808090, #b0b0c0, #e0e0ec, #ffffff, #e0e0ec, #b0b0c0, #808090);
}
.chat-nombre-rgb--oro {
    background-image: linear-gradient(90deg, #b8860b, #ffd700, #ffec6e, #ffffff, #ffec6e, #ffd700, #b8860b);
}
@keyframes vip-rgb-scroll {
    from { background-position: 0% center; }
    to   { background-position: 300% center; }
}
.chat-nombre-rgb--plata .chat-rol-icon {
    animation: badge-plata-glow 3s ease-in-out infinite;
}
.chat-nombre-rgb--oro .chat-rol-icon {
    animation: badge-oro-pulse 1.8s ease-in-out infinite;
}
@keyframes badge-plata-glow {
    0%,100% { filter: drop-shadow(0 0 2px rgba(200,200,215,.3)); }
    50%      { filter: drop-shadow(0 0 6px rgba(220,220,240,.8)) brightness(1.2); }
}
@keyframes badge-oro-pulse {
    0%,100% { filter: drop-shadow(0 0 3px rgba(255,215,0,.4)); transform: scale(1); }
    50%      { filter: drop-shadow(0 0 10px rgba(255,215,0,1)) brightness(1.4); transform: scale(1.18); }
}
