/* ==========================================
   PALETA DE COLORES
   ========================================== */
:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --color-primary: #38BDF8;
    --color-secondary: #EC4899;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --color-success: #22C55E;
}

/* ==========================================
   RESET Y ESTILOS GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--bg-secondary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s;
}

.logo i {
    font-size: 2rem;
}

.logo:hover {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.nav-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-icon:hover {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-secondary);
    color: var(--text-primary);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* ==========================================
   MENÚ HAMBURGUESA
   ========================================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-secondary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

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

/* Animación cuando está activo (transformación a X) */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
    background: var(--color-primary);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
    background: var(--color-primary);
}

/* Menú móvil */
.nav-menu-mobile {
    display: none;
    position: absolute;
    top: calc(100% + 1px); /* Justo después de la navbar */
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.nav-menu-mobile.active {
    max-height: 600px;
    opacity: 1;
}

.nav-menu-mobile ul {
    list-style: none;
    padding: 1.5rem 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-menu-mobile li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu-mobile.active li {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu-mobile li:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-menu-mobile li:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-menu-mobile li:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-menu-mobile li:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-menu-mobile li:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-menu-mobile li:nth-child(6) {
    transition-delay: 0.35s;
}

.nav-menu-mobile a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-menu-mobile a:hover,
.nav-menu-mobile a.active {
    color: var(--color-primary);
    background: rgba(56, 189, 248, 0.1);
    padding-left: 1.5rem;
}

.nav-menu-mobile a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.nav-menu-mobile a:hover::before,
.nav-menu-mobile a.active::before {
    height: 70%;
}

/* Botones móviles dentro del menú hamburguesa */
.nav-menu-mobile .mobile-nav-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-menu-mobile .mobile-nav-action:hover,
.nav-menu-mobile .mobile-nav-action.active {
    color: var(--color-primary);
    background: rgba(56, 189, 248, 0.1);
    padding-left: 1.5rem;
}

.nav-menu-mobile .mobile-nav-action::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.nav-menu-mobile .mobile-nav-action:hover::before,
.nav-menu-mobile .mobile-nav-action.active::before {
    height: 70%;
}

/* Contenedor para ícono y contador del carrito */
.nav-menu-mobile .mobile-nav-action .cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-menu-mobile .mobile-nav-action i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    position: relative;
}

.nav-menu-mobile .mobile-nav-action .mobile-action-text {
    flex: 1;
}

.nav-menu-mobile .mobile-nav-action .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-secondary);
    color: var(--text-primary);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}


/* ==========================================
   HERO BANNER
   ========================================== */
.hero-banner-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 10;
    align-items: flex-start;
}

.banner-title {
    font-size: 38px;
    font-weight: 700;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 8px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.2;
    text-align: left;
    animation: fadeInUp 0.6s ease-out;
}

.banner-btn {
    background: linear-gradient(to right, #4fc0f4, #0c51a8);
    color: white;
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 192, 244, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(12, 81, 168, 0.6);
}

.banner-btn:active {
    transform: translateY(-1px);
}

/* Carousel Navigation */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, #1E40AF, #0EA5E9);
}

/* ==========================================
   SECTIONS
   ========================================== */
.section-trending,
.section-new,
.section-all-products {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-products-section .section-title {
    color: var(--text-primary);
    font-style: italic;
    text-transform: uppercase;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    padding-bottom: 1.5rem;
}

/* ==========================================
   PRODUCTS GRID
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.product-card {
    background-color: transparent;
    border-radius: 15px;
    overflow: visible;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.hover-add-cart {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #4fc0f4, #0c51a8);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    min-width: 140px;
    white-space: nowrap;
}

.product-card:hover .hover-add-cart {
    opacity: 1;
    visibility: visible;
}

.hover-add-cart:hover {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) translateY(-2px);
}

.product-card .product-image {
    position: relative;
    width: calc(100% - 2.4rem);
    aspect-ratio: 1/1;
    overflow: hidden;
    margin: 1.2rem 1.2rem 0 1.2rem;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 8px;
}

.product-card:hover .product-image img {
    transform: none;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.oferta {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    font-weight: 700;
    padding: 0.4rem 1rem;
    animation: pulseOferta 2s ease-in-out infinite;
}

@keyframes pulseOferta {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 0 rgba(239, 68, 68, 0.4);
    }
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.product-name {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 400;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 900;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.product-price .precio-original {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: line-through;
    opacity: 0.6;
}

.product-price .precio-oferta {
    font-size: 1.3rem;
    color: #EF4444;
    font-weight: 900;
}

.btn-add-cart {
    display: none;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

.pagination-btn {
    background-color: var(--bg-secondary);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.pagination-btn.active {
    background-color: var(--color-primary);
    color: var(--bg-primary);
    border-color: var(--color-primary);
}

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

.pagination-btn:disabled:hover {
    box-shadow: none;
}

/* ==========================================
   FEATURES BAR
   ========================================== */
.features-bar {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    margin: 3rem 0;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-text {
    min-width: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Cambiar a diseño vertical a partir de 900px */
@media (max-width: 900px) {
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem 0.5rem;
    }
    
    .feature-item i {
        font-size: 2rem;
        order: 1;
    }
    
    .feature-text {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .feature-text h4 {
        font-size: 1rem;
        margin-bottom: 0;
        white-space: nowrap;
        order: 2;
        color: var(--text-primary);
    }
    
    .feature-text p {
        display: none; /* Ocultar texto descriptivo a partir de 900px */
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

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

.footer-col h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-col ul li i {
    color: var(--color-primary);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

/* ==========================================
   PRODUCTS PAGE
   ========================================== */
.products-header {
    background: transparent;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.products-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #57b5df;
}

.products-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.products-controls {
    padding: 1.5rem 0 0.5rem 0;
    background-color: transparent;
    margin-bottom: 2rem;
    border-radius: 10px;
}

.controls-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.results-count span {
    color: var(--color-primary);
    font-weight: 600;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-dropdown label {
    color: var(--text-secondary);
}

.sort-dropdown select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--color-primary);
    padding: 0.7rem 2rem 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.sort-dropdown select:hover,
.sort-dropdown select:focus {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.sort-dropdown select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
/* SECCIÓN DE CONTACTO */
.contact-section {
    padding: 4rem 0;
}

.contact-main-title {
    font-size: 2.5rem;
    color: #57b5df;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding-left: 150px;
}

.contact-left {
    text-align: left;
}

.contact-subtitle {
    font-size: 2rem;
    color: #57b5df;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.contact-description {
    font-size: 1.2rem;
    color: #909eb3;
    line-height: 1.6;
    text-align: left;
    max-width: 400px;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 50px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-method-icon {
    font-size: 2rem;
    color: #41c0f2;
}

.contact-method-text {
    font-size: 1.2rem;
    color: #909eb3;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-method a.contact-method-text:hover {
    color: #41c0f2;
}

/* Contact Section Responsive */
@media (max-width: 1270px) {
    .contact-columns {
        gap: 2rem;
        padding-left: 100px;
    }
    
    .contact-right {
        padding-left: 30px;
    }
}

@media (max-width: 900px) {
    .contact-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: 0;
        text-align: center;
    }
    
    .contact-left {
        text-align: center;
    }
    
    .contact-subtitle {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .contact-description {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .contact-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-left: 0;
        margin-top: 1rem;
    }
    
    .contact-method {
        justify-content: center;
    }
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    padding: 2rem 0 4rem 0;
    margin-top: 3rem;
}

.faq-title {
    font-size: 2.5rem;
    color: #57b5df;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-bottom: 2px solid rgba(87, 181, 223, 0.2);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.faq-icon {
    font-size: 1.2rem;
    color: #57b5df;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: #909eb3;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.faq-button-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-faq {
    display: inline-block;
    background: linear-gradient(135deg, #57b5df, #0c51a8);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(87, 181, 223, 0.3);
    letter-spacing: 1px;
}

.btn-faq:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 81, 168, 0.4);
}

/* ==========================================
   CART PAGE
   ========================================== */
.cart-section {
    padding: 2rem 0 4rem;
    min-height: 80vh;
}

.cart-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-left: 50px;
    margin-bottom: 3rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Cart Products */
.cart-products {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    background-color: #1e293b;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.cart-item .product-image {
    width: 120px;
    height: 160px;
    flex-shrink: 0;
}

.cart-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 25px;
}

.cart-item .product-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.cart-item .product-categories {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-item .categories-label {
    color: #909eb3;
    font-size: 0.9rem;
}

.cart-item .categories {
    color: #57b5df;
    font-size: 0.9rem;
}

.cart-item .product-actions {
    display: flex;
    gap: 1rem;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

.cart-item .action-link {
    color: #57b5df;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.cart-item .action-link:hover {
    color: #41c0f2;
}

.cart-item .product-pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    min-width: fit-content;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.cart-item .discount-badge {
    background-color: #57b5df;
    color: black;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    order: 1;
}

.cart-item .price-old {
    color: #909eb3;
    text-decoration: line-through;
    font-size: 0.9rem;
    order: 2;
}

.cart-item .price-current {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    order: 3;
}

/* Cart Summary */
.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.summary-box {
    background-color: #1e293b;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-line .label {
    color: white;
    font-weight: 500;
}

.summary-line .value {
    color: white;
    font-weight: 600;
}

.summary-line.total {
    border-top: 2px solid rgba(87, 181, 223, 0.3);
    padding-top: 1rem;
    font-size: 1.1rem;
}

.coupon-input-container {
    margin-bottom: 0.5rem;
}

.coupon-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-input-wrapper {
    margin: 0.5rem 0;
}

.coupon-input {
    flex: 0 0 auto;
    width: 310px;
    padding: 0.8rem;
    background-color: var(--bg-primary);
    border: 2px solid rgba(87, 181, 223, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.coupon-input:focus {
    border-color: #57b5df;
}

.btn-apply-coupon {
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #57b5df, #0c51a8);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    min-width: 45px;
}

.btn-apply-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 181, 223, 0.4);
}

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

.btn-apply-coupon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.coupon-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 6px;
    min-height: 20px;
}

.coupon-message.success {
    color: #22C55E;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.coupon-message.error {
    color: #EF4444;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-checkout {
    background: linear-gradient(135deg, #57b5df, #0c51a8);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(87, 181, 223, 0.3);
    margin-top: 1rem;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 81, 168, 0.4);
}

/* Progress Bar */
.progress-section {
    background-color: #1e293b;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #57b5df, #41c0f2);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: white;
}

.progress-text p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.progress-text p:first-child {
    font-weight: 600;
    font-size: 1rem;
}

/* Cart Responsive */
@media (max-width: 1000px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-products {
        order: 1;
    }
    
    .cart-summary {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .summary-box {
        order: 1;
    }
    
    .progress-section {
        order: 2;
    }
    
    .cart-title {
        margin-left: 20px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .coupon-input {
        width: 200px;
    }
    
    .coupon-input-wrapper {
        flex-wrap: wrap;
    }
}

/* ==========================================
   GAME DETAILS TABS
   ========================================== */
.game-details-tabs {
    margin-top: 3rem;
    padding-left: 90px;
}

.tab-headers {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.tab-header {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1rem 0;
    margin-right: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-header.active {
    color: var(--color-primary);
}

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

.tab-header.active::after {
    width: 100%;
}

.tab-content {
    position: relative;
    margin-top: 2rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

/* Descripción */
.description-content p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.features-list li {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.features-list li i {
    color: var(--color-success);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.description-footer {
    color: var(--text-primary);
    font-style: italic;
    margin-top: 2rem;
}

/* Requisitos */
.requirements-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.requirements-section h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.requirements-section ul {
    list-style: none;
    padding: 0;
}

.requirements-section li {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    text-align: left;
}

.requirements-section strong {
    color: var(--color-primary);
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */
/* Sección de reseñas dentro de juego.html */
.game-detail-section .reviews-section {
    margin-top: 6rem !important;
    margin-bottom: 6rem !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
    transition: margin-top 0.3s ease;
    min-height: auto !important; /* Forzar sin min-height */
}

.game-detail-section .reviews-section.expanded {
    margin-top: 6rem !important;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.75rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.reviews-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    margin-right: 1rem;
}

.reviews-header i {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.reviews-header.expanded i {
    transform: rotate(180deg);
}

.reviews-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.reviews-content.show {
    max-height: 10000px; /* Valor grande para permitir todo el contenido */
    opacity: 1;
    padding: 1.5rem 0 0.5rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 1rem;
}

/* Columna izquierda - Promedio */
.reviews-average {
    text-align: center;
}

.average-score {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.average-stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.average-stars i {
    font-size: 1.5rem;
    color: #FFD700;
}

.total-reviews {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Columna derecha - Distribución */
.reviews-distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.rating-label {
    color: var(--text-primary);
    font-size: 1rem;
    width: 35px;
    text-align: left;
    flex-shrink: 0;
}

.rating-progress {
    flex: 1;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #1D4ED8);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.rating-percentage {
    color: var(--text-primary);
    font-size: 1rem;
    width: 35px;
    text-align: right;
    flex-shrink: 0;
}

/* Tarjeta de Reseña Individual */
/* Review card dentro de juego.html */
.game-detail-section .review-card {
    background-color: #2A3441;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 6rem;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

.review-header {
    margin-bottom: 1rem;
}

.review-profile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.profile-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.review-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
}

.review-stars i {
    color: #FFD700;
    font-size: 1rem;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.review-content {
    text-align: left;
}

.review-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
}

.review-text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.review-image-space {
    width: 100%;
    height: 100px;
    margin-top: 1rem;
}

/* ==========================================
   LEAVE REVIEW SECTION
   ========================================== */
.leave-review-section {
    margin-top: 2rem;
    padding-left: 90px;
    padding-bottom: 1rem;
}

.leave-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    padding-left: 0;
}

.leave-review-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.leave-review-header i {
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    align-self: center;
}

.leave-review-header.expanded i {
    transform: rotate(45deg);
}

.discount-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 15px;
}

.leave-review-content {
    display: none;
    padding: 2rem 0;
    animation: fadeIn 0.3s ease;
}

.leave-review-content.show {
    display: block;
}

.review-form {
    background-color: #2A3441;
    border-radius: 12px;
    padding: 2rem;
    margin: 0 100px;
    max-width: calc(100% - 200px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-textarea::placeholder {
    color: var(--text-secondary);
}

.rating-stars-input {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.rating-stars-input i {
    font-size: 1.5rem;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-stars-input i:hover,
.rating-stars-input i.active {
    color: #FFD700;
    transform: scale(1.1);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-profile {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-profile:hover {
    border-color: var(--color-primary);
    background-color: rgba(56, 189, 248, 0.1);
}

.upload-profile i {
    color: black;
    font-size: 1.5rem;
}

.profile-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-option:hover {
    transform: scale(1.05);
}


.upload-files {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-file {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-file:hover {
    border-color: var(--color-primary);
    background-color: rgba(56, 189, 248, 0.1);
}

.upload-file i {
    color: black;
    font-size: 1.5rem;
}

.upload-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
}

.form-submit {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-publish-review {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-publish-review:hover {
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* ==========================================
   RELATED PRODUCTS CARDS
   ========================================== */
.related-products-section .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-product-card {
    background-color: transparent;
    border-radius: 15px;
    overflow: visible;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.related-product-card .product-image {
    position: relative;
    width: calc(100% - 2.4rem);
    aspect-ratio: 1/1;
    overflow: hidden;
    margin: 1.2rem 1.2rem 0 1.2rem;
}

.related-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 8px;
}

.related-product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    height: 180px;
}

.related-product-name-price {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.related-product-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 400;
    flex: 1;
    min-width: 0;
}

.related-product-prices {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
    height: 70px;
    justify-content: flex-start;
}

.related-product-price {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 900;
}

.related-product-price.discounted {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.related-product-price.final {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 900;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 968px) {
    .nav-container {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        position: relative;
        align-items: center;
    }
    
    .hamburger-btn {
        display: flex;
        order: 2; /* A la derecha */
    }
    
    .nav-left {
        order: 1; /* A la izquierda */
        justify-content: flex-start;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu-mobile {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 1px); /* Justo después de la navbar */
        width: 100%;
    }
    
    .nav-right {
        display: none; /* Ocultar botones en móvil, se mostrarán en el menú hamburguesa */
    }
    
    .slide-overlay h2 {
        font-size: 2rem;
    }
    
    .slide-overlay p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Footer responsive a partir de 600px */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Ocultar Enlaces Rápidos (segunda columna) */
    .footer-col:nth-child(2) {
        display: none;
    }
    
    /* Ocultar Ayuda (tercera columna) */
    .footer-col:nth-child(3) {
        display: none;
    }
    
    /* Centrar Gamerix (primera columna) */
    .footer-col:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Centrar Contacto (cuarta columna) */
    .footer-col:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .footer-col:last-child ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col:last-child ul li {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-left {
        justify-content: flex-start;
    }
    
    .nav-menu-mobile ul {
        padding: 1rem 1.5rem;
    }
    
    .hero-banner-carousel {
        height: 350px;
    }

    .banner-content {
        left: 40px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-btn {
        padding: 0.6rem 1.8rem;
        font-size: 1.1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .features-bar {
        padding: 1.5rem 0;
        margin: 2rem 0;
    }
    
    .feature-item {
        gap: 0.6rem;
        padding: 0.75rem;
    }
    
    .feature-item i {
        font-size: 1.75rem;
    }
    
    .feature-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .feature-text p {
        font-size: 0.75rem;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        gap: 0.5rem;
    }
    
    .features-bar {
        padding: 1rem 0;
        margin: 1.5rem 0;
    }
    
    .feature-item {
        gap: 0.4rem;
        padding: 0.5rem 0.25rem;
    }
    
    .feature-item i {
        font-size: 1.3rem;
    }
    
    .feature-text h4 {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
    }
    
    .feature-text p {
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.3;
    }
    
    .nav-menu {
        font-size: 0.9rem;
    }
    
    .hero-banner-carousel {
        height: 250px;
    }

    .banner-content {
        left: 20px;
    }

    .banner-title {
        font-size: 26px;
    }

    .banner-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .auth-container {
        padding: 1.5rem !important;
    }
}

/* ==========================================
   AUTH / LOGIN PAGE
   ========================================== */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    position: relative;
}

.auth-tabs::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.auth-tabs.register-active::after {
    transform: translateX(100%);
}

.auth-tab {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: center;
}

.auth-tab.active {
    color: var(--color-primary);
}

.auth-form-wrapper {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form-wrapper.active {
    display: block;
}

.auth-form-wrapper h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-with-icon i {
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.input-with-icon input {
    padding-left: 1rem;
    flex: 1;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.forgot-password {
    color: var(--color-primary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #1E40AF;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(148, 163, 184, 0.3);
}

.auth-divider span {
    position: relative;
    background: var(--bg-secondary);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-social {
    width: 100%;
    padding: 0.9rem;
    border-radius: 10px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-social:hover {
    border-color: var(--color-primary);
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.btn-social i {
    font-size: 1.2rem;
}

.btn-google:hover {
    border-color: #DB4437;
    background: rgba(219, 68, 55, 0.1);
}

/* Message Box */
.message-box {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

.message-box i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.message-box span {
    flex: 1;
    word-break: break-word;
}

.message-box.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    color: #fca5a5;
}

.message-box.error i {
    color: #ef4444;
}

.message-box.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
    color: #86efac;
}

.message-box.success i {
    color: #22c55e;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Auth Responsive */
@media (max-width: 568px) {
    .auth-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .auth-container {
        max-width: 100%;
        width: calc(100% - 2rem);
        margin: 0 1rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .auth-tabs {
        margin-bottom: 1.5rem;
    }
    
    .auth-tab {
        min-width: 0;
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
    }
    
    .auth-form-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .forgot-password {
        font-size: 0.85rem;
    }
    
    .input-with-icon {
        gap: 0.5rem;
    }
    
    .input-with-icon i {
        font-size: 1rem;
        width: 1.2rem;
    }
    
    .social-auth {
        flex-direction: column;
    }
}

/* ==========================================
   PROFILE MENU
   ========================================== */
.profile-menu {
    animation: fadeInDown 0.3s ease;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 0.5rem;
}

.profile-menu-header i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.profile-menu-header strong {
    color: var(--text-primary);
    display: block;
    font-size: 1rem;
}

.profile-menu-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.profile-menu-items {
    display: flex;
    flex-direction: column;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    border-radius: 8px;
    font-size: 0.95rem;
}

.profile-menu-item:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
}

.profile-menu-item.logout {
    color: #EF4444;
}

.profile-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.profile-menu-items hr {
    border: none;
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
    margin: 0.5rem 0;
}

/* ==========================================
   LOADING SPINNER
   ========================================== */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(56, 189, 248, 0.1);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================
   GAME DETAIL PAGE
   ========================================== */
.game-detail-section {
    padding: 2rem 0 4rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
    padding-top: 1.5rem;
    padding-left: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-primary);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--color-secondary);
}

.breadcrumb i {
    font-size: 0.7rem;
}

.game-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding-left: 10px;
    padding-right: 90px;
}

/* Columna Izquierda - Imágenes */
.game-images-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-main-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    margin: 0 auto;
}

.game-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-main-image:hover {
    transform: scale(1.02);
}

/* Carrusel de Miniaturas */
.game-thumbnails-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.thumbnail-nav-btn {
    background-color: #374151;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
}

.thumbnail-nav-btn:hover {
    background-color: #4B5563;
    transform: scale(1.1);
}

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

.game-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow: hidden;
    flex: 1;
    position: relative;
    justify-content: center;
}

.thumbnail-item {
    min-width: 80px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--color-primary);
}

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

.game-main-image {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.game-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.game-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
}

.game-badge.new {
    background: linear-gradient(135deg, var(--color-success), #16A34A);
}

/* Columna Derecha - Información */
.game-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

/* Rating y Reseñas */
.game-rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-stars {
    display: flex;
    gap: 0.2rem;
}

.game-stars i {
    color: #FFD700;
    font-size: 1.2rem;
}

.reviews-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.reviews-link:hover {
    color: var(--color-secondary);
}

/* Precio */
.game-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.original-price {
    color: #94A3B8;
    text-decoration: line-through;
    font-size: 1.2rem;
}

.current-price {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
}

.price-normal {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
}

/* Categorías */
.game-categories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.categories-label {
    color: #94A3B8;
    font-size: 0.9rem;
}

.category-tag {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-tag:hover {
    color: var(--color-secondary);
}

.category-tag:not(:last-child)::after {
    content: ', ';
    color: #94A3B8;
}

/* Botones de Acción */
.game-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-buy-now {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* ==========================================
   SECCIÓN DE CÓDIGO STEAM
   ========================================== */
.steam-code-section {
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.steam-code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.steam-code-header i {
    font-size: 1.2rem;
}

.steam-code-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.steam-code-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5rem;
    font-family: 'Courier New', monospace;
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steam-code-value.loading {
    color: var(--text-secondary);
    animation: pulse 1.5s ease-in-out infinite;
}

.steam-code-value.error {
    color: #fca5a5;
}

.btn-refresh-code {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-refresh-code:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(180deg);
}

.btn-refresh-code.spinning {
    animation: spin 0.5s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.steam-code-info {
    margin-top: 0.75rem;
    text-align: center;
}

.steam-code-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-favorite {
    background: transparent;
    border: 2px solid #3B82F6;
    color: #3B82F6;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: circle(50% at 50% 50%);
}

.btn-favorite:hover {
    background-color: #3B82F6;
    color: white;
    transform: scale(1.1);
}

.btn-favorite i {
    font-size: 1.2rem;
}

.game-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-success);
    font-weight: 600;
}

.stock-info i {
    font-size: 1.2rem;
}

.game-description h3,
.game-features h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.game-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.game-features ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    color: var(--text-secondary);
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.game-features li i {
    color: var(--color-success);
    font-size: 1.1rem;
}

.game-actions {
    display: flex;
    gap: 1rem;
}

.btn-buy {
    flex: 1;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 1.2rem 1.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

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

.game-security {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.security-item i {
    font-size: 2rem;
    color: var(--color-primary);
}

.security-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.related-products-section {
    margin-top: 2rem;
    padding: 0 90px 4rem 90px;
}

/* Responsive Game Detail */
@media (max-width: 968px) {
    .breadcrumb {
        padding-left: 0;
        justify-content: flex-start;
    }
    
    .game-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .game-info-section h1 {
        font-size: 2rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .game-security {
        grid-template-columns: 1fr;
    }
    
    .game-details-tabs {
        padding-left: 0;
        text-align: center;
    }
    
    .tab-headers {
        justify-content: center;
    }
    
    .description-content,
    .requirements-content {
        text-align: center;
    }
    
    .description-content p {
        text-align: center;
    }
    
    .features-list {
        align-items: center;
    }
    
    .requirements-section {
        text-align: center;
    }
    
    .requirements-section ul {
        text-align: left;
        display: inline-block;
    }
    
    .leave-review-section {
        padding-left: 0;
        text-align: center;
    }
    
    .leave-review-header {
        justify-content: center;
    }
    
    .review-form {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .form-submit {
        justify-content: center;
    }
    
    .related-products-section {
        padding: 0 20px 4rem 20px;
        text-align: center;
    }
    
    .related-products-section .section-title {
        text-align: center;
    }
    
    .related-product-name {
        text-align: left;
    }
    
    .related-product-info {
        text-align: left;
    }
}

@media (max-width: 650px) {
    .related-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .related-products-section .products-grid > *:nth-child(3n) {
        display: none;
    }
}

@media (max-width: 480px) {
    .game-info-section h1 {
        font-size: 1.5rem;
    }

    .game-actions {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }
}

/* ==========================================
   CHECKOUT PAGE
   ========================================== */
.checkout-section {
    padding: 2rem 1rem 4rem;
    min-height: 80vh;
    width: 100%;
    overflow-x: visible;
}

.checkout-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: left;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 100%;
    overflow: visible;
}

.checkout-left {
    max-width: 100%;
    overflow: hidden;
}

.checkout-right {
    max-width: 100%;
    overflow: visible;
    min-width: 300px;
    width: 100%;
}

.checkout-left,
.checkout-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-subtitle {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Billing Form */
.billing-form {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.required {
    color: #EF4444;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-input.error {
    border-color: #EF4444;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.form-select {
    appearance: none;
    padding-right: 3rem;
}

.form-select option {
    background-color: white;
    color: black;
}

/* Custom Select con búsqueda */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.custom-select-trigger.active {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.custom-select-value {
    flex: 1;
    text-align: left;
}

.custom-select-trigger i {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.custom-select-trigger.active i {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
    max-height: 300px;
}

.custom-select-options.show {
    display: block;
}

.custom-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
}

.custom-select-search i {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.custom-select-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.custom-select-search input::placeholder {
    color: var(--text-secondary);
}

.custom-select-list {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar personalizado para el custom-select-list */
.custom-select-list::-webkit-scrollbar {
    width: 8px;
}

.custom-select-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-select-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-select-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
}

/* Firefox */
.custom-select-list {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(255, 255, 255, 0.05);
}

.custom-select-option {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
}

.custom-select-option.selected {
    background-color: rgba(56, 189, 248, 0.2);
    color: var(--color-primary);
    font-weight: 600;
}

.custom-select-option.hidden {
    display: none;
}

/* Payment Methods */
.payment-methods {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.payment-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
}

.payment-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .radio-custom {
    background-color: var(--color-primary);
}

.payment-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* Card Details */
.card-details {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
}

/* Checkout Button */
.btn-checkout-final {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    margin-top: 2rem;
}

.btn-checkout-final:hover {
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
    transform: translateY(-2px);
}

/* Order Summary */
.order-summary {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    min-width: 280px;
    flex-shrink: 0;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.order-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.item-name {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.item-price {
    color: var(--text-primary);
    font-weight: 600;
}

/* Order Totals */
.order-totals {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin: 2rem 0 1.5rem 0;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.total-line.final-total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.total-label {
    color: var(--text-primary);
    font-weight: 500;
}

.total-value {
    color: var(--text-primary);
    font-weight: 600;
}

.discount-line .total-value {
    color: var(--color-success);
}

/* Points Info */
.points-info {
    background-color: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0 1.5rem 0;
}

.points-text {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.points-number {
    color: var(--color-primary);
    font-weight: 700;
}

/* Account Creation */
.account-creation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

.account-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
}

.account-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.account-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--color-primary);
}

.account-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.info-icon {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.account-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive */
@media (max-width: 1400px) {
    .checkout-content {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .checkout-content {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1000px) {
    .checkout-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkout-right {
        order: -1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-checkout-final {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .checkout-title {
        font-size: 2rem;
    }
    
    .billing-form,
    .payment-methods,
    .card-details,
    .order-summary {
        padding: 1.5rem;
    }
    
    .btn-checkout-final {
        width: 100%;
        align-self: stretch;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================
   PROFILE PAGE
   ========================================== */
.profile-section {
    padding: 30px 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-container {
    width: calc(100% - 80px);
    max-width: 1400px;
    margin: 0 auto;
}

.profile-card {
    width: 100%;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Profile Left Side */
.profile-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    flex-shrink: 0;
}

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

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.profile-email {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 0;
}

.profile-join-date {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Profile Right Side */
.profile-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    align-self: stretch;
    min-height: 150px;
}

.btn-edit-profile {
    background: var(--bg-secondary);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    transform: translateY(-2px);
    background-color: rgba(56, 189, 248, 0.1);
}

.btn-edit-profile i {
    font-size: 1rem;
}

.profile-points {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.points-label {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.points-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-card {
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        padding: 1.5rem;
    }

    .profile-left {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        align-items: center;
    }

    .profile-right {
        width: 100%;
        align-items: center;
    }

    .btn-edit-profile {
        width: 100%;
        justify-content: center;
    }

    .profile-points {
        width: 100%;
        justify-content: center;
    }

    .profile-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 20px 0 2rem 0;
    }

    .profile-card {
        padding: 1.2rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-email,
    .profile-join-date {
        font-size: 0.9rem;
    }
}

/* ==========================================
   PROFILE CONTENT - TWO COLUMNS LAYOUT
   ========================================== */
.profile-content-container {
    width: calc(100% - 80px);
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-direction: row;
}

/* Sidebar */
.profile-sidebar {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    height: fit-content;
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-item:hover {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
}

.sidebar-item.active {
    background-color: var(--color-primary);
    color: var(--bg-primary);
}

/* Content Area */
.profile-content {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    padding: 2.5rem;
    min-height: 500px;
    flex: 1;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(15, 23, 42, 0.7);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* Image Upload */
.image-upload-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.image-preview {
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview.circular {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.image-preview.rectangular {
    width: 120px;
    height: 200px;
}

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

.btn-upload {
    width: 50px;
    height: 50px;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-primary);
}

/* Form Section */
.form-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Form Actions */
.form-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-save {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Empty State */
.empty-state {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    padding: 3rem 0;
}

/* Points Display */
.points-display {
    background-color: rgba(56, 189, 248, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.points-total {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.points-total span {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 2rem;
}

/* Redeem Button Container */
.redeem-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-redeem {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-redeem:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Logout Confirmation */
.logout-confirmation {
    text-align: center;
    padding: 3rem 0;
}

.logout-confirmation p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

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

.btn-cancel {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-confirm-logout {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-container {
        width: calc(100% - 60px);
        max-width: 1400px;
    }

    .profile-content-container {
        flex-direction: column;
        width: calc(100% - 60px);
        max-width: 1400px;
    }

    .profile-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .sidebar-item {
        padding: 0.8rem 1rem;
        text-align: center;
        font-size: 0.9rem;
    }

    .form-actions {
        justify-content: center;
    }

    .btn-save {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 20px 0 2rem 0;
    }

    .profile-container {
        width: calc(100% - 40px);
    }

    .profile-content-container {
        width: calc(100% - 40px);
        gap: 1.5rem;
    }

    .profile-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .image-upload-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .points-display {
        padding: 1.5rem;
    }

    .points-total {
        font-size: 1.2rem;
    }

    .points-total span {
        font-size: 1.5rem;
    }

    .redeem-button-container {
        justify-content: center;
    }

    .btn-redeem {
        width: 100%;
        max-width: 300px;
    }

    .logout-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cancel,
    .btn-confirm-logout {
        width: 100%;
        max-width: 300px;
    }

    /* Compras y Juegos Grid Responsive */
    #user-purchases-container > div {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .order-card {
        padding: 1rem !important;
    }

    .order-card > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .order-card > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .order-card > div:last-child {
        align-items: stretch !important;
    }

    .order-card > div:last-child > div {
        width: 100% !important;
    }

    #user-games-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Limitar altura de las cards de juegos en móviles */
    #user-games-container > div {
        max-height: none !important;
    }

    #user-games-container > div > div[style*="padding-top: 133%"] {
        padding-top: 110% !important;
    }

    #user-games-container > div > div[style*="padding: 1rem"] h4 {
        font-size: 0.9rem !important;
        margin: 0 0 0.3rem 0 !important;
        line-height: 1.2 !important;
    }

    #user-games-container > div > div[style*="padding: 1rem"] {
        padding: 0.75rem !important;
    }

    /* Reviews responsive */
    #user-reviews-container > div > div {
        padding: 1rem !important;
    }

    #user-reviews-container > div > div > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #user-reviews-container > div > div > div[style*="display: flex"] > div:last-child {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
    }

    /* Favoritos Grid Responsive */
    .favoritos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-container {
        width: calc(100% - 20px);
    }

    .profile-content-container {
        width: calc(100% - 20px);
        gap: 1rem;
    }

    .profile-content {
        padding: 1rem;
    }

    .profile-sidebar {
        padding: 1rem;
        gap: 0.5rem;
    }

    .sidebar-item {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .image-preview.circular {
        width: 80px;
        height: 80px;
    }

    .image-preview.rectangular {
        width: 100px;
        height: 160px;
    }

    .btn-upload {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .order-card {
        padding: 0.75rem !important;
    }

    .order-card > div:first-child > div:first-child h4 {
        font-size: 0.9rem !important;
    }

    .order-card > div:first-child > div:first-child p {
        font-size: 0.8rem !important;
    }

    #user-games-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Ajustar aspect ratio de imágenes en móviles pequeños */
    #user-games-container > div > div[style*="padding-top: 133%"] {
        padding-top: 105% !important;
    }

    #user-games-container > div > div[style*="padding: 1rem"] {
        padding: 0.6rem !important;
    }

    #user-games-container > div > div[style*="padding: 1rem"] h4 {
        font-size: 0.85rem !important;
        margin: 0 0 0.25rem 0 !important;
        line-height: 1.2 !important;
    }

    #user-games-container > div > div[style*="padding: 1rem"] p {
        font-size: 0.75rem !important;
    }

    /* Reviews responsive mobile */
    #user-reviews-container > div > div {
        padding: 0.75rem !important;
    }

    #user-reviews-container > div > div > div[style*="display: flex"] {
        flex-direction: column !important;
    }

    #user-reviews-container > div > div > div[style*="display: flex"] > div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    .favoritos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .favorito-card-info {
        padding: 0.75rem;
    }

    .favorito-card-name {
        font-size: 0.85rem;
    }

    .favorito-card-price {
        font-size: 1rem;
    }

    .points-display {
        padding: 1rem;
    }

    .points-total {
        font-size: 1rem;
    }

    .points-total span {
        font-size: 1.3rem;
    }
}

/* ==========================================
   REWARDS PAGE
   ========================================== */
.rewards-section {
    background-color: var(--bg-primary);
    min-height: calc(100vh - 80px);
    padding: 2rem 0 4rem 0;
}

.rewards-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.rewards-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.rewards-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar Filters */
.rewards-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-filter {
    position: relative;
}

.search-filter i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-filter input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-filter input::placeholder {
    color: var(--text-secondary);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
}

.filter-header i {
    transition: transform 0.3s ease;
}

.filter-group.open .filter-header i {
    transform: rotate(180deg);
}

.filter-options {
    display: none;
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-group.open .filter-options {
    display: flex;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.history-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: auto;
    transition: color 0.3s ease;
}

.history-link:hover {
    color: #60a5fa;
}

/* Rewards Grid */
.rewards-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.reward-card {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reward-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.reward-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}

.reward-info {
    padding: 1.5rem;
}

.reward-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.reward-progress {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Reward Modal */
.reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.reward-modal.active {
    display: flex;
}

.reward-modal-content {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.modal-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.modal-info {
    padding: 2rem;
}

.modal-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-points {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-progress-bar {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.modal-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.modal-redeem-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-redeem-btn.enabled {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
}

.modal-redeem-btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.modal-redeem-btn.disabled {
    background: #4a5568;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .rewards-content {
        flex-direction: column;
    }

    .rewards-sidebar {
        width: 100%;
    }

    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .reward-modal-content {
        margin: 1rem;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* ==========================================
   REVIEWS PAGE
   ========================================== */
/* Página dedicada de reseñas - no afecta juego.html */
.reviews-section:not(.game-detail-section .reviews-section) {
    background-color: var(--bg-primary);
    min-height: calc(100vh - 80px);
    padding: 2rem 0 4rem 0;
}

.reviews-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

.reviews-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(380px, 380px));
    gap: 2.5rem;
    max-width: 100%;
    justify-content: center;
}

/* Review Card - página de reseñas */
.reviews-section:not(.game-detail-section .reviews-section) .review-card {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 520px;
    width: 380px;
}



/* Review Header */
.review-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.review-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.review-user-info {
    flex: 1;
}

.reviewer-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
}

.review-stars i {
    color: #FFD700;
    font-size: 1rem;
}

.review-stars i.fa-star-half-alt {
    color: #FFD700;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Review Content */
.review-content {
    flex: 1;
    min-height: 140px; /* Increased minimum height for content area */
}

.review-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.review-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Increased to 4 lines */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Review Image Space */
.review-image-space {
    width: 100%;
    min-height: 150px;
    background-color: transparent;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Review Game Info */
.review-game-info {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: auto;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.review-game-image {
    width: 80px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.review-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-game-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.3s ease;
}

.review-game-title:hover {
    color: var(--color-primary);
}

/* Review Images */
.review-images {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.review-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Image Popup */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.image-popup-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-popup-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.image-popup-close:hover {
    transform: scale(1.2);
}

/* Reviews Footer */
.reviews-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-counter {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.btn-view-all {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* Responsive */
@media (max-width: 1400px) {
    .reviews-grid {
        grid-template-columns: repeat(3, minmax(340px, 340px));
    }
    
    .reviews-section:not(.game-detail-section .reviews-section) .review-card {
        width: 340px;
    }
}

@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(380px, 380px));
    }
    
    .reviews-section:not(.game-detail-section .reviews-section) .review-card {
        width: 380px;
    }
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(320px, 320px));
    }
    
    .reviews-section:not(.game-detail-section .reviews-section) .review-card {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .reviews-container {
        padding: 0 20px;
    }

    .reviews-title {
        font-size: 2rem;
    }

    .reviews-grid {
        grid-template-columns: minmax(280px, 450px);
        justify-content: center;
    }
    
    .reviews-section:not(.game-detail-section .reviews-section) .review-card {
        width: 100%;
        max-width: 450px;
        min-height: auto;
    }
    
    .reviews-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .btn-view-all {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-section:not(.game-detail-section .reviews-section) .review-card {
        width: 100%;
    }
}

/* ==========================================
   PÁGINA 404
   ========================================== */
body.error-page {
    background: linear-gradient(90deg, #0b132b 0%, #071b5d 100%);
    min-height: 100vh;
}

.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.error-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.error-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.error-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

.error-message {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.error-btn {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.error-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, #0EA5E9, #1E40AF);
}

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

/* Responsive para página 404 */
@media (max-width: 768px) {
    .error-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .error-text {
        align-items: center;
        order: 2;
    }
    
    .error-image {
        order: 1;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-message {
        font-size: 1.2rem;
    }
    
    .error-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   PÁGINA DE MANTENIMIENTO
   ========================================== */
body.maintenance-page {
    background: linear-gradient(90deg, #0b132b 0%, #071b5d 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-content {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.maintenance-container {
    max-width: 800px;
    width: 100%;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.maintenance-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
    text-align: center;
    line-height: 1.4;
}

.maintenance-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.maintenance-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.maintenance-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin-top: 0.5rem;
    padding: 1.2rem 1.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.timer-label {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.timer-countdown {
    color: #ff4444;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Responsive para página de mantenimiento */
@media (max-width: 1200px) {
    .maintenance-container {
        max-width: 700px;
        gap: 1.3rem;
    }
    
    .maintenance-text {
        font-size: 1.4rem;
    }
    
    .maintenance-image img {
        max-height: 320px;
    }
    
    .timer-label {
        font-size: 1.2rem;
    }
    
    .timer-countdown {
        font-size: 1.5rem;
    }
}

@media (max-width: 968px) {
    .maintenance-container {
        max-width: 600px;
        padding: 0 25px;
        gap: 1.2rem;
    }
    
    .maintenance-text {
        font-size: 1.3rem;
    }
    
    .maintenance-image img {
        max-height: 280px;
    }
    
    .maintenance-timer {
        max-width: 400px;
        padding: 1rem 1.5rem;
    }
    
    .timer-label {
        font-size: 1.1rem;
    }
    
    .timer-countdown {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .maintenance-container {
        padding: 0 20px;
        gap: 1rem;
    }
    
    .maintenance-text {
        font-size: 1.2rem;
    }
    
    .maintenance-image img {
        max-height: 240px;
    }
    
    .maintenance-timer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        max-width: 100%;
        padding: 1.2rem;
    }
    
    .timer-label {
        font-size: 1rem;
    }
    
    .timer-countdown {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .maintenance-container {
        padding: 0 15px;
        gap: 0.8rem;
    }
    
    .maintenance-text {
        font-size: 1rem;
    }
    
    .maintenance-image {
        margin: 0.3rem 0;
    }
    
    .maintenance-image img {
        max-height: 200px;
    }
    
    .maintenance-timer {
        padding: 1rem;
        gap: 0.6rem;
    }
    
    .timer-label {
        font-size: 0.95rem;
    }
    
    .timer-countdown {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 360px) {
    .maintenance-text {
        font-size: 0.9rem;
    }
    
    .maintenance-image img {
        max-height: 180px;
    }
    
    .timer-label {
        font-size: 0.85rem;
    }
    
    .timer-countdown {
        font-size: 1.1rem;
    }
}

/* ==========================================
   CROP MODAL FOR PROFILE PICTURE
   ========================================== */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.crop-modal-content {
    background: var(--background);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.crop-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crop-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.crop-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.crop-modal-close:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
}

.crop-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow: auto;
}

.crop-container {
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-container img {
    max-width: 100%;
    display: block;
}

.crop-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel-crop,
.btn-confirm-crop {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-cancel-crop {
    background: transparent;
    border: 2px solid rgba(56, 189, 248, 0.3);
    color: var(--text-primary);
}

.btn-cancel-crop:hover {
    border-color: var(--color-primary);
    background: rgba(56, 189, 248, 0.1);
}

.btn-confirm-crop {
    background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    color: white;
}

.btn-confirm-crop:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* Make profile image upload button clickable */
.image-upload-container {
    position: relative;
}

.image-upload-container .btn-upload {
    cursor: pointer;
}

/* ==========================================
   PERFIL - SECCIONES Y SUBTITULOS
   ========================================== */
.form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section .subtitle {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section .subtitle::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--color-primary), #0EA5E9);
    border-radius: 2px;
}

/* ==========================================
   PROFILE ORDER CARDS & GAMES
   ========================================== */
.order-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: rgba(56, 189, 248, 0.3) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Order card header responsive */
.order-card > div:first-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

/* Productos grid dentro de order-card responsive */
.order-card > div[style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
}

/* Order summary responsive */
.order-card > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

/* User games container responsive */
#user-games-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
}

/* Game cards responsive */
#user-games-container > div {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* User reviews container responsive */
#user-reviews-container > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}

/* Review cards responsive */
#user-reviews-container > div > div {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
}

/* Review card content responsive */
#user-reviews-container > div > div > div[style*="display: flex"] {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
}

/* Review images grid responsive */
#user-reviews-container img[style*="width: 80px"] {
    max-width: 100% !important;
    height: auto !important;
}

/* ==========================================
   FAVORITOS GRID
   ========================================== */
.favoritos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.favorito-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.favorito-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.3);
}

.favorito-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.favorito-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorito-card-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.favorito-card:hover .favorito-card-remove {
    opacity: 1;
}

.favorito-card-remove:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.favorito-card-info {
    padding: 1rem;
}

.favorito-card-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorito-card-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, #1E40AF, #1E3A8A);
    border-left: 4px solid #60A5FA;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    color: white;
}

.toast.success {
    background: linear-gradient(135deg, #1E40AF, #1E3A8A);
    border-left-color: #60A5FA;
}

.toast.error {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    border-left-color: #EF4444;
    color: white;
}

.toast.warning {
    background: linear-gradient(135deg, #1E40AF, #1E3A8A);
    border-left-color: #F59E0B;
    color: white;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: white;
}

.toast.error .toast-icon {
    color: white;
}

.toast.warning .toast-icon {
    color: white;
}

.toast-message {
    flex: 1;
    color: white;
    font-size: 0.95rem;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.toast-close:hover {
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease-out forwards;
}

/* Animaciones para popups personalizados */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

/* ==========================================
   BACKGROUND SELECTOR MODAL
   ========================================== */
.background-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.background-modal-content {
    background: var(--background);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.background-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.background-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.background-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.background-modal-close:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
}

.background-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.background-option {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.background-option:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.background-option.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

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

.background-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.background-option:hover::after {
    opacity: 1;
}

.background-option.selected::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   ESTILOS PARA SISTEMA DE RESEÑAS
   ========================================== */

/* Display del perfil del usuario en el formulario */
.user-profile-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mensaje de autenticación requerida */
.auth-required-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.btn-login-review {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), #0EA5E9);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* ==========================================
   TERMS AND CONDITIONS PAGE
   ========================================== */
.terms-section {
    padding: 120px 20px 80px;
}

.terms-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.terms-section h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.terms-content-wrapper {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
}

/* Terms Responsive */
@media (max-width: 768px) {
    .terms-section {
        padding: 100px 15px 60px;
    }
    
    .terms-section .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .terms-section h1 {
        font-size: 2rem;
    }
    
    .terms-content-wrapper {
        padding: 2rem;
        border-radius: 15px;
    }
}

@media (max-width: 568px) {
    .terms-section {
        padding: 80px 10px 40px;
    }
    
    .terms-section .container {
        padding: 0 5px;
    }
    
    .terms-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .terms-content-wrapper {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .terms-content-wrapper p,
    .terms-content-wrapper li {
        font-size: 0.95rem !important;
    }
    
    .terms-content-wrapper h2 {
        font-size: 1.5rem !important;
    }
    
    .terms-content-wrapper h3 {
        font-size: 1.2rem !important;
    }
}

/* Ocultar el contenido por defecto */
.leave-review-content {
    display: none;
}

/* Vista previa de imágenes */
.images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    display: inline-block;
}

/* Estilo para el botón de subir archivo */
.upload-file {
    width: 100px;
    height: 100px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-file:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
}

.upload-file i {
    font-size: 2rem;
    color: var(--text-secondary);
}

.upload-file:hover i {
    color: var(--color-primary);
}

/* Estrellas de valoración interactivas */
.rating-stars-input {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.rating-stars-input i {
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.rating-stars-input i:hover,
.rating-stars-input i.fas {
    color: #F59E0B;
}

