:root {
  --bg: #080808;
  --panel: #111111;
  --panel-2: #191919;
  --text: #f5f2ec;
  --muted: #a19d95;
  --line: #2b2926;
  --accent: #d61f2c;
  --accent-2: #ff3a47;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100dvh; padding-bottom: calc(76px + var(--safe-bottom)); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(18px);
}
.brand {
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.04em;
  padding: 0;
}
.brand span { color: var(--accent); font-size: 10px; vertical-align: top; margin-left: 2px; }
.topbar-actions { display: flex; gap: 10px; }
.icon-button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--text);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  position: relative;
}
.cart-shortcut b {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 20px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.view { display: none; animation: fade .22s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } }

.hero {
  min-height: 690px;
  padding: 74px 20px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(214,31,44,.42), transparent 28%),
    linear-gradient(150deg, #171717 0%, #050505 50%, #16100f 100%);
}
.hero::before {
  content: "DX";
  position: absolute;
  top: 30px;
  right: -18px;
  font-size: 240px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.12em;
  color: rgba(255,255,255,.035);
  transform: rotate(-8deg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px);
}
.hero > * { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}
.hero h1, .page-header h1 {
  margin: 0;
  font-size: clamp(46px, 14vw, 76px);
  line-height: .87;
  letter-spacing: -.075em;
  font-weight: 950;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy {
  max-width: 480px;
  margin: 24px 0;
  color: #ccc6bc;
  font-size: 16px;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
}
.button.primary { background: var(--accent); color: white; }
.button.ghost { background: transparent; color: var(--text); border-color: #4b4742; }
.button.full { width: 100%; margin-top: 10px; }
.drop-status {
  margin-top: 42px;
  display: grid;
  grid-template-columns: .75fr 1.35fr .75fr;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.drop-status div { padding: 16px 8px 14px 0; }
.drop-status div + div { border-left: 1px solid rgba(255,255,255,.18); padding-left: 14px; }
.drop-status span, .drop-status strong { display: block; }
.drop-status span { color: var(--muted); font-size: 8px; letter-spacing: .15em; margin-bottom: 6px; }
.drop-status strong { font-size: 13px; }

.content-section { padding: 42px 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 28px; line-height: .95; letter-spacing: -.045em; }
.text-button { background: transparent; border: 0; color: var(--text); font-size: 10px; font-weight: 900; white-space: nowrap; }
.horizontal-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.horizontal-products::-webkit-scrollbar { display: none; }
.product-card { scroll-snap-align: start; cursor: pointer; }
.product-art {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #282521, #0f0f0f);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-art::before {
  content: "DIXMAN";
  font-weight: 950;
  font-size: clamp(31px, 9vw, 54px);
  letter-spacing: -.08em;
  color: rgba(255,255,255,.13);
  transform: rotate(-15deg) scale(1.2);
}
.product-art::after {
  content: attr(data-number);
  position: absolute;
  bottom: 14px;
  right: 14px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 900;
}
.product-art.red { background: radial-gradient(circle at 40% 30%, #672329, #130b0c 60%); }
.product-art.stone { background: radial-gradient(circle at 60% 30%, #55504a, #171615 58%); }
.product-art.ink { background: radial-gradient(circle at 50% 30%, #252a31, #090a0c 60%); }
.product-meta { padding: 14px 2px 4px; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; }
.product-meta h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.product-meta strong { font-size: 13px; }
.product-meta p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; }

.statement-card {
  margin: 0 18px;
  padding: 34px 24px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.statement-card::before { content: "30"; position: absolute; top: -35px; right: -12px; font-size: 200px; font-weight: 950; color: rgba(0,0,0,.16); }
.statement-card > * { position: relative; }
.statement-card .eyebrow { color: #170607; }
.statement-card h2 { font-size: 34px; }
.statement-card p:last-child { margin: 18px 0 0; line-height: 1.5; max-width: 450px; }
.passport-section { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 22px; }
.passport-section p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.5; }
.passport-visual {
  aspect-ratio: .72;
  border: 1px solid #49443f;
  background: linear-gradient(150deg, #24211f, #0d0d0d);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-4deg);
  box-shadow: 12px 16px 0 #171717;
}
.passport-visual span { font-weight: 950; letter-spacing: -.05em; }
.passport-visual strong { font-size: 32px; color: var(--accent); }
.passport-visual small { font-size: 7px; letter-spacing: .14em; }
.status-pill { display: inline-flex; padding: 6px 8px; border: 1px solid var(--line); font-size: 8px; letter-spacing: .12em; font-weight: 900; }

.page-header { padding: 48px 18px 28px; }
.page-header.compact { padding-bottom: 10px; }
.page-header h1 { font-size: 54px; }
.page-header > p:last-child { color: var(--muted); line-height: 1.5; max-width: 530px; }
.filter-row { display: flex; gap: 8px; padding: 0 18px 22px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display:none; }
.filter {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 900;
}
.filter.active { background: var(--text); color: #090909; border-color: var(--text); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; padding: 0 12px 40px; }
.product-grid .product-art::before { font-size: 28px; }
.product-grid .product-meta { grid-template-columns: 1fr; }
.product-grid .product-meta strong { grid-row: 3; }

.cart-items { padding: 10px 18px; }
.cart-empty { min-height: 48vh; display: grid; place-items: center; text-align: center; color: var(--muted); }
.cart-empty strong { display: block; color: var(--text); font-size: 22px; margin-bottom: 8px; }
.cart-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { aspect-ratio: 4 / 5; background: #1a1817; display: grid; place-items: center; font-size: 13px; font-weight: 950; color: rgba(255,255,255,.3); }
.cart-info h3 { margin: 2px 0 8px; font-size: 14px; }
.cart-info p { margin: 4px 0; color: var(--muted); font-size: 11px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 10px; }
.qty button { width: 30px; height: 30px; background: transparent; color: var(--text); border: 0; }
.qty span { min-width: 24px; text-align: center; font-size: 11px; }
.remove-item { align-self: start; background: transparent; color: var(--muted); border: 0; font-size: 18px; }
.cart-summary { margin: 10px 18px 40px; padding-top: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.cart-summary > p { color: var(--muted); font-size: 11px; line-height: 1.5; }

.profile-card { margin: 0 18px 20px; padding: 20px; display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); }
.profile-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-weight: 950; }
.profile-card strong, .profile-card span { display: block; }
.profile-card span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.settings-list { margin: 0 18px 24px; border-top: 1px solid var(--line); }
.settings-list button, .settings-list a { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.settings-list button:disabled { opacity: .55; }
.settings-list small { color: var(--accent-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.install-profile { width: calc(100% - 36px) !important; margin: 0 18px 30px !important; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  height: calc(68px + var(--safe-bottom));
  padding: 7px 6px var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8,8,8,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.bottom-nav button { position: relative; border: 0; background: transparent; color: #716d67; font-size: 8px; font-weight: 900; letter-spacing: .07em; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.bottom-nav button span { font-size: 19px; line-height: 1; }
.bottom-nav button.active { color: var(--text); }
.bottom-nav button.active span { color: var(--accent); }
.bottom-nav b { position: absolute; top: 4px; left: 56%; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; display: grid; place-items: center; background: var(--accent); color: white; font-size: 9px; }

.product-dialog { width: min(100%, 560px); max-height: 92dvh; margin: auto 0 0; padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 0; }
.product-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.68); color: white; border: 1px solid rgba(255,255,255,.2); font-size: 25px; }
.dialog-body { padding-bottom: calc(24px + var(--safe-bottom)); }
.dialog-body .product-art { aspect-ratio: 1 / .82; border: 0; }
.dialog-copy { padding: 24px 18px; }
.dialog-copy h2 { font-size: 34px; }
.dialog-price { display: block; margin: 12px 0; font-size: 18px; }
.dialog-copy > p { color: var(--muted); line-height: 1.55; font-size: 13px; }
.option-label { display: block; margin: 24px 0 10px; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.size-options { display: flex; gap: 8px; }
.size-option { width: 44px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--text); }
.size-option.active { border-color: var(--text); background: var(--text); color: #080808; }
.dialog-note { font-size: 10px !important; border-left: 2px solid var(--accent); padding-left: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(82px + var(--safe-bottom)); z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 36px); padding: 12px 16px; background: var(--text); color: #080808; font-size: 11px; font-weight: 900; transition: .24s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .app-shell { max-width: 1440px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .topbar { left: auto; width: 100%; transform: none; }
  .bottom-nav { left: 50%; width: min(1440px, 100%); transform: translateX(-50%); }
  .hero { min-height: 680px; padding-inline: 48px; }
  .horizontal-products { grid-auto-columns: 34%; }
  .content-section { padding-inline: 48px; }
  .statement-card { margin-inline: 48px; }
  .page-header { padding-inline: 48px; }
  .filter-row { padding-inline: 48px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 16px; padding-inline: 48px; }
  .product-dialog { margin: auto; border-radius: 3px; }
}

@media (min-width: 1100px) {
  .hero { min-height: 620px; }
  .horizontal-products { grid-auto-columns: 25%; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; }
  .page-header h1 { font-size: 72px; }
}

/* DIXMAN v2 — fotografías reales de producto */
.product-art.real-product {
  aspect-ratio: 1 / 1;
  background: #aaa;
  border-color: #33312f;
  display: block;
}
.product-art.real-product::before,
.product-art.real-product::after { display: none; }
.product-art.real-product img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #aaa;
}
.product-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 8px;
  background: rgba(8,8,8,.86);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  backdrop-filter: blur(8px);
}
.dialog-art { aspect-ratio: 1 / 1 !important; }
.checkout-info {
  display: grid;
  gap: 5px;
  margin: 22px 0 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #0d0d0d;
}
.checkout-info strong { font-size: 9px; letter-spacing: .14em; }
.checkout-info span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.cart-thumb { overflow: hidden; background: #aaa; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 390px) {
  .product-meta h3 { font-size: 12px; }
  .product-grid { gap: 20px 8px; }
}

/* v2.1: desktop layout + reliable embedded product images */
.product-art.real-product img { color: #161616; font-size: 0; }
@media (min-width: 1100px) {
  .product-meta h3 { font-size: 15px; }
  .product-meta p { font-size: 12px; }
  .product-meta strong { font-size: 14px; }
}


/* v2.2: selección de talla CH–XL */
.size-options { flex-wrap: wrap; }
.size-option { cursor: pointer; font-weight: 900; }
.cart-size-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 7px 0 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.cart-size-select {
  min-width: 66px;
  height: 30px;
  padding: 0 24px 0 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0d0d0d;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}
.cart-size-select:focus,
.size-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
