/* --- CSS BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    cursor: none !important;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    background-color: #000;
    overflow-x: hidden;
}

/* --- SCROLLBAR GAMER MODO KICK --- */
html:has(body.kick-theme) {
    scrollbar-color: #53fc18 #050806; /* Firefox support */
    scrollbar-width: thin;
}
html:has(body.kick-theme)::-webkit-scrollbar {
    width: 8px; /* Más estrecho y táctico */
}
html:has(body.kick-theme)::-webkit-scrollbar-track {
    background: #050806;
    border-left: 1px solid rgba(83, 252, 24, 0.15);
}
html:has(body.kick-theme)::-webkit-scrollbar-thumb {
    background: rgba(83, 252, 24, 0.4);
    border-radius: 0; /* Sin curvas para estética mecánica/hardware */
    border: none;
}
html:has(body.kick-theme)::-webkit-scrollbar-thumb:hover {
    background: rgba(83, 252, 24, 0.9);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, #6a0f0f, #000 60%);
    z-index: -2;
    pointer-events: none;
}

canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, .9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    z-index: 3002;
    box-shadow: 0 2px 8px rgba(255, 255, 255, .05)
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%
}

.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center
}

nav ul li {
    position: relative
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px;
    transition: .3s
}

nav ul li a:hover {
    color: #ff3c3c
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #ff3c3c;
    transition: width .3s
}

nav ul li a:hover::after {
    width: 100%
}

/* Submenú */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, .95);
    padding: 10px 0;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    z-index: 25
}

nav ul li:hover .submenu {
    display: block
}

.submenu li {
    padding: 5px 20px
}

.submenu li a {
    display: block;
    color: #fff;
    padding: 8px 10px;
    transition: .3s;
    position: relative
}

.submenu li a:hover {
    background: rgba(65, 11, 11, 0.8);
    color: #fff;
    border-radius: 5px;
    transform: translateX(3px)
}

/* Pestaña Activa (Logros) */
nav ul li a.active-page {
    color: #d4af37 !important;
    font-weight: 700;
}

nav ul li a.active-page::after {
    content: "";
    width: 100%;
    background: #ff3c3c;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: none;
}














/* Active Page Style in Mobile */










/* --- SECCIÓN LOGROS --- */
section {
    padding: 130px 40px 60px;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 5;
    flex-grow: 1
}

h1 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 40px;
    font-size: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4)
}

/* 1. CARRUSEL DE MARCAS (MARQUEE) */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 80px;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

.marquee-track {
    display: inline-block;
    /* Boot animation: spins rapidly through 50% of the track and elegantly decelerates */
    animation: scrollBoot 2.5s cubic-bezier(0.0, 0.7, 0.1, 1) forwards;
}

.marquee-track.normal-scroll {
    /* Switches to infinite loop seamlessly because scrollBoot ends at -50% */
    animation: scroll 35s linear infinite;
}

.marquee-track img {
    height: 80px;
    /* Altura fija para uniformidad */
    width: auto;
    margin: 0 40px;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s;
    vertical-align: middle;
}

.marquee-track img:hover {
    filter: grayscale(0%) brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes scrollBoot {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================
   REDISEÑO MODO CLÁSICO — LOGROS
   ============================================================ */

/* --- HERO EDITORIAL --- */
.hero-editorial {
    text-align: center;
    padding: 20px 0 50px;
    position: relative;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

.eyebrow-line {
    display: block;
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, #d4af37);
}

.hero-eyebrow .eyebrow-line:last-child {
    background: linear-gradient(90deg, #d4af37, transparent);
}

.eyebrow-text {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #d4af37;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Override del h1 global solo para el hero */
.hero-title {
    color: inherit;
    text-align: center;
    margin-bottom: 0;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: none;
    text-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
}

.hero-title-sub {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #888;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 400;
}

.hero-title-main {
    font-family: 'Cinzel', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #ffe58f 40%, #8a7322 70%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
    max-width: 520px;
    margin: 22px auto 0;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* --- STATS STRIP --- */
.stats-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 50px;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 22px 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 30px;
    flex: 1;
    min-width: 100px;
}

.stat-num {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    line-height: 1;
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
    flex-shrink: 0;
}

/* --- SEPARADOR EDITORIAL --- */
.press-separator {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 45px;
}

.press-sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25));
}

.press-sep-line:last-child {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent);
}

.press-sep-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.5);
    letter-spacing: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.press-sep-label i {
    font-size: 0.9rem;
    color: rgba(212, 175, 55, 0.4);
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
}

/* Feature card ocupa toda la primera fila */
.card-feature {
    grid-column: 1 / -1;
}

/* Card wide ocupa 2 columnas */
.card-wide {
    grid-column: span 2;
}

/* Cards estándar */
.card-standard {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

/* --- BASE DE LAS CARDS --- */
.logro-card {
    background: linear-gradient(145deg, rgba(18, 14, 10, 0.85), rgba(8, 6, 4, 0.92));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* Ruido de textura sutil */
.logro-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
    opacity: 0.4;
}

.logro-card > * {
    position: relative;
    z-index: 1;
}

.logro-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

/* BARRA DE ACENTO IZQUIERDA */
.card-accent-bar {
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #d4af37, transparent);
    border-radius: 0 3px 3px 0;
    transition: top 0.4s ease, bottom 0.4s ease, box-shadow 0.4s ease;
}

.logro-card:hover .card-accent-bar {
    top: 5%;
    bottom: 5%;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.card-accent-bar.accent-silver {
    background: linear-gradient(to bottom, transparent, #c0c0c0, transparent);
}

.card-accent-bar.accent-bronze {
    background: linear-gradient(to bottom, transparent, #cd7f32, transparent);
}

/* FEATURE CARD LAYOUT */
.card-feature .card-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.card-feature .card-media-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.card-feature .card-body-col {
    flex: 1;
}

.card-feature .card-name {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.card-feature .card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    margin: 12px 0 20px;
    line-height: 1.6;
    max-width: 480px;
}

/* LOGO WRAP */
.card-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logro-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.04);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-feature .logro-img {
    width: 120px;
    height: 120px;
}

.logro-card:hover .logro-img {
    transform: scale(1.08);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

/* TYPE BADGE */
.card-type-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-tv {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-creator {
    background: rgba(0, 200, 255, 0.08);
    color: #00c8ff;
    border: 1px solid rgba(0, 200, 255, 0.25);
}

.badge-reporter {
    background: rgba(192, 192, 192, 0.08);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.25);
}

.badge-news {
    background: rgba(205, 127, 50, 0.08);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.25);
}

/* TEXTOS DE CARD */
.card-by {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 10px 0 4px;
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 10px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.card-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    margin: 8px auto 12px;
}

.card-feature .card-divider {
    margin: 8px 0 12px;
    width: 60px;
}

/* BTN GROUP */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.card-standard .btn-group {
    justify-content: center;
}

/* Override del glow-gold y glow-arkham para que no ocupen margin excesivo */
.bento-grid .glow-gold,
.bento-grid .glow-arkham {
    margin: 8px 0 14px;
    font-size: 1rem;
}

.card-feature .glow-gold {
    font-size: 1.3rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-feature {
        grid-column: 1 / -1;
    }

    .card-wide {
        grid-column: 1 / -1;
    }

    .card-standard {
        grid-column: span 1;
    }
}

@media (max-width: 767px) {

    /* Hero mobile */
    .hero-title-main {
        font-size: 3rem;
    }

    .hero-desc {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .eyebrow-line {
        width: 40px;
    }

    /* Stats mobile */
    .stats-strip {
        gap: 10px;
        padding: 18px 15px;
    }

    .stat-item {
        padding: 0 12px;
        min-width: 70px;
    }

    .stat-divider {
        height: 30px;
    }

    /* Bento mobile - todo stacked */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card-feature,
    .card-wide,
    .card-standard {
        grid-column: 1 / -1;
    }

    /* Feature card: layout vertical en mobile */
    .card-feature .card-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .card-feature .card-divider {
        margin: 8px auto 12px;
    }

    .card-feature .card-desc {
        font-size: 0.82rem;
    }

    .card-feature .glow-gold {
        font-size: 1rem;
    }

    .card-name {
        font-size: 1.25rem;
    }

    .logro-img {
        width: 75px;
        height: 75px;
    }

    .card-feature .logro-img {
        width: 90px;
        height: 90px;
    }

    /* Botones mobile */
    .video-btn {
        padding: 9px 18px;
        font-size: 0.78rem;
    }

    .btn-group {
        justify-content: center;
    }
}

/* Animación de entrada staggered para las cards */
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-grid .logro-card {
    animation: cardReveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bento-grid .logro-card:nth-child(1) { animation-delay: 0.1s; }
.bento-grid .logro-card:nth-child(2) { animation-delay: 0.2s; }
.bento-grid .logro-card:nth-child(3) { animation-delay: 0.3s; }
.bento-grid .logro-card:nth-child(4) { animation-delay: 0.4s; }
.bento-grid .logro-card:nth-child(5) { animation-delay: 0.5s; }

/* JS stats counter — estado inicial */
.stat-num {
    transition: none;
}

/* EFECTOS DE TEXTO BRILLANTE EN CINZEL */
.glow-gold {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffecb3;
    text-transform: uppercase;
    margin: 10px 0 25px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4);
    animation: gold-breath 3s ease-in-out infinite alternate;
}

.glow-arkham {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 10px 0 25px;
    background: linear-gradient(90deg, #d4af37, #fff, #8a7322);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    animation: gold-breath 3s ease-in-out infinite alternate;
}

@keyframes gold-breath {
    from {
        filter: brightness(0.9);
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    to {
        filter: brightness(1.2);
        letter-spacing: 1px;
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.9), 0 0 40px rgba(212, 175, 55, 0.5);
    }
}

/* BOTONES LUXURY GOLD OVERRIDE */
.video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 5px;
    transition: all 0.3s ease;
    
    /* Base corporativa de lujo */
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid #d4af37;
    color: #d4af37;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.btn-yt i, .btn-fb i {
    font-size: 1.1rem;
}

/* Al hacer hover, se encienden en gradiente dorado puro */
.btn-yt:hover, .btn-fb:hover {
    background: linear-gradient(135deg, #d4af37, #8a7322);
    color: #111;
    border-color: #ffe58f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Footer */
.social-links {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    transition: .3s;
    backdrop-filter: blur(5px)
}

.social-links a:hover {
    background: linear-gradient(135deg, #d4af37, #ffecb3);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px #d4af37, 0 0 30px #ffecb3
}

footer {
    text-align: center;
    padding: 25px 10px;
    color: #d4af37;
    font-size: .95rem;
    width: 100%;
    margin-top: auto
}

/* Tablet / Netbook Optimization for Desktop Menu */
@media (min-width: 768px) and (max-width: 1100px) {
    header {
        padding: 15px 20px;
    }

    nav ul {
        gap: 15px;
        /* Tighter gap */
    }

    nav ul li a {
        font-size: 0.95rem;
        /* Slightly smaller text */
        padding: 5px;
    }
}

@media(max-width:767px) {
    nav {
        display: none;
    }



    header {
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.95);
        /* Consistent header bg */
    }

    section {
        padding: 110px 15px 20px;
        /* Agregado padding top para alejar del header, márgenes seguros a los lados */
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    h1 {
        font-size: 1.5rem;
        /* Significantly smaller */
        margin-bottom: 30px;
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        word-wrap: break-word;
        /* Evita que el título rompa el ancho */
    }

    /* HIDE Fixed Social Links on Mobile to prevent clutter/overlap */
    .social-links {
        display: none;
    }

    /* Compact Marquee */
    .marquee-container {
        padding: 10px 0;
        margin-bottom: 30px;
        width: 100%;
        /* Restringe el ancho al contenedor padre */
        box-sizing: border-box;
    }

    .marquee-track img {
        height: 40px;
        /* Smaller logos */
        margin: 0 15px;
    }

    /* Compact Grid */
    .logros-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        /* Tighter gap */
    }

    /* Compact Cards - Vertical Layout (Restored & Optimized) */
    .logro-card {
        padding: 20px 15px;
        border-radius: 12px;
        background: rgba(20, 20, 20, 0.6);
        display: flex;
        flex-direction: column;
        /* Vertical alignment */
        align-items: center;
        gap: 10px;
        text-align: center;
        /* Center text */
    }

    .logro-img {
        width: 70px;
        /* Balanced size */
        height: 70px;
        margin-bottom: 5px;
        margin-right: 0;
        border-width: 2px;
    }

    /* Reset margins */
    .logro-card>*:not(.logro-img) {
        margin: 0;
    }

    .logro-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
        width: auto;
    }

    .glow-gold,
    .glow-arkham {
        font-size: 1rem;
        margin: 5px 0 10px;
        text-align: center;
    }

    .video-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
        margin: 5px;
        align-self: center;
    }

    /* Footer Centering (Block for Wrapping) */
    footer {
        padding: 20px 15px 25px 15px;
        /* Eliminado padding-left de 140px que rompía el ancho de pantalla */
        font-size: 0.8rem;
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }
}

/* EFECTO DE SELECCIÓN MÁGICA */
::selection {
    background: rgba(106, 15, 15, 0.8);
    color: #ffffff;
    text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37, 0 0 20px #ffecb3;
}

::-moz-selection {
    background: rgba(106, 15, 15, 0.8);
    color: #ffffff;
    text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37;
}

/* SELECCIÓN MODO GAMER */
body.kick-theme ::selection,
body.kick-theme *::selection {
    background: #53fc18 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
}

body.kick-theme ::-moz-selection,
body.kick-theme *::-moz-selection {
    background: #53fc18 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
}

/* Estilo de la partícula mágica */
.magic-star {
    position: fixed;
    pointer-events: none;
    background: #d4af37;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffecb3;
    animation: fadeOut 1s linear forwards;
    z-index: 9999;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
}

/* Custom Animated Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s linear;
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
}

/* Efecto y colores del cursor en Modo Gamer */
body.kick-theme .custom-cursor svg {
    filter: drop-shadow(0 0 5px rgba(83, 252, 24, 0.8));
    transition: all 0.1s ease-in;
}

body.kick-theme .custom-cursor.is-shooting svg {
    transform: scale(0.6);
    filter: drop-shadow(0 0 10px #ff0000) drop-shadow(0 0 5px #fffe00);
    transition: all 0.05s ease-out;
}

body.kick-theme .custom-cursor.is-shooting svg line,
body.kick-theme .custom-cursor.is-shooting svg circle {
    stroke: #ffffff !important;
}

/* Ocultar el cursor personalizado VIRTUAL enteramente en móviles */
@media (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
}

/* --- MODO KICK (STREAMER GAMER MODE) --- */

/* Contenedor del boton Toggle (Modo Normal: Centro) */
.theme-switch-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Botón Clásico Starmark */
.btn-kick-toggle {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-kick-toggle i {
    width: auto; 
}

.btn-kick-toggle span {
    opacity: 1; /* Siempre visible en el modo clásico */
}

.btn-kick-toggle:hover {
    background: #d4af37;
    color: #000;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
    transform: scale(1.05); /* En modo clásico solo crece algo básico */
}

/* --- MODO GAMER: BOTON FLOTANTE Y RECTILÍNEO --- */
body.kick-theme .theme-switch-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000; /* Asegurar que siempre esté por encima */
    margin-bottom: 0;
}

body.kick-theme .btn-kick-toggle {
    border: 2px solid #53fc18;
    color: #53fc18;
    background: rgba(10, 15, 12, 0.85);
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.4);
    
    /* Diseño Cuadrado Tecnológico en vez de circular */
    border-radius: 8px; /* Esquinas agudas como un puerto hardware */
    padding: 10px;
    width: 48px; /* Ocultar texto por defecto */
    height: 48px;
    overflow: hidden;
    white-space: nowrap;
    justify-content: flex-start;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: none; /* Quitar el scale() del modo clásico */
}

body.kick-theme .btn-kick-toggle i {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

body.kick-theme .btn-kick-toggle span {
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

body.kick-theme .btn-kick-toggle:hover {
    width: 315px; /* Tamaño equilibrado: no corta el texto ni deja huecos enormes */
    background: rgba(83, 252, 24, 0.15);
    box-shadow: 0 0 25px rgba(83, 252, 24, 0.7), inset 0 0 15px rgba(83, 252, 24, 0.3);
    color: #53fc18;
}

body.kick-theme .btn-kick-toggle:hover span {
    opacity: 1;
    transition-delay: 0.15s;
}

/* Modificaciones Globales cuando kick-theme está activo en el body */
body.kick-theme {
    background-color: #050806;
    /* Fondo de Cuadrícula "Tron" / "Cyberpunk" muy inmersiva */
    background-image:
        linear-gradient(rgba(83, 252, 24, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83, 252, 24, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    color: #fff;
}

/* Forzar la tipografía gamer universalmente a los elementos de texto (Override del Modo Clásico) */
body.kick-theme h1,
body.kick-theme h2,
body.kick-theme h3,
body.kick-theme h4,
body.kick-theme p,
body.kick-theme span,
body.kick-theme div,
body.kick-theme button {
    font-family: 'Orbitron', 'Courier New', sans-serif !important;
}

body.kick-theme footer {
    color: #53fc18;
}

/* Overlay oscuro Inmersivo profundo tipo FPS / Shooter */
body.kick-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.95) 100%);
    z-index: -2;
    pointer-events: none;
}

/* Esconder las bolitas de nieve suaves clásicas en Modo Kick para no arruinar la inmersión */
body.kick-theme #particles {
    opacity: 0.15;
    /* las rebajamos casi al mínimo o podemos apagarlas */
    filter: hue-rotate(240deg) saturate(300%) contrast(200%);
    /* Las volvemos tonalidad verde brusca */
}

/* Títulos en Modo Kick */
body.kick-theme .neon-title {
    color: #fff;
    text-shadow: 0 0 20px rgba(83, 252, 24, 0.8), 0 0 40px rgba(83, 252, 24, 0.6);
}

/* Tarjetas en Modo Kick */
body.kick-theme .logro-card {
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(83, 252, 24, 0.2);
}

body.kick-theme .logro-card:hover {
    border-color: #53fc18;
    box-shadow: 0 10px 30px rgba(83, 252, 24, 0.3);
}

body.kick-theme .logro-img {
    border-color: #53fc18;
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.4);
}

/* Efecto Glow Neón Verde */
.glow-neon {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin: 10px 0 20px;
    text-shadow: 0 0 15px #53fc18, 0 0 30px #53fc18;
    animation: pulse-kick 1.5s infinite alternate;
}

@keyframes pulse-kick {
    from {
        filter: brightness(1);
        letter-spacing: 0px;
    }

    to {
        filter: brightness(1.3);
        letter-spacing: 1px;
    }
}

/* Botones Streaming Links */
.btn-kick-link {
    background: #53fc18;
    color: #000;
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.4);
}

.btn-kick-link:hover {
    background: #41e012;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.6);
}

.btn-twitch-link {
    background: #6441a5;
    color: #fff;
    box-shadow: 0 0 10px rgba(100, 65, 165, 0.4);
}

.btn-twitch-link:hover {
    background: #503385;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(100, 65, 165, 0.6);
}

.btn-tiktok-link {
    background: #ff0050;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 80, 0.4);
}

.btn-tiktok-link:hover {
    background: #cc0040;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.6);
}

/* Modificar el Color del Navbar y Textos Secundarios */
body.kick-theme nav ul li a.active-page {
    color: #53fc18 !important;
}

body.kick-theme nav ul li a.active-page::after {
    background: #53fc18;
}

body.kick-theme .custom-cursor svg {
    fill: #53fc18;
    filter: drop-shadow(0 0 5px rgba(83, 252, 24, 0.8));
}



/* Hover de enlaces del Navbar Principal */
body.kick-theme nav ul li a:hover {
    color: #53fc18 !important;
    text-shadow: 0 0 10px rgba(83, 252, 24, 0.5);
}

/* Base de la barra inferior para evitar animación residual roja */
body.kick-theme nav ul li a::after {
    background: #53fc18 !important;
}

body.kick-theme nav ul li a:hover::after {
    background: #53fc18 !important;
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.5);
}

/* Línea inferior de los padres activos en el Navbar */
body.kick-theme nav ul li.parent-active>a {
    color: #53fc18 !important;
}

body.kick-theme nav ul li.parent-active>a::after {
    background: #53fc18 !important;
}

/* Dropdowns (Submenús de Cartelera, Nosotros, etc.) */
body.kick-theme nav .submenu {
    border-bottom: 2px solid #53fc18 !important;
}

body.kick-theme nav .submenu li a:hover {
    color: #53fc18 !important;
    background: rgba(83, 252, 24, 0.15) !important;
}

/* Rediseño Radical: Cyberpunk Streamer Directory */
.cyber-desc {
    text-align: center;
    color: #53fc18;
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: monospace;
    background: rgba(83, 252, 24, 0.1);
    padding: 15px;
    border-left: 4px solid #53fc18;
    border-right: 4px solid #53fc18;
    text-transform: uppercase;
}

.streamer-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.streamer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(30, 30, 35, 0.9), rgba(15, 15, 20, 0.9));
    border-top: 1px solid rgba(83, 252, 24, 0.3);
    border-bottom: 1px solid rgba(83, 252, 24, 0.3);
    border-left: 5px solid #53fc18;
    padding: 15px 30px;
    clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px);
    transition: all 0.3s ease;
}

.streamer-row:hover {
    box-shadow: inset 0 0 20px rgba(83, 252, 24, 0.2);
    border-left-width: 10px;
    transform: translateX(5px);
}

.str-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    border: 2px solid #53fc18;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.5);
    overflow: hidden;
}

.str-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: 0.3s;
}

.streamer-row:hover .str-img {
    filter: grayscale(0%);
}

.str-info {
    flex-grow: 1;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.str-info h2 {
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #53fc18;
    margin: 0;
}

.str-badge {
    font-size: 0.8rem;
    font-weight: bold;
    font-family: monospace;
    display: inline-block;
}

.str-badge.online {
    color: #53fc18;
    text-shadow: 0 0 5px #53fc18;
}

.str-badge.offline {
    color: #aaa;
}

.str-event {
    color: #ccc;
    font-size: 0.95rem;
    font-family: monospace;
}

.str-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
    text-transform: uppercase;
}

/* Movil Streaming Row Optimization */
@media(max-width: 767px) {
    .streamer-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        clip-path: none;
        border-radius: 10px;
        padding: 20px;
    }

    .str-info {
        padding: 0;
    }

    .str-info h2 {
        font-size: 1.4rem;
    }
}

/* Partícula Gamer Pixel */
.kick-pixel {
    position: fixed;
    pointer-events: none;
    background: #53fc18;
    width: 8px;
    /* Cuadradito duro */
    height: 8px;
    box-shadow: 0 0 10px #53fc18;
    animation: pixelDrop 0.6s linear forwards;
    z-index: 9999;
}

@keyframes pixelDrop {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(5px, 20px) scale(0.2);
    }
}

/* ============================================================
   Nuevo diseño HUD para el modo gamer / streamer
   ============================================================ */

/* BOOT SCREEN */
#gamer-boot {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 10px;
    padding: 40px 20px;
    background: #050806;
    /* Fondo base oscuro */
}

/* Capa de Animación Glitch & Scanlines */
#gamer-boot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(83, 252, 24, 0.05) 50%, rgba(0, 0, 0, 0.2) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 100% 100%;
    opacity: 0;
    animation: bootGlitchBgFX 2.2s infinite alternate;
    /* Duración coordinada al audio */
}

/* Efecto de parpadeo caótico sincronizado con mecánica robótica */
@keyframes bootGlitchBgFX {
    0% {
        opacity: 0.1;
        filter: hue-rotate(0deg);
        transform: translate(0, 0);
    }

    10% {
        opacity: 0.8;
        filter: hue-rotate(-20deg) contrast(1.5);
        transform: translate(-2px, 1px);
    }

    15% {
        opacity: 0.2;
        transform: translate(2px, -1px);
    }

    20% {
        opacity: 0.9;
        filter: hue-rotate(20deg) brightness(1.2);
    }

    25% {
        opacity: 0.1;
        transform: translate(0, 2px);
    }

    35% {
        opacity: 0.7;
        filter: contrast(1.8);
    }

    40% {
        opacity: 0.3;
        transform: scale(1.02);
    }

    60% {
        opacity: 0.6;
        filter: hue-rotate(0deg);
        transform: scale(1);
    }

    80% {
        opacity: 0.9;
        transform: translate(1px, 1px);
    }

    100% {
        opacity: 0.5;
        filter: none;
        transform: translate(0, 0);
    }
}

#boot-lines-container,
.boot-bar-wrap {
    position: relative;
    z-index: 1;
    /* Asegurar que queden por encima de los scanlines */
}

.boot-text-line {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #53fc18;
    opacity: 0;
    animation: bootFadeIn 0.3s forwards;
    letter-spacing: 1px;
}

@keyframes bootFadeIn {
    to {
        opacity: 1;
    }
}

.boot-bar-wrap {
    width: 300px;
    height: 6px;
    border: 1px solid rgba(83, 252, 24, 0.4);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

#boot-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #53fc18, #00cfff);
    border-radius: 2px;
    transition: width 0.15s ease;
}

/* GLITCH TITLE */
.glitch-title {
    position: relative;
    display: block;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #53fc18;
    text-shadow: 0 0 20px rgba(83, 252, 24, 0.8), 0 0 40px rgba(83, 252, 24, 0.6);
}

.glitch-title::before {
    animation: glitch-top 4s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}

.glitch-title::after {
    animation: glitch-bot 4s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitch-top {

    0%,
    90%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    92% {
        transform: translate(-3px, 1px);
        opacity: 0.7;
    }

    94% {
        transform: translate(3px, -1px);
        opacity: 0.7;
    }

    96% {
        transform: translate(0);
        opacity: 0;
    }
}

@keyframes glitch-bot {

    0%,
    88%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    90% {
        transform: translate(3px, 1px);
        opacity: 0.7;
    }

    93% {
        transform: translate(-2px, -1px);
        opacity: 0.7;
    }

    95% {
        transform: translate(0);
        opacity: 0;
    }
}

/* STATS HUD ROW */
.hud-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hud-stat-box {
    border: 1px solid rgba(83, 252, 24, 0.3);
    background: rgba(83, 252, 24, 0.05);
    padding: 14px 10px;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: border-color 0.3s;
}

.hud-stat-box:hover {
    border-color: rgba(83, 252, 24, 0.8);
}

.hud-stat-num {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    color: #00cfff;
    text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

.hud-stat-label {
    font-size: 10px;
    color: rgba(83, 252, 24, 0.5);
    letter-spacing: 2px;
    margin-top: 4px;
    font-family: monospace;
}

/* LEADERBOARD COLUMN HEADER */
.lb-col-header {
    display: grid;
    grid-template-columns: 50px 90px 1fr auto;
    gap: 12px;
    align-items: center;
    font-size: 10px;
    color: rgba(83, 252, 24, 0.4);
    padding: 4px 14px;
    margin-bottom: 6px;
    letter-spacing: 2px;
    font-family: monospace;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* HUD ROW (reemplaza estilos de streamer-row para dentro del modo gamer) */
.hud-row {
    display: grid;
    grid-template-columns: 50px 90px 1fr auto;
    gap: 12px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 10px;
    padding: 14px 18px;
    border: 1px solid rgba(83, 252, 24, 0.25);
    background: rgba(83, 252, 24, 0.04);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: background 0.3s, border-color 0.3s;
    transform: none;
    /* sobreescribe el translateX del hover base */
}

.hud-row:hover {
    background: rgba(83, 252, 24, 0.09);
    border-color: rgba(83, 252, 24, 0.6);
    transform: none;
    box-shadow: inset 0 0 20px rgba(83, 252, 24, 0.08);
}

/* Línea de scan al hover */
.hud-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #53fc18, transparent);
    transition: left 0.5s ease;
}

.hud-row:hover::before {
    left: 100%;
}

/* RANKS CON COLORES */
.hud-row.rank-gold {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.04);
}

.hud-row.rank-silver {
    border-color: rgba(192, 192, 192, 0.35);
}

.hud-row.rank-bronze {
    border-color: rgba(205, 127, 50, 0.35);
}

/* BADGE DE RANK */
.rank-badge {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    line-height: 1;
}

.rank-badge.gold {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.rank-badge.silver {
    color: #c0c0c0;
}

.rank-badge.bronze {
    color: #cd7f32;
}

.rank-badge.normal {
    color: rgba(83, 252, 24, 0.4);
}

/* XP BARS */
.xp-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(83, 252, 24, 0.1);
    margin-top: 8px;
}

.xp-bar {
    height: 100%;
    width: 0%;
    /* animado por JS */
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.xp-gold {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
}

.xp-silver {
    background: linear-gradient(90deg, #c0c0c0, #888888);
}

.xp-bronze {
    background: linear-gradient(90deg, #cd7f32, #8b4513);
}

.xp-normal {
    background: linear-gradient(90deg, #53fc18, #00cfff);
}

/* COLUMNA DERECHA HUD */
.hud-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    text-align: center;
}

.hud-score {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #00cfff;
}

.gold-text {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.silver-text {
    color: #c0c0c0;
}

.bronze-text {
    color: #cd7f32;
}

/* BADGES DE PLATAFORMA */
.hud-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 9px;
    letter-spacing: 1px;
    font-family: monospace;
    border-radius: 2px;
}

.badge-yt {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.badge-fb {
    background: rgba(0, 100, 255, 0.15);
    color: #4488ff;
    border: 1px solid rgba(0, 100, 255, 0.3);
}

.badge-creator {
    background: rgba(0, 207, 255, 0.15);
    color: #00cfff;
    border: 1px solid rgba(0, 207, 255, 0.3);
}

.badge-ally {
    background: rgba(83, 252, 24, 0.15);
    color: #53fc18;
    border: 1px solid rgba(83, 252, 24, 0.3);
}

/* FOOTER HUD */
.hud-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 10px 16px;
    border: 1px solid rgba(83, 252, 24, 0.2);
    background: rgba(83, 252, 24, 0.04);
    font-size: 10px;
    color: rgba(83, 252, 24, 0.45);
    letter-spacing: 1px;
    font-family: monospace;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* RESPONSIVE */
@media (max-width: 767px) {

    .hud-row,
    .lb-col-header {
        grid-template-columns: 30px 60px 1fr;
        grid-template-rows: auto auto;
    }

    .hud-right-col {
        grid-column: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        min-width: unset;
    }

    .lb-col-header span:last-child {
        display: none;
    }

    .hud-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .hud-footer-bar {
        font-size: 9px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ANIMACIÓN ENTRADA FLUIDA PARA HUD GAMER */
@keyframes hudFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

#gamer-content>* {
    opacity: 0;
    animation: hudFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#gamer-content h1 {
    animation-delay: 0.1s;
}

#gamer-content .cyber-desc {
    animation-delay: 0.2s;
}

#gamer-content .hud-stats-row {
    animation-delay: 0.3s;
}

#gamer-content .lb-col-header {
    animation-delay: 0.4s;
}

#gamer-content .hud-row:nth-of-type(1) {
    animation-delay: 0.5s;
}

#gamer-content .hud-row:nth-of-type(2) {
    animation-delay: 0.6s;
}

#gamer-content .hud-row:nth-of-type(3) {
    animation-delay: 0.7s;
}

#gamer-content .hud-row:nth-of-type(4) {
    animation-delay: 0.8s;
}

#gamer-content .hud-row:nth-of-type(5) {
    animation-delay: 0.9s;
}

#gamer-content .hud-footer-bar {
    animation-delay: 1s;
}

/* CURSOR DE MÁQUINA DE ESCRIBIR */
.type-cursor {
    display: inline-block;
    color: #53fc18;
    font-weight: bold;
    animation: blinkCursor 0.8s infinite steps(2, start);
    margin-left: 2px;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ============================================================
   MEGA SECUENCIA CINEMATOGRÁFICA DE ARRANQUE "OVERCLOCK"
   ============================================================ */

#gamer-global-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: none;
    overflow: hidden;
}

#gamer-global-fx.run-fx {
    display: block;
}

/* 1. PULSO EXPANSIVO (0.0s - 0.4s) */
.epic-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1vw;
    height: 1vw;
    background: radial-gradient(circle, rgba(83, 252, 24, 0.9) 0%, rgba(83, 252, 24, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: fxPulse 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes fxPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(200);
        opacity: 0;
    }
}

/* 2. WARP SPEED / PORTAL (0.3s - 1.5s) */
.epic-warp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    opacity: 0;
    animation: fxWarpFade 1.6s 0.2s forwards;
}

.epic-warp::before,
.epic-warp::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(1px 1px at 50% 50%, #53fc18 1px, transparent 1px),
        radial-gradient(1.5px 1.5px at 20% 30%, #fff 1.5px, transparent 2px),
        radial-gradient(2px 2px at 80% 70%, #53fc18 2px, transparent 2px),
        radial-gradient(1px 1px at 40% 80%, #53fb1896 1px, transparent 1px);
    background-size: 80px 80px, 150px 150px, 120px 120px, 60px 60px;
    transform-origin: center;
    animation: fxWarpZoom 1.5s linear infinite;
}

.epic-warp::after {
    animation-delay: 0.75s;
}

@keyframes fxWarpZoom {
    0% {
        transform: translateZ(-1000px) scale(0.1);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateZ(500px) scale(3);
        opacity: 0;
    }
}

@keyframes fxWarpFade {
    0% {
        opacity: 0;
        box-shadow: inset 0 0 0 100vw rgba(0, 0, 0, 1);
    }

    10% {
        opacity: 1;
        box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
        filter: brightness(2);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        fillter: brightness(0);
    }
}

/* 3. MATRIX LLUVIA BORDES (0.2s - 1.8s) */
.epic-matrix {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15vw;
    background: repeating-linear-gradient(0deg,
            rgba(83, 252, 24, 0) 0px,
            rgba(83, 252, 24, 0.1) 80px,
            rgba(83, 252, 24, 0.6) 100px,
            rgba(83, 252, 24, 0) 100px);
    background-size: 100% 200%;
    opacity: 0;
    filter: blur(1px);
    animation: fxMatrixFall 1.6s 0.2s cubic-bezier(0.1, 0.8, 0.4, 1) forwards;
}

.epic-matrix-left {
    left: 0;
    border-right: 2px solid rgba(83, 252, 24, 0.3);
}

.epic-matrix-right {
    right: 0;
    border-left: 2px solid rgba(83, 252, 24, 0.3);
    transform: scaleY(-1);
}

@keyframes fxMatrixFall {
    0% {
        background-position: 0 -200%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        background-position: 0 400%;
        opacity: 0;
    }
}

/* ============================================================
   SOCIAL LINKS GAMER (OVERRIDE SCIFI)
   ============================================================ */
body.kick-theme .social-links {
    position: fixed;
    top: 50%;
    right: 0px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%) translateX(100%);
    /* Oculto inicialmente a la derecha */
    opacity: 0;
    pointer-events: none;
    background: rgba(10, 15, 12, 0.9);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 2px solid #53fc18;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 20px rgba(83, 252, 24, 0.2);
    clip-path: polygon(100% 0, 100% 100%, 0 95%, 0 5%);
    /* Forma de panel técnico */
    transition: none;
    /* Salto invisible e instantáneo para evitar que lo vean viajar */
}

/* Estado una vez que termina la carga */
body.kick-theme.kick-boot-done .social-links {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    /* Transición suave SOLAMENTE al revelarse */
}

body.kick-theme .social-links::before {
    content: "NET";
    writing-mode: vertical-rl;
    color: #53fc18;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(83, 252, 24, 0.8);
    opacity: 0.8;
}

/* Rediseño total del Header para Modo Gamer (Visor Central HUD) */
body.kick-theme header {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Pegado absolutamente al techo */
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding-top: 0;
    pointer-events: none !important; /* IMPORTANTE: Dejar pasar clicks al botón inferior */
}

body.kick-theme header .logo {
    pointer-events: auto; /* Restaurar clicks solo al logo */
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(10, 15, 12, 0.85);
    border: 2px solid rgba(83, 252, 24, 0.4);
    border-top: none; /* Anclado al borde superior nativo del explorador */
    padding: 12px 60px 15px 60px;
    border-radius: 0 0 25px 25px; /* Geometría inferior acorazada */
    box-shadow: 0 15px 30px rgba(83, 252, 24, 0.15), inset 0 -5px 15px rgba(83, 252, 24, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top center;
}

body.kick-theme header .logo:hover {
    box-shadow: 0 15px 40px rgba(83, 252, 24, 0.4), inset 0 -5px 25px rgba(83, 252, 24, 0.3);
    border-color: #53fc18;
    padding-top: 25px; /* Animación de despliegue mecánico hacia abajo */
    background: rgba(15, 25, 18, 0.95);
}

/* Logo textual en el header (Modo Gamer) */
body.kick-theme header .logo span {
    color: #53fc18;
    text-shadow: 0 0 10px rgba(83, 252, 24, 0.4);
    font-family: Consolas, 'Courier New', monospace;
    letter-spacing: 1.5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* COMMAND DOCK - Menú Inferior Fijo (Modo Gamer) */
body.kick-theme header nav {
    position: fixed !important;
    bottom: -100px !important;
    /* Escondido inicialmente */
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(10, 15, 12, 0.95);
    border: 1px solid #53fc18;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 10px 20px;
    box-shadow: 0 0 30px rgba(83, 252, 24, 0.2), inset 0 0 15px rgba(83, 252, 24, 0.1);
    z-index: 9999;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: none !important;
}

body.kick-theme.kick-boot-done header nav {
    bottom: 0px !important;
    opacity: 1;
    pointer-events: auto;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease !important;
}

body.kick-theme header nav>ul {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Modificadores de los botones dentro del Dock */
body.kick-theme header nav>ul>li {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
}

body.kick-theme header nav>ul>li>a {
    font-family: Consolas, 'Courier New', monospace !important;
    color: #a0f08b !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease !important;
    white-space: nowrap; /* Evita que la flecha caiga a la segunda línea */
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Eliminar la línea animada clásica debajo de los botones */
body.kick-theme header nav>ul>li>a::after {
    display: none !important;
}

body.kick-theme header nav>ul>li>a:hover {
    color: #53fc18 !important;
    background: rgba(83, 252, 24, 0.1);
    border: 1px solid rgba(83, 252, 24, 0.5);
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.2);
}

body.kick-theme header nav>ul>li>a.active {
    color: #050806 !important;
    background: #53fc18 !important;
    border: 1px solid #53fc18 !important;
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.6) !important;
    font-weight: bold;
}

/* Invertir los submenús para que salgan hacia ARRIBA desde el Dock */
body.kick-theme header nav>ul>li .submenu {
    position: absolute !important;
    bottom: 120% !important; /* Desfasado ligeramente arriba para animar bajando hacia el botón */
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    background: rgba(10, 15, 12, 0.95) !important;
    border: 1px solid #53fc18 !important;
    border-bottom: none !important;
    box-shadow: 0 -10px 25px rgba(83, 252, 24, 0.3) !important;
    border-radius: 8px 8px 0 0;
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Puente de colisión invisible entre el botón y el panel del submenu */
body.kick-theme header nav>ul>li .submenu::after {
    content: '';
    position: absolute;
    bottom: -30px; /* Expande la caja de colisión física hacia abajo */
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

/* Mostrar submenu dinámico */
body.kick-theme header nav>ul>li:hover .submenu {
    opacity: 1;
    visibility: visible;
    bottom: 100% !important; /* Aterriza y toca físicamente el botón */
}

body.kick-theme header nav>ul>li .submenu li a {
    font-family: Consolas, 'Courier New', monospace !important;
    color: #a0f08b !important;
    text-transform: uppercase;
    font-size: 13px;
    display: block;
    padding: 8px 15px;
}

body.kick-theme header nav>ul>li .submenu li a:hover {
    background: rgba(83, 252, 24, 0.15) !important;
    color: #53fc18 !important;
}

body.kick-theme .social-links a {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.5) !important;
    /* Forza quitar el gris normal */
    color: #53fc18 !important;
    border: 1px solid rgba(83, 252, 24, 0.3);
    border-radius: 6px !important;
    /* Cuadrado tecnológico en vez de círculo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s linear !important;
    position: relative;
    overflow: hidden;
}

/* Efecto de escáner interno al hacer hover */
body.kick-theme .social-links a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(83, 252, 24, 0.6));
    transition: all 0.3s ease;
    opacity: 0;
}

body.kick-theme .social-links a:hover {
    background: rgba(83, 252, 24, 0.15) !important;
    color: #fff !important;
    border-color: #53fc18;
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.8), inset 0 0 10px rgba(83, 252, 24, 0.4) !important;
    transform: scale(1.1) translateX(-8px) !important;
    /* Salta hacia la izquierda */
}

body.kick-theme .social-links a:hover::after {
    opacity: 1;
    transform: translateY(300%);
}

/* ===================================== */
/* AJUSTES RESPONSIVOS MÓVILES MODO GAMER */
/* ===================================== */
@media screen and (max-width: 768px) {
    /* Ocultar el ícono de hamburguesa clásico si está, ya que el HUD navega abajo */
    body.kick-theme header .menu-toggle {
        display: none !important;
    }

    /* Adaptar el Command Dock inferior para que haga scroll horizontal natural */
    body.kick-theme header nav {
        width: 95% !important;
        padding: 8px 10px !important;
        border-radius: 8px 8px 0 0 !important;
    }

    body.kick-theme header nav>ul {
        gap: 8px !important;
        overflow-x: auto !important; /* Habilitar swipe scroll */
        justify-content: flex-start !important;
        width: 100%;
        padding-bottom: 2px !important;
        
        /* Ocultar scrollbar viusalmente para más estética */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    body.kick-theme header nav>ul::-webkit-scrollbar {
        display: none;
    }

    /* Achicar un poco los botones para celulares */
    body.kick-theme header nav>ul>li>a {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }

    /* FIX: Submenus emergentes centrados en pantalla para evitar corte por el scroll lateral */
    body.kick-theme header nav>ul>li .submenu {
        position: fixed !important;
        bottom: 85px !important; /* Un poco más arriba de la base */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 200px !important;
        z-index: 10000 !important;
        border-radius: 8px !important;
        border-bottom: 1px solid #53fc18 !important; /* Cerrar el borde inferior */
        box-shadow: 0 -20px 40px rgba(83, 252, 24, 0.3) !important;
    }

    /* Transición al pulsar, que descienda amigablemente */
    body.kick-theme header nav>ul>li:hover .submenu,
    body.kick-theme header nav>ul>li:focus-within .submenu,
    body.kick-theme header nav>ul>li:active .submenu {
        bottom: 60px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Innecesario en móvil */
    body.kick-theme header nav>ul>li .submenu::after {
        display: none !important;
    }
}