* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111111;
    color: white;
    font-family: Arial, sans-serif;
}

.cabecera {
    background: #1c1c1c;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.logo img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.logo span{
    color:#8b5cf6;
    font-size:28px;
    font-weight:bold;
}

.menu a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
}

.menu a:hover {
    color: #8b5cf6;
}

.usuario {
    margin-left: 25px;
    color: #8b5cf6;
}

.btn-login {
    background: #8b5cf6;
    padding: 10px 15px;
    border-radius: 6px;
}

.btn-login:hover {
    background: #6d3ce8;
    color: white;
}

.hero {
    text-align: center;
    padding: 90px 20px;
    background: linear-gradient(120deg, #181818, #26124d);
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #dddddd;
}

.boton,
.boton-secundario,
button {
    display: block;
    width: 100%;
    background: #8b5cf6;
    color: white;
    text-align: center;
    border: none;
    padding: 13px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
}

.boton-secundario {
    background: #333333;
}

.boton:hover,
button:hover {
    background: #6d3ce8;
}

.boton-secundario:hover {
    background: #444444;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.titulo-seccion {
    margin-bottom: 30px;
    font-size: 32px;
}

.grid-juegos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.juego-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s;
}

.juego-card:hover {
    transform: scale(1.03);
}

.juego-card a {
    text-decoration: none;
    color: white;
}

.juego-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    background: #333333;
}

.juego-card h3 {
    padding: 15px 15px 5px 15px;
    color: white;
}

.juego-card p {
    padding: 0 15px 15px 15px;
    color: #8b5cf6;
    font-weight: bold;
}

.formulario {
    width: 420px;
    margin: 70px auto;
    background: #1e1e1e;
    padding: 35px;
    border-radius: 12px;
}

.formulario h1 {
    margin-bottom: 15px;
    text-align: center;
}

.formulario p {
    color: #cccccc;
    text-align: center;
    margin-bottom: 20px;
}

.formulario label {
    display: block;
    margin-top: 15px;
    margin-bottom: 7px;
}

.formulario input {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 6px;
    background: #2a2a2a;
    color: white;
}

.texto-centro {
    text-align: center;
    margin-top: 20px;
}

.texto-centro a {
    color: #8b5cf6;
    text-decoration: none;
}

.error {
    background: #5c1a1a;
    padding: 12px;
    border-radius: 6px;
    color: white;
}

.detalle-juego {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    background: #1a1a1a;
    padding: 35px;
    border-radius: 16px;
}

.detalle-imagen {
    width: 100%;
}

.detalle-imagen img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 14px;
    background: #2a2a2a;
}

.detalle-info h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.precio {
    display: inline-block;
    background: #8b5cf6;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
}

.descripcion {
    color: #dddddd;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.datos-juego {
    background: #242424;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.datos-juego p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.form-carrito {
    background: #242424;
    padding: 22px;
    border-radius: 12px;
}

.form-carrito label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-carrito select {
    width: 100%;
    padding: 14px;
    background: #111111;
    color: white;
    border: 1px solid #444444;
    border-radius: 8px;
    margin-bottom: 15px;
}

.carrito-contenedor {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
}

.carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 14px;
    align-items: center;
}

.carrito-item img {
    width: 150px;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    background: #333333;
}

.carrito-info h2 {
    margin-bottom: 10px;
}

.carrito-info p {
    color: #cccccc;
    margin-bottom: 8px;
}

.carrito-precio {
    color: #8b5cf6 !important;
    font-size: 22px;
    font-weight: bold;
}

.resumen-carrito {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 14px;
    height: fit-content;
}

.resumen-carrito h2 {
    margin-bottom: 20px;
}

.resumen-carrito p {
    color: #cccccc;
}

.resumen-carrito h3 {
    font-size: 32px;
    color: #8b5cf6;
    margin: 15px 0;
}

.carrito-vacio {
    background: #1e1e1e;
    padding: 35px;
    border-radius: 14px;
    text-align: center;
}

.carrito-vacio h2 {
    margin-bottom: 15px;
}

.carrito-vacio p {
    color: #cccccc;
    margin-bottom: 20px;
}

.hero-noticias {
    background: linear-gradient(120deg, #181818, #3b0764);
    padding: 80px 20px;
    text-align: center;
}

.hero-noticias h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-noticias p {
    color: #dddddd;
    font-size: 20px;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.noticia-card {
    background: #1e1e1e;
    border-radius: 14px;
    overflow: hidden;
}

.noticia-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #333333;
}

.noticia-contenido {
    padding: 22px;
}

.noticia-contenido h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: white;
}

.noticia-contenido p {
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 15px;
}

.noticia-contenido span {
    color: #8b5cf6;
    font-size: 14px;
}

.eliminar-carrito {
    display: inline-block;
    background: #7f1d1d;
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 10px;
}

.eliminar-carrito:hover {
    background: #991b1b;
}

.compra-ok {
    width: 500px;
    margin: 80px auto;
    background: #1e1e1e;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.compra-ok h1 {
    color: #8b5cf6;
    margin-bottom: 20px;
}

.compra-ok p {
    color: #dddddd;
    margin-bottom: 15px;
}