@font-face {
    font-family: "Squada One";
    src: url("/Assets/Fuentes/SquadaOne.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Chakra Petch";
    src: url("/Assets/Fuentes/ChakraPetch400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Chakra Petch";
    src: url("/Assets/Fuentes/ChakraPetch600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Chakra Petch";
    src: url("/Assets/Fuentes/ChakraPetch700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Silkscreen";
    src: url("/Assets/Fuentes/Silkscreen.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    --fondo: #090314;
    --superficie: #27085c;
    --transicion: #661db3;
    --lila: #a33df2;
    --texto: #c3d0ee;
    --texto-fuerte: #f4f7ff;
    --lima: #c8ff2e;
    --magenta: #f90096;
    --amarillo: #ffde00;
    --linea: rgba(195, 208, 238, 0.16);
    --display: "Squada One", "Arial Narrow", sans-serif;
    --tipografia: "Chakra Petch", "Segoe UI", sans-serif;
    --pixel: "Silkscreen", "Courier New", monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(102, 29, 179, 0.45), transparent 60%),
        radial-gradient(ellipse 42% 32% at 100% 0%, rgba(249, 0, 150, 0.12), transparent 55%),
        var(--fondo);
    color: var(--texto);
    font-family: var(--tipografia);
    font-size: 16px;
    line-height: 1.5;
}

h1, h2, h3 {
    margin: 0;
    color: var(--texto-fuerte);
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }

a { color: inherit; text-decoration: none; }

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

img { display: block; max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--lima);
    outline-offset: 3px;
}

.encabezado, .pie, .pagina {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 8px;
}

.marca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--texto-fuerte);
    font-family: var(--display);
    font-size: 1.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.marca img { width: 36px; height: 36px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 16px; }

.nav a { font-weight: 600; }

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    background: var(--lima);
    color: #090314;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.boton:hover { background: #d8ff62; }

.boton.secundario {
    background: transparent;
    border-color: var(--lila);
    color: var(--texto-fuerte);
}

.boton:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cuenta {
    min-width: 1.4rem;
    padding: 0 6px;
    background: #090314;
    color: var(--lima);
    font-family: var(--pixel);
    font-size: 0.7rem;
    line-height: 1.4rem;
}

.hero { padding: 36px 0 8px; }

.rotulo {
    margin: 0 0 12px;
    color: var(--lima);
    font-family: var(--pixel);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bajada { max-width: 38rem; margin: 16px 0 0; font-size: 1.08rem; }

.vacio {
    margin-top: 36px;
    padding: 28px;
    background: rgba(39, 8, 92, 0.45);
    border: 1px solid rgba(163, 61, 242, 0.35);
}

.vacio h2 { font-size: 1.7rem; }

.grilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.ficha {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: rgba(39, 8, 92, 0.45);
    border: 1px solid rgba(163, 61, 242, 0.35);
}

.ficha .foto {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: rgba(9, 3, 20, 0.45);
}

.ficha .foto img { width: 100%; height: 100%; object-fit: contain; }

.ficha .cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }

.sku {
    color: var(--texto);
    font-family: var(--pixel);
    font-size: 0.68rem;
}

.ficha h2 { font-size: 1.35rem; }

.precios { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }

.precio {
    color: var(--lima);
    font-size: 1.35rem;
    font-weight: 700;
}

.lista {
    color: var(--texto);
    text-decoration: line-through;
    font-size: 0.92rem;
}

.stock { margin: 0; font-size: 0.85rem; }

.sin-stock { color: var(--magenta); }

.pie {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding: 18px 0 28px;
    border-top: 1px solid var(--linea);
    color: var(--texto);
    font-size: 0.85rem;
}

dialog {
    width: min(440px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--lila);
    background: #12081f;
    color: var(--texto);
}

dialog::backdrop { background: rgba(9, 3, 20, 0.72); }

.carrito-cabeza, .carrito-cuerpo, .carrito-pie { padding: 16px 18px; }

.carrito-cabeza {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--linea);
}

.carrito-cabeza h2 { font-size: 1.5rem; }

.cerrar {
    width: 40px;
    height: 40px;
    border: 1px solid var(--linea);
    background: transparent;
}

.linea-carrito {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--linea);
}

.cantidad { display: flex; align-items: center; gap: 8px; }

.cantidad button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--linea);
    background: transparent;
}

.aviso { min-height: 1.3em; margin: 8px 0 0; font-weight: 600; }

.aviso.error { color: var(--magenta); }

.carrito-pie { display: grid; gap: 10px; }

.total { display: flex; justify-content: space-between; font-weight: 700; }

.nota { margin: 0; color: var(--texto); font-size: 0.82rem; }

@media (max-width: 720px) {
    .nav a:not(.boton) { display: none; }
    .pie { flex-direction: column; }
    .ficha .boton, .carrito-pie .boton { width: 100%; }
}
