/* =========================================================
   MVP Cards MX — Hoja de estilos principal
   ========================================================= */

:root {
  --bg: #0b0e1a;
  --bg-alt: #11152444;
  --surface: #151a2b;
  --surface-2: #1b2036;
  --border: #262c47;
  --text: #f2f3f7;
  --text-dim: #a8adc4;
  --text-faint: #6b7095;
  --gold: #e8b64c;
  --gold-soft: #f5cf7a;
  --accent: #5b7cfa;
  --accent-2: #b45bfa;
  --danger: #ef5a6f;
  --success: #4cc9a0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1b2140 0%, transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, #241a3a 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top security bar ---------- */
.trust-bar {
  background: linear-gradient(90deg, #0f1424, #171d33);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
}
.trust-bar .container {
  display: flex;
  gap: 22px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.trust-bar span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.trust-bar svg { width: 14px; height: 14px; fill: var(--gold); flex-shrink: 0; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,14,26,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .3px;
}
.logo .mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #0b0e1a;
  font-weight: 900;
  font-size: 16px;
}
.logo .sub { font-size: 10.5px; color: var(--text-faint); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

nav.links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
}
nav.links a:hover { color: var(--gold-soft); }
nav.links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: .15s;
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--gold);
  color: #0b0e1a;
  font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #16130a;
  box-shadow: 0 6px 20px rgba(232,182,76,.25);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(232,182,76,.4); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--gold-soft); font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.5px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--gold), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-dim); font-size: 17px; max-width: 480px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 36px; }
.hero-stats div strong { display: block; font-size: 22px; color: var(--gold-soft); }
.hero-stats div span { font-size: 12.5px; color: var(--text-faint); }

.promo-banner {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 10px 0 40px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-banner:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.promo-banner img { width: 100%; height: auto; display: block; }

.hero-visual { position: relative; height: 380px; }
.hero-visual-photo {
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-card {
  position: absolute;
  width: 210px; aspect-ratio: 5/7;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.showcase-card.c1 { top: 10px; left: 40px; transform: rotate(-9deg); z-index: 2; }
.showcase-card.c2 { top: 40px; left: 160px; transform: rotate(7deg); z-index: 3; }
.showcase-card.c3 { top: 90px; left: 10px; transform: rotate(4deg); z-index: 1; opacity: .8; }

/* ---------- Section headings ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 26px; gap: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: 26px; margin: 0 0 6px; }
.section-head p { color: var(--text-faint); margin: 0; font-size: 14.5px; }

/* ---------- Sport chips ---------- */
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: .15s;
}
.chip:hover, .chip.active { border-color: var(--gold); color: var(--gold-soft); background: var(--surface-2); }

/* ---------- Product grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(232,182,76,.4); box-shadow: var(--shadow); }

.card-art {
  position: relative;
  aspect-ratio: 5/7;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
}
.card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 40%, transparent 60%, rgba(255,255,255,.12));
  mix-blend-mode: overlay;
  pointer-events: none;
}
.card-art .glyph { font-size: 46px; font-weight: 900; color: rgba(255,255,255,.92); text-shadow: 0 4px 14px rgba(0,0,0,.35); letter-spacing: -1px; }
.card-art .frame-label { position: absolute; bottom: 10px; left: 10px; right: 10px; font-size: 11px; font-weight: 800; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: 1px; }
.card-art .brand-tag { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 6px; letter-spacing: .5px; }
.card-art .wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .18; font-size: 12px; font-weight: 800; letter-spacing: 3px; transform: rotate(-28deg); pointer-events: none; text-transform: uppercase; }

/* Sport gradients (placeholder art) */
.sport-NFL { background: linear-gradient(155deg, #3b2410, #6a3d16 45%, #23150a); }
.sport-MLB { background: linear-gradient(155deg, #1c2c58, #7a1f2b 60%, #12172c); }
.sport-NBA { background: linear-gradient(155deg, #4a1e05, #b5541a 55%, #241004); }
.sport-FIFA { background: linear-gradient(155deg, #0b3d2e, #146b4f 55%, #06201a); }
.sport-UEFA { background: linear-gradient(155deg, #101a4a, #2a3fae 55%, #090d24); }

.rarity-legendaria .card-art { box-shadow: inset 0 0 0 2px var(--gold); }
.rarity-legendaria .card-art::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 40%, transparent 60%);
  animation: shimmer 3.2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-60%);} 100% { transform: translateX(60%);} }

.badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.badge { font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: .4px; text-transform: uppercase; }
.badge.rarity-comun { background: #2b3050; color: #b9c0e6; }
.badge.rarity-rara { background: #2c3f78; color: #a9c4ff; }
.badge.rarity-especial { background: #4b2f70; color: #dcb8ff; }
.badge.rarity-legendaria { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #16130a; }

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-sport { font-size: 11px; font-weight: 800; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0; }
.card-meta { font-size: 12.5px; color: var(--text-faint); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-size: 18px; font-weight: 800; color: var(--gold-soft); }
.stock-tag { font-size: 11.5px; color: var(--success); font-weight: 700; }
.stock-tag.low { color: #f0a85a; }
.add-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
  transition: .15s;
}
.add-btn:hover { background: var(--gold); color: #16130a; border-color: var(--gold); }

/* ---------- Filters (shop page) ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky; top: 90px;
}
.filters h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin: 18px 0 10px; }
.filters h3:first-child { margin-top: 0; }
.filter-opt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); padding: 5px 0; cursor: pointer; }
.filter-opt input { accent-color: var(--gold); }
.filter-opt:hover { color: var(--text); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input[type=number] { width: 70px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 14px; color: var(--text-faint); }
select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
}

/* ---------- Trust / security section ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.trust-card .ic {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(232,182,76,.18), rgba(180,91,250,.18));
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.trust-card .ic svg { width: 20px; height: 20px; fill: var(--gold-soft); }
.trust-card h4 { margin: 0 0 6px; font-size: 15px; }
.trust-card p { margin: 0; font-size: 13.5px; color: var(--text-faint); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.pd-art { aspect-ratio: 5/7; max-width: 380px; border-radius: 20px; position: relative; }
.pd-brand { font-size: 12.5px; font-weight: 800; color: var(--gold-soft); text-transform: uppercase; letter-spacing: 1.5px; }
.pd-title { font-size: 30px; margin: 8px 0 12px; }
.pd-meta-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.pd-price { font-size: 32px; font-weight: 800; color: var(--gold-soft); margin: 10px 0 18px; }
.pd-desc { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin-bottom: 22px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-control button { background: var(--surface); color: var(--text); border: none; width: 38px; height: 38px; font-size: 18px; }
.qty-control span { width: 40px; text-align: center; font-weight: 700; }
.pd-actions { display: flex; gap: 12px; }
.authenticity {
  margin-top: 26px; padding: 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-dim);
}
.authenticity svg { width: 20px; height: 20px; fill: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ---------- Cart ---------- */
.cart-item {
  display: grid; grid-template-columns: 70px 1fr auto auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-item .mini-art { width: 70px; aspect-ratio: 5/7; border-radius: 8px; }
.cart-item h4 { margin: 0 0 4px; font-size: 14.5px; }
.cart-item .meta { font-size: 12px; color: var(--text-faint); }
.remove-link { color: var(--danger); font-size: 12.5px; font-weight: 700; margin-top: 6px; display: inline-block; }
.cart-summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 90px;
}
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-dim); padding: 6px 0; }
.summary-row.total { font-size: 18px; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.empty-state svg { width: 60px; height: 60px; fill: var(--text-faint); margin-bottom: 16px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.form-card h3 { margin: 0 0 18px; font-size: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 11px 13px; border-radius: 9px; font-size: 14px; font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.field .error { font-size: 11.5px; color: var(--danger); margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field.invalid .error { display: block; }

.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px;
  cursor: pointer; transition: .15s;
}
.pay-method:hover { border-color: var(--gold); }
.pay-method.selected { border-color: var(--gold); background: rgba(232,182,76,.06); }
.pay-method input { accent-color: var(--gold); }
.pay-method .pm-name { font-weight: 700; font-size: 14px; }
.pay-method .pm-desc { font-size: 12px; color: var(--text-faint); }

.pay-instructions {
  margin-top: 14px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; font-size: 13.5px; color: var(--text-dim); display: none;
}
.pay-instructions.active { display: block; }

/* ---------- Newsletter / footer ---------- */
.newsletter {
  background: linear-gradient(135deg, #171d33, #1e1533);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin: 30px 0;
}
.newsletter h3 { font-size: 22px; margin: 0 0 8px; }
.newsletter p { color: var(--text-dim); margin: 0 0 20px; }
.newsletter form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter input { flex: 1; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 50px 0 26px;
  margin-top: 40px;
  color: var(--text-faint);
  font-size: 13.5px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot-grid h5 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 14px; }
.foot-grid a { display: block; color: var(--text-faint); margin-bottom: 9px; }
.foot-grid a:hover { color: var(--gold-soft); }
.foot-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.foot-badges span { background: var(--surface); border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px; font-size: 11.5px; display: inline-flex; align-items: center; gap: 6px; }
.foot-badges svg { width: 13px; height: 13px; fill: var(--gold); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--surface-2); border: 1px solid var(--gold); color: var(--text);
  padding: 14px 20px; border-radius: 10px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: .25s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 998;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Breadcrumb / page header ---------- */
.page-header { padding: 40px 0 10px; }
.page-header h1 { font-size: 30px; margin: 0 0 8px; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  nav.links { display: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pd-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
}
