/* =========================================================
    GLOBAL.CSS FINAL  HUD CYAN + GOLD SUAVE
   Market FF Sudamrica HUB
========================================================= */

/* =========================================================
   1. RESET + BASE
========================================================= */

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

html, body {
    min-height: 100%;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: url('/static/fondomarket.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow-x: hidden;
    position: relative;
    color: #dff6ff;
}

/* Capa oscura + blur */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

/* HUD digital animado */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(0,255,255,0.04) 0, transparent 4px 8px),
        repeating-linear-gradient(90deg, rgba(0,255,255,0.04) 0, transparent 4px 8px);
    animation: hudMove 18s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes hudMove {
    from { transform: translate(0,0); }
    to   { transform: translate(-80px,-80px); }
}

/* Partculas */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   2. CONTENEDOR PRINCIPAL HUD
========================================================= */

.gamer-container {
    position: relative;
    z-index: 10;
    max-width: 1180px;
    margin: 40px auto;
    padding: 35px;
    background: radial-gradient(circle at top, rgba(0, 80, 120, 0.35), rgba(10,20,35,0.95));
    border: 2px solid rgba(0,255,255,0.45);
    border-radius: 22px;
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 35px rgba(0,255,255,0.35),
        inset 0 0 20px rgba(0,255,255,0.25);
    overflow: hidden;
}

/* HUD Esquinas */
.gamer-container::before,
.gamer-container::after {
    content: "";
    position: absolute;
    width: 55px;
    height: 55px;
    border: 3px solid #00eaff;
    border-radius: 12px;
    filter: drop-shadow(0 0 12px #00eaff);
}

.gamer-container::before {
    top: -15px;
    left: -15px;
    border-right: none;
    border-bottom: none;
}

.gamer-container::after {
    bottom: -15px;
    right: -15px;
    border-left: none;
    border-top: none;
    animation: neonPulse 4s infinite linear;
}

@keyframes neonPulse {
    0%   { opacity: 0.4; }
    50%  { opacity: 1; transform: scale(1.03); }
    100% { opacity: 0.4; }
}

/* =========================================================
   3. TIPOGRAFA  TTULOS UNIFICADOS
========================================================= */

/* Ttulo principal (Home + Detail) */
h1,
.page-title,
.main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;              /* tamao grande estilo captura */
    font-weight: 700;
    text-align: center;
    color: #00eaff;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.05;
    text-shadow:
        0 0 20px #00eaff,
        0 0 40px #00c8ff,
        0 0 60px #009dff,
        0 0 85px #0077cc;
    margin-bottom: 25px;
    margin-top: 10px;
}

/* Subttulos internos (por ejemplo Informacin del tem) */
h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: #00eaff;
    font-size: 2.1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow:
        0 0 12px #00eaff,
        0 0 28px #009dff;
}

.gamer-container h3 {
    font-size: 2.3rem;
}

/* Texto general */
p, span, label {
    font-size: 14px;
}
/* =========================================================
   HUD TITLES PRO  TTULOS CYBERPUNK PREMIUM
========================================================= */
.hud-title {
    font-family: 'Anton', sans-serif;
    font-size: 4.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;

    /* Color base metlico */
    color: #e5e9f2;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #e3e8f0 35%,
        #c3c9d4 60%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Sombra 3D + Metal */
    text-shadow:
        0px 1px 1px #8aa5c2,
        0px 3px 2px #5c6f84,
        0px 6px 4px rgba(0,0,0,0.55),

        /* Glow neon cyan */
        0 0 10px #00ccff,
        0 0 25px #00c8ff,
        0 0 45px #0099ff,
        0 0 75px #0077cc;

    margin-top: 20px;
    margin-bottom: 25px;
}

.hud-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;

    color: #00eaff;

    text-shadow:
        0 0 10px #00eaff,
        0 0 22px #00c8ff;

    margin-top: 20px;
    margin-bottom: 15px;
}


/* =========================================================
   4. BOTONES / LINKS
========================================================= */

.action-button {
    background: linear-gradient(90deg, #ff7a00, #ff2200);
    padding: 16px;
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 25px rgba(255, 80, 0, 0.9);
    transition: 0.25s ease;
}

.action-button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(255, 110, 0, 1);
}

.filter-button {
    width: 260px;
    display: block;
    margin: 10px auto 0;
}

/* =============================
   BOTN VOLVER  NEO CYBER
============================= */
.back-button {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #00eaff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 234, 255, 0.6);

    background: rgba(0, 10, 25, 0.7);
    box-shadow:
        0 0 10px rgba(0, 234, 255, 0.8),
        0 0 18px rgba(0, 150, 255, 0.6);
    text-shadow:
        0 0 8px #00eaff,
        0 0 16px #00eaff;

    margin-bottom: 18px;
    transition: 0.22s ease;
}

.back-button:hover {
    color: #ffffff;
    border-color: #ff2ea8;
    box-shadow:
        0 0 12px #ff2ea8,
        0 0 26px rgba(255, 46, 168, 0.9);
    text-shadow:
        0 0 10px #ff2ea8,
        0 0 20px #ff2ea8;
    transform: translateX(-2px);
}


/* ==================================
   BOTN WHATSAPP  ORANGE NEON
================================== */
.whatsapp-btn {
    display: block;
    width: 90%;
    margin: 25px auto 5px auto;
    padding: 16px 20px;

    border-radius: 18px;
    border: none;
    text-align: center;
    text-decoration: none;
    cursor: pointer;

    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* Fondo naranja fuego */
    background: linear-gradient(90deg, #ff7a00, #ff3c00);
    color: #ffffff;

    /* Texto blanco nen */
    text-shadow:
        0 0 4px #ffffff,
        0 0 12px #ffffff;

    /* Glow exterior + borde interno */
    box-shadow:
        0 0 14px rgba(255, 120, 0, 0.9),
        0 0 30px rgba(255, 120, 0, 0.65),
        inset 0 0 10px rgba(255, 255, 255, 0.25);

    transition: 0.18s ease-out;
}

.whatsapp-btn:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 18px rgba(255, 150, 0, 1),
        0 0 38px rgba(255, 120, 0, 0.9),
        inset 0 0 14px rgba(255, 255, 255, 0.35);
}

.whatsapp-button:hover,
.whatsapp-btn:hover {
    box-shadow: 0 0 18px #ffffff, 0 0 35px #00eaff inset;
    transform: scale(1.02);
}

/* =========================================================
   5. CARDS  EFECTO 3D + HUD CYAN
========================================================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
    perspective: 1000px;
}

.card {
    background: radial-gradient(circle at top, rgba(10,45,70,0.95), rgba(5,12,25,0.95));
    border-radius: 18px;
    padding: 12px;
    cursor: pointer;
    border: 2px solid rgba(0,255,255,0.45);
    box-shadow: 0 0 20px rgba(0,255,255,0.25);
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    transition: 0.25s ease;
}

.card:hover {
    transform: scale(1.035) rotate3d(1, -1, 0, 4deg);
    box-shadow: 0 0 40px #00eaff;
}

.card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.25s ease;
    box-shadow: 0 0 14px rgba(0,0,0,0.75);
}

.card:hover img {
    transform: scale(1.05);
}

.card-title {
    font-family: 'Bebas Neue';
    margin-top: 10px;
    color: #00eaff;
    font-size: 22px;
}

.card-price {
    margin-top: 4px;
    color: #ff9d3c;
    font-size: 16px;
    font-weight: bold;
}

.card-stats {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    font-size: 11px;
}

/* =========================================================
   6. BADGES CATEGORAS FREE FIRE
========================================================= */

.badge-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

/* VETERANA  DORADO */
.badge-veterana {
    background: linear-gradient(120deg, #ffd15c, #ffeb9a);
    color: #4a3300;
    box-shadow:
        0 0 10px rgba(255,215,0,0.9),
        0 0 25px rgba(255,200,0,0.7);
}

/* PREORDEN  CYAN HUD */
.badge-preorden {
    background: linear-gradient(120deg, #00eaff, #007bff);
    color: #001018;
    box-shadow:
        0 0 14px rgba(0,255,255,0.85),
        0 0 28px rgba(0,180,255,0.55);
}

/* CHAKAL  ROJO / NARANJA */
.badge-chakal {
    background: linear-gradient(120deg, #ff003c, #ff9a00);
    color: #280000;
    box-shadow:
        0 0 14px rgba(255,40,0,0.85),
        0 0 28px rgba(255,120,0,0.55);
}

/* CHETADA  VERDE NEN */
.badge-chetada {
    background: linear-gradient(120deg, #7bff00, #2bff88);
    color: #001a05;
    box-shadow:
        0 0 14px rgba(123,255,0,0.85),
        0 0 28px rgba(60,255,120,0.55);
}

/* =========================================================
   7. DESTACADO PRO  GOLD SUAVE
========================================================= */

.featured-card {
    position: relative !important;
    border: 3px solid #ffbf00 !important;
    border-radius: 18px !important;
    animation: featuredGlowSoft 2.4s infinite ease-in-out;
    z-index: 50 !important;
}

@keyframes featuredGlowSoft {
    0% {
        box-shadow:
            0 0 12px #ffcc33,
            0 0 26px #ffc300,
            0 0 40px rgba(255, 180, 0, 0.55);
    }
    50% {
        box-shadow:
            0 0 22px #ffdd55,
            0 0 38px #ffcc00,
            0 0 65px rgba(255, 190, 0, 0.60);
    }
    100% {
        box-shadow:
            0 0 12px #ffcc33,
            0 0 26px #ffc300,
            0 0 40px rgba(255, 180, 0, 0.55);
    }
}

/* Glow externo dorado */
.featured-card::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 22px;
    background: radial-gradient(
        circle,
        rgba(255, 200, 0, 0.32),
        rgba(255, 160, 0, 0.12),
        transparent 70%
    );
    filter: blur(14px);
    z-index: -1;
}

/* Badge dorado - FORZADO A LA IZQUIERDA */
.featured-card .featured-pro {
    position: absolute !important;
    top: -12px !important;
    left: 12px !important; /* <<--- A LA IZQUIERDA */
    transform: none !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #ffdf66, #ffbf00) !important;
    color: #362700 !important;
    font-weight: bold !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 14px rgba(255, 190, 0, 0.9) !important;
    z-index: 99 !important;
}

/* =========================================================
   8. PAGINACIN
========================================================= */

.pagination {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination button {
    background: rgba(255,140,0,0.85);
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(255,140,0,0.6);
    transition: 0.2s;
}

.pagination button:hover {
    filter: brightness(1.1);
    transform: scale(1.04);
}

/* =========================================================
   9. ITEM DETAIL  IMAGEN + STATS
========================================================= */

/* Panel de detalle */
.detail-panel {
    margin-top: 30px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(4, 12, 25, 0.85);
    border: 2px solid rgba(0,255,255,0.35);
    box-shadow:
        0 0 22px rgba(0,255,255,0.35),
        inset 0 0 14px rgba(0,255,255,0.25);
}

/* Grid stats */
.detail-stats-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.detail-stat-box {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,255,255,0.35);
    background: rgba(5, 14, 25, 0.85);
    color: #dff6ff;
    box-shadow: inset 0 0 8px rgba(0,255,255,0.25);
    font-size: 14px;
}

/* Imagen principal */
.main-image-box {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto 20px auto;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0,0,0,0.65);
    border: 2px solid rgba(0,255,255,0.35);
    box-shadow:
        0 0 28px rgba(0,255,255,0.45),
        inset 0 0 18px rgba(0,255,255,0.25);
}

.main-image-box img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

/* Miniaturas */
.thumbs-strip {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: 14px auto 25px auto;
}

.thumb {
    width: 125px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.85;
    cursor: pointer;
    border: 2px solid rgba(0,255,255,0.35);
    transition: 0.25s ease;
}

.thumb:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.active {
    border-color: #00eaff;
    box-shadow: 0 0 20px #00eaff;
}

/* =========================================================
   10. LIGHTBOX MEJORADO (Z O O M + NAV)
========================================================= */

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    z-index: 9999;
}

#lightboxImg {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 26px rgba(255,255,255,0.8);
}

/* Flechas de navegacin */
#prevImg,
#nextImg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: rgba(0,0,0,0.4);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 10px;
    text-shadow: 0 0 15px cyan;
}

#prevImg { left: 5%; }
#nextImg { right: 5%; }

#prevImg:hover,
#nextImg:hover {
    background: rgba(0,0,0,0.8);
}

/* =========================================================
   11. PANEL ADMIN
========================================================= */

.admin-panel {
    margin-top: 10px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(4, 10, 20, 0.9);
    border: 2px solid rgba(0,255,255,0.4);
    box-shadow:
        0 0 22px rgba(0,255,255,0.3),
        inset 0 0 12px rgba(0,255,255,0.25);
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 14px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #dff6ff;
    background: rgba(0, 12, 25, 0.85);
    box-shadow:
        0 0 12px rgba(0,255,255,0.25),
        inset 0 0 8px rgba(0,255,255,0.25);
    transition: 0.25s;
}

.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
    box-shadow:
        0 0 20px #00eaff,
        inset 0 0 10px #0099cc;
    transform: scale(1.02);
}

.admin-panel textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-select {
    background: rgba(2, 12, 25, 0.9);
}

/* Grid imgenes admin */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.img-box {
    background: rgba(4, 15, 25, 0.75);
    padding: 14px;
    border-radius: 12px;
    border: 2px solid rgba(0,255,255,0.3);
    box-shadow: inset 0 0 10px rgba(0,255,255,0.25);
}

.img-box label {
    font-size: 13px;
    color: #a5f8ff;
    margin-bottom: 8px;
    display: block;
}

.img-preview-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    border: 2px solid rgba(0,255,255,0.4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones admin en cards */
.card-admin-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-admin-actions button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: rgba(255,140,0,0.85);
    color: #fff;
    box-shadow: 0 0 12px rgba(255,140,0,0.7);
    transition: 0.2s;
}

.card-admin-actions button:hover {
    transform: scale(1.06);
    filter: brightness(1.15);
}

/* Botn rojo eliminar */
.card-admin-actions button:last-child {
    background: rgba(255,0,0,0.85);
    box-shadow: 0 0 12px rgba(255,0,0,0.7);
}

.card-admin-actions button:last-child:hover {
    filter: brightness(1.25);
    transform: scale(1.07);
}

/* =========================================================
   12. LOGIN ADMIN
========================================================= */

.login-box {
    max-width: 420px;
    margin: 90px auto;
    padding: 35px;
    background: rgba(10,20,35,0.85);
    border-radius: 22px;
    border: 2px solid rgba(0,255,255,0.4);
    box-shadow: 0 0 25px rgba(0,255,255,0.4);
    text-align: center;
    position: relative;
    z-index: 10;
}

.login-input {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    border-radius: 12px;
    background: rgba(4,10,20,0.85);
    border: none;
    outline: none;
    color: #dff6ff;
    box-shadow:
        0 0 12px rgba(0,255,255,0.35),
        inset 0 0 6px rgba(0,255,255,0.25);
}

.login-button {
    margin-top: 25px;
    padding: 15px;
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(90deg, #ff7a00, #ff2200);
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: white;
    font-size: 18px;
    box-shadow: 0 0 25px #ff4400;
    transition: 0.2s;
}

.login-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px #ff8800;
}

/* =========================================================
   13. PWA VISUAL
========================================================= */

.pwa-install-banner {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: rgba(5, 15, 30, 0.9);
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(0,255,255,0.4);
    box-shadow: 0 0 22px rgba(0,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
}

.pwa-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: radial-gradient(circle at center, #00eaff, #007bff);
    box-shadow: 0 0 20px #00eaff;
}

.splash-screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 30, 1);
    display: none;
    z-index: 9999999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #00eaff;
    font-family: 'Bebas Neue';
    font-size: 32px;
    gap: 12px;
}

/* =========================================================
   14. OPTIMIZACIN MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   15. RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {

    h1,
    .page-title,
    .main-title {
        font-size: 2.4rem;
    }

    .catalog-title,
    .catalogo-title {
        font-size: 2.2rem;
    }

    .gamer-container {
        padding: 22px;
        margin: 20px 10px;
    }

    .main-image-box img {
        max-height: 340px;
    }

    .thumb {
        width: 110px;
        height: 80px;
    }
}

@media (max-width: 480px) {

    h1,
    .page-title,
    .main-title {
        font-size: 2rem;
    }

    .catalog-title,
    .catalogo-title {
        font-size: 1.8rem;
    }

    .gamer-container {
        margin: 14px;
        padding: 16px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .thumb {
        width: 95px;
        height: 75px;
    }

    .whatsapp-button,
    .whatsapp-btn {
        font-size: 1rem;
    }
}

/* FIX  Featured en Admin Panel */
.admin-panel .card.featured-card {
    border: 4px solid #ffd700 !important;
    box-shadow: 0 0 30px rgba(255,215,0,0.7) !important;
}

/* ======================================================
   DESTACADO PRO  EFECTO LEGENDARIO CON LATIDO SUAVE
====================================================== */

.featured-card {
    position: relative !important;
    border: 3px solid #ffbf00 !important; /* DORADO REAL */
    border-radius: 18px !important;
    animation: featuredPulse 2.2s infinite ease-in-out;
    z-index: 50 !important;
}

/* Glow externo */
.featured-card::after {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 22px;
    background: radial-gradient(
        circle,
        rgba(255, 200, 0, 0.28),
        rgba(255, 160, 0, 0.10),
        transparent 70%
    );
    filter: blur(12px);
    z-index: -1;
}

/*  ANIMACIN DE LATIDO RESTAURADA */
@keyframes featuredPulse {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 18px #ffd700,
            0 0 35px rgba(255, 210, 0, 0.7);
    }
    50% {
        transform: scale(1.03);
        box-shadow:
            0 0 30px #ffe65c,
            0 0 70px rgba(255, 200, 0, 0.85);
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 0 18px #ffd700,
            0 0 35px rgba(255, 210, 0, 0.7);
    }
}

/* Badge dorado */
.featured-pro {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: linear-gradient(135deg, #ffdf66, #ffbf00);
    color: #3a2300;
    font-weight: bold;
    font-size: 13px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(255, 190, 0, 0.9);
    z-index: 99 !important;
}
@keyframes magentaPulse {
    0% { opacity: 0.85; }
    50% { opacity: 1; }
    100% { opacity: 0.85; }
}

.logo-title {
    display: block;
    width: 100%;
    max-width: 820px; /* tamao mximo del logo */
    margin: 0 auto 20px auto;
    image-rendering: auto;
    filter: drop-shadow(0 0 18px rgba(0, 200, 255, 0.45));
}

/* ====================================
   LOGO PRINCIPAL PNG  GLOW INTENSO AAA
==================================== */

.title-logo-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0px;
    margin-bottom: 0px;
}

.title-logo {
    width: 92%;
    max-width: 520px;
    height: auto;
    display: block;

    /*  Glow CIAN INTENSO */
    filter:
        drop-shadow(0 0 14px rgba(0,255,255,0.95))
        drop-shadow(0 0 28px rgba(0,170,255,0.85))
        drop-shadow(0 0 42px rgba(0,140,255,0.75));
    
    transition: 0.25s ease;
}

/* Glow dinmico al pasar el mouse (opcional, queda PRO) */
.title-logo-box:hover .title-logo {
    filter:
        drop-shadow(0 0 22px rgba(0,255,255,0.95))
        drop-shadow(0 0 38px rgba(0,180,255,0.90))
        drop-shadow(0 0 55px rgba(0,160,255,0.85));

}

@keyframes logoPulse {
    0% {
        filter:
            drop-shadow(0 0 18px rgba(0,255,255,0.85))
            drop-shadow(0 0 35px rgba(0,170,255,0.70))
            drop-shadow(0 0 50px rgba(0,140,255,0.55));
    }
    50% {
        filter:
            drop-shadow(0 0 28px rgba(0,255,255,1))
            drop-shadow(0 0 55px rgba(0,170,255,0.95))
            drop-shadow(0 0 80px rgba(0,140,255,0.80));
    }
    100% {
        filter:
            drop-shadow(0 0 18px rgba(0,255,255,0.85))
            drop-shadow(0 0 35px rgba(0,170,255,0.70))
            drop-shadow(0 0 50px rgba(0,140,255,0.55));
    }
}

/* =============================
   CATÁLOGO DE CUENTAS — PNG HD
   Glow expansivo PRO sin invadir cards
============================= */

.catalogo-title-box {
    width: 100%;
    display: flex;
    justify-content: center;

    margin-top: 25px;
    margin-bottom: 42px;   /* <-- MÁS ESPACIO, SEPARA DE LAS CARDS */
    position: relative;
    overflow: visible !important;
    z-index: 10;
}

.catalogo-title-img {
    width: 82%;            /* más pequeño para dar aire */
    max-width: 560px;      
    height: auto;
    display: block;
}

/* ✨ Glow PC */
.catalogo-title-glow {
    filter:
        drop-shadow(0 0 26px rgba(0,255,255,1))
        drop-shadow(0 0 60px rgba(0,255,255,0.95))
        drop-shadow(0 0 95px rgba(255,0,200,0.85))
        drop-shadow(0 0 140px rgba(0,255,255,0.80));
}

/* ===========================================
   RESPONSIVE — MÓVIL  (no toca cards)
=========================================== */
@media (max-width: 768px) {

    .catalogo-title-box {
        margin-top: 18px;
        margin-bottom: 36px !important; /* <-- MÁS ESPACIO EN MÓVIL */
    }

    .catalogo-title-img {
        width: 88% !important;
        max-width: 340px !important;
    }

    .catalogo-title-glow {
        filter:
            drop-shadow(0 0 35px rgba(0,255,255,1))
            drop-shadow(0 0 75px rgba(0,255,255,1))
            drop-shadow(0 0 120px rgba(255,0,200,1))
            drop-shadow(0 0 160px rgba(0,255,255,1))
            !important;
    }
}
/* Márgenes laterales PRO para móvil */
@media (max-width: 768px) {
    .gamer-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .card {
        border-radius: 22px;
        margin-bottom: 25px;
    }
}
/* ===========================================
   FIX RESPONSIVE — TITULOS EN ITEM_DETAIL
=========================================== */

@media (max-width: 768px) {

    /* Título principal del ítem */
    .hud-title {
        font-size: 32px !important;   /* antes 55–65px */
        line-height: 34px !important;
        margin-top: 10px !important;
        margin-bottom: 8px !important;
        text-align: center;
    }

    /* Badge (VETERANA, CHAKAL, etc.) */
    .detail-page .badge-category {
        transform: scale(0.85);
        right: 10px !important;
        top: 5px !important;
    }

    /* Titulares de secciones (Información del ítem / Descripción) */
    .detail-panel h3 {
        font-size: 22px !important;   /* antes 32–36px */
        line-height: 26px !important;
        margin-bottom: 10px !important;
        text-align: left;
    }

    /* Panel INFO */
    .detail-stats-grid {
        gap: 10px !important;
    }

    .detail-stat-box {
        font-size: 14px !important;
        padding: 10px !important;
    }

    /* Botón WhatsApp */
    .whatsapp-detail {
        font-size: 16px !important;
        padding: 14px !important;
        margin-top: 20px !important;
    }
}
/* ======================================================
   FIX FINAL — BADGE EXCLUSIVO DE ITEM_DETAIL
====================================================== */

.detail-badge-fix {
    position: absolute !important;
    top: -12px !important;
    right: 0 !important;
    transform: scale(0.90);
    z-index: 20 !important;
}

@media(max-width: 768px){
    .detail-badge-fix {
        top: -6px !important;
        right: 0 !important;
        transform: scale(0.75);
    }
}

/* ======================================================
   ⭐ BADGE DETALLE — POSICIÓN CORRECTA
====================================================== */

.detail-page .badge-category {
    position: absolute;
    top: -38px;           /* 🔼 Subido mucho más */
    right: 12px;          /* ✔ Mejor alineado */
    transform: scale(0.90);
    z-index: 40;
}

/* 📱 Móvil */
@media(max-width: 768px){
    .detail-page .badge-category {
        top: -30px;        /* 🔼 Aún subido */
        right: 5px;
        transform: scale(0.78);   /* más pequeño */
    }
}



/* ===========================================
   MINIATURAS CON GLOW (DETALLE)
=========================================== */

.thumbs-strip .thumb {
    border-radius: 14px;
    overflow: hidden;
    padding: 4px;
    background: rgba(0, 255, 255, 0.06);
    box-shadow:
        0 0 12px rgba(0,255,255,0.35),
        0 0 22px rgba(0,255,255,0.25),
        inset 0 0 14px rgba(0,255,255,0.25);
    transition: 0.2s ease;
}

.thumbs-strip .thumb img {
    width: 100%;
    border-radius: 10px;
}

.thumbs-strip .thumb:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 16px rgba(0,255,255,0.55),
        0 0 30px rgba(0,255,255,0.45);
}
/* === Arreglo para mostrar saltos de línea en la descripción === */
.detail-panel p {
    white-space: pre-line !important;
}
footer.footer {
    position: relative;
    z-index: 20 !important;
}
/* ===== FIX FOOTER VISIBLE — NO ROMPE DISEÑO EXISTENTE ===== */

#particles {
    z-index: -10 !important;
}

body::before {
    z-index: -9 !important;
}

body::after {
    z-index: -8 !important;
}

footer.footer {
    position: relative;
    z-index: 50 !important;
}
