
  /* Estilo general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #f0f0f0;
    line-height: 1.6;
    padding: 20px;
}

body {
    background-color: #111;
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h16v2h-6v6h6v8H8v-6H2v6H0V0zm4 4h2v2H4V4zm8 8h2v2h-2v-2zm-8 0h2v2H4v-2zm8-8h2v2h-2V4z' fill='%23a5a4a7' fill-opacity='0.17' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: auto;
    color: #fff;
  }
  
  

/* Encabezado */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #00bfff;
}



header p {
    color: #aaa;
}

/* Contenido principal */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    border-left: 4px solid #00bfff;
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Listas de juegos */
.game-list, .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
}

/*.game-item, .news-item {*/
  .game-item {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.2);
    transition: transform 0.2s;
}

.game-item:hover, .news-item:hover {
    transform: scale(1.02);
}

.game-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.imagen-noticia {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px; /* opcional para suavizar bordes */
}


.game-link {
    text-decoration: none;
    color: inherit;
}

.game-link:hover {
    text-decoration: underline; /* Opcional: para que se subraye solo al pasar el cursor */
}

/*SECCION ESTAMOS JUGANDO A:*/
.estamos-jugando {
    margin-top: 2rem;
    background-color: var(--clr-neutral-800);
    padding: 1rem;
    border-radius: 8px;
}
.estamos-jugando .juegos-random {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center; /* o 'flex-start' si quieres alinearlos a la izquierda */
}

/* Estilo individual de cada juego */
.juego-destacado {
    background-color: var(--clr-neutral-700);
    border-radius: 8px;
    padding: 0.5rem;
    width: 200px;
    text-align: center;
}

.juego-link {
    text-decoration: none;
    color: inherit;
}

.juego-cover {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    margin-bottom: 1rem;
}

.juego-info h3 {
    margin: 0.5rem 0 0.2rem;
    font-size: 1.2rem;
}

.juego-info p {
    font-size: 0.9rem;
    color: var(--clr-neutral-400);
}



/* Noticias */
.news-item h3 {
    color: #00bfff;
    margin-bottom: 10px;
}

.news-date {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}
.news-date {
    color: #888;
    margin-right: 8px;
}

.news-category {
    color: #555;
    font-weight: bold;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

#load-more-news {
    padding: 10px 20px;
    background-color: var(--clr-accent-600);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s;
}

#load-more-news:hover {
    background-color: var(--clr-accent-800);
}

.news-list {
    display: grid;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    grid-template-columns: repeat(1, 1fr); /* Móvil por defecto */
}

@media (min-width: 600px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .news-list {
        grid-template-columns: repeat(3, 1fr); /* Escritorio */
    }
}


.news-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.news-item:hover {
    transform: scale(1.02);
}

.news-item img {
    width: 100%;
    height: auto;
    display: block;
}




/*BARRA DE BUSQUEDA*/

.autocomplete-container {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}

#search {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background-color: #1e1e1e;
    color: #fff;
    width: 300px;
    font-size: 1rem;
    outline: none;
}

#search::placeholder {
    color: #aaa;
}

#autocomplete-list {
    position: absolute;
    top: 110%;
    left: 0;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 10;
    width: 100%;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    color: #fff;
}

.autocomplete-item:hover {
    background-color: #444;
}

/* Botón de iniciar sesión *//*
button.boton-iniciar {
    padding: 0.5rem 1rem;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.boton-iniciar:hover {
    background-color: #e84141;
}
*/
button.boton-iniciar {
    display: inline-flex; /* cambia flex por inline-flex */
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    min-width: 120px; /* fija un ancho mínimo para evitar saltos */
    background: linear-gradient(135deg, #ff6b81, #ff4757);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    vertical-align: middle; /* si está junto a texto u otros elementos */
}

button.boton-iniciar:hover {
    background: linear-gradient(135deg, #ff4757, #e84141);
    box-shadow: 0 6px 15px rgba(232, 65, 65, 0.6);
}

button.boton-iniciar img.icon-home {
    width: 20px;
    height: 20px;
}
@media (max-width: 768px) {
    .boton-iniciar {
        margin-top: 1rem; /* Ajusta el valor según lo que necesites */
    }
}

/*MADE IN SPAIN EN INDEX*/
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plus-link {
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  background-color: #444;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  text-align: center;
  line-height: 1;
}


.plus-link:hover {
  background-color: #ffffff;
  color: #2D2D2D;
}





/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive extra */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}


/*ARCHIVO JUEGO.PHP*/

/*FICHA DEL JUEGO*/

.game-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.cover img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.info {
    flex: 1;
    min-width: 200px;
}

.icon-notas {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.metacritic-score {
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}


@media (max-width: 768px) {
    .game-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info {
        text-align: left;
    }
}
/*SIGNO + al lado de devs y publishers*/
.developer-link {
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-left: 8px;
    color: #61DAFB;
    transition: transform 0.2s, color 0.3s;
    display: inline-block;
}

/* 🔹 Efecto al pasar el ratón */
.developer-link:hover {
    transform: scale(1.3) rotate(10deg);
    color: #4FC3F7;
}

/* 🔹 Pequeña animación */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.developer-link:hover {
    animation: bounce 0.3s ease-in-out;
}


    /*boton añadir a lista*/
.cover-actions {
    margin-top: 1rem;
    text-align: center;
}

.boton-add-lista {
    background-color: #e77f7f;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.boton-add-lista:hover {
    background-color: #333;
}

    /*SECCION Tiendas*/

.store-bar {
    background-color: #111;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    border-radius: 8px;
  }
  
  .store-bar img {
    height: 32px;
    transition: transform 0.2s ease;
  }
  
  .store-bar img:hover {
    transform: scale(1.1);
  }

    /*SECCION LIKES*/
  .like-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .like-button,
  .dislike-button {
    border: none;
    border-radius: 50%;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .like-button {
    background-color: rgba(0, 200, 0, 0.2); /* verde sutil */
  }
  
  .dislike-button {
    background-color: rgba(200, 0, 0, 0.2); /* rojo sutil */
  }
  
  .like-button:hover {
    background-color: rgba(0, 200, 0, 0.35);
    transform: scale(1.1);
  }
  
  .dislike-button:hover {
    background-color: rgba(200, 0, 0, 0.35);
    transform: scale(1.1);
  }
  
  .like-image,
  .dislike-image {
    width: 32px;
    height: 32px;
  }

    /*SECCION RESEÑAS*/

        /*BOTON RESEÑAS*/
        .boton-reviews {
            display: flex; /* Usamos flexbox */
            justify-content: center; /* Centra horizontalmente */
            align-items: center; /* Centra verticalmente (si es necesario) */
            width: 100%; /* Asegura que ocupe todo el espacio disponible */
            margin-top: 20px; /* Espaciado opcional */
        }
        
        .button-escribir-resena {
            display: inline-block;
            padding: 12px 20px;
            font-size: 16px;
            font-weight: bold;
            text-align: center;
            text-decoration: none;
            color: #fff;
            background: linear-gradient(45deg, #ff6600, #ff3300);
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4);
            cursor: pointer;
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }
        
        .button-escribir-resena:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 14px rgba(255, 102, 0, 0.6);
        }
        
        .button-escribir-resena:active {
            transform: scale(0.95);
            box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
        }
        
        /*RESEÑAS COMO TAL*/
        .reviews-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            padding: 20px;
            background-color: rgba(26, 26, 26, 0.9); /* Fondo oscuro con 80% de opacidad */
            color: #fff; /* Texto en blanco para contraste */
            border-radius: 10px;
        }
        
        
        .review-box {
            display: flex;
            flex-direction: column;
            width: 90%;
            max-width: 800px;
        }
        
        .review {
            background: #2a2a2a; /* Fondo oscuro pero diferenciado */
            padding: 20px;
            margin: 15px 0;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(255, 102, 0, 0.3); /* Sombra con tono naranja */
            transition: transform 0.2s ease-in-out;
        }
        
        .review:hover {
            transform: scale(1.02);
            box-shadow: 0px 6px 14px rgba(255, 102, 0, 0.5);
        }
        
        .review-title {
            font-size: 22px;
            font-weight: bold;
            color: #ff6600; /* Color vibrante para el título */
            margin-bottom: 5px;
        }
        
        .review-user {
            font-size: 18px;
            font-style: italic;
            color: #ff9900; /* Tono diferente para destacar */
            margin-bottom: 10px;
        }
        
        .review-rating,
        .review-hours {
            font-size: 16px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 8px;
        }
        
        .review-content {
            font-size: 16px;
            line-height: 1.6;
            color: #ddd; /* Gris claro para mejor lectura */
            background: rgba(255, 255, 255, 0.1);
            padding: 10px;
            border-radius: 5px;
        }

        /*RESEÑAS RESPONSIVE*/
        @media screen and (max-width: 768px) {
            .reviews-content {
                width: 95%; /* Ajuste para pantallas más pequeñas */
                padding: 15px;
            }
        
            .review-box {
                width: 100%; /* Que ocupe todo el espacio disponible */
            }
        
            .review {
                padding: 15px;
                margin: 10px 0;
            }
        
            .review-title {
                font-size: 18px; /* Reducimos el tamaño del título */
            }
        
            .review-user {
                font-size: 16px;
            }
        
            .review-rating,
            .review-hours {
                font-size: 14px; /* Texto más compacto */
            }
        
            .review-content {
                font-size: 14px;
                line-height: 1.5; /* Mejor legibilidad en móviles */
            }
        }
        
        @media screen and (max-width: 480px) {
            .review {
                padding: 12px;
            }
        
            .review-title {
                font-size: 16px; /* Más pequeño para móviles */
            }
        
            .review-user {
                font-size: 14px;
            }
        
            .review-rating,
            .review-hours {
                font-size: 13px;
            }
        
            .review-content {
                font-size: 13px;
                line-height: 1.4;
            }
        }

        /*CARRUSEL*/
        .carousel-wrapper {
        position: relative;
        overflow: hidden;
        margin-top: 20px;
        }

        .carousel {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 10px 0;
        }

        .carousel-item {
        min-width: 150px;
        flex-shrink: 0;
        text-align: center;
        }

        .carousel-item img {
        width: 100%;
        border-radius: 10px;
        height: 200px;
        object-fit: cover;
        transition: transform 0.3s;
        }

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

        .carousel-btn {
        position: absolute;
        top: 35%;
        transform: translateY(-50%);
        background: #222;
        color: white;
        border: none;
        padding: 10px 12px;
        font-size: 18px;
        cursor: pointer;
        z-index: 10;
        }

        .carousel-btn.prev {
        left: 0;
        }

        .carousel-btn.next {
        right: 0;
        }
        .carousel-item a {
        text-decoration: none;
        color: inherit; /* opcional: mantiene el color del texto por defecto */
        }

        .carousel-item a:hover {
        text-decoration: underline; /* opcional: puedes quitar esto si no quieres efecto hover */
        }
        .carousel::-webkit-scrollbar {
        height: 8px;
        }

        .carousel::-webkit-scrollbar-track {
        background: #eee;
        border-radius: 10px;
        }

        .carousel::-webkit-scrollbar-thumb {
        background-color: #999;
        border-radius: 10px;
        }

        .carousel::-webkit-scrollbar-thumb:hover {
        background-color: #666;
        }



        @media (max-width: 768px) {
        .carousel-btn {
            display: none; /* Esconde flechas en móvil */
        }

        .carousel {
            padding-left: 10px;
        }
        }

        
        
        
        
  
  
