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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #f8fafc;
    background-color: #080d1b;
    line-height: 1.6;
}

header {
    padding: 35px 20px;
    text-align: center;
    background-color: #111827;
    border-bottom: 2px solid #6366f1;
}

header h1 {
    margin-bottom: 5px;
    font-size: 2.7rem;
    font-weight: bold;
}

header p,
.introduccion p,
.contenido p {
    color: #b8c2d3;
}

nav {
    padding: 12px;
    background-color: #182236;
}

nav a {
    display: inline-block;
    margin: 3px 5px;
    padding: 8px 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
}

nav a:hover,
nav .nav-link.active {
    color: white;
    background-color: #4f46e5;
}

.navbar-brand {
    color: white;
    font-weight: bold;
}

main {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto 65px;
}

.hero-destacado {
    display: flex;
    min-height: 390px;
    align-items: center;
    margin-bottom: 65px;
    padding: 55px;
    overflow: hidden;
    border: 1px solid #334155;
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(8, 13, 27, 0.98), rgba(8, 13, 27, 0.35)),
        url("../images/Halo Campaign Evolved.jpg") center / cover;
}

.hero-contenido {
    width: 100%;
    min-width: 0;
    max-width: 610px;
}

.etiqueta-destacada,
.seccion-etiqueta {
    display: inline-block;
    margin-bottom: 10px;
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero-contenido h2 {
    margin-bottom: 18px;
    font-size: 3.7rem;
    font-weight: bold;
    line-height: 1.05;
}

.hero-contenido p {
    margin-bottom: 25px;
    color: #d6deeb;
    font-size: 1.1rem;
}

.hero-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.introduccion {
    margin-bottom: 35px;
    text-align: center;
}

.introduccion h2 {
    margin-bottom: 8px;
    font-size: 2.3rem;
    font-weight: bold;
}

.tarjeta {
    padding: 0;
    overflow: hidden;
    background-color: #182236;
    border: 1px solid #2d3a52;
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.tarjeta:hover {
    transform: translateY(-5px);
    border-color: #6366f1;
}

.tarjeta img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #2d3a52;
}

.contenido {
    display: flex;
    min-height: 195px;
    flex-direction: column;
    padding: 22px;
}

.contenido h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
    font-weight: bold;
}

.contenido p {
    margin-bottom: 15px;
}

.boton {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 17px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    background-color: #4f46e5;
    border: 1px solid #4f46e5;
    border-radius: 7px;
}

.boton:hover {
    color: white;
    background-color: #6366f1;
}

.boton-secundario {
    background-color: rgba(15, 23, 42, 0.75);
    border-color: #94a3b8;
}

.precio {
    display: block;
    margin-top: auto;
    color: #a5b4fc;
    font-size: 1.35rem;
    font-weight: bold;
}

.volver {
    margin-top: 35px;
    text-align: center;
}

.formulario-contenedor {
    max-width: 850px;
    padding: 32px;
    background-color: #182236;
    border: 1px solid #334155;
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.form-label {
    font-weight: bold;
}

.form-control {
    color: white;
    background-color: #0f172a;
    border-color: #64748b;
}

.form-control:focus {
    color: white;
    background-color: #0f172a;
    border-color: #818cf8;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-control::placeholder,
.form-text,
.opcional {
    color: #94a3b8;
}

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.enlaces-cuenta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.enlace-boton {
    margin: 3px 5px;
    padding: 8px 12px;
    color: #cbd5e1;
    background: none;
    border: 0;
    border-radius: 6px;
}

.enlace-boton:hover {
    color: white;
    background-color: #4f46e5;
}

.boton-carrito {
    margin-top: 15px;
}

.boton-detalle {
    margin-top: 18px;
}

.boton:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.tarjeta-externa .contenido {
    min-height: 310px;
}

.tarjeta-externa .contenido h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
    font-weight: bold;
}

.tarjeta-externa .contenido p {
    margin-bottom: 9px;
}

.fuente-externa {
    margin-top: 32px;
    color: #94a3b8;
    text-align: center;
}

.fuente-externa a {
    color: #a5b4fc;
}

.detalle-producto {
    margin-bottom: 55px;
    padding: 30px;
    background-color: #182236;
    border: 1px solid #334155;
    border-radius: 18px;
}

.detalle-producto h1 {
    margin-bottom: 18px;
    font-size: 2.6rem;
    font-weight: bold;
}

.detalle-portada {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border: 1px solid #475569;
    border-radius: 14px;
}

.detalle-descripcion {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.detalle-precio {
    margin-top: 24px;
}

.detalle-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.detalle-acciones .boton {
    margin-top: 0;
}

.detalle-externo {
    min-height: 250px;
}

.reproductor-trailer {
    overflow: hidden;
    background-color: #111827;
    border: 1px solid #334155;
    border-radius: 15px;
}

.titulo-trailer {
    margin: 18px 0 2px;
    font-size: 1.35rem;
}

.canal-trailer {
    color: #94a3b8;
}

.ficha-externa h2 {
    margin-bottom: 12px;
    font-size: 1.7rem;
}

.ficha-externa > p {
    color: #cbd5e1;
}

.datos-videojuego {
    margin: 24px 0 0;
}

.datos-videojuego div {
    padding: 11px 0;
    border-top: 1px solid #334155;
}

.datos-videojuego dt {
    color: #a5b4fc;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.datos-videojuego dd {
    margin: 2px 0 0;
    color: #f8fafc;
}

.formulario-corto {
    max-width: 520px;
}

.enlaces-formulario {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.enlaces-formulario a {
    color: #a5b4fc;
}

.panel {
    padding: 28px;
    background-color: #182236;
    border: 1px solid #334155;
    border-radius: 15px;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: #334155;
}

.cantidad-carrito,
.stock-admin {
    width: 75px;
    padding: 5px;
    color: white;
    background-color: #0f172a;
    border: 1px solid #64748b;
    border-radius: 5px;
}

.total-carrito {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    font-size: 1.35rem;
    border-top: 1px solid #475569;
}

.resumen-pago {
    padding: 0;
    list-style: none;
}

.resumen-pago li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

.lista-pedidos {
    display: grid;
    gap: 16px;
}

.pedido {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 22px;
    background-color: #182236;
    border: 1px solid #334155;
    border-radius: 12px;
}

.pedido > :last-child {
    text-align: right;
}

.estado-pedido {
    color: #86efac;
}

.estado-vacio {
    padding: 50px;
    text-align: center;
    background-color: #182236;
    border-radius: 12px;
}

.aviso-flotante {
    position: fixed;
    z-index: 1100;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
}

.menu-admin {
    justify-content: center;
}

.form-select {
    color: white;
    background-color: #0f172a;
    border-color: #64748b;
}

.form-select:focus {
    color: white;
    background-color: #0f172a;
    border-color: #818cf8;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-select option {
    color: white;
    background-color: #0f172a;
}

.form-check-label,
.table,
.table small {
    color: #f8fafc;
}

.invalid-feedback,
.errorlist {
    color: #fca5a5;
}

.mensajes {
    margin-bottom: 24px;
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 24px auto -20px;
    padding: 8px;
    background: transparent;
}

.indicador {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    background: linear-gradient(135deg, #182236, #222d4a);
    border: 1px solid #334155;
    border-radius: 15px;
}

.indicador span {
    color: #b8c2d3;
}

.indicador strong {
    color: #a5b4fc;
    font-size: 2rem;
}

.lista-simple {
    padding: 0;
    list-style: none;
}

.lista-simple li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #334155;
}

.stock {
    display: block;
    margin-top: 5px;
    color: #86efac;
}

.stock-bajo {
    color: #fca5a5;
}

.buscador {
    max-width: 760px;
    margin-inline: auto;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.btn-close {
    filter: none;
}

footer {
    padding: 25px;
    text-align: center;
    color: #94a3b8;
    background-color: #111827;
    border-top: 1px solid #26334a;
}

@media (max-width: 767px) {
    header h1 {
        font-size: 2rem;
    }

    .hero-destacado {
        min-height: 470px;
        align-items: flex-end;
        padding: 30px;
        background:
            linear-gradient(0deg, rgba(8, 13, 27, 0.98), rgba(8, 13, 27, 0.25)),
            url("../images/Halo Campaign Evolved.jpg") center / cover;
    }

    .hero-contenido h2 {
        font-size: 2.4rem;
        overflow-wrap: anywhere;
    }

    .tarjeta img {
        height: 200px;
    }

    .pedido {
        grid-template-columns: 1fr;
    }

    .pedido > :last-child {
        text-align: left;
    }

    .enlaces-cuenta {
        justify-content: center;
    }

    .detalle-producto {
        padding: 20px;
    }

    .detalle-producto h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    header {
        padding-inline: 15px;
    }

    header h1 {
        font-size: 1.8rem;
        overflow-wrap: anywhere;
    }

    nav .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-brand {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .navbar-nav {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 auto !important;
    }

    .navbar-nav > .enlaces-cuenta {
        width: 100%;
        justify-content: center;
    }

    nav a,
    .enlace-boton {
        margin: 2px;
        padding: 6px 7px;
        font-size: 0.9rem;
    }

    main {
        width: calc(100% - 24px);
        margin-top: 28px;
    }

    .hero-destacado {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .hero-contenido h2 {
        font-size: 2.15rem;
    }

    .hero-acciones .boton {
        width: 100%;
        text-align: center;
    }

    .formulario-contenedor {
        padding: 22px 16px;
    }

    .panel {
        padding: 20px 14px;
    }
}
