/* =========================================================
   nueva store  - PREMIUM STYLES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Antigravity Theme */
    --purple-primary: #7000ff;
    --purple-hover: #5a00d6;
    /* Neon Glows */
    --neon-cyan: #00f0ff;
    --neon-purple: #bc13fe;
    --purple-glow: rgba(112, 0, 255, 0.5);
    --cyan-glow: rgba(0, 240, 255, 0.4);

    /* Accent */
    --accent: #00f0ff;
    --accent-hover: #00cc8f;

    /* Backgrounds - Deep Space */
    --bg-main: #0a0a0f;
    --bg-secondary: #121218;
    --bg-card: rgba(255, 255, 255, 0.03);
    /* Glass base */
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-input: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-main: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    /* Smooth corners */
    --border-radius-lg: 24px;

    /* Shadows - Gravity Defying */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(112, 0, 255, 0.2);
    --shadow-glow: 0 0 15px rgba(0, 240, 255, 0.3);

    --header-height: 80px;

    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --backdrop-blur: blur(12px);
}

html[data-theme="light"] {
    /* Modern Light Theme - Optimized for Visual Appeal */

    /* Backgrounds - Unified Light Gray (Plomo Clarito) */
    --bg-main: #ffffff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-input: #f5f7fa;

    /* Text - High contrast for readability */
    --text-main: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    /* Accent Colors - Vibrant but professional */
    --purple-primary: #6366f1;
    --purple-hover: #4f46e5;
    --accent: #06b6d4;
    --accent-hover: #0891b2;

    /* Neon effects adapted for light mode */
    --neon-cyan: #06b6d4;
    --neon-purple: #8b5cf6;
    --purple-glow: rgba(99, 102, 241, 0.15);
    --cyan-glow: rgba(6, 182, 212, 0.15);

    /* Borders - Subtle but defined */
    --border-color: #e2e8f0;
    --border-glass: 1px solid rgba(0, 0, 0, 0.08);

    /* Shadows - Soft, elevated feel */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(99, 102, 241, 0.1);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.2);
}

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

body {
    font-family: 'Inter Tight', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ================= HEADER ================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-main);
    /* Supports theme now */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Fix for Light Theme Brand Name visibility */
[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    width: clamp(60px, 10vw, 80px);
    /* Smaller icon since text is present */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--purple-glow));
    transition: transform 0.3s ease;
}

[data-theme="light"] .logo-img {
    filter: invert(1) drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

[data-theme="light"] .brand-name {
    background: none;
    -webkit-text-fill-color: initial;
    color: #000000;
    text-shadow: none;
}

.logo-link:hover .logo-img {
    transform: rotate(-10deg) scale(1.1);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--accent);
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.8rem 1.2rem;
    border-radius: 99px;
    /* Pill shape */
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: var(--bg-input);
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 4px rgba(107, 44, 255, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    color: var(--text-main);
    transition: transform 0.2s;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ================= ANTIGRAVITY HERO SECTION ================= */

.antigravity-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--header-height) 2rem 4rem;
    /* Force Dark Theme for Hero Section always */
    background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #0a0a0f 100%);
    color: white;
}

/* Animated Background Background */
.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--purple-primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--neon-cyan);
    bottom: -50px;
    right: -50px;
    animation-duration: 15s;
    animation-direction: reverse;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 50%, var(--purple-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-content p {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.btn-hero.primary-glow {
    background: var(--purple-primary);
    color: white;
    box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-hero.primary-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--purple-glow);
    background: var(--purple-hover);
}

.btn-hero.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-hero.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Floating Visuals */
.hero-visuals {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--neon-cyan);
    animation: floatCard 6s infinite ease-in-out;
}

.floating-card span {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.floating-card .icon-box {
    font-size: 1.5rem;
}

.floating-card:nth-child(1) {
    top: 20%;
    right: 15%;
    transform: rotate(5deg);
}

.floating-card.delayed {
    bottom: 25%;
    left: 10%;
    animation-delay: 2s;
    border-left-color: var(--purple-primary);
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .antigravity-hero {
        padding-top: var(--header-height);
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-bg-effects {
        opacity: 0.6;
    }

    .floating-card {
        display: none;
        /* Hide floating cards on mobile to avoid clutter */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* ================= CART STYLES (Existing) ================= */
.cart-wrapper {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-float);
    display: none;
    flex-direction: column;
    z-index: 1001;
    margin-top: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.cart-dropdown.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn-checkout {
    width: 100%;
    background: var(--accent);
    color: black;
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    transition: opacity 0.2s;
}

.btn-checkout:hover {
    opacity: 0.9;
}

/* ================= LAYOUT ================= */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.container main {
    width: 100%;
    min-width: 0;
}

.container.home-layout {
    grid-template-columns: 1fr;
    max-width: 1400px;
}

/* ================= SIDEBAR ================= */

aside {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    /* Ensure sidebar doesn't get too wide/narrow */
    min-width: 250px;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h3 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.filter-control {
    width: 100%;
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

[data-theme="light"] .filter-control {
    border: 1px solid var(--border-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.filter-control:hover {
    border-color: var(--primary);
    background-color: var(--bg-card-hover);
}

.filter-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(107, 44, 255, 0.2);
}

.filter-control option {
    background-color: var(--bg-secondary);
    /* Dark background to match theme */
    color: var(--text-main);
    /* Ensure text is visible */
    padding: 10px;
}

.view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: -3rem;
    /* Pull up further for Home */
    position: relative;
    z-index: 100;
    /* High z-index to ensure clickability */
}

/* Extra spacing for pages with overlay issues (games/windows) */
.view-toggle.extra-spacing {
    margin-top: 3rem;
    /* Large spacing to clear header overlap completely */
}

.btn-view {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view:hover,
.btn-view.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ... existing styles ... */

/* ... existing styles ... */

/* ... existing styles ... */

.games-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    /* Default: Mobile first (1-2 columns depending on size) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Home Grid Specifics */
.games-grid.home-grid {
    /* Base responsive behavior for small screens */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Desktop pattern: STRICT 3 columns as requested */
@media (min-width: 1024px) {
    .games-grid.home-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    /* Base Glass */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    display: flex;
    flex-direction: column;
    width: 100%;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    /* Higher lift */
    box-shadow: var(--shadow-float);
    /* Floating shadow */
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    z-index: 10;
}

/* Force Dark Cards in Light Mode (Contrast Fix) */
/* Light Theme Card Fixes */
[data-theme="light"] .game-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .game-card .game-title {
    color: var(--text-main);
}

[data-theme="light"] .game-card .badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .game-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-lg);
}






/* ================= GLOBAL PRODUCT MODAL (IMMERSIVE LAYER) ================= */

.global-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Immersive Radial Backdrop */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 30, 40, 0.95) 0%, #000 100%);
    backdrop-filter: blur(20px);
    z-index: 0;
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.global-modal.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Grid Layout */
.modal-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
}

/* Left: Identity */
.modal-product-identity {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-badge {
    display: inline-block;
    color: var(--neon-cyan);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Right: Packages */
.modal-packages-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.package-card.selected {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.package-amount {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.package-price {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Checkout Zone */
.checkout-zone {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#modal-total-price {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    font-weight: 800;
}

.modal-buy-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--text-muted);
    /* Disabled state */
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transition: all 0.3s;
}

.modal-buy-btn:not(:disabled) {
    background: var(--purple-primary);
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--purple-glow);
}

.modal-buy-btn:not(:disabled):hover {
    background: var(--purple-hover);
    transform: scale(1.02);
}

.pulse-animation:not(:disabled) {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(112, 0, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(112, 0, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(112, 0, 255, 0);
    }
}

.checkout-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-img {
        height: 200px;
        width: 100%;
        object-position: center;
    }

    .modal-content {
        padding: 1.5rem;
        height: 100%;
        border-radius: 0;
    }
}

.variant-wrapper {
    padding: 0 1.2rem;
    margin-bottom: 0.8rem;
}

.price-variant-selector {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
    background-color: var(--bg-body);
    /* Solid background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.2s;
}

.price-variant-selector:hover {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.price-variant-selector:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(107, 44, 255, 0.3);
}

.price-variant-selector option {
    background: #1a1a2e;
    padding: 8px;
}

/* ================= LIST VIEW STYLES ================= */
.games-grid.list-view {
    display: flex;
    /* Switch to flex column for list view to avoid grid constraints */
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    /* Center list items */
}

.games-grid.list-view .game-card {
    flex-direction: row;
    width: 100%;
    max-width: 800px;
    /* Reasonable max width for list item */
    height: auto;
    min-height: 160px;
}

.games-grid.list-view .card-image-wrapper {
    width: 240px;
    padding-top: 0;
    flex-shrink: 0;
    /* Prevent image squishing */
    height: auto;
    position: relative;
}

.games-grid.list-view .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.games-grid.list-view .card-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
}

/* ... rest of list view styles generally okay, but ensure no fixed heights cause overlap ... */


.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-main);
    /* Truncate text */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.game-subtitle {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-weight: 600;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-size: 1.4rem;
    font-weight: 500;
    /* Medium weight */
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 255, 179, 0.2);
}

.btn-buy {
    background: var(--purple-primary);
    color: white;
    font-weight: 500;
    /* Medium weight */
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-buy:hover {
    background: var(--purple-hover);
    box-shadow: 0 0 15px var(--purple-glow);
    transform: translateY(-2px);
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-cart-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-cart-icon:hover {
    background: var(--accent);
    color: black;
    transform: translateY(-2px);
}

/* ================= FOOTER ================= */

footer {
    margin-top: 4rem;
    padding: 3rem 1.5rem;
    background: var(--bg-input);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ================= SEARCH DROPDOWN ================= */
.search-container {
    position: relative;
    /* Ensure dropdown is relative to this */
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    display: none;
    /* Hidden by default */
    border-top: 2px solid var(--purple-primary);
}

.search-results.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, transform 0.2s;
    /* Add transform transition */
}

.search-item.clicked {
    animation: clickZoom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    background: var(--purple-glow);
    z-index: 10;
    position: relative;
    border-radius: var(--border-radius-sm);
}

@keyframes clickZoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px var(--purple-primary);
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* ================= HIGHLIGHT EFFECT ================= */
.highlight-card {
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px var(--accent);
    animation: highlightPulse 2s ease-out forwards;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.05);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.05);
    }

    40% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.03);
    }
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: var(--bg-card-hover);
}

.search-item.empty {
    color: var(--text-muted);
    justify-content: center;
    padding: 1.5rem;
}

.search-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.search-info {
    flex: 1;
}

.search-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.search-type {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.search-price {
    color: var(--accent);
    font-weight: 700;
}

/* ================= SOCIAL ICON BUTTONS (Header) ================= */

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    text-decoration: none;
}

.social-icon-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-icon-btn.discord-btn {
    color: #5865F2;
}

.social-icon-btn.discord-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.social-icon-btn.whatsapp-btn {
    color: #25D366;
}

.social-icon-btn.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ================= HAMBURGER BUTTON ================= */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s;
    z-index: 1100;
    position: relative;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* Animación X al abrir */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= MOBILE MENU ================= */

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

/* Evitar que el mobile menu sea visible en Desktop si se cambia el tamaño de pantalla */
@media (min-width: 1025px) {

    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(112, 0, 255, 0.1);
    border-color: rgba(112, 0, 255, 0.3);
    color: var(--text-main);
}

.mobile-nav-link.active {
    color: var(--accent);
}

.mobile-nav-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.mobile-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-bottom: 1rem;
}

.mobile-social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.mobile-social-btn.discord-btn {
    color: #5865F2;
}

.mobile-social-btn.discord-btn:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
}

.mobile-social-btn.whatsapp-btn {
    color: #25D366;
}

.mobile-social-btn.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
}

.mobile-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* ================= CHAT WIDGET ================= */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    /* Menu on top of button */
    align-items: flex-end;
    gap: 1rem;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    background: var(--purple-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(107, 44, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.chat-toggle-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    background: var(--purple-hover);
}

.chat-icon-svg {
    width: 30px;
    height: 30px;
}

.chat-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 200px;
    /* Reduced width */
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 0.8rem;
    /* Reduced padding */
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    transform-origin: bottom right;
    animation: scaleIn 0.2s ease-out;
}

.chat-menu.active {
    display: flex;
}

.chat-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-option:hover {
    background: var(--bg-card-hover);
}

.chat-option.discord:hover {
    background: #5865F2;
    /* Discord Color */
    color: white;
}

.chat-option.whatsapp:hover {
    background: #25D366;
    /* WhatsApp Color */
    color: white;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================= RESPONSIVE BREAKPOINTS ================= */

/* Tablet: hasta 1024px → ocultar nav desktop, mostrar hamburguesa */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    /* Ocultar iconos sociales en header en tablet pequeña para ahorrar espacio */
    .social-icon-btn {
        display: none;
    }

    .header-inner {
        gap: 1rem;
    }
}

/* Tablet: layout de 2 columnas a 1 columna */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    aside {
        position: static;
        margin-bottom: 1rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 16px;
    }
}

/* Móvil: 1 columna, ajustes de texto y padding */
@media (max-width: 600px) {
    .header-inner {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 45px;
    }

    .search-input {
        padding: 0.6rem 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .games-grid.home-grid {
        grid-template-columns: 1fr;
    }

    .cart-dropdown {
        width: 90vw;
        right: -1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .antigravity-hero {
        min-height: 400px;
    }

    .toast {
        min-width: unset;
        width: calc(100vw - 2rem);
        right: 0;
        left: 0;
        margin: 0 auto;
    }

    .modal-content {
        padding: 1rem;
        margin: 0;
        border-radius: 0;
        height: 100%;
    }

    .global-modal {
        padding: 0;
    }

    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= TOAST NOTIFICATIONS ================= */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2000;
}

.toast {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 300px;
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
    border-color: var(--accent);
}

.toast.info {
    border-color: var(--purple-primary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ================= SKELETON LOADING ================= */

.skeleton {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    height: 380px;
    /* Approx height of card */
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ================= LIST VIEW TOGGLE ================= */
.view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.btn-view {
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-view:hover,
.btn-view.active {
    background: var(--purple-primary);
    color: white;
    border-color: var(--purple-primary);
}

/* ================= LIST VIEW STYLES ================= */
.games-grid.list-view {
    grid-template-columns: 1fr;
}

.games-grid.list-view .game-card {
    flex-direction: row;
    height: 160px;
    /* Fixed height for consistency */
}

.games-grid.list-view .card-image-wrapper {
    width: 240px;
    /* Fixed width for image */
    padding-top: 0;
    height: 100%;
}

.games-grid.list-view .card-image {
    position: static;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.games-grid.list-view .card-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
}

.games-grid.list-view .game-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.games-grid.list-view .game-meta {
    margin-bottom: 0;
}

.games-grid.list-view .card-footer {
    margin-top: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

/* Mobile List View Override */
@media (max-width: 600px) {
    .games-grid.list-view .game-card {
        flex-direction: column;
        height: auto;
        max-width: 100%;
        /* Full width on mobile */
    }

    .games-grid.list-view .card-image-wrapper {
        width: 100%;
        height: 0;
        padding-top: 60%;
        /* Aspect ratio for mobile list image */
        position: relative;
    }

    .games-grid.list-view .card-image {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }

    .games-grid.list-view .card-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .games-grid.list-view .card-footer {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
    }

    .view-toggle {
        display: none;
    }

    .cart-dropdown {
        width: 300px;
        right: -20px;
    }
}

/* ================= CAROUSEL STYLES ================= */
.carousel {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    padding: 0 var(--container-padding);
    max-width: 1000px;
    height: 250px;
    /* Slightly taller for cards */
    overflow: hidden;
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.4s ease-in-out;
    cursor: grab;
    display: flex;
    /* CRITICAL for horizontal alignment */
    width: 100%;
}

.carousel-track.grabbing {
    cursor: grabbing;
    transition: none;
}

.carousel-slide {
    position: relative;
    /* Changed from absolute to relative/flex */
    flex: 0 0 100%;
    /* Show 1 slide by default */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
}

/* Slides Content */
.slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    color: #fff;
    text-align: left;
}

.slide-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.btn-slide {
    display: inline-block;
    background: var(--purple-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-slide:hover {
    background: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--purple-glow);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    bottom: 1px;
    width: 100%;
    z-index: 10;
}

.carousel-nav button {
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 6px;
    cursor: pointer;
}

.carousel-nav button.current-slide {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Promo Gradients Removed for clean template */

@media (max-width: 768px) {
    .carousel {
        height: 350px;
        padding: 0;
    }

    .carousel-track-container {
        border-radius: 0;
    }


}

/* Sidebar Dropdown */
.sidebar-dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown-toggle {
    justify-content: space-between;
    width: 100%;
}

.chevron {
    transition: transform 0.3s ease;
}

.sidebar-dropdown.open .chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 1rem;
}

.sidebar-dropdown.open .sidebar-submenu {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.sidebar-link.sub-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.sidebar-link.sub-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--purple-primary);
}

.sidebar-link.sub-link.active {
    background: rgba(107, 44, 255, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}


/* Badge Options for Visual Catalog */
.badge-options {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--purple-primary);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .badge-options {
    background: #eef2ff;
    color: #6366f1;
    border-color: #c7d2fe;
}

/* Botón "Ver Opciones" - Estilo Antigravity */
.btn-view-options {
    background: rgba(112, 0, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(112, 0, 255, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    /* Radio menos agresivo */
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
    /* Centrado */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Efecto Hover Luminoso */
.btn-view-options:hover {
    background: rgba(112, 0, 255, 0.25);
    border-color: var(--neon-cyan);
    color: white;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

/* Efecto Click (Feedback) */
.btn-view-options:active {
    transform: translateY(0) scale(0.98);
    background: rgba(112, 0, 255, 0.4);
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}

/* Tema Claro */
[data-theme="light"] .btn-view-options {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .btn-view-options:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #4338ca;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .btn-view-options:active {
    background: rgba(99, 102, 241, 0.3);
    box-shadow: none;
}

/* Hero Background Image Styles */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
    /* Ensure it stays behind content */
}

/* Ensure hero effects overlay properly */
.hero-bg-effects {
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Content above image and effects */
}

.hero.antigravity-hero {
    overflow: hidden;
    /* Prevent image spill */
    position: relative;
}