/* =========================================================
   FURIA STORE — estilos
   Base negra y blanca + un solo acento champagne.
   ========================================================= */

:root {
  --bg: #000;
  --bg-alt: #0b0a09;
  --surface: #141311;
  --line: #262420;
  --line-strong: #3a3732;
  --text: #f4f1ec;
  --muted: #9d978e;
  --accent: #c8a24e;        /* dorado del logo */
  --accent-soft: rgba(200, 162, 78, .14);

  --font-logo: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-script: "Parisienne", "Segoe Script", cursive;
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --topbar-h: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
  -webkit-text-size-adjust: 100%;
}
html.lock { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
fieldset { border: 0; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round;
}

/* ---------- Logo (emblema dorado: FURIA + Store en cursiva) ---------- */
.emblem-wrap { line-height: 0; }
.emblem { width: min(80vw, 380px); height: auto; display: block; }
.emblem-furia { font-family: var(--font-logo); font-weight: 700; font-size: 80px; letter-spacing: 3px; }
.emblem-store { font-family: var(--font-script); font-size: 40px; }
.emblem-sub { font-family: var(--font-script); font-size: 34px; }

.brand { display: inline-flex; align-items: baseline; gap: 6px; color: var(--accent); line-height: 1; }
.brand-furia { font-family: var(--font-logo); font-weight: 700; font-size: 21px; letter-spacing: .06em; }
.brand-store { font-family: var(--font-script); font-size: 20px; }
@media (max-width: 399px) { .brand-store { display: none; } }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; gap: 14px; }
.nav a {
  font-size: 11px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--text); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  border-radius: 1px;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  text-align: center;
  cursor: pointer;
}
.btn .ico { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: #0a0a0a; }
.btn-accent:hover { background: #d8b665; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: var(--text); }
.btn-ghost:hover { border-color: #fff; }
.btn:active { transform: scale(.98); }

/* ---------- Inicio ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--topbar-h));
  display: grid; place-items: center;
  text-align: center;
  padding: 56px 20px 88px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(200, 162, 78, .11), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero::before, .hero::after {   /* líneas finas decorativas */
  content: ""; position: absolute; left: 50%; width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.hero::before { top: 0; height: 12vh; }
.hero-inner { display: flex; flex-direction: column; align-items: center; animation: rise 1.1s var(--ease) both; }
.hero .eyebrow { margin-bottom: 30px; }
.hero-logo-img { width: min(78vw, 520px); height: auto; }
.hero-rule { width: 48px; height: 1px; background: var(--accent); margin: 38px 0 22px; }
.tagline {
  font-family: var(--font-title);
  font-style: italic; font-weight: 400;
  font-size: clamp(28px, 7.5vw, 44px);
  line-height: 1.1;
  margin-bottom: 40px;
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%;
  width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent);
  animation: drip 2.4s ease-in-out infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drip { 0%, 100% { opacity: .2; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow {
  font-size: 11px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent);
}
.section-head .eyebrow { margin-bottom: 10px; }
h2 {
  font-family: var(--font-title);
  font-weight: 400; font-style: italic;
  font-size: clamp(42px, 11vw, 68px);
  line-height: 1;
  letter-spacing: -.01em;
}
h3 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 22px; line-height: 1.2;
}

/* ---------- Catálogo: barra de filtros ---------- */
.notice {
  margin: -16px auto 24px;
  max-width: 520px;
  text-align: center;
  font-size: 12px; letter-spacing: .04em;
  color: var(--muted);
}
.notice::before { content: "·  "; color: var(--accent); }

.toolbar {
  position: sticky; top: var(--topbar-h); z-index: 30;
  display: flex; align-items: center; gap: 16px;
  margin: 0 -20px 24px; padding: 12px 20px;
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.toolbar-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.toolbar-btn:hover { border-color: var(--text); }
.toolbar-badge {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #000;
  font-size: 10px; letter-spacing: 0;
}
.toolbar-count { font-size: 13px; color: var(--muted); }
.toolbar-clear {
  margin-left: auto;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  min-height: 40px;
}

/* ---------- Catálogo: grilla ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
}
.card-link { display: block; width: 100%; text-align: left; }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), opacity .4s;
}
.card-link:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 12px 2px 0; }
.card-name {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 21px; line-height: 1.15;
}
.card-price { font-size: 15px; font-weight: 400; letter-spacing: .03em; margin-top: 2px; }
.card-sizes {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}
.card[data-stock="agotado"] .card-media img { opacity: .4; filter: grayscale(.6); }
.card[data-stock="agotado"] .card-price { color: var(--muted); }

.badge {
  display: inline-block;
  padding: 5px 9px;
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(0, 0, 0, .66);
  color: var(--text);
}
.card-media .badge { position: absolute; top: 10px; left: 10px; }
.badge--ultimas { border-color: var(--accent); color: var(--accent); }
.badge--agotado { background: var(--text); border-color: var(--text); color: #000; }

.card--skeleton {
  aspect-ratio: 3 / 4.7;
  background: linear-gradient(100deg, var(--surface) 40%, #1e1c19 50%, var(--surface) 60%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

.empty {
  text-align: center; padding: 48px 0;
  color: var(--muted);
}
.empty p { margin-bottom: 20px; }

/* ---------- Cómo comprar ---------- */
.steps {
  list-style: none;
  display: grid; gap: 34px;
  counter-reset: none;
  margin-bottom: 56px;
}
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.step-num {
  display: block;
  font-family: var(--font-title); font-style: italic;
  font-size: 40px; line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}
.steps p, .info-card li { color: var(--muted); font-size: 15px; }
.steps h3 { margin-bottom: 6px; }

.info-grid { display: grid; gap: 16px; }
.info-card {
  border: 1px solid var(--line);
  padding: 26px 22px;
}
.info-card h3 { margin-bottom: 12px; }
.info-card ul { list-style: none; display: grid; gap: 8px; }
.info-card li { padding-left: 18px; position: relative; }
.info-card li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 8px; height: 1px; background: var(--accent);
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 34px; text-align: center; margin-bottom: 44px; }
.contact-item h3 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.contact-item p { color: var(--muted); }
.contact-big {
  font-family: var(--font-title);
  font-size: 30px; line-height: 1.15;
  color: var(--text) !important;
}
.link { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.link:hover { border-color: var(--accent); }
.contact-item .link { display: inline-block; margin-top: 8px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 100px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer p { font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 45;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: #0a0a0a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Diálogos (detalle y filtros) ---------- */
dialog {
  color: var(--text);
  background: var(--bg);
  border: 0;
  padding: 0;
  max-width: none; max-height: none;
}
dialog::backdrop { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.detail {
  width: 100%; height: 100%;
  margin: 0;
  overflow: hidden;
}
.detail[open] { animation: fadeUp .35s var(--ease); }
.detail-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.detail-close {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.detail-close svg, .sheet-x svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.4; }

.gallery { position: relative; background: var(--surface); }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  scroll-snap-align: center;
}
.dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 6px;
}
.dots button { width: 22px; height: 18px; display: grid; place-items: center; }
.dots button::before {
  content: ""; width: 14px; height: 2px;
  background: rgba(255, 255, 255, .4);
  transition: background .25s;
}
.dots button[aria-current="true"]::before { background: #fff; }
.gal-arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 42px; height: 42px;
  display: none; place-items: center;
  background: rgba(0, 0, 0, .55);
  border-radius: 50%;
}
.gal-arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.5; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }

.detail-info { padding: 26px 20px 48px; }
.detail-info .badge { margin-bottom: 14px; }
.detail-name {
  font-style: normal; font-weight: 500;
  font-size: clamp(38px, 10vw, 52px);
}
.detail-price { font-size: 22px; font-weight: 400; letter-spacing: .03em; margin: 8px 0 22px; }
.detail-meta { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.detail-meta strong { font-weight: 400; color: var(--text); }
.detail-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.detail-label em { font-style: normal; letter-spacing: .06em; text-transform: none; color: var(--accent); opacity: 0; transition: opacity .2s; }
.sizes { margin-bottom: 28px; }
.sizes.need .detail-label em { opacity: 1; }
.sizes.need .chips { animation: nudge .4s; }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.size-note { font-size: 13px; color: var(--accent); margin-top: 10px; min-height: 1em; }
.chip--sin { color: var(--muted); border-color: var(--line); text-decoration: line-through; cursor: not-allowed; opacity: .55; }
.chip--sin:hover { border-color: var(--line); }
.detail-actions { display: grid; gap: 10px; }
.detail-note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; min-width: 48px;
  padding: 0 14px;
  justify-content: center;
  border: 1px solid var(--line-strong);
  font-size: 13px; letter-spacing: .08em;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #000; }
.swatch {
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

/* panel de filtros (bottom sheet en celular) */
.sheet {
  width: 100%;
  margin: auto 0 0;
  max-height: 86svh;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-strong);
  display: none; flex-direction: column;
}
.sheet[open] { display: flex; animation: sheetUp .35s var(--ease); }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.sheet-head h2 { font-size: 34px; }
.sheet-x { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.sheet-body { overflow-y: auto; padding: 6px 20px 10px; }
.fgroup { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.fgroup legend {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 16px; margin-bottom: 12px;
  float: left; width: 100%;
}
.fgroup legend + * { clear: both; }
.price-range { display: flex; align-items: end; gap: 12px; }
.price-range label { flex: 1; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.price-range input {
  width: 100%; min-height: 46px; padding: 0 12px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 0;
  font: inherit; font-size: 16px;
}
.price-range input:focus { outline: none; border-color: var(--accent); }
.price-sep { padding-bottom: 12px; color: var(--muted); }
.sheet-foot {
  display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Pantallas más grandes ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .hero-actions, .contact-actions { flex-direction: row; max-width: none; justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 32px; }
}

@media (min-width: 960px) {
  .container { padding: 0 32px; }
  .toolbar { margin: 0 -32px 32px; padding: 14px 32px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 24px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 120px 0; }
  .section-head { margin-bottom: 56px; }

  .detail {
    width: min(1040px, 92vw); height: auto; max-height: 90vh;
    margin: auto;
    border: 1px solid var(--line);
  }
  .detail-scroll {
    display: grid; grid-template-columns: 1.05fr 1fr;
    max-height: 90vh; height: auto;
  }
  .gallery { max-height: 90vh; }
  .slides img { aspect-ratio: auto; height: min(90vh, 720px); }
  .detail-info { padding: 56px 44px; overflow-y: auto; max-height: 90vh; }
  .gal-arrow { display: grid; }

  .sheet {
    width: 460px; margin: auto;
    border: 1px solid var(--line-strong);
  }
  .sheet[open] { animation: fadeUp .3s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
