/* ============================================
   VARIABLES Y ESTILOS GLOBALES
   ============================================ */
:root {
    --primary-color: #06b6d4;
    --secondary-color: #3b82f6;
    --dark-bg: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(6, 182, 212, 0.3);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
}

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

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ============================================
   NAVEGACIÓN MEJORADA
   ============================================ */
.nav-enhanced {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.1);
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Search Box */
.search-box {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    background: rgba(30, 41, 59, 0.95);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

/* Botones de navegación */
.cart-btn,
.profile-btn {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.cart-btn:hover,
.profile-btn:hover {
    color: var(--primary-color);
}

.cart-count {
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* ============================================
   CATEGORÍAS RÁPIDAS
   ============================================ */
.category-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

/* ============================================
   GRID Y CONTROLES
   ============================================ */
.filter-select {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.view-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Contenedor del grid */
.juegos-container {
    position: relative;
    overflow: visible;
}

/* Tarjetas de juegos */
.juego-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 320ms ease, opacity 200ms ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.juego-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

/* Contenedor de imagen */
.card-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 12;
    background: rgba(30, 41, 59, 0.5);
}

.juego-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.juego-card:hover .juego-imagen {
    transform: scale(1.08);
}

/* Botón añadir al carrito */
.add-to-cart-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 85%;
    font-size: 0.8rem;
}

.juego-card:hover .add-to-cart-btn {
    bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Badges */
.descuento-badge,
.badge-free {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
}

.descuento-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Información de la tarjeta */
.juego-info {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.juego-etiqueta {
    font-size: 0.65rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.juego-titulo {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stars {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: auto;
}

.juego-precios {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.precio-anterior {
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.6);
}

.precio-actual {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
}

/* Botón wishlist */
.wishlist-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(203, 213, 225, 0.6);
    padding: 0;
}

.wishlist-btn:hover {
    color: #ef4444;
    transform: scale(1.15);
}

.wishlist-btn.active {
    color: #ef4444;
}

/* ============================================
   SECCIÓN CTA
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* ============================================
   FOOTER MEJORADO
   ============================================ */
.footer-enhanced {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-secondary);
}

.footer-enhanced a {
    transition: color 0.3s ease;
}

/* ============================================
   SCROLLBAR GLOBAL - Fine sky-blue scrollbar
   Applies to modern WebKit browsers and Firefox
   ============================================ */

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #7dd3fc transparent;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7dd3fc, #38bdf8); /* sky-blue gradient */
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.06);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa, #0284c7);
}

/* Optional: slightly different appearance for small elements */
*::-webkit-scrollbar-thumb {
    min-height: 24px;
}

.footer-enhanced a:hover {
    color: var(--primary-color);
}

/* ============================================
   ANIMACIONES Y EFECTOS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.juego-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.juego-card:nth-child(1) { animation-delay: 0.05s; }
.juego-card:nth-child(2) { animation-delay: 0.1s; }
.juego-card:nth-child(3) { animation-delay: 0.15s; }
.juego-card:nth-child(4) { animation-delay: 0.2s; }
.juego-card:nth-child(5) { animation-delay: 0.25s; }
.juego-card:nth-child(6) { animation-delay: 0.3s; }
.juego-card:nth-child(7) { animation-delay: 0.35s; }
.juego-card:nth-child(8) { animation-delay: 0.4s; }
.juego-card:nth-child(9) { animation-delay: 0.45s; }
.juego-card:nth-child(10) { animation-delay: 0.5s; }

/* Estados de las tarjetas */
.juego-card.active {
    opacity: 1;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.4);
    z-index: 20;
}

.juego-card.dimmed {
    opacity: 0.3;
    transform: scale(0.98);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-link {
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .juego-titulo {
        font-size: 1rem;
    }

    .precio-actual {
        font-size: 1.1rem;
    }
}

/* ============================================
   MODAL DEL CARRITO
   ============================================ */
.cart-modal {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: -10px 0 40px rgba(6, 182, 212, 0.2);
    overflow: hidden;
}

.cart-modal.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 99;
}

.cart-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

/* Header del carrito */
.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.close-cart-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Lista de items */
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 500px);
    min-height: 0;
}

.cart-items-list::-webkit-scrollbar {
    width: 8px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #87CEEB;
    border-radius: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
    background: #5DADE2;
}

/* Item del carrito */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-color);
}

.cart-item-image {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.qty-display {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
    font-size: 1.2rem;
}

.remove-item-btn:hover {
    color: #dc2626;
    transform: scale(1.2);
}

.empty-cart-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 1;
}

/* Footer del carrito */
.cart-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-summary {
    margin-bottom: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.continue-shopping-btn {
    width: 100%;
    background: transparent;
    color: var(--primary-color);
    padding: 0.9rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.continue-shopping-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Responsive para carrito */
@media (max-width: 768px) {
    .cart-modal {
        width: 100%;
        right: -100%;
    }

    .cart-modal.active {
        right: 0;
    }

    .cart-item-image {
        width: 70px;
        height: 90px;
    }

    .cart-item-title {
        font-size: 0.9rem;
    }
}

/* ============================================
   ESTILOS PARA PORTADA (LANDING PAGE)
   ============================================ */

/* Tarjetas de opciones principales */
.option-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.option-card:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.option-card:hover::before {
    left: 100%;
}

.option-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.option-icon svg {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
    transition: transform 0.3s ease;
}

.option-card:hover .option-icon svg {
    transform: scale(1.1) rotate(-5deg);
}

.option-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.option-card p {
    color: rgba(203, 213, 225, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.badge-count {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Tarjetas secundarias de opciones */
.option-card-secondary {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-card-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.option-icon-secondary {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.option-card-secondary h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.option-card-secondary p {
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-secondary-small {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-small:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

/* Tarjetas de características */
.feature-card {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    background: rgba(6, 182, 212, 0.12);
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.9rem;
}

/* Botón grande principal */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-width: 250px;
}

/* Animación de entrada para portada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1,
.hero-section p,
.hero-section button,
.option-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.hero-section h1 {
    animation-delay: 0.1s;
}

.hero-section p {
    animation-delay: 0.2s;
}

.hero-section button:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-section button:nth-child(2) {
    animation-delay: 0.4s;
}

.option-card:nth-child(1) { animation-delay: 0.3s; }
.option-card:nth-child(2) { animation-delay: 0.4s; }
.option-card:nth-child(3) { animation-delay: 0.5s; }
.option-card:nth-child(4) { animation-delay: 0.6s; }

/* Responsive para portada */
@media (max-width: 768px) {
    .option-card {
        padding: 1.25rem 1rem;
        margin-bottom: 0.5rem;
    }

    .option-icon svg {
        width: 50px;
        height: 50px;
    }

    .option-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .option-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .badge-count {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-top: 0.75rem;
    }

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

    .hero-section p {
        font-size: 1.1rem;
    }

    .btn-lg {
        min-width: 200px;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */
.mobile-menu {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.show {
    max-height: 500px;
}

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

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
    background: rgba(6, 182, 212, 0.1);
}

.hamburger-menu {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    color: var(--primary-color);
}

/* ============================================
   RESPONSIVE GENERAL
   ============================================ */

/* Tablet Devices (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .option-card {
        padding: 1.5rem 1rem;
    }

    .btn-lg {
        min-width: 200px;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .juegos-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .nav-enhanced {
        padding: 0.5rem 0.25rem;
    }

    .nav-enhanced span:nth-child(2) {
        font-size: 0.95rem;
    }

    .hero-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-section p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .hero-section .flex {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .option-card {
        padding: 1rem 0.75rem;
    }

    .option-card h3 {
        font-size: 1rem;
    }

    .option-card p {
        font-size: 0.8rem;
    }

    .option-icon svg {
        width: 50px;
        height: 50px;
    }

    .option-card-secondary {
        padding: 1rem;
    }

    .option-card-secondary h3 {
        font-size: 0.95rem;
    }

    .option-icon-secondary {
        font-size: 2.25rem;
    }

    .btn-secondary-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 1.75rem;
    }

    .feature-card h3 {
        font-size: 0.95rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .juegos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .cart-modal-header h2 {
        font-size: 1.25rem;
    }

    .cart-summary {
        padding: 0.75rem;
    }

    .summary-row {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }

    .checkout-btn,
    .continue-shopping-btn {
        padding: 0.65rem;
        font-size: 0.85rem;
    }

    /* Secciones con espacios ajustados */
    section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .cta-section {
        padding: 1.5rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn-lg {
        width: 100%;
        min-width: unset;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .footer-enhanced {
        padding-top: 1.5rem;
    }

    .footer-enhanced .grid {
        gap: 1.5rem;
    }
}

    .juego-info {
        padding: 0.4rem;
    }

    .juego-titulo {
        font-size: 0.7rem;
    }

    .juego-precios {
        gap: 0.25rem;
    }

    .precio-actual {
        font-size: 0.75rem;
    }

    .descuento-badge,
    .badge-free {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
    }

    .add-to-cart-btn {
        width: 80%;
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }

    .cart-modal-header h2 {
        font-size: 1.25rem;
    }

    .cart-summary {
        padding: 0.75rem;
    }

    .summary-row {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }

    .checkout-btn,
    .continue-shopping-btn {
        padding: 0.65rem;
        font-size: 0.85rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Medium Phones (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .hero-section h1 {
        font-size: 1.875rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .option-card {
        padding: 1.25rem 0.75rem;
    }

    .option-card h3 {
        font-size: 1.1rem;
    }

    .juegos-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .btn-lg {
        width: 100%;
        min-width: unset;
    }
}

/* Landscape mode adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .option-card {
        padding: 1rem 0.75rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }
}
