/* =============================================
   RHiongaming - Main Stylesheet
   Estilo gaming dark con acentos rojos
   ============================================= */

/* === CSS Variables === */
:root {
    /* Colors */
    --primary: #C62828;
    --primary-hover: #E53935;
    --primary-light: rgba(198, 40, 40, 0.1);

    --bg-dark: #0d0d0f;
    --bg-surface: #141418;
    --bg-card: #1a1a1f;
    --bg-card-hover: #222228;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --border-color: #2a2a30;

    --success: #4CAF50;
    --warning: #FF9800;
    --error: #f44336;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(198, 40, 40, 0.3);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

/* === Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* === Header === */
.header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-google {
    background: white;
    color: #333;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-comprar {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

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

/* === Hero Carousel === */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--bg-dark);
}

.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.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
}

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

.carousel-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

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

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

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

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

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--primary);
}

/* Legacy Hero (keeping for compatibility) */
.hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-2xl);
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-mascot {
    position: absolute;
    right: 5%;
    bottom: 0;
    height: 350px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

/* === Category Sections === */
.category-section {
    padding: var(--space-2xl) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-title-left {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

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

.see-more:hover {
    color: var(--primary);
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* === Games Scroll Container === */
.games-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: var(--space-md);
}

.games-scroll::-webkit-scrollbar {
    display: none;
}

/* === Bestsellers Grid - Scrollable === */
.bestsellers-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: var(--space-sm);
}

.bestsellers-grid::-webkit-scrollbar {
    display: none;
}

.bestsellers-grid .game-card-compact {
    flex: 0 0 calc((100% - 5 * 1rem) / 6);
    min-width: 140px;
}

/* === Mobile Grid - Scrollable === */
.mobile-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: var(--space-sm);
}

.mobile-grid::-webkit-scrollbar {
    display: none;
}

.mobile-grid .game-card-large {
    flex: 0 0 calc((100% - 4 * 1rem) / 5);
    min-width: 160px;
}

/* === Game Cards Compact === */
.game-card-compact {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.game-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.game-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
}

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

.game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
}

.game-card-info {
    padding: var(--space-sm) var(--space-xs);
    text-align: center;
}

.game-card-info h4 {
    color: var(--text-primary);
    font-size: 0.8rem;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Game Cards Large === */
.game-card-large {
    text-decoration: none;
    text-align: center;
}

.game-card-image-lg {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: var(--space-sm);
    transition: transform 0.3s;
}

.game-card-large:hover .game-card-image-lg {
    transform: scale(1.03);
}

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

.game-placeholder-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    font-weight: 600;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--bg-card), var(--primary-light));
}

.game-card-large h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* === Promo Banners === */
.promo-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.promo-banner {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.promo-banner:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-card);
}

.promo-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* === Mascot Divider === */
.mascot-divider {
    position: relative;
    display: flex;
    justify-content: center;
    padding: var(--space-lg) 0;
}

.mascot-divider img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-dark);
    padding: 5px;
    position: relative;
    z-index: 2;
}

.divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent 15%, transparent 85%, var(--primary));
}

/* === Rewards Section === */
.rewards-section {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    padding: var(--space-2xl) 0;
}

.rewards-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: center;
}

.rewards-mascot {
    display: flex;
    justify-content: center;
}

.rewards-mascot img {
    max-height: 400px;
    animation: float 4s ease-in-out infinite;
}

.rewards-info {
    text-align: left;
}

.rewards-logo {
    height: 80px;
    margin-bottom: var(--space-lg);
}

.rewards-info h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xl);
}

.rewards-features {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.reward-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
}

.reward-icon {
    font-size: 1.5rem;
}

.reward-text strong {
    display: block;
    color: var(--text-primary);
}

.reward-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rewards-cta {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.rewards-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.rewards-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.rewards-buttons {
    display: flex;
    gap: var(--space-md);
}

/* === Features Section === */
.features-section {
    padding: var(--space-2xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

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

/* === Footer === */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding-top: 0;
}

.footer-mascot-divider {
    display: flex;
    justify-content: center;
    transform: translateY(-50%);
}

.footer-mascot-divider img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-surface);
    padding: 5px;
    border: 2px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-payment-methods span {
    background: var(--bg-card);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.footer-bottom-links a {
    color: var(--text-secondary);
}

/* === Forms === */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* === Mobile Menu Button === */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Mobile Navigation === */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface);
    z-index: 999;
    padding: var(--space-xl);
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
    display: block;
    padding: var(--space-lg) 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-links a.active {
    color: var(--primary);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

/* === Large Desktop (1200px+) === */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* === Desktop / Tablet Landscape (1024px) === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .rewards-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rewards-mascot {
        order: -1;
    }

    .rewards-info {
        text-align: center;
    }

    .rewards-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .rewards-buttons {
        justify-content: center;
    }

    .bestsellers-grid .game-card-compact {
        flex: 0 0 calc((100% - 4 * 1rem) / 5);
        min-width: 130px;
    }

    .mobile-grid .game-card-large {
        flex: 0 0 calc((100% - 3 * 1rem) / 4);
        min-width: 150px;
    }
}

/* === Tablet (768px) === */
@media (max-width: 768px) {

    /* Header - Show mobile menu button */
    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .auth-buttons {
        display: none !important;
    }

    .header-inner {
        padding: 0 var(--space-md);
    }

    .logo img {
        height: 40px;
    }

    /* Hero */
    .hero-carousel {
        height: auto;
        min-height: 180px;
    }

    .carousel-slide {
        position: absolute;
        display: none;
    }

    .carousel-slide.active {
        display: block;
    }

    .carousel-image {
        object-fit: contain;
        height: 100%;
        width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-mascot {
        height: 180px;
        right: -20px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Container */
    .container {
        padding: 0 var(--space-md);
    }

    /* Category Sections */
    .category-section {
        padding: var(--space-xl) 0;
    }

    .section-header {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .section-title-left {
        font-size: 1rem;
    }

    /* Game Cards */
    .bestsellers-grid .game-card-compact {
        flex: 0 0 120px;
        min-width: 120px;
    }

    .mobile-grid .game-card-large {
        flex: 0 0 140px;
        min-width: 140px;
    }

    .game-card-info h4 {
        font-size: 0.75rem;
    }

    /* Promo Banners */
    .promo-banners {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .promo-banner img {
        height: 140px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .feature-card {
        padding: var(--space-lg);
    }

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

    /* Rewards Section */
    .rewards-section {
        padding: var(--space-xl) 0;
    }

    .rewards-mascot img {
        max-height: 250px;
    }

    .rewards-features {
        flex-direction: column;
        align-items: center;
    }

    .reward-feature {
        width: 100%;
        max-width: 300px;
    }

    .rewards-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        text-align: left;
    }

    .footer-mascot-divider img {
        width: 60px;
        height: 60px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    /* Buttons */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 0.85rem 1.5rem;
    }
}

/* === Mobile (576px) === */
@media (max-width: 576px) {

    /* Header */
    .header {
        height: 60px;
    }

    .logo img {
        height: 35px;
    }

    /* Hero */
    .hero-carousel {
        height: 200px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .hero-content {
        padding: var(--space-lg);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-mascot {
        height: 150px;
        opacity: 0.5;
    }

    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    /* Game Cards */
    .bestsellers-grid .game-card-compact {
        flex: 0 0 100px;
        min-width: 100px;
    }

    .mobile-grid .game-card-large {
        flex: 0 0 120px;
        min-width: 120px;
    }

    .game-card-info {
        padding: var(--space-xs);
    }

    .game-card-info h4 {
        font-size: 0.7rem;
    }

    .btn-comprar {
        padding: 0.2rem 0.5rem;
        font-size: 0.6rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: var(--space-md);
        padding: var(--space-md);
    }

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

    .feature-card h3 {
        margin-bottom: var(--space-xs);
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .footer-section {
        padding-bottom: var(--space-lg);
        border-bottom: 1px solid var(--border-color);
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    .footer-payment-methods {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        padding: var(--space-md);
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* Promo Banners */
    .promo-banner img {
        height: 120px;
    }

    /* Rewards */
    .rewards-cta {
        padding: var(--space-lg);
    }

    .rewards-subtitle {
        font-size: 1.1rem;
    }

    .rewards-desc {
        font-size: 0.9rem;
    }

    /* Mascot divider */
    .mascot-divider img {
        width: 60px;
        height: 60px;
    }
}

/* === Small Mobile (400px) === */
@media (max-width: 400px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .header-inner {
        padding: 0 var(--space-sm);
    }

    .logo img {
        height: 30px;
    }

    .hero-carousel {
        height: 180px;
    }

    .carousel-arrow {
        display: none;
    }

    .bestsellers-grid .game-card-compact {
        flex: 0 0 90px;
        min-width: 90px;
    }

    .mobile-grid .game-card-large {
        flex: 0 0 100px;
        min-width: 100px;
    }

    .section-title-left {
        font-size: 0.9rem;
    }

    .section-nav {
        display: none;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }
}

/* === Touch-friendly improvements === */
@media (hover: none) and (pointer: coarse) {

    .game-card-compact:hover,
    .game-card-large:hover .game-card-image-lg,
    .promo-banner:hover,
    .feature-card:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* === Print styles === */
@media print {

    .header,
    .footer,
    .mobile-nav {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}