:root {
  --red: #e10600;
  --red-2: #ff2d20;
  --red-dark: #a80000;
  --bg: #0b0b0d;
  --surface: #141417;
  --surface-2: #1d1d22;
  --line: #2a2a31;
  --text: #f5f5f7;
  --muted: #9a9aa5;
  --wa: #25d366;
  --radius: 16px;
  --display: 'Bebas Neue', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
body.locked { overflow: hidden; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; background: var(--surface-2); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(225, 6, 0, .7); }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }
.btn-danger { background: transparent; border-color: #5a1a1a; color: #ff6b62; }

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 40%, #2a0605 0%, var(--bg) 60%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .5s, visibility .5s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-stage { position: relative; width: 220px; height: 130px; }
.loader-shoe { position: absolute; left: 40px; top: 20px; width: 160px; height: 80px; color: #fff; --shoe-accent: var(--red); --shoe-line: var(--red-dark); animation: run .5s ease-in-out infinite alternate; filter: drop-shadow(0 6px 18px rgba(225, 6, 0, .5)); }
.loader-shadow { position: absolute; left: 60px; bottom: 6px; width: 120px; height: 10px; border-radius: 50%; background: rgba(225, 6, 0, .35); filter: blur(4px); animation: shadow .5s ease-in-out infinite alternate; }
.speed { position: absolute; left: 0; top: 34px; width: 60px; }
.speed i { display: block; height: 4px; margin: 9px 0; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--red)); animation: dash .6s linear infinite; }
.speed i:nth-child(2) { width: 70%; margin-left: 30%; animation-delay: .15s; }
.speed i:nth-child(3) { width: 85%; margin-left: 15%; animation-delay: .3s; }
@keyframes run { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-14px) rotate(3deg); } }
@keyframes shadow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.7); opacity: .5; } }
@keyframes dash { from { transform: translateX(20px); opacity: 0; } 50% { opacity: 1; } to { transform: translateX(-30px); opacity: 0; } }
.loader-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 52px; letter-spacing: 3px; line-height: 1; }
.loader-title span, .brand-name span, .hero h2 span { color: var(--red); }
.loader-bar { width: 200px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--red); border-radius: 4px; animation: bar 1.1s ease-in-out infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.loader-credit { margin: 6px 0 0; color: var(--muted); font-size: 14px; letter-spacing: .5px; }
.loader-credit strong { color: var(--text); }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(11, 11, 13, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--display); font-size: 28px; letter-spacing: 1.5px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 15px; }
.nav > a:not(.btn):hover { color: var(--red-2); }
.menu { position: relative; }
.menu-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--red); background: var(--surface-2); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); animation: pop .15s ease-out; z-index: 30; }
.menu-list[hidden] { display: none; }
.menu-list a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.menu-list a:hover { background: var(--surface-2); color: var(--red-2); }
.menu-list hr { border: none; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.eyebrow { color: var(--red-2); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin: 0 0 8px; }
.hero h2 { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 11vw, 140px); line-height: .9; margin: 0; letter-spacing: 2px; }
.lead { color: var(--muted); font-size: 18px; max-width: 460px; margin: 18px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-ring { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(225, 6, 0, .45), transparent 65%); filter: blur(20px); animation: pulse 3s ease-in-out infinite; }
.hero-logo { position: relative; width: 78%; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }

/* ---------- Secciones ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h3 { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: 1.5px; margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; }
.filters input { flex: 1 1 240px; }
.filters input:focus, .filters select:focus { border-color: var(--red); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Tarjeta ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; text-align: left; padding: 0; width: 100%; }
.card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 16px 32px -16px rgba(225, 6, 0, .6); }
.card-img { aspect-ratio: 1; background: linear-gradient(160deg, #24242a, #121215); display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 14px 16px 16px; }
.card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red-2); font-weight: 700; margin: 0; }
.card-name { font-weight: 600; margin: 2px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-price { font-family: var(--display); font-size: 26px; letter-spacing: .5px; line-height: 1; }
.card-sizes { font-size: 12px; color: var(--muted); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .5px; }
.badge.rank { font-family: var(--display); font-size: 18px; font-weight: 400; padding: 2px 12px; }
.soldout { position: absolute; top: 12px; right: 12px; z-index: 1; background: #000c; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card.is-soldout .card-img img { filter: grayscale(.8) brightness(.7); }

.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty svg { width: 90px; height: 45px; color: var(--surface-2); --shoe-accent: var(--line); --shoe-line: var(--line); margin: 0 auto 10px; display: block; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-card { position: relative; width: min(940px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; animation: pop .25s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 16px; }
.gallery { padding: 16px; background: linear-gradient(160deg, #202026, #111114); }
.gallery-main { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0e0e10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail { padding: 28px 24px 24px; display: flex; flex-direction: column; }
.detail-brand { margin: 0; color: var(--red-2); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.detail h3 { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; padding-right: 30px; }
.detail-price { font-family: var(--display); font-size: 44px; margin: 0; line-height: 1; }
.detail-desc { color: var(--muted); margin: 12px 0 0; white-space: pre-line; }
.detail-desc:empty { display: none; }
.detail-label { font-weight: 600; margin: 22px 0 10px; }
.detail-label span { color: var(--muted); font-weight: 400; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-bottom: 20px; }
.size { padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 600; transition: all .15s; }
.size:hover { border-color: var(--red); }
.size.active { background: var(--red); border-color: var(--red); color: #fff; }
.detail .btn-block { margin-top: auto; }
.detail-note { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
.soldout-msg { background: #2a0d0c; border: 1px solid #5a1a1a; color: #ff8a82; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 16px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer p { margin: 0; }
.footer img { margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero-art { order: -1; max-width: 240px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .nav > a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-price { font-size: 22px; }
  .rail { grid-auto-columns: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
