:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Hero section */
.hero {
    position: relative;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.hero .container-fluid {
    z-index: 2;
    width: 100%;
    padding: 0;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sección de noticias */
.news-section {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 0;
    width: 100%;
}

.news-item, .forum-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    margin-bottom: 8px;
}

.news-item:last-child, .forum-item:last-child {
    border-bottom: none;
}

.news-list, .forum-list {
    margin-bottom: 15px;
}

.tab-content {
    padding: 15px 0;
}

.nav-tabs {
    margin-bottom: 20px !important;
}

/* Sección de nuevos lanzamientos */
.releases-section {
    margin-bottom: 0;
    width: 100%;
}

.release-card {
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 0;
}

.release-card:hover {
    transform: translateY(-5px);
}

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

/* Sección de imágenes del juego */
#gameGallery {
    max-width: 100%;
    margin: 0;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#gameGallery .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    background-color: #000;
}

#gameGallery .carousel-control-prev,
#gameGallery .carousel-control-next {
    width: 10%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    margin: 0;
    height: 100%;
}

#gameGallery .carousel-control-prev:hover,
#gameGallery .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Sección de ranking */
.ranking-section {
    background-color: white;
    padding: 20px;
    margin-bottom: 0;
    width: 100%;
    overflow-x: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.ranking-position {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 15px;
}

/* Botones personalizados */
.btn-download {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .container-fluid {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 60vh;
        padding: 40px 0;
    }
    
    .col-md-8, .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gameGallery .carousel-item img {
        height: 300px;
        object-fit: cover;
        background-color: #000;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0;
        min-height: 50vh;
    }
    
    .container {
        padding: 0 5px;
        width: 100%;
        max-width: 100%;
    }
    
    .container-fluid {
        padding: 0 5px;
        width: 100%;
        max-width: 100%;
    }

    .news-section,
    .releases-section,
    .ranking-section {
        padding: 15px;
        margin-bottom: 1rem;
    }

    .btn-download {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Mejorar layout en tablets */
    .col-12.col-sm-6.col-md-8.col-lg-8 {
        order: 1;
    }
    
    .col-12.col-sm-6.col-md-4.col-lg-3 {
        order: 2;
    }
    
    #gameGallery .carousel-item img {
        height: 250px;
        object-fit: cover;
        background-color: #000;
    }
    
    .social-links {
        justify-content: center !important;
        gap: 10px;
    }
    
    .social-links .btn {
        flex: 0 0 auto;
        min-width: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 3px;
        width: 100%;
        max-width: 100%;
    }
    
    .container-fluid {
        padding: 0 3px;
        width: 100%;
        max-width: 100%;
    }

    .hero {
        padding: 20px 0;
        min-height: 40vh;
    }

    .news-item,
    .ranking-item {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .release-card img {
        height: 150px;
    }

    #gameGallery .carousel-item img {
        height: 200px;
        object-fit: cover;
        background-color: #000;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-cta {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p.lead {
        font-size: 1rem;
    }
    
    .ranking-table table {
        font-size: 0.85rem;
    }
    
    .ranking-table tbody td {
        padding: 8px 6px;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.3rem !important;
    }
}