:root {
  --bg: #070b14;
  --bg-2: #10182a;
  --panel: rgba(14, 20, 36, 0.88);
  --text: #f4f1ea;
  --muted: #9aa6bf;
  --red: #e11d2e;
  --red-glow: #ff3b4a;
  --white: #f7f7f7;
  --line: rgba(255,255,255,0.12);
  --ok: #3dd68c;
  --warn: #f5c542;
  --font-display: "Bungee", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

.night-sky {
  position: fixed; inset: 0; z-index: -1;
  background: #0c0e12;
  overflow: hidden;
}
.night-sky::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,14,18,0.72), rgba(12,14,18,0.88));
  pointer-events: none;
  z-index: 1;
}
.has-photo-bg .night-sky::after {
  background:
    linear-gradient(180deg, rgba(7,11,20,0.78) 0%, rgba(7,11,20,0.88) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(225,29,46,0.12), transparent 45%);
}
.site-bg-slideshow { position: absolute; inset: 0; }
.site-bg-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s ease, transform 10s ease;
  filter: saturate(0.85) brightness(0.55);
}
.site-bg-slide.is-active { opacity: 1; transform: scale(1); }

/* Fondo video global — fixed detrás de todo el sitio */
.site-video-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  overflow: hidden;
  pointer-events: none;
  background: #05070e;
}
.site-video-el {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(0.85) brightness(0.55);
}
.site-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.55) 0%, rgba(5, 8, 16, 0.72) 45%, rgba(5, 8, 16, 0.88) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(225, 29, 46, 0.1), transparent 50%);
}
.has-video-bg {
  background: transparent;
}
.has-video-bg > .site-header,
.has-video-bg > .flash-wrap,
.has-video-bg > .main,
.has-video-bg > .platform-main,
.has-video-bg > .store-shell,
.has-video-bg > .platform-footer,
.has-video-bg > .site-footer {
  position: relative;
  z-index: 5;
}

a { color: var(--white); text-decoration: none; }
a:hover { color: var(--red-glow); }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5,8,16,0.75);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  font-family: var(--font-display);
  background: var(--red); color: white;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  font-size: 0.85rem;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1rem; letter-spacing: 0.02em;
}
.brand-text span { color: var(--red-glow); }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; font-size: 0.95rem; }
.badge {
  background: var(--red); color: #fff; border-radius: 999px;
  padding: 0.1rem 0.45rem; font-size: 0.75rem; margin-left: 0.2rem;
}
.main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.site-footer {
  text-align: center; color: var(--muted); padding: 2rem 1rem; font-size: 0.9rem;
  border-top: 1px solid var(--line); margin-top: 3rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-weight: 600; padding: 0.7rem 1.2rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-glow); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.linkish:hover, .linkish.danger { color: var(--red-glow); }
.inline-form { display: inline; }

.hero-landing {
  margin: -1.5rem -1.5rem 2.5rem;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}
.hero-landing::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10%;
  height: 45%;
  background: radial-gradient(ellipse at 50% 100%, rgba(180, 40, 50, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-frame {
  width: min(920px, 100%);
  position: relative;
  z-index: 1;
}
.hero-panel {
  background: #1a1d24;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 24px 60px rgba(0,0,0,0.45),
    0 0 40px rgba(225, 29, 46, 0.06);
}
.hero-panel-logo {
  margin: 0 0 1.1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.85rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255,255,255,0.15);
}
.hero-panel-logo span {
  color: var(--red);
  text-shadow: 0 0 16px rgba(225, 29, 46, 0.75);
}
.hero-panes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  min-height: clamp(160px, 28vw, 250px);
}
.hero-pane {
  position: relative;
  border-radius: 4px;
  background:
    linear-gradient(160deg, rgba(170, 190, 220, 0.28), rgba(90, 110, 145, 0.18)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 11px,
      rgba(255,255,255,0.07) 11px,
      rgba(255,255,255,0.07) 12px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 11px,
      rgba(255,255,255,0.07) 11px,
      rgba(255,255,255,0.07) 12px
    );
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  overflow: hidden;
}
.hero-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
.hero-open {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--red);
  padding: 0.2rem 0.45rem;
  box-shadow: 0 0 14px rgba(225, 29, 46, 0.85);
  animation: neon 1.8s ease-in-out infinite alternate;
}
@keyframes neon { from { opacity: 0.75; filter: brightness(0.95); } to { opacity: 1; filter: brightness(1.1); } }

.hero-copy {
  margin-top: 1.75rem;
  max-width: 36rem;
  padding: 0 0.15rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #8b93a7;
  margin: 0 0 0.55rem;
}
.hero-copy h1, h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0.3rem 0 0.6rem;
}
.hero-copy h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  color: #fff;
  margin: 0 0 0.65rem;
}
.lede {
  color: #9aa3b5;
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 34rem;
  margin: 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.btn-ghost {
  background: #0a0c10;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 640px) {
  .hero-panes { gap: 0.5rem; min-height: 140px; }
  .hero-panel { padding: 1rem; }
  .hero-open { font-size: 0.6rem; }
}

.section { margin: 2.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.section-sub { color: var(--muted); margin-top: 0; }
.aisle-grid, .product-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-top: 1.25rem;
}
.product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.aisle-tile {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--aisle, var(--red));
  padding: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s;
}
.aisle-tile:hover { transform: translateY(-3px); color: var(--text); }
.aisle-tile span { color: var(--muted); font-size: 0.85rem; }

.product-card {
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.product-card-media { aspect-ratio: 1/1.15; background: #0a0f1a; display: block; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder {
  width: 100%; height: 100%; min-height: 180px;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  background:
    linear-gradient(145deg, #1b2438, #0d1320),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.03) 8px 16px);
  font-family: var(--font-display); font-size: 2rem; color: #c9d4ef;
}
.cover-placeholder.large { min-height: 360px; font-size: 1.2rem; }
.product-card-body { padding: 0.9rem 1rem 1.1rem; }
.product-card-body h3 { font-size: 1rem; margin: 0.2rem 0; font-family: var(--font-body); font-weight: 600; }
.meta { color: var(--muted); font-size: 0.8rem; margin: 0; }
.price { color: var(--white); font-weight: 700; margin: 0.35rem 0; }
.price.big { font-size: 1.6rem; }
.views-hint { color: var(--muted); font-size: 0.8rem; margin: 0; }
.views-hint.urgency { color: #ffb4b9; }

.filters {
  display: grid; gap: 0.6rem;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  margin: 1.25rem 0;
}
.filters input, .filters select, .form-card input, .form-card select, .form-card textarea,
label input, label select, label textarea {
  width: 100%; background: #0b1220; border: 1px solid var(--line);
  color: var(--text); padding: 0.65rem 0.75rem; font: inherit;
}
.form-card {
  display: flex; flex-direction: column; gap: 0.85rem;
  background: var(--panel); border: 1px solid var(--line); padding: 1.25rem;
}
.form-card label, label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.checkbox { flex-direction: row !important; align-items: center; gap: 0.5rem !important; }
.narrow { max-width: 520px; }
.hint { color: var(--muted); font-size: 0.9rem; }

.detail-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr 1.1fr;
}
.detail-media img { width: 100%; border: 1px solid var(--line); }
.badge-condition {
  display: inline-block; padding: 0.25rem 0.6rem; border: 1px solid var(--line); font-size: 0.85rem;
}
.condition-excellent { border-color: var(--ok); color: var(--ok); }
.condition-good { border-color: #6db3ff; color: #6db3ff; }
.condition-acceptable { border-color: var(--warn); color: var(--warn); }
.condition-untested { border-color: #b08cff; color: #b08cff; }
.add-form { display: flex; gap: 0.75rem; align-items: end; margin-top: 1rem; flex-wrap: wrap; }
.add-form label { max-width: 120px; }

.cart-row {
  display: grid; grid-template-columns: 2fr auto auto auto; gap: 1rem;
  align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.cart-summary { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; flex-wrap: wrap; gap: 1rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bank-box {
  margin-top: 1rem; padding: 1rem; border: 1px dashed var(--red);
  background: rgba(225,29,46,0.08);
}
.bank-box dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.35rem 0.75rem; margin: 0; }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; }
.order-lines { list-style: none; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.total { font-size: 1.2rem; font-weight: 700; }
.thanks .correlative { font-size: 1.2rem; }
.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.address-card { border: 1px solid var(--line); padding: 0.9rem; margin-bottom: 0.75rem; background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; }
.empty { color: var(--muted); }
.flash-wrap { max-width: 1100px; margin: 0.75rem auto 0; padding: 0 1.5rem; }
.flash { padding: 0.75rem 1rem; margin-bottom: 0.5rem; border: 1px solid var(--line); }
.flash-success { background: rgba(61,214,140,0.12); border-color: var(--ok); }
.flash-error { background: rgba(225,29,46,0.12); border-color: var(--red); }

@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .detail-grid, .checkout-grid, .account-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 1fr; }
  .nav { font-size: 0.85rem; }
}
