/* VT323 Font */
/* VT323 Font - Moved to index.php for performance */

html {
    background: #000;
    /* Prevent white bars at ends */
}

:root {
    --neon-pink: #F02D7D;
    --neon-cyan: #00FFFF;
    --neon-yellow: #FACC15;
    --bg-dark: #000000;
    --header-height: 65px;
    --safe-gap: 30px;
    
    /* Safe Area Insets for iPhone X+ with notch/island */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

/* --- VISUAL MODERNIZATION START --- */

/* --- VISUAL REFINEMENT START --- */

/* 1. Animated Gradient Background */
@keyframes backgroundMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background: linear-gradient(-45deg, #000000, #1a0a14, #000000, #2d0a1b);
    background-size: 400% 400%;
    background-attachment: fixed;
    /* Fixed background */
    animation: backgroundMove 15s ease infinite;
    padding-top: var(--safe-area-inset-top);
    padding-bottom: calc(120px + var(--safe-area-inset-bottom));
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
    color: #e5e7eb;
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.header-main {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    pointer-events: none;
    padding-top: 12px;
    /* Spacing between banner/top and Logo */
    position: fixed;
    top: var(--promo-banner-height);
    /* Synchronized with banner */
    width: 100%;
    z-index: 40;
}

.header-main .container {
    pointer-events: auto;
    height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
}

#mobile-menu-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

header {
    height: var(--header-height) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

main {
    padding-top: calc(var(--header-height) + var(--safe-gap)) !important;
}

#page-home h2,
#page-events h2,
#page-gallery h2,
#page-merch h2,
#page-drags h2,
#page-admin h2 {
    margin-top: 0 !important;
    /* Relies on main padding or previous section margin */
    margin-bottom: 24px !important;
}

/* 2. Floating Bottom Pill Refinement */
/* 2. Floating Bottom Pill Refinement */
#bottom-pill-nav {
    position: fixed;
    bottom: calc(25px + var(--safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 5px;
    /* Increased thickening */
    min-height: 70px;
    /* Thicker pill */

    /* Crystal Clear Navigation */
    background: rgba(10, 10, 10, 0.4);
    /* Slightly less transparent for robustness */
    backdrop-filter: blur(25px) saturate(210%);
    -webkit-backdrop-filter: blur(25px) saturate(210%);

    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    /* Re-add subtle border for definition */
    border-radius: 50px;

    z-index: 9999 !important;

    /* Potentiated Neon Glow */
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(240, 45, 125, 0.25);

    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Sliding Active Indicator */
/* 3. Sliding Active Indicator - THICKER and Potentiated */
.nav-active-indicator {
    position: absolute;
    height: 90%;
    /* Almost as thick as the bar */
    top: 5%;
    width: 60px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(240, 45, 125, 0.3);
}

#mobile-menu {
    pointer-events: auto !important;
    /* Fix unclickable buttons */
    top: 60px !important;
}

#bottom-pill-nav:hover {
    transform: translateX(-50%) translateY(-3px);
    background: rgba(20, 20, 20, 0.35);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(240, 45, 125, 0.35);
}

.nav-pill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    flex: 1;
    min-width: 60px;
    padding: 5px 0;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.nav-pill-item .icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s;
}

.nav-pill-item .text {
    font-family: 'VT323', monospace;
    /* Back to Retro font */
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.nav-pill-item:hover,
.nav-pill-item.active {
    color: white;
}

.nav-pill-item:hover .icon,
.nav-pill-item.active .icon {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

.nav-pill-item.active .text {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(240, 45, 125, 0.5);
}

/* 3. Modern Glass Cards - CLEAN VERSION (No backgrounds/borders on images requested) */
.bg-gray-900 {
    background: #000 !important;
    /* Pure Black requested */
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-gray-900:hover {
    transform: translateY(-5px);
}

.event-card-img-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* --- COUNTDOWN STYLES --- */
#countdown-timer {
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.4),
        0 0 40px var(--neon-pink),
        0 0 60px var(--neon-pink);
    letter-spacing: -2px;
}

#home-countdown-section {
    transition: all 0.5s ease;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Gallery Grid Modernization */
#past-galleries-grid,
#gallery-event-list-container {
    gap: 1.5rem;
}

/* Hide legacy elements */
#secondary-nav-container {
    display: none !important;
}

/* Media Queries */
@media (max-width: 640px) {
    #bottom-pill-nav {
        width: 95%;
        bottom: 20px;
    }

    .nav-pill-item .text {
        font-size: 0.6rem;
    }
}

/* --- VISUAL MODERNIZATION END --- */

/* --- 1. FONDO "ALIVE" CRT SCANLINES --- */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: -1;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* --- 2. GLITCH EFFECT --- */
.glitch-hover {
    position: relative;
    display: inline-block;
}

.glitch-hover:hover {
    animation: glitch-anim-1 0.4s infinite linear alternate-reverse;
}

.glitch-hover:hover::before,
.glitch-hover:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch-hover:hover::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-hover:hover::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(12px, 9999px, 34px, 0);
    }

    100% {
        clip: rect(65px, 9999px, 83px, 0);
    }
}

/* --- 3. NEON BUTTONS --- */
button:not(:disabled).neon-btn,
.neon-btn {
    position: relative;
    border: 1px solid white;
    background: transparent;
    color: white;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

button:not(:disabled).neon-btn:hover,
.neon-btn:hover {
    background-color: white;
    color: black;
    box-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
    border-color: var(--neon-pink);
    text-shadow: none;
    transform: scale(1.05);
}

/* --- 4. SMOOTH PAGE TRANSITIONS --- */
.page-container {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-container.page-exit {
    opacity: 0;
    transform: translateX(-30px);
}

.page-container.page-enter {
    animation: pageEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5. ENHANCED MODAL ANIMATIONS --- */
.modal-backdrop-fade-in {
    animation: modalBackdropIn 0.3s ease-out forwards;
}

.modal-backdrop-fade-out {
    animation: modalBackdropOut 0.2s ease-in forwards;
}

.modal-content-scale-in {
    animation: modalScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content-scale-out {
    animation: modalScaleOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes modalBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalBackdropOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalScaleOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

/* --- Optimized Scroll & Animations --- */

/* Use GPU acceleration for animated elements */
.reveal-on-scroll,
.glitch-hover,
.bg-gray-900,
.bg-gray-800,
.neon-btn {
    will-change: transform, opacity;
}

/* Reduce paint cost on mobile for fixed headers */
@media (max-width: 768px) {
    header {
        backdrop-filter: none;
        background-color: rgba(0, 0, 0, 0.95);
        /* Opaque fallback */
    }
}

/* --- 2. GLITCH EFFECT (Optimized) --- */
.glitch-hover {
    position: relative;
    display: inline-block;
}

/* ... existing glitch keyframes ... */

/* --- 6. SCROLL REVEAL (Hardware Accelerated) --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) translateZ(0);
    /* Force 3D layer */
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* --- Layout fixes & Components --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background-color: rgba(0, 0, 0, 0.9);
    /* backdrop-filter: blur(10px); -> Moved to media query for desktop only */
    transition: background-color 0.3s;
}

/* Content Visibility for performance in long lists */
.event-list-container,
.gallery-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
    /* Estimación */
}

#secondary-nav-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 30;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #4b5563;
}

#mobile-menu {
    top: 80px;
}

/* Banner styles moved to internal CSS in index.php for production parity */

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.font-pixel {
    font-family: 'VT323', monospace;
}

.text-glow-white {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.4);
}

.text-glow-pink {
    text-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink);
}

.text-glow-cyan {
    text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ocultar flechas inputs number */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Scanner */
#scanner-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    background-color: #222;
    border-radius: 0;
}

#scanner-canvas {
    display: none;
}

.scanner-guide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-box {
    width: 75%;
    padding-bottom: 50%;
    max-width: 400px;
    max-height: 300px;
    border: 4px dashed rgba(255, 255, 255, 0.5);
    position: relative;
}

/* Forms */
input[type='email'],
input[type='password'],
input[type='text'],
input[type='url'],
input[type='datetime-local'],
input[type='number'],
textarea,
select {
    background-color: #111;
    border-color: #444;
    color: #ffffff;
    border-radius: 0;
    border-width: 1px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'VT323', monospace;
    font-size: 1.25rem;
}

input::placeholder,
textarea::placeholder {
    color: #555;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(240, 45, 125, 0.5);
    transform: scale(1.01);
}

/* File Input */
input[type="file"] {
    background-color: #222;
    border-color: #444;
    color: #ccc;
    padding: 0.4rem 0.6rem;
    border-radius: 0;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background-color: #444;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'VT323', monospace;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--neon-pink);
    transform: scale(1.05);
}

.restore-label {
    display: inline-block;
    background-color: #222;
    color: #eee;
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 0;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.restore-label:hover {
    background-color: #333;
    transform: scale(1.02);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

/* Checkbox */
input[type="checkbox"] {
    appearance: none;
    background-color: #222;
    border: 1px solid #666;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="checkbox"]:checked {
    background-color: var(--neon-pink);
    border-color: var(--neon-pink);
}

input[type="checkbox"]:checked::after {
    content: 'X';
    position: absolute;
    color: black;
    font-weight: bold;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    line-height: 1;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 8px var(--neon-pink);
}

input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Marquee */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

#next-event-promo {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    will-change: transform;
    white-space: nowrap;
    font-family: 'VT323', monospace;
    color: var(--neon-yellow);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--neon-yellow);
}

#next-event-promo>span {
    display: inline-block;
}

#next-event-promo-container:hover #next-event-promo {
    animation-play-state: paused;
}

/* --- 8. PWA INSTALL BANNER --- */
#pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 2px solid var(--neon-pink);
    z-index: 100;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -5px 20px rgba(240, 45, 125, 0.3);
    display: flex;
    /* Ensure it's hidden but displayable via transform */
}

#pwa-install-banner.visible {
    transform: translateY(0);
}

.pwa-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.pwa-text {
    flex-grow: 1;
}

.pwa-title {
    font-family: 'VT323', monospace;
    color: white;
    font-size: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.pwa-desc {
    font-family: 'Inter', sans-serif;
    color: #9ca3af;
    font-size: 0.875rem;
}

.pwa-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pwa-install-btn {
    background-color: var(--neon-pink);
    color: black;
    font-family: 'VT323', monospace;
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-pink);
    transition: all 0.2s;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
    background-color: white;
    box-shadow: 0 0 20px white;
}

.pwa-close-btn {
    background: transparent;
    border: 1px solid #4b5563;
    color: #9ca3af;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.pwa-close-btn:hover {
    border-color: white;
    color: white;
}

@media (max-width: 640px) {
    .pwa-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .pwa-actions {
        width: 100%;
        justify-content: space-between;
    }

    .pwa-install-btn {
        flex-grow: 1;
        text-align: center;
    }
}

/* Gallery Grid Modernization */
#past-galleries-grid,
#gallery-event-list-container {
    gap: 1.5rem;
}

#past-galleries-grid>div,
#gallery-event-list-container>div {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#past-galleries-grid>div:hover,
#gallery-event-list-container>div:hover {
    transform: scale(1.03);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    z-index: 10;
}

/* ========================================
   MERCH VISUAL IMPROVEMENTS (2-6)
   ======================================== */

/* 2. VISTA DE GRID MEJORADA */
.merch-grid-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.merch-grid-item:hover {
    transform: translateY(-8px);
    z-index: 20;
}

.merch-grid-item:hover .merch-image {
    transform: scale(1.1);
}

.merch-image {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.merch-grid-item:hover .merch-info-box {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 3. BOTONES DE COMPRA MEJORADOS */
.merch-buy-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.merch-buy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(240, 45, 125, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.merch-buy-btn:hover::before {
    width: 300px;
    height: 300px;
}

.merch-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(240, 45, 125, 0.6),
        0 0 40px rgba(240, 45, 125, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

.merch-buy-btn:active {
    transform: translateY(0);
}

/* Animación de pulso en precio */
@keyframes pricePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(240, 45, 125, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(240, 45, 125, 0.8),
                     0 0 30px rgba(240, 45, 125, 0.5);
    }
}

.merch-price {
    animation: pricePulse 2s ease-in-out infinite;
    display: inline-block;
}

/* Icono en botón */
.merch-buy-btn .btn-icon {
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.3s;
}

.merch-buy-btn:hover .btn-icon {
    transform: scale(1.2) rotate(12deg);
}

/* 4. CARRUSEL MEJORADO */
.merch-carousel-container {
    position: relative;
    padding: 10px 0;
}

.merch-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 45, 125, 0.5) rgba(255, 255, 255, 0.1);
}

.merch-carousel::-webkit-scrollbar {
    height: 8px;
}

.merch-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.merch-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(240, 45, 125, 0.6), rgba(0, 255, 255, 0.6));
    border-radius: 10px;
    transition: background 0.3s;
}

.merch-carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(240, 45, 125, 0.9), rgba(0, 255, 255, 0.9));
}

.merch-carousel-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.merch-carousel-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(240, 45, 125, 0.3),
        0 0 0 2px rgba(240, 45, 125, 0.5);
    z-index: 10;
}

/* Indicadores de scroll */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.scroll-indicator:hover {
    background: rgba(240, 45, 125, 0.8);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.scroll-indicator.left {
    left: -15px;
}

.scroll-indicator.right {
    right: -15px;
}

/* 5. SISTEMA DE BADGES */
.merch-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    font-family: 'VT323', monospace;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

.merch-badge.new {
    background: linear-gradient(135deg, #f02d7d, #ff6b9d);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.merch-badge.exclusive {
    background: linear-gradient(135deg, #facc15, #fde047);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.merch-badge.limited {
    background: linear-gradient(135deg, #00ffff, #00d4d4);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(240, 45, 125, 0.5);
    }
}

/* Contador de stock */
.stock-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    font-family: 'VT323', monospace;
    color: #fff;
    backdrop-filter: blur(10px);
}

.stock-counter.low {
    background: rgba(240, 45, 125, 0.2);
    border: 1px solid rgba(240, 45, 125, 0.5);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: stockBlink 1.5s ease-in-out infinite;
}

.stock-counter.low .stock-dot {
    background: #f02d7d;
}

@keyframes stockBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 6. EFECTOS VISUALES ADICIONALES */

/* Skeleton Loader */
.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-text {
    height: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-text.short {
    width: 60%;
}

/* Partículas en hover */
.merch-grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(240, 45, 125, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.4s;
}

.merch-grid-item:hover::after {
    opacity: 1;
}

/* Transiciones fluidas mejoradas */
.smooth-transition {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto de brillo en imágenes al cargar */
@keyframes imageShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.image-loaded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: imageShine 0.8s ease-out;
}

/* Cards con efecto parallax sutil */
.merch-parallax {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.merch-parallax:hover .merch-image {
    transform: scale(1.1) translateZ(20px);
}

.merch-parallax:hover .merch-info-box {
    transform: translateZ(10px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .merch-carousel-item {
        min-width: 150px;
    }
    
    .scroll-indicator {
        width: 32px;
        height: 32px;
    }
    
    .merch-badge {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
}