/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, sans-serif;
    background: #0d0d0d;
    color: white;
}


/* =========================================================
   HEADER / MENÚ
   ========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 60px;

    z-index: 999;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;
}

.logo h1 {
    font-family: Cinzel, serif;
    font-size: 30px;
    color: #d9b96d;
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #d9b96d;
}


/* =========================================================
   HERO PRINCIPAL
   ========================================================= */

.hero {
    height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.75)
        ),
        url("../assets/img/hero.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px;
}

.hero-content {
    max-width: 900px;
}

.hero h2 {
    font-family: Cinzel, serif;
    font-size: 70px;
    color: #d9b96d;

    margin-bottom: 25px;
}

.hero p {
    font-size: 22px;
    line-height: 1.8;

    margin-bottom: 40px;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-block;

    background: #7c1111;

    color: white;

    padding: 18px 35px;

    border-radius: 6px;

    text-decoration: none;

    margin: 10px;

    transition: 0.3s;
}

.btn:hover {
    background: #b32020;
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

section {
    padding: 100px 10%;
}

section h2 {
    font-family: Cinzel, serif;

    color: #d9b96d;

    font-size: 45px;

    margin-bottom: 40px;
}


/* =========================================================
   TARJETAS PRINCIPALES
   ========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 30px;
}

.cards article {
    background: #181818;

    padding: 30px;

    border-radius: 10px;

    transition: 0.3s;
}

.cards article:hover {
    transform: translateY(-8px);
}


/* =========================================================
   ÚLTIMAS NOTICIAS
   ========================================================= */

.news {
    text-align: center;
}

.news h2 {
    text-align: center;
}

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 30px;

    text-align: left;
}

.news-grid article {
    background: #181818;

    padding: 30px;

    border-radius: 10px;

    transition: 0.3s;
}

.news-grid article:hover {
    transform: translateY(-8px);
}


/* =========================================================
   GALERÍA DE PARTIDAS
   ========================================================= */

.gallery {
    background: #0d0d0d;

    text-align: center;

    padding: 80px 20px;
}

.gallery h2 {
    font-family: Cinzel, serif;

    color: #d9b96d;

    font-size: 45px;

    margin-bottom: 15px;
}

.gallery-intro {
    max-width: 700px;

    margin: 0 auto 40px auto;

    color: #bdb7a5;

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   CUADRÍCULA DE LA GALERÍA
   ========================================================= */

.gallery-grid {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 20px;

    max-width: 1000px;

    margin: 0 auto;
}


/* =========================================================
   CONTENEDOR DE CADA FOTO
   ========================================================= */

.gallery-item {
    flex: 0 0 280px;

    width: 280px;
    height: 175px;

    overflow: hidden;

    border-radius: 8px;

    background: #181818;

    border: 1px solid #2c2c2c;
}


/* =========================================================
   IMÁGENES DE LA GALERÍA
   ========================================================= */

.gallery-item img {
    display: block;

    width: 280px !important;
    height: 175px !important;

    max-width: 280px !important;
    max-height: 175px !important;

    object-fit: cover;

    transition: transform 0.4s ease;
}


/* =========================================================
   EFECTO AL PASAR EL RATÓN
   ========================================================= */

.gallery-item:hover img {
    transform: scale(1.05);
}


/* =========================================================
   PÁGINA "EL JUEGO"
   ========================================================= */

.game-container {
    text-align: center;
}

.game-container h2 {
    text-align: center;
}

.game-container p {
    text-align: center;
}


/* =========================================================
   TARJETAS DE "EL JUEGO"
   ========================================================= */

.game-cards article,
.factions article {
    text-align: left;
}


/* =========================================================
   HERO DE "EL JUEGO"
   ========================================================= */

.game-hero {
    text-align: center;
}

.game-hero-content {
    width: 100%;
    text-align: center;
}

.game-hero h2 {
    text-align: center;
}


/* =========================================================
   SECCIÓN / IMAGEN DE "EL CAMPO DE BATALLA"
   ========================================================= */

.game-image {
    text-align: center;
}

.game-image-content {
    width: 100%;
    text-align: center;
}

.game-image h2 {
    text-align: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    text-align: center;

    padding: 40px;

    background: #090909;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    header {
        padding: 20px 30px;
    }

    nav ul {
        gap: 20px;
    }

    .hero h2 {
        font-size: 55px;
    }

    .gallery-grid {
        gap: 15px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    header {
        padding: 20px;

        flex-direction: column;
    }

    nav ul {
        gap: 15px;

        flex-wrap: wrap;

        justify-content: center;

        margin-top: 15px;
    }

    .hero {
        padding: 30px 20px;
    }

    .hero h2 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    section {
        padding: 70px 20px;
    }

    section h2 {
        font-size: 35px;
    }

    .gallery {
        padding: 60px 15px;
    }

    .gallery h2 {
        font-size: 35px;
    }

}


/* =========================================================
   GALERÍA EN MÓVIL
   ========================================================= */

@media (max-width: 650px) {

    .gallery-grid {
        gap: 15px;
    }

    .gallery-item {
        flex: 0 0 280px;

        width: 280px;
        height: 175px;
    }

    .gallery-item img {
        width: 280px !important;
        height: 175px !important;
    }

}



