:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #131313;
  --line: #1a1a1a;
  --line-soft: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.45);
  --red: #ff0000;
  --red-dim: rgba(255, 0, 0, 0.5);
  --ok: #6be08a;
  --display: "Anton", Impact, sans-serif;
  --body: "Archivo Narrow", -apple-system, sans-serif;
  --mono: "Space Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 0px; background: transparent; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- utilities: HUD / rim-light / emissive ---------- */
.hud-bracket { position: absolute; width: 10px; height: 10px; border-color: rgba(255,255,255,.3); border-style: solid; pointer-events: none; }
.hud-tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.hud-tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.hud-bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.hud-br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.rim-light { box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,.1); }

.emissive-glow { box-shadow: 0 0 20px 0 rgba(255,0,0,.3); }
.emissive-glow:hover { box-shadow: 0 0 30px 0 rgba(255,0,0,.6); }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-emblem {
  font-family: var(--display); font-size: 30px; color: var(--red);
  border: 1px solid var(--line-soft); width: 60px; height: 60px;
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 1.8s ease-in-out infinite;
  text-shadow: 0 0 14px rgba(255,0,0,.6);
}
.preloader-bar { width: 160px; height: 1px; background: var(--line-soft); overflow: hidden; }
.preloader-bar span { display: block; width: 40%; height: 100%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: loadbar 1.2s ease-in-out infinite; }
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}
.brand-mark img { height: 20px; width: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.9)); }
.site-nav nav { display: flex; gap: 28px; }
.site-nav nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); opacity: .6; border-bottom: 1px solid transparent; padding-bottom: 3px;
}
.site-nav nav a:hover { opacity: 1; border-color: var(--red); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
#scene-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  touch-action: none; cursor: grab;
}
#scene-canvas:active { cursor: grabbing; }

.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(0,0,0,.7) 100%);
}

.hero-logo-float {
  position: absolute; top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(150px, 20vw, 300px);
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.85)) drop-shadow(0 0 2px rgba(0,0,0,.7));
}
.hero-logo-float img { opacity: 1; }
.hero-logo-float::before, .hero-logo-float::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 140%; height: 140%; transform: translate(-50%,-50%);
  border: 1px solid rgba(255,0,0,.25);
}
.hero-logo-float::before { clip-path: polygon(0 0, 14px 0, 14px 2px, 2px 2px, 2px 14px, 0 14px); }
.hero-logo-float::after { clip-path: polygon(100% 100%, calc(100% - 14px) 100%, calc(100% - 14px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) calc(100% - 14px), 100% calc(100% - 14px)); }
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-14px); }
}

.hero-copy {
  position: absolute; left: 50%; bottom: 15%;
  transform: translateX(-50%);
  text-align: center; pointer-events: none;
  width: min(90vw, 640px);
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); opacity: .85; margin: 0 0 12px;
}
.hero-copy h1 {
  font-size: clamp(34px, 6.5vw, 72px); color: var(--white);
  text-shadow: 0 0 30px rgba(255,0,0,.15);
}
.hero-sub { margin: 10px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

.hero-enter {
  pointer-events: auto;
  display: inline-block; margin-top: 26px;
  background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 14px 40px; border: 1px solid var(--red);
  box-shadow: 0 0 20px rgba(255,0,0,.4);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hero-enter:hover { background: #000; border-color: #fff; box-shadow: 0 0 30px rgba(255,0,0,.6); }

#sound-toggle {
  position: absolute; bottom: 24px; left: 24px; z-index: 5;
}
.ghost-btn {
  background: rgba(0,0,0,.5); border: 1px solid var(--line-soft); color: var(--white);
  padding: 10px 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 8px;
}
.ghost-btn:hover { border-color: var(--white); }
.ghost-btn .dot { width: 6px; height: 6px; background: var(--muted); }
.ghost-btn[aria-pressed="true"] .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint-line { width: 1px; height: 34px; background: var(--line-soft); overflow: hidden; }
.scroll-hint-line i { display: block; width: 100%; height: 40%; background: var(--red); box-shadow: 0 0 6px var(--red); animation: scrolldown 1.8s ease-in-out infinite; }
@keyframes scrolldown { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ---------- catalog ---------- */
.catalog {
  position: relative; z-index: 2; background: var(--bg);
  padding: 110px clamp(20px, 5vw, 56px) 100px;
  border-top: 1px solid var(--line);
}
.catalog-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  max-width: 1180px; margin: 0 auto 56px; border-bottom: 1px solid var(--line); padding-bottom: 18px; flex-wrap: wrap;
}
.catalog-head h2 { font-size: clamp(32px, 5vw, 60px); color: var(--white); }
.catalog-head p { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px; max-width: 1180px; margin: 0 auto;
  perspective: 1000px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .3s ease-out, border-color .3s ease;
}
.product-card:hover { border-color: var(--red-dim); }
.product-card.is-coming { cursor: default; }

.product-card .thumb {
  position: relative; aspect-ratio: 4/5; overflow: hidden; background: #000;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s ease, transform .6s ease, filter .5s ease;
  filter: grayscale(.15) contrast(1.05);
}
.product-card .thumb img.img-b { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .thumb img.img-a { opacity: 0; }
.product-card:hover .thumb img.img-b { opacity: 1; }
.product-card:hover .thumb img { transform: scale(1.05); filter: grayscale(0) contrast(1.1); }
.product-card.is-coming .thumb img { filter: grayscale(.6) brightness(.55); }

.product-card .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #000; color: var(--white); border: 1px solid var(--red);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 9px;
}
.product-card .tag.coming { border-color: var(--white); color: var(--muted); }

.product-card .body { padding: 18px; }
.product-card .collection { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.product-card h3 { font-size: 26px; color: var(--white); }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.product-card .price { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--red); }
.product-card .stock-readout { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.product-card .stock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.product-card .stock-dot.low { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* ---------- lookbook ---------- */
.lookbook {
  position: relative; z-index: 2; background: var(--bg); overflow: hidden;
  padding: 100px clamp(20px, 5vw, 56px) 100px;
  border-top: 1px solid var(--line);
}
/* video de fondo, contenido SOLO a esta sección */
.lookbook-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.lookbook-video-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.78), rgba(0,0,0,.62) 40%, rgba(0,0,0,.82));
}
.lookbook-head, .lookbook .promo-grid { position: relative; z-index: 2; }
.lookbook-head {
  max-width: 1180px; margin: 0 auto 40px;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.lookbook-head h2 { font-size: clamp(32px, 5vw, 60px); color: var(--white); }
.lookbook-head p { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }

.promo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px;
  gap: 16px; max-width: 1180px; margin: 0 auto;
}
.promo-card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  cursor: pointer; background: #000;
}
.promo-card.featured { grid-column: span 2; grid-row: span 2; }
.promo-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transition: transform .7s ease, filter .6s ease;
}
.promo-card:hover img { transform: scale(1.05); filter: grayscale(.2) contrast(1.1); }
.promo-card .hud-bracket { z-index: 2; }
.promo-card .promo-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  transform: translateY(8px); opacity: .85; transition: transform .4s ease, opacity .4s ease;
}
.promo-card:hover .promo-meta { transform: translateY(0); opacity: 1; }
.promo-card .promo-title { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--white); margin: 0; }
.promo-card .promo-caption { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
.promo-card .promo-flag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--red); color: #fff; font-family: var(--mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px;
}

@media (max-width: 860px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .promo-card.featured { grid-column: span 2; grid-row: span 1; }
}

/* ---------- contact ---------- */
.contact {
  text-align: center; padding: 110px 24px 130px; background: var(--surface);
  border-top: 1px solid var(--line);
}
.contact-logo { width: clamp(240px, 34vw, 440px); height: auto; margin: 0 auto 30px; display: block; }
.contact h2 { font-size: clamp(30px, 4vw, 46px); color: var(--white); }
.contact p { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 34px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.contact-social {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.contact-social a { color: var(--white); opacity: .7; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: opacity .2s ease, border-color .2s ease; }
.contact-social a:hover { opacity: 1; border-color: var(--red); }
.contact-social .sep { color: var(--muted); }
.solid-btn {
  background: var(--red); color: #fff; padding: 15px 30px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--red); cursor: pointer; transition: background .25s ease, border-color .25s ease;
}
.solid-btn:hover { background: #000; border-color: #fff; }
.ghost-btn-link {
  border: 1px solid var(--line-soft); padding: 15px 30px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--white);
  transition: border-color .25s ease;
}
.ghost-btn-link:hover { border-color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center; padding: 40px 20px; background: var(--bg);
  border-top: 1px solid var(--line);
}
.site-footer img { height: 14px; margin: 0 auto 12px; opacity: .8; }
.site-footer p { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
/* capa de fondo temática por prenda (product.bg) — imagen full-bleed */
.lightbox-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #050505;
  background-size: cover; background-position: center;
  transition: background .4s ease;
}
.lightbox-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.35), rgba(0,0,0,.72) 100%);
}
.lightbox-close {
  position: absolute; top: 22px; right: 26px; z-index: 3; background: rgba(0,0,0,.4); border: 1px solid var(--line-soft);
  color: var(--white); font-size: 22px; width: 38px; height: 38px; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { border-color: var(--red); color: var(--red); }
/* tarjeta de vidrio (glassmorphism) que contiene imagen + info */
.lightbox-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  max-width: 1120px; width: 100%; max-height: 88vh; overflow: auto;
  padding: 48px clamp(28px, 4vw, 60px);
  background: rgba(18,18,22,.28);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
}
/* imagen del producto: contain para respetar prendas con fondo transparente */
.lightbox-gallery img {
  width: 100%; max-height: 60vh; object-fit: contain;
  border: none;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.7));
}
/* en modo promoción (lookbook) la imagen sí llena el marco */
.lightbox.is-promo .lightbox-gallery img { object-fit: cover; max-height: 78vh; }
.lightbox.is-promo .lightbox-inner { grid-template-columns: 1.4fr 1fr; }
.lightbox-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.lightbox-thumbs img { width: 60px; height: 60px; object-fit: cover; cursor: pointer; opacity: .5; border: 1px solid var(--line); }
.lightbox-thumbs img.active { opacity: 1; border-color: var(--red); }
.lightbox-info { display: flex; flex-direction: column; }
.lightbox-info .tag { display: inline-block; align-self: flex-start; color: var(--white); background: #000; border: 1px solid var(--red); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 5px 9px; margin: 0 0 14px; }
.lightbox-info h3 { font-size: 36px; color: var(--white); }
.lightbox-info .muted { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 18px; }
.lightbox-info .price { font-family: var(--mono); font-size: 20px; color: var(--red); font-weight: 700; margin: 0 0 18px; }
.lightbox-info p#lightbox-desc { color: rgba(255,255,255,.7); line-height: 1.6; font-size: 14px; }
.size-row { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.size-row span {
  border: 1px solid var(--line-soft); font-family: var(--mono); padding: 6px 13px; font-size: 11px;
}
.stock { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); margin-bottom: 22px; }
.lightbox-info .solid-btn { align-self: flex-start; }

@media (max-width: 720px) {
  .lightbox-inner {
    grid-template-columns: 1fr;
    padding: 26px 20px; gap: 22px; border-radius: 18px;
  }
  .lightbox.is-promo .lightbox-inner { grid-template-columns: 1fr; }
  .lightbox-gallery img { max-height: 42vh; }
  .site-nav nav { gap: 16px; }
  .site-nav nav a { font-size: 10px; }
  .catalog, .lookbook { padding-top: 80px; padding-bottom: 80px; }
  .contact { padding: 80px 20px 100px; }
  .contact-social { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  /* una columna en el lookbook para pantallas muy chicas */
  .promo-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .promo-card.featured { grid-column: span 1; grid-row: span 1; }
  .hero-copy { bottom: 12%; width: 92vw; }
  .hero-enter { padding: 13px 32px; }
}
