:root {
    --primary-color: #cd0719;
    --secondary-color: #2f3542;
    --accent-color: #ffa502;
    --primary-font: 'Poppins', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
}

nav {
    background: var(--secondary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--heading-font);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

header {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('https://images.unsplash.com/photo-1550745165-9bc0b252726f') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--heading-font);
}

.price-tag {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.cta-button:hover {
    background: #ff6b81;
    transform: scale(1.05);
}

#features {
    padding: 5rem 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    background: #f1f2f6;
    border-radius: 10px;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-counter {
    background: var(--secondary-color);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.counter {
    font-size: 4rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 2rem 0;
}

footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}


/* Añadir estos estilos */
.introduction {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.intro-content p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.intro-feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Estilos del Spinner */
.console-spinner {
    padding: 5rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-align: center;
}

.spinner-container {
    max-width: 800px;
    margin: 3rem auto;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.spinner-container::before,
.spinner-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 50px;
    z-index: 2;
}

.spinner-container::before {
    top: 0;
    background: linear-gradient(180deg, var(--secondary-color) 0%, transparent 100%);
}

.spinner-container::after {
    bottom: 0;
    background: linear-gradient(0deg, var(--secondary-color) 0%, transparent 100%);
}

.spinner {
    animation: spin 20s linear infinite;
}

.console-item {
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes spin {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}


/* Añadir estos estilos */
.info-sections {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-content i {
    font-size: 2rem;
    color: var(--accent-color);
}

.info-content p {
    color: #666;
    line-height: 1.6;
}

/* Estilos para la sección de precios */
.pricing-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pricing-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.price-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.price-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.price-header h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 0.8rem;
}

.price {
    font-size: clamp(2rem, 5vw, 3rem);
}

.price-features li {
    padding: 0.6rem 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.buy-button {
    padding: 0.8rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: white;
}

.installments {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    padding: 0.5rem;
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .price-cards-container {
        flex-direction: row;
        justify-content: center;
    }

    .featured {
        transform: scale(1.05);
    }
}

@media (max-width: 767px) {
    .price-card {
        transform: none !important;
    }

    .featured {
        transform: none !important;
        border: 2px solid var(--accent-color);
    }

    .sale-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}


.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 2rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(255, 165, 2, 0.3);
}

.installments {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .price-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .price-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 2rem;
    }

    .featured {
        transform: none;
    }
}


/* Estilos para la galería de juegos */
.games-gallery {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.games-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.game-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.game-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}
/* Estilos para la sección de beneficios */
.benefits-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* Estilos para la galería de características */
.features-showcase {
    padding: 4rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-showcase-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-showcase-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-content {
    padding: 1.5rem;
    text-align: center;
}

.feature-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #666;
}
.out-of-stock {
    opacity: 0.8;
}

.stock-badge {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    position: absolute;
    top: 40px;
    right: 10px;
}

.out-of-stock .buy-button {
    background-color: #6c757d;
    cursor: not-allowed;
}

.console-stats {
    padding: 2rem;
    background: #f8f9fa;
}

.spinner-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.spinner-trigger {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #cd0719;
    color: white;
    transition: background 0.3s ease;
}

.spinner-trigger:hover {
    background: #e51b2d;
}

.spinner-trigger i {
    font-size: 1.2rem;
}

.console-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.console-list.active {
    max-height: 14000px;
}

.console-item {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    color: white;
}

.console-item:last-child {
    border-bottom: none;
}

.game-count {
    font-weight: 600;
    color: #cd0719;
}

.total-count {
    background: #cd0719;
    color: white;
}

.total-count .game-count {
    color: white;
    font-size: 1.2em;
}