/* Plantilla 34 · Deportivo. Energía de cancha: casi negro con líneas de velocidad, nombre gigante condensado e
   inclinado, una franja diagonal del color de la marca y tarjetas que entran derrapando con el precio inclinado. */
:root {
  color-scheme: dark;
  --surface: #161a20; --surface-2: #1f242c; --ink: #f4f6f8; --ink-2: #cdd2da; --muted: #a8afba; --line: rgb(244 246 248 / .12);
  --sheet: #12151a; --field: #1b1f26; --r-card: 4px; --r-field: 4px; --r-sheet: 8px; --top-h: 60px;
  --ok: #3ddc84; --on-ok: #0d0f12; --err: #ff9a9a; --err-line: #ff7676; --toast-bg: #f4f6f8; --toast-ink: #0d0f12; --scrim: rgb(0 0 0 / .62); --chip-dark: rgb(0 0 0 / .85);
}
main { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.top { background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 2px solid var(--accent); }
.top-brand { font-weight: 800; font-style: oblique 10deg; text-transform: uppercase; letter-spacing: .02em; font-size: 1.15rem; }
.top-logo { border-radius: 4px; }
.btn { border-radius: 4px; font-weight: 800; font-style: oblique 8deg; text-transform: uppercase; letter-spacing: .06em; transform: skewX(-8deg); }
.btn > * { transform: skewX(8deg); }
.btn-main { box-shadow: 0 10px 26px -12px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); backdrop-filter: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: skewX(-8deg) translateX(4px); } }
.btn:active { transform: skewX(-8deg) scale(.97); }

/* Portada: franja diagonal detrás, nombre gigante inclinado que entra derrapando */
.hero { container-type: inline-size; position: relative; display: grid; justify-items: start; gap: 16px; padding: 36px 0 10px; isolation: isolate; }
/* Franja diagonal hecha con un corte (no se sale de la pantalla) que se estira desde la izquierda */
.slash { position: absolute; z-index: -1; left: 0; right: 0; top: 34%; height: 50%; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); clip-path: polygon(0 42%, 100% 0, 100% 58%, 0 100%); transform-origin: left center; }
.js .slash { animation: slash-in .9s var(--ease) both; }
@keyframes slash-in { from { transform: scaleX(0); } }
.hero-logo .logo-img { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); transform: skewX(-8deg); }
.hero-name { font-weight: 800; font-style: oblique 12deg; font-size: min(calc(clamp(3.6rem, 21vw, 10rem) * min(var(--ns, 1), var(--ws, 1))), calc(100cqw / (var(--wl, 6) * .46 + .15))); line-height: .86; text-transform: uppercase; letter-spacing: -.01em; max-width: max(9ch, calc(var(--wl, 6) * .46em + .15em)); overflow-wrap: normal; color: var(--ink); padding-right: .1em; }
.js .hero-name { animation: drift-in .8s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes drift-in { from { opacity: 0; transform: translateX(-12px) skewX(10deg); filter: blur(4px); } 70% { transform: translateX(3px) skewX(-3deg); filter: none; } }
.hero-slogan { color: var(--ink-2); font-size: clamp(1.05rem, 4.4vw, 1.3rem); font-weight: 600; max-width: 28ch; padding-left: 12px; border-left: 4px solid var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.js .hero > .hero-slogan, .js .hero > .hero-cta, .js .hero > .hero-logo { animation: drift-in .8s cubic-bezier(.2, .9, .3, 1.2) both; }
.js .hero > .hero-slogan { animation-delay: .12s; } .js .hero > .hero-cta { animation-delay: .22s; }
.cf-card { border-radius: 4px; box-shadow: 0 0 0 2px rgb(244 246 248 / .1), 0 26px 40px -20px #000; }
.cf-title { font-weight: 800; font-style: oblique 8deg; text-transform: uppercase; font-size: 1.2rem; }
.cf-nav .btn-icon { border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* Catálogo: tarjetas que entran derrapando; el precio va en una etiqueta inclinada */
.shop { margin-top: 44px; }
.shop-title { font-weight: 800; font-style: oblique 12deg; text-transform: uppercase; font-size: clamp(2.6rem, 13vw, 5rem); line-height: .9; }
.tabs { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.tab { border-radius: 4px; font-weight: 800; font-style: oblique 8deg; text-transform: uppercase; letter-spacing: .04em; }
.tab-ind { height: 4px; bottom: 4px; border-radius: 0; transform: skewX(-20deg); }
.grid { gap: 12px; }
/* Derrape: entra deslizándose de lado con un leve giro y frena pasándose un poquito (sin desenfoque: son muchas tarjetas) */
.js .card.reveal { transform: translateX(-12px) rotate(-1.5deg); transition: opacity .4s var(--ease) var(--d, 0ms), transform .5s cubic-bezier(.2, .9, .3, 1.25) var(--d, 0ms); }
.js .card.reveal.is-in { transform: none; }
.card-hit { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .card-hit:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--accent); } }
.card-name { font-weight: 700; }
.card-price { justify-self: start; display: inline-grid; padding: 4px 12px 4px 10px; background: var(--surface-2); transform: skewX(-12deg); margin-top: 2px; }
.card-price > * { transform: skewX(12deg); }
.card-price .price-usd { font-style: oblique 8deg; font-size: 1.05rem; }
.badge-out, .badge-new { border-radius: 2px; text-transform: uppercase; font-style: oblique 8deg; }
.extra { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-left: 4px solid var(--accent); }
.foot { background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 2px solid var(--accent); }
.foot-name { font-weight: 800; font-style: oblique 10deg; text-transform: uppercase; font-size: 1.8rem; }

@media (min-width: 900px) {
  .hero { padding-top: 54px; }
  .cartbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .slash, .js .hero > * { animation: none; } .js .card.reveal { transform: none; } }
