:root {
    --bg-dark: #000000; /* Cabeceras y elementos ancla puros */
    --bg-light: #F4F5F7; /* Fondo global diurno limpio y estructurado */
    --bg-card: #FFFFFF; /* Tarjetas inmaculadas */
    --bg-card-hover: #FAFAFA;
    --text-primary: #111111; /* Texto principal ultra legible */
    --text-secondary: #555555; /* Textos secundarios */
    
    --accent: #00F0FF; 
    --accent-hover: #00C3FF; 
    --accent-gold: #FFD000; 
    --danger: #EF4444;
    --accent-violet: #9b59b6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-graffiti: 'Sedgwick Ave Display', cursive;

    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Nitidez extrema */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0); /* Hardware acceleration for crispness */
}

/* Homogeneous Retail Background (Clean Mode) */
.cosmic-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-light);
}
.cosmic-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.08) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}
.orb {
    display: none; /* Eliminadas las manchas de color borrosas para mantener la estructura clara */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

#pack-opener-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light); /* Opening on light background now */
    transition: visibility 0.5s;
    overflow: hidden;
}

#pack-opener-overlay.opening {
    animation: fadeOverlayBg 2.5s forwards cubic-bezier(0.8, 0, 0.2, 1);
}

@keyframes fadeOverlayBg {
    0%, 55% { background-color: var(--bg-light); }
    70%, 100% { background-color: rgba(244, 245, 247, 0); }
}

#pack-opener-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Energy Burst */
.energy-burst {
    position: absolute;
    top: 50%; left: 50%;
    width: 200vw; height: 200vw;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, 
        transparent 0deg, 
        rgba(0, 240, 255, 0.6) 60deg, 
        transparent 120deg, 
        rgba(255, 84, 0, 0.6) 200deg, 
        transparent 260deg, 
        rgba(72, 31, 120, 0.6) 320deg, 
        transparent 360deg);
    animation: spinEnergy 10s linear infinite;
    z-index: 1;
    mask-image: radial-gradient(circle at center, white 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at center, white 0%, transparent 60%);
    will-change: transform;
}
@keyframes spinEnergy {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pulse Rings */
.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 84, 0, 0.6);
    width: 250px; height: 250px;
    animation: pulseRingAnim 2.5s infinite cubic-bezier(0.1, 0.5, 0.1, 1);
    z-index: 1;
    will-change: transform, opacity;
}
.pulse-ring:nth-child(3) {
    border-color: rgba(0, 240, 255, 0.4);
    animation-delay: 1.2s;
}
@keyframes pulseRingAnim {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; border-width: 4px; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-width: 1px; }
}

#pack-opener-overlay.opening .energy-burst,
#pack-opener-overlay.opening .pulse-ring {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    animation: none;
}

.booster-pack-container {
    position: relative;
    width: 320px;
    height: 480px;
    cursor: pointer;
    perspective: 1000px;
    z-index: 20; /* Pack is in front of the card */
    animation: floatingPack 4s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.booster-pack {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.pack-content {
    width: 320px;
    height: 480px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, #2A114A 15%, #481F78 40%, #9B59B6 50%, #481F78 60%, #2A114A 85%, rgba(255,255,255,0.2) 100%);
    box-shadow: inset 0 30px 20px rgba(0,0,0,0.6), inset 0 -30px 20px rgba(0,0,0,0.6), 0 10px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes floatingPack {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -15px; }
}

/* Foil crimp effect on top and bottom edges */
.pack-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 30px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 5px, rgba(0,0,0,0.8) 5px, rgba(0,0,0,0.8) 10px);
    border-top: 2px solid var(--accent);
    border-radius: 12px 12px 0 0;
}
.pack-content::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 30px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 5px, rgba(0,0,0,0.8) 5px, rgba(0,0,0,0.8) 10px);
    border-bottom: 2px solid var(--accent-gold);
    border-radius: 0 0 12px 12px;
}

.pack-top-rip {
    z-index: 21;
    transform-origin: top center;
}

.pack-bottom-rip {
    z-index: 20;
}

/* Hide the seam until clicked and opened */
#pack-opener-overlay.opening .pack-top-rip {
    clip-path: polygon(0 0, 100% 0, 100% 12%, 95% 15%, 90% 11%, 85% 16%, 80% 11%, 75% 16%, 70% 11%, 65% 16%, 60% 11%, 55% 16%, 50% 11%, 45% 16%, 40% 11%, 35% 16%, 30% 11%, 25% 16%, 20% 11%, 15% 16%, 10% 11%, 5% 16%, 0 12%);
}

#pack-opener-overlay.opening .pack-bottom-rip {
    clip-path: polygon(100% 12%, 95% 15%, 90% 11%, 85% 16%, 80% 11%, 75% 16%, 70% 11%, 65% 16%, 60% 11%, 55% 16%, 50% 11%, 45% 16%, 40% 11%, 35% 16%, 30% 11%, 25% 16%, 20% 11%, 15% 16%, 10% 11%, 5% 16%, 0 12%, 0 100%, 100% 100%);
}


.booster-pack-container:hover {
    transform: scale(1.05) rotateY(10deg);
    filter: drop-shadow(0 0 60px rgba(204, 255, 0, 0.8)) brightness(1.1);
}

.booster-pack-container:hover .pack-content {
    box-shadow: inset 0 0 30px rgba(204, 255, 0, 0.1);
}

.pack-logo {
    width: 80%;
    object-fit: contain;
    margin-bottom: 2rem;
    mix-blend-mode: screen; /* Eliminates the solid black background */
    filter: brightness(0.85) contrast(1.8) saturate(1.2);
}

.pack-text {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.1rem;
    text-align: center;
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0,0,0,1);
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; text-shadow: 0 4px 15px rgba(0,0,0,1); }
    50% { opacity: 1; text-shadow: 0 0 25px var(--accent-gold), 0 4px 15px rgba(0,0,0,1); }
}

/* The inner card container that sides out */
.revealed-card-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 350px;
    opacity: 0;
    display: none; /* Fully hidden to prevent 3d rendering opacity bugs */
    pointer-events: none;
    z-index: 10; /* Behind the pack */
    perspective: 1000px;
}

.revealed-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.card-back {
    /* Standard TCG Card Back look */
    background: radial-gradient(circle at 50% 50%, #1e133e 0%, #070314 100%);
    border: 8px solid #ffcc00; /* Gold border */
    transform: rotateY(0deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,212,255,0.4);
}
.card-back::after {
    /* inner metallic border */
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(255, 204, 0, 0.5);
    border-radius: 4px;
}
.card-back .back-logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
    animation: floatLogo 3s ease-in-out infinite;
    z-index: 10;
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8)); }
    50% { transform: translateY(-5px); filter: drop-shadow(0 0 25px rgba(255, 0, 255, 0.8)); }
}

.card-front {
    /* Glowing tech frame */
    background: transparent;
    transform: rotateY(180deg);
    border: 4px solid var(--accent);
    border-radius: 12px;
    box-shadow: inset 0 0 50px rgba(0,212,255,0.4), 0 0 50px rgba(0,212,255,0.4);
}

/* Animations for sequence */

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes foilShine {
    0% { transform: rotate(45deg) translateY(-100%); }
    100% { transform: rotate(45deg) translateY(100%); }
}

@keyframes pulseText {
    0%, 100% { opacity: 1; text-shadow: 0 4px 15px rgba(0,0,0,1); }
    50% { opacity: 1; text-shadow: 0 0 25px var(--accent-gold), 0 4px 15px rgba(0,0,0,1); }
}

@keyframes packRipDown {
    0% { transform: translateY(0); filter: drop-shadow(0 0 20px rgba(0,212,255,0.4)); }
    10% { transform: translateY(5px); filter: brightness(1.2); }
    /* Hold while card slides up */
    50% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes tearFoilOff {
    0% { transform: translateY(0) rotateZ(0deg); opacity: 1; filter: brightness(1.2); }
    30% { transform: translateY(-50px) rotateZ(-10deg); opacity: 1; filter: brightness(2); }
    100% { transform: translateY(-300px) translateX(-50px) rotateZ(-30deg); opacity: 0; }
}

@keyframes cardEmergeFlipZoom {
    0%, 25% { transform: translate(-50%, -50%) translateY(80px); opacity: 0; z-index: 10; visibility: hidden; }
    35% { transform: translate(-50%, -50%) translateY(0px) rotateY(0deg); opacity: 1; filter: brightness(1); z-index: 10; visibility: visible; }
    55% { transform: translate(-50%, -50%) translateY(0px) rotateY(180deg) scale(1.5); opacity: 1; z-index: 30; visibility: visible; }
    85%, 100% { transform: translate(-50%, -150vh) rotateY(180deg) scale(1.5); opacity: 0; z-index: 30; visibility: hidden; }
}

/* State classes applied by JS */
#pack-opener-overlay.opening .pack-top-rip {
    animation: tearFoilOff 1.5s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

#pack-opener-overlay.opening .pack-bottom-rip {
    animation: packRipDown 2.5s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

#pack-opener-overlay.opening .revealed-card-container {
    display: block;
    animation: cardEmergeFlipZoom 2.5s cubic-bezier(0.3, 0, 0.1, 1) forwards;
}

/* Section transition overlay */
#section-transition {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(7,3,20, 0.95);
    backdrop-filter: blur(8px);
    z-index: 8000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
#section-transition.hidden {
    opacity: 0;
    pointer-events: none;
}
.transition-card-container {
    width: 140px; height: 200px;
    perspective: 1000px;
}
.transition-card-container .card-face {
    width: 100%; height: 100%; position: absolute;
    border-radius: 8px; backface-visibility: hidden;
}
.transition-card-container .card-back {
    background: radial-gradient(circle at 50% 50%, #1e133e 0%, #070314 100%);
    border: 5px solid #ffcc00;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 40px rgba(0,212,255,0.6);
    animation: spinCardTransition 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.transition-card-container .back-logo {
    width: 80px; height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8));
}
@keyframes spinCardTransition {
    0% { transform: rotateY(0deg) scale(0.9); }
    50% { transform: rotateY(180deg) scale(1.1); }
    100% { transform: rotateY(360deg) scale(0.9); }
}

/* Header (Clean Mode) */
.main-header {
    background-color: var(--bg-dark); /* Negro sólido permanente para mayor anclaje */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.main-header .nav-text, 
.main-header .search-bar input,
.main-header .search-bar i {
    color: white;
}

.header-top {
    height: 55px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo {
    flex: 1;
    display: flex;
    align-items: center;
}
.header-logo-img {
    height: 45px;
    object-fit: contain;
    mix-blend-mode: screen; /* Strips black background */
    filter: brightness(0.85) contrast(1.8) saturate(1.2);
    transition: transform 0.3s ease;
}
.header-logo-img:hover {
    transform: scale(1.05);
}

.search-container {
    flex: 2;
    display: flex;
    justify-content: center;
}
.search-bar {
    width: 100%;
    max-width: 500px;
    height: 34px;
    background: #1A1C30;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid var(--accent);
    transition: var(--transition);
}
.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 84, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}
.search-bar i {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}
.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
}
.icon-btn:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}

.header-bottom {
    background: transparent;
    padding: 0 2rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-nav ul {
    display: flex;
    gap: 2rem;
    height: 100%;
    align-items: center;
}
.main-nav a, .nav-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-action-btn {
    background: var(--accent);
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    box-shadow: 0 4px 10px rgba(0, 240, 255, 0.2);
}
.main-nav a::before, .nav-action-btn::before {
    content: ''; 
    position: absolute; 
    top: 0; left: -100%; 
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease-in-out;
    transform: skewX(-20deg);
}
.main-nav a:hover::before, .nav-action-btn:hover::before {
    left: 150%;
}
.main-nav a:hover, .main-nav a.active, .nav-action-btn:hover {
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    background: var(--accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 240, 255, 0.5);
}
.nav-icon-wrapper {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}
.nav-icon-wrapper img {
    height: 16px;
    width: 16px;
    object-fit: contain;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: var(--transition);
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.close-modal {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.close-modal:hover { color: white; }
.modal-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent);
}
.btn-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
}
.btn-submit:hover { background: var(--accent-hover); }

/* Hero Banner & Carousel (Clear Theme) */
.hero-wrapper {
    position: relative;
    width: 100%;
    margin-top: -105px;
    padding-top: 105px;
    height: 520px; 
    overflow: hidden;
    background-color: transparent; /* Se funde impecablemente con el fondo claro base de la web */
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Clics atraviesan hacia botones */
}
.hero-slide.active { 
    opacity: 1; z-index: 1; pointer-events: auto; 
}

/* Aura estelar de la colección (Radial) */
.hero-bg-glow {
    position: absolute;
    inset: -20%; /* Sobredimensionado para difuminar bordes */
    z-index: 0;
}

/* Cajas y Sobres Flotantes 3D */
.hero-floating-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    perspective: 1200px;
    z-index: 1;
}
.hero-float-left {
    position: absolute;
    top: 15%; left: 8%;
    width: 320px;
    animation: floatLeftBox 8s infinite ease-in-out alternate;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    object-fit: contain;
}
.hero-float-right {
    position: absolute;
    top: 25%; right: 8%;
    width: 250px;
    animation: floatRightBox 7s infinite ease-in-out alternate-reverse;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    object-fit: contain;
}

@keyframes floatLeftBox {
    0% { transform: translateY(0) rotateY(15deg) rotateZ(-10deg) scale(1); }
    100% { transform: translateY(-40px) rotateY(-5deg) rotateZ(5deg) scale(1.05); }
}
@keyframes floatRightBox {
    0% { transform: translateY(0) rotateY(-20deg) rotateZ(15deg); }
    100% { transform: translateY(-30px) rotateY(10deg) rotateZ(-5deg); }
}

/* Typography y Botones */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}
.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem); 
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    font-style: italic;
    background: linear-gradient(180deg, #111 0%, #555 100%); /* Modificado a gris súper oscuro para fondo claro */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1)); /* Sombra suavizada */
}
.hero-content p {
    font-size: 1.5rem; 
    margin-bottom: 2.5rem; 
    color: #444; /* Gris plomo oscuro */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: none; /* Quitamos para limpieza total */
}

/* Subtítulo dinámico superior del Hero */
.hero-subtitle-dinamico {
    font-size: 1.2rem; 
    margin-bottom: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.btn-clean-white {
    background: #fff; color: #000;
    padding: 1rem 2.5rem; border-radius: 8px;
    font-weight: 900; font-family: var(--font-heading);
    transition: var(--transition);
    text-transform: uppercase;
    box-shadow: 0 5px 25px rgba(255,255,255,0.3);
}
.btn-clean-white:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(255,255,255,0.6); }

.btn-clean-yellow {
    background: #FFD000; color: #000;
    padding: 1rem 2.5rem; border-radius: 8px;
    font-weight: 900; font-family: var(--font-heading);
    transition: var(--transition);
    text-transform: uppercase;
    box-shadow: 0 5px 25px rgba(255, 208, 0, 0.4);
}
.btn-clean-yellow:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 10px 40px rgba(255, 208, 0, 0.8); }

/* Paginación Inferior (Ref: Pokemillon Limpio) */
.hero-pagination-control {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255,255,255,0.8); /* Invertido a blanco translúcido */
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.05); /* Borde invisible oscuro */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra elegante */
}
.hero-pagination-control button {
    background: rgba(0,0,0,0.05);
    color: #111; /* Oscuro */
    border: 1px solid rgba(0,0,0,0.1);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}
.hero-pagination-control button:hover {
    background: #111;
    color: white;
    transform: scale(1.1);
}
.hero-pag-counter {
    color: #111;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 2px;
}

/* Custom out of stock stamp */
.out-of-stock-overlay {
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg) translateZ(50px);
    background: transparent;
    color: var(--danger);
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 4px;
    padding: 0.5rem 1rem;
    border: 4px solid var(--danger);
    border-radius: 8px;
    text-shadow: 0 0 10px rgba(255, 42, 95, 0.8);
    box-shadow: inset 0 0 10px rgba(255, 42, 95, 0.4), 0 0 20px rgba(255, 42, 95, 0.2);
    z-index: 10;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
}
.product-card.out-of-stock {
    opacity: 0.75;
}
.product-card.out-of-stock::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.4); border-radius: 16px;
    pointer-events: none;
    z-index: 5;
}

/* Main layout containers */
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 2rem; 
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem; margin-bottom: 2rem; text-align: center;
    text-transform: uppercase; letter-spacing: 2px;
    font-weight: 900;
    color: var(--bg-dark); /* Color oscuro base para el texto */
}
.section-title span { 
    color: transparent;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-gold), var(--accent), var(--accent-violet));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textGradientPulse 4s linear infinite;
}
@keyframes textGradientPulse {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Category specific banner */
.category-banner {
    width: 100%; height: 320px;
    margin-top: -105px;
    padding-top: 105px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    margin-bottom: 2rem;
}
.category-banner::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-light), transparent);
}
.category-banner h1 {
    position: relative; z-index: 2; font-size: 4rem;
    color: var(--text-primary);
    text-shadow: none;
    margin-bottom: 0;
    margin-top: 60px;
}

/* Product Display Containers (Clear Retail Style) */
.product-grid-style {
    padding: 2rem 0; /* Menos relleno lateral artificial, más limpieza */
    background: transparent; /* Se integra totalmenge en el gris claro general */
    position: relative;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 2rem;
}

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

/* Circular 3D Carousel Layout */
.carousel-3d-container {
    perspective: 1500px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; 
    width: 100%;
    position: relative;
}

.carousel-3d-spin {
    position: relative;
    width: 280px; 
    height: 480px; 
    transform-style: preserve-3d;
    /* La animación automática ahora está siendo dominada por el Motor Físico RequestAnimationFrame en JS */
    will-change: transform;
}

/* Controles manuales "Flechas de Neón" del Cilindro */
.cylinder-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 50;
    opacity: 0; /* Invisibles por defecto */
    transition: opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.cylinder-control.btn-prev { left: 40px; }
.cylinder-control.btn-next { right: 40px; }

/* Aparecer teclas fantasma al entrar */
.carousel-3d-container:hover .cylinder-control {
    opacity: 1;
}

.cylinder-control:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
}

.carousel-3d-item {
    position: absolute;
    top: 50%; left: 50%;
    width: 280px;
    height: 440px; 
    margin-top: -220px;
    margin-left: -140px;
    backface-visibility: hidden; 
    transform-style: preserve-3d; 
    transition: filter 0.5s;
    will-change: transform;
}

/* Hacer los elementos más llamativos (Halos y brillos intensos) */
.carousel-3d-item .product-card {
    height: 100%;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0,0,0,0.5); 
}
.carousel-3d-item:hover .product-card {
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.8), 0 0 100px rgba(72, 31, 120, 0.5); 
}

/* Background Graffiti Tag inside the showcase */
.bg-graffiti-tag {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-family: var(--font-graffiti);
    font-size: clamp(6rem, 15vw, 15rem);
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 0, 85, 0.2);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 30px rgba(255, 0, 85, 0.15);
    mix-blend-mode: screen;
}

/* (Eliminadas las texturas de rayas y los fondos de shards geométricos para limpiar la vitrina) */

/* Product Card - Estilo Inmaculado / Clear */
.product-card {
    background: var(--bg-card); /* Blanco inmaculado */
    border-radius: 12px; /* Redondeo premium moderno */
    padding: 1.2rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Borde mínimo */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: flat;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* Sombra difusa suave */
    z-index: 1;
}
.product-card::before {
    display: none; 
}

/* Hover Limpio y Elevado */
.product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); /* Sombra alta intensidad suave */
    transform: translateY(-8px); /* Elevación elegante, NO glitch */
    z-index: 10;
}
.product-card:hover::before {
    opacity: 1;
    animation: neonBorderFlow 2s linear infinite;
}
@keyframes neonBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.card-image-wrapper {
    width: 100%; aspect-ratio: 3/4;
    border-radius: 12px; overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}
.card-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}
.card-language {
    position: absolute; top: 12px; right: 12px;
    background: rgba(10, 10, 10, 0.9);
    padding: 6px 12px; border-radius: 8px; font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.lang-pill {
    display: flex; align-items: center; gap: 8px;
}
.css-flag {
    width: 14px; height: 14px; border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.8);
}
.css-flag-jp { 
    background: white; position: relative;
}
.css-flag-jp::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 6px; height: 6px; border-radius: 50%; background: #bc002d;
}
.css-flag-es { 
    background: linear-gradient(to bottom, #AA151B 25%, #F1BF00 25%, #F1BF00 75%, #AA151B 75%); 
}
.css-flag-en {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 60 30" xmlns="http://www.w3.org/2000/svg"><clipPath id="t"><path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/></clipPath><path d="M0,0 v30 h60 v-30 z" fill="%23012169"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23fff" stroke-width="6"/><path d="M0,0 L60,30 M60,0 L0,30" clip-path="url(%23t)" stroke="%23C8102E" stroke-width="4"/><path d="M30,0 v30 M0,15 h60" stroke="%23fff" stroke-width="10"/><path d="M30,0 v30 M0,15 h60" stroke="%23C8102E" stroke-width="6"/></svg>');
    background-size: cover;
    background-position: center;
}
.lang-text {
    font-weight: 800; font-family: var(--font-heading); color: #fff;
    font-size: 0.95rem; line-height: 1; letter-spacing: 0.5px;
}
.card-info {
    position: relative;
}
.card-title {
    font-size: 1.1rem; margin-bottom: 0.5rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text-primary);
    font-weight: 800;
}
.price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.card-price-original {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.8;
}
.card-price {
    font-size: 1.4rem; font-weight: 900; color: #000;
}
.card-price.discounted {
    color: var(--danger); /* Make it pop if it's hot but clean */
    text-shadow: none;
}

/* Scarcity Bar FOMO effect */
.scarcity-container {
    margin-top: 1rem;
    background: rgba(0,0,0,0.03);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.scarcity-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.scarcity-text span {
    color: var(--danger);
    font-weight: 800;
}
.scarcity-bar {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.scarcity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger), var(--accent-gold));
    border-radius: 3px;
    box-shadow: 0 0 8px var(--accent-gold);
    width: 0%; /* set by inline style */
}

/* FOMO Badges */
.product-badge-stack {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 20;
}
.product-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    white-space: nowrap;
}
.product-badge.hot {
    background: linear-gradient(45deg, #FF0055, #FF5400);
    animation: hotPulse 1.5s infinite alternate;
}
.product-badge.new {
    background: linear-gradient(45deg, #00d4ff, #0055ff);
}
.product-badge.rare {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    border: 1px solid #e056fd;
}
.product-badge.preorder {
    background: linear-gradient(45deg, #f7971e, #ffd200);
    color: #1a1a1a;
}
.product-badge.oferta {
    background: linear-gradient(45deg, #00c851, #007e33);
    animation: hotPulse 1.5s infinite alternate;
}
@keyframes hotPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 84, 0, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 0, 85, 0.8); }
}

/* Remove the old out-of-stock visual state code since we updated it above */

/* Footer */
.main-footer {
    background: #050505;
    padding: 2rem 2rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #e0e0e0;
}
.footer-content {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand h3 { color: var(--accent); margin-bottom: 1rem; }
.footer-brand p { color: #aaaaaa; }
.footer-links h4, .footer-social h4 { margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a { color: #aaaaaa; transition: var(--transition); }
.footer-links a:hover { color: white; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05); display: flex;
    align-items: center; justify-content: center; color: #ffffff;
    font-size: 1.2rem; transition: var(--transition);
}
.social-icons a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom {
    max-width: 1400px; margin: 2rem auto 0;
    text-align: center; color: #aaaaaa;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive UX Optimization for Mobile */
@media(max-width: 768px) {
    /* Header & Navigation */
    .header-top { 
        flex-direction: column; 
        gap: 1rem; 
        padding: 1rem; 
        text-align: center;
    }
    .header-actions { justify-content: center; width: 100%; }
    .search-container, .search-bar { width: 100%; }
    
    /* Scrollable Horizontal Menu */
    .header-bottom { 
        padding: 0 1rem; 
        overflow-x: auto; 
        white-space: nowrap; 
        -webkit-overflow-scrolling: touch; 
        justify-content: flex-start;
    }
    .main-nav ul { 
        justify-content: flex-start; 
        gap: 1rem; 
        width: max-content;
    }
    .main-nav a, .nav-action-btn { 
        font-size: 0.8rem; 
        padding: 0.4rem 0.8rem; 
    }
    
    /* Simplificar Container de Productos */
    .product-grid { 
        grid-template-columns: 1fr; 
        padding: 1rem; 
        gap: 1.5rem;
    }
    
    .carousel-3d-container {
        height: 400px;
    }
    .carousel-3d-spin {
        transform: scale(0.65); /* Escala todo el entorno 3D proporcionalmente para caber en móvil sin romper el radio calculado por JS */
        transform-origin: center center;
    }
    .product-grid-style {
        padding: 1.5rem 0.5rem; /* Casi sin borde lateral en móviles */
    }

    /* Rendimiento: Apagar Orbes y efectos de GPU intensivos en Móvil */
    .cosmic-bg .orb { 
        display: none !important; 
    }
    
    /* UX: Desactivar saltos de Hover para evitar el problema de doble toque en iOS/Android */
    .product-card:hover { 
        transform: none !important; 
        box-shadow: 4px 4px 0 rgba(0,0,0,0.8); /* Mantener sombra seca */
    }
    .main-nav a:hover, .nav-action-btn {
        transform: none !important;
    }
    
    /* Footer */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}
