/* =========================================================
   URBAN GOLD — Tenis y Ropa Premium
   ========================================================= */

:root {
  --bg: #07070a;
  --bg-2: #0e0e13;
  --surface: #14141b;
  --surface-2: #1b1b24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f5f8;
  --muted: #9a9fa9;
  /* Paleta platino: cambia estos valores para recolorear toda la tienda */
  --accent: #d6dbe4;
  --accent-rgb: 214, 219, 228;
  --accent-2: #a9dcff;
  --accent-3: #7d838f;
  --ice-rgb: 125, 211, 252;
  --platinum: #e5e4e2;
  --danger: #ff5c5c;
  --success: #3ddc97;
  --grad-accent: linear-gradient(135deg, #ffffff 0%, #d6dbe4 30%, #8f95a1 60%, #eef1f5 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 20px 60px -15px rgba(var(--accent-rgb), 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-display: "Syne", "Arial Black", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent-3), var(--accent)); border-radius: 10px; border: 2px solid var(--bg); }

.container { width: min(1320px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 140px); position: relative; }

/* ---------- Icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill .icon, .icon.icon-fill { fill: currentColor; }

/* ---------- Text helpers ---------- */
.gold-text {
  background: var(--grad-accent);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: goldShift 5s linear infinite;
}
@keyframes goldShift { to { background-position: 200% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2);
  padding: 8px 16px; border-radius: 99px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}
.eyebrow .icon { width: 14px; height: 14px; }

.section-head { margin-bottom: 56px; display: grid; gap: 18px; justify-items: start; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.section-head--row > div:first-child { display: grid; gap: 18px; justify-items: start; }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.03em;
}
.section-title em { font-style: normal; background: var(--grad-accent); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldShift 5s linear infinite; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 16px 30px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 99px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn .icon { transition: transform 0.4s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--gold { background: var(--grad-accent); background-size: 200% auto; color: #111; box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.6); }
.btn--gold:hover { box-shadow: 0 18px 44px -10px rgba(var(--accent-rgb), 0.85); background-position: right center; }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--block { width: 100%; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-back);
  position: relative;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--accent-2); transform: scale(1.08); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__inner { display: grid; gap: 28px; justify-items: center; }
.preloader__logo { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 6vw, 56px); letter-spacing: 0.04em; }
.preloader__logo > .icon { width: 1em; height: 1em; color: var(--accent); animation: crownPop 1s var(--ease-back) both; }
.preloader__word .char { display: inline-block; opacity: 0; transform: translateY(100%) rotate(8deg); animation: charUp 0.8s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 150ms); background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preloader__bar { width: 220px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--grad-accent); animation: loadBar 1.4s var(--ease) forwards; }
@keyframes loadBar { to { width: 100%; } }
@keyframes crownPop { from { opacity: 0; transform: scale(0) rotate(-40deg); } }
@keyframes charUp { to { opacity: 1; transform: none; } }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.cursor { width: 8px; height: 8px; background: var(--accent); margin: -4px 0 0 -4px; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(var(--accent-rgb), 0.6); margin: -20px 0 0 -20px; transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s; }
.cursor-ring.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(var(--accent-rgb), 0.1); }
@media (pointer: fine) { body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1001; background: var(--grad-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; display: flex; }
.marquee__track { display: flex; align-items: center; flex-shrink: 0; min-width: 100%; animation: marquee var(--speed, 30s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.announce { background: var(--grad-accent); color: #111; font-size: 13px; font-weight: 600; position: relative; z-index: 101; }
.marquee--announce { --speed: 32s; padding-block: 9px; }
.marquee--announce span { display: inline-flex; align-items: center; gap: 8px; padding-inline: 38px; white-space: nowrap; }
.marquee--announce .icon { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(7, 7, 10, 0.72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__menu { display: none; }
.header__actions { display: flex; align-items: center; gap: 4px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-accent); color: #111; box-shadow: 0 8px 24px -8px rgba(var(--accent-rgb), 0.7); transition: transform 0.6s var(--ease-back); }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.08); }
.logo__mark .icon { width: 22px; height: 22px; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; }
.logo__text b { font-weight: 800; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 4px; }

.nav { display: flex; gap: 6px; }
.nav__link { position: relative; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.3s; }
.nav__link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad-accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.cart-btn__count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--grad-accent); color: #111; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-btn.is-bump { animation: bump 0.7s var(--ease-back); }
@keyframes bump { 30% { transform: scale(1.35) rotate(-10deg); } 60% { transform: scale(0.9) rotate(6deg); } }

.search-panel { position: absolute; top: 100%; left: 0; right: 0; background: rgba(7, 7, 10, 0.94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease); }
.search-panel.is-open { clip-path: inset(0 0 0 0); }
.search-field { display: flex; align-items: center; gap: 14px; padding-block: 20px; }
.search-field > .icon { color: var(--accent); width: 22px; height: 22px; }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: clamp(18px, 2.4vw, 26px); font-family: var(--font-display); }
.search-field input::placeholder { color: #55535c; }
.search-field input::-webkit-search-cancel-button { display: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; clip-path: circle(0% at 40px 40px); transition: clip-path 0.8s var(--ease); }
.mobile-menu.is-open { clip-path: circle(150% at 40px 40px); }
.mobile-menu__close { position: absolute; top: 18px; right: 18px; }
.mobile-menu nav { display: grid; gap: 10px; text-align: center; }
.mobile-menu a { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 9vw, 56px); opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s; }
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.43s; }
.mobile-menu a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h) - 36px); display: flex; align-items: center; padding-block: 60px 110px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.orb--1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3), transparent 70%); top: -120px; right: 5%; animation: float 12s ease-in-out infinite; }
.orb--2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(229, 228, 226, 0.18), transparent 70%); bottom: -120px; left: -80px; animation: float 15s ease-in-out infinite reverse; }
.orb--3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(var(--ice-rgb), 0.22), transparent 70%); top: 40%; left: 40%; animation: float 10s ease-in-out infinite 2s; }
@keyframes float { 0%, 100% { translate: 0 0; } 33% { translate: 40px -30px; } 66% { translate: -30px 30px; } }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 70px 70px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); animation: gridMove 20s linear infinite; }
@keyframes gridMove { to { background-position: 70px 70px; } }
.hero__noise { position: absolute; inset: 0; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero__content { display: grid; gap: 28px; justify-items: start; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7.6vw, 124px); line-height: 0.9; letter-spacing: -0.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.preloader__word { white-space: nowrap; }
.hero__title .line--outline { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.hero__title .char { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--base, 0ms)); }
.hero__title .line:nth-child(2) { --base: 250ms; }
body.is-ready .hero__title .char { transform: none; }
.hero__text { max-width: 480px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; gap: clamp(20px, 4vw, 48px); padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 640px; width: 100%; justify-self: center; display: grid; place-items: center; perspective: 1200px; }
.hero__circle { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #262a33, #0a0b0e 70%); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.25), 0 0 120px -20px rgba(var(--ice-rgb), 0.35); }
.hero__ring { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), 0.3); animation: spin 40s linear infinite; }
.hero__ring--2 { width: 104%; border-style: solid; border-color: var(--line); animation-duration: 60s; animation-direction: reverse; }
.hero__ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__image { position: relative; z-index: 2; width: 92%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.6)); transform: rotate(-18deg); animation: heroFloat 6s ease-in-out infinite; transition: opacity 0.6s; border-radius: 30px; mask-image: radial-gradient(circle, #000 55%, transparent 72%); -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); }
@keyframes heroFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -22px; } }
.hero__shadow { position: absolute; bottom: 10%; width: 50%; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); filter: blur(18px); animation: shadowPulse 6s ease-in-out infinite; }
@keyframes shadowPulse { 50% { transform: scale(0.8); opacity: 0.6; } }
/* Mientras no llega la foto del producto, no se muestra nada roto */
.hero__image:not([src]), .cat-card img:not([src]), .promo__visual img:not([src]) { opacity: 0; }
/* Foto real de producto (fondo blanco): se muestra sobre un disco limpio */
.hero__image.is-product { width: 64%; aspect-ratio: 1; object-fit: contain; padding: 8%; border-radius: 50%; background: #fff; transform: none; mask-image: none; -webkit-mask-image: none; filter: none; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 0 0 16px rgba(255, 255, 255, 0.03), 0 0 90px -10px rgba(var(--ice-rgb), 0.35); }

.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(20, 20, 27, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: heroFloat 5s ease-in-out infinite; }
.float-card strong { display: block; font-size: 14px; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-accent); color: #111; }
.float-card--1 { top: 12%; left: -2%; animation-delay: -1.5s; }
.float-card--2 { bottom: 14%; right: -2%; animation-delay: -3s; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-hint__mouse { width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-hint__mouse span { width: 3px; height: 8px; border-radius: 3px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); transform: rotate(-1.5deg) scale(1.03); margin-block: 10px; }
.marquee--big { --speed: 40s; padding-block: 22px; }
.marquee--big span { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7vw, 92px); line-height: 1; padding-inline: 34px; white-space: nowrap; letter-spacing: -0.02em; }
.marquee--big span.outline { color: transparent; -webkit-text-stroke: 1.5px var(--platinum); }
.marquee--big .icon { width: clamp(28px, 4vw, 48px); height: clamp(28px, 4vw, 48px); color: var(--accent); animation: spin 8s linear infinite; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(260px, 1fr)); gap: 22px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; min-height: 260px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.cat-card--lg { grid-row: span 2; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.05); transition: transform 1.4s var(--ease), filter 0.8s; filter: saturate(0.8) brightness(0.85); }
.cat-card:hover img { transform: scale(1.15); filter: saturate(1.1) brightness(0.9); }
/* Fotos de producto con fondo blanco: se muestran completas arriba, texto sobre franja oscura abajo */
.cat-card { background: #fff; }
.cat-card img { height: 66%; object-fit: contain; padding: 5% 8% 0; filter: none; transform: none; }
.cat-card:hover img { transform: scale(1.06) translateY(-2%); filter: none; }
.cat-card__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 42%, rgba(7, 7, 10, 0.92) 70%, #07070a); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; background: var(--grad-accent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.cat-card:hover::before { opacity: 1; }
.cat-card__body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 8px; justify-items: start; }
.cat-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid var(--line-2); color: var(--accent-2); transition: transform 0.6s var(--ease-back), background 0.4s, color 0.4s; }
.cat-card:hover .cat-card__icon { transform: rotate(-10deg) scale(1.1); background: var(--grad-accent); color: #111; }
.cat-card h3 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1; }
.cat-card p { color: #c9c6cf; font-size: 15px; }
.cat-card__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--accent-2); margin-top: 6px; }
.cat-card__link .icon { transition: transform 0.4s var(--ease); }
.cat-card:hover .cat-card__link .icon { transform: translateX(6px); }

/* ---------- Shop ---------- */
.shop { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(var(--accent-rgb), 0.07), transparent 70%); }
.shop__tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tabs { position: relative; display: flex; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.tabs__pill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 99px; background: var(--grad-accent); transition: transform 0.55s var(--ease), width 0.55s var(--ease); box-shadow: 0 6px 20px -6px rgba(var(--accent-rgb), 0.7); }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.4s; }
.tab .icon { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: #111; }

.select { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; height: 50px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: border-color 0.3s; }
.select:hover { border-color: var(--accent-3); }
.select .icon { width: 16px; height: 16px; pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; font-weight: 500; padding-right: 4px; cursor: pointer; }
.select option { background: var(--surface); }

.shop__meta { color: var(--muted); font-size: 14px; margin: -28px 0 28px; min-height: 22px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }

.card {
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s, opacity 0.6s var(--ease);
  opacity: 0; transform: translateY(40px) scale(0.97);
}
.card.is-in { opacity: 1; transform: none; }
.card:hover { border-color: rgba(var(--accent-rgb), 0.4); box-shadow: var(--glow); }
.card__glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 45%); opacity: 0; transition: opacity 0.4s; }
.card:hover .card__glare { opacity: 1; }

.card__media { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: radial-gradient(circle at 50% 40%, #24242e, #111117); cursor: pointer; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity 0.7s var(--ease); }
.card__media .img-2 { opacity: 0; transform: scale(1.1); }
.card:hover .card__media .img-1 { transform: scale(1.08); }
.card:hover .card__media.has-2 .img-1 { opacity: 0; }
.card:hover .card__media .img-2 { opacity: 1; transform: scale(1); }

.card__badges { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.badge .icon { width: 12px; height: 12px; }
.badge--gold { background: var(--grad-accent); color: #111; }
.badge--dark { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.badge--sale { background: var(--danger); color: #fff; }

.card__side { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.card__side .icon-btn { width: 40px; height: 40px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); border: 1px solid var(--line-2); opacity: 0; transform: translateX(20px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s, color 0.3s; }
.card__side .icon-btn:nth-child(2) { transition-delay: 0.06s; }
.card:hover .card__side .icon-btn, .card__side .icon-btn.is-liked { opacity: 1; transform: none; }
.card__side .icon-btn:hover { background: var(--accent); color: #111; }
.card__side .icon-btn.is-liked { color: var(--danger); }
.card__side .icon-btn.is-liked .icon { fill: currentColor; animation: heartPop 0.5s var(--ease-back); }
@keyframes heartPop { 50% { transform: scale(1.5); } }

.card__quick { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: translateY(calc(100% + 20px)); transition: transform 0.55s var(--ease); }
.card:hover .card__quick { transform: none; }
.card__quick .btn { --pad: 12px 10px; font-size: 13px; }
.card__quick .btn .icon { width: 16px; height: 16px; }
.card__quick .btn:hover .icon { transform: none; }
.card__quick .btn--ghost { background: rgba(0, 0, 0, 0.6); }

.card__body { padding: 18px 20px 22px; display: grid; gap: 6px; flex: 1; transform: translateZ(20px); }
.card__cat { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.card__cat .icon { width: 13px; height: 13px; }
.card__title { font-weight: 600; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; transition: color 0.3s; }
.card__title:hover { color: var(--accent-2); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-family: var(--font-display); font-size: 20px; }
.price s { color: var(--muted); font-size: 14px; }
.card__rating { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.card__sizes { display: flex; gap: 5px; flex-wrap: wrap; }
.card__sizes span { font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.card.is-soldout .card__media img { filter: grayscale(0.8) brightness(0.7); }

/* Mobile: always show quick actions */
@media (hover: none) {
  .card__quick { transform: none; }
  .card__side .icon-btn { opacity: 1; transform: none; }
}
.shop__meta .icon { color: var(--accent); margin-right: 4px; }

.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke-width: 1; }
.stars .icon.is-off { color: #3a3a44; }
.stars--lg .icon { width: 20px; height: 20px; }

.empty { text-align: center; padding: 80px 20px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty .icon { width: 48px; height: 48px; color: var(--accent); }
.empty h3 { color: var(--text); font-family: var(--font-display); font-size: 26px; }
.shop__more { display: flex; justify-content: center; margin-top: 50px; }

/* ---------- Features ---------- */
.features { border-block: 1px solid var(--line); background: var(--bg-2); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { padding: 46px 28px; display: grid; gap: 8px; justify-items: start; border-right: 1px solid var(--line); transition: background 0.4s; }
.feature:last-child { border-right: 0; }
.feature:hover { background: rgba(var(--accent-rgb), 0.04); }
.feature__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; color: var(--accent); background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.25); transition: transform 0.6s var(--ease-back), background 0.4s, color 0.4s; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature:hover .feature__icon { transform: translateY(-6px) rotate(-8deg); background: var(--grad-accent); color: #111; }
.feature h4 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- Promo ---------- */
.promo__card { position: relative; overflow: hidden; border-radius: 34px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: radial-gradient(circle at 80% 50%, #2c313b 0%, #13151a 45%, #0b0b0e 100%); border: 1px solid rgba(var(--accent-rgb), 0.28); min-height: 480px; }
.promo__shine { position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(var(--accent-rgb), 0.25) 80%, transparent 90%); animation: spin 10s linear infinite; pointer-events: none; }
.promo__content { position: relative; padding: clamp(32px, 5vw, 70px); display: grid; gap: 22px; justify-items: start; }
.promo__title { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.promo__content > p { color: #c9c6cf; max-width: 440px; }
.promo__visual { position: relative; height: 100%; min-height: 320px; background: linear-gradient(90deg, transparent, #fff 16%); }
.promo__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6% 8% 6% 22%; transition: transform 1.5s var(--ease); }
.promo__card:hover .promo__visual img { transform: scale(1.06); }

.countdown { display: flex; gap: 12px; }
.countdown div { min-width: 76px; padding: 14px 10px; text-align: center; border-radius: 16px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.countdown strong { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown strong.is-tick { animation: tick 0.5s var(--ease); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } }
.countdown small { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Reviews ---------- */
.reviews { overflow: hidden; }
.rating-summary { display: flex; align-items: center; gap: 16px; padding: 14px 26px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.rating-summary > strong { font-family: var(--font-display); font-size: 42px; line-height: 1; }
.rating-summary small { color: var(--muted); font-size: 13px; }
.reviews__rows { display: grid; gap: 24px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee--reviews { --speed: 60s; }
.marquee--reviews .marquee__track { gap: 24px; padding-right: 24px; }
.review {
  width: 380px; flex-shrink: 0; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  display: grid; gap: 16px; position: relative;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.review:hover { transform: translateY(-8px); border-color: rgba(var(--accent-rgb), 0.4); box-shadow: var(--glow); }
.review__quote { position: absolute; top: 22px; right: 24px; color: rgba(var(--accent-rgb), 0.18); }
.review__quote .icon { width: 42px; height: 42px; fill: currentColor; stroke: none; }
.review__text { color: #d3d0d8; font-size: 15px; line-height: 1.65; }
.review__product { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-2); }
.review__product .icon { width: 14px; height: 14px; }
.review__user { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #111; background: var(--grad-accent); flex-shrink: 0; }
.review__user strong { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.review__user strong .icon { width: 15px; height: 15px; color: var(--success); }
.review__user small { color: var(--muted); font-size: 12px; }

/* ---------- Newsletter ---------- */
.newsletter__card { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 60px); border-radius: 34px; background: var(--surface); border: 1px solid var(--line); display: grid; justify-items: center; gap: 18px; }
.newsletter__card::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.25), transparent 65%); top: -350px; left: 50%; translate: -50% 0; animation: float 10s ease-in-out infinite; pointer-events: none; }
.newsletter__icon { position: relative; width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-accent); color: #111; animation: heroFloat 4s ease-in-out infinite; }
.newsletter__icon .icon { width: 32px; height: 32px; }
.newsletter__card h2 { position: relative; font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.03em; }
.newsletter__card p { position: relative; color: var(--muted); max-width: 520px; }
.newsletter__form { position: relative; display: flex; gap: 8px; padding: 6px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line-2); width: min(560px, 100%); margin-top: 10px; transition: border-color 0.3s, box-shadow 0.3s; }
.newsletter__form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15); }
.newsletter__form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 20px; font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer__brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.footer__brand p { color: var(--muted); max-width: 320px; }
.footer h5 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.footer__grid > div:not(.footer__brand) { display: grid; gap: 12px; align-content: start; }
.footer__grid a:not(.logo):not(.icon-btn) { color: var(--muted); font-size: 15px; width: fit-content; position: relative; transition: color 0.3s, transform 0.3s var(--ease); }
.footer__grid a:not(.logo):not(.icon-btn):hover { color: var(--text); transform: translateX(6px); }
.footer__line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.footer__line .icon { color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials .icon-btn { border: 1px solid var(--line-2); }
.socials .icon-btn:hover { background: var(--grad-accent); color: #111; border-color: transparent; transform: translateY(-4px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); }
.payments { display: flex; gap: 8px; flex-wrap: wrap; }
.payments span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; }
.payments .icon { width: 14px; height: 14px; color: var(--accent); }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-accent); color: #111; box-shadow: 0 12px 30px -8px rgba(var(--accent-rgb), 0.7); opacity: 0; transform: translateY(30px) scale(0.6); pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease-back); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover .icon { animation: arrowUp 0.8s var(--ease) infinite; }
@keyframes arrowUp { 50% { transform: translateY(-4px); } }

/* ---------- Modal Quick View ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.5s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(40px) scale(0.95); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line-2); }
.modal__close:hover { transform: rotate(90deg); }

.qv { display: grid; grid-template-columns: 1.05fr 1fr; }
.qv__gallery { padding: 20px; display: grid; gap: 12px; align-content: start; }
.qv__main { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #24242e, #111117); }
.qv__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s, transform 0.6s var(--ease); }
.qv__main img.is-swap { opacity: 0; transform: scale(1.05); }
.qv__nav { position: absolute; top: 50%; translate: 0 -50%; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line-2); }
.qv__nav--prev { left: 12px; }
.qv__nav--next { right: 12px; }
.qv__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.qv__thumbs button { width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: 0.55; transition: opacity 0.3s, border-color 0.3s; }
.qv__thumbs button.is-active, .qv__thumbs button:hover { opacity: 1; border-color: var(--accent); }
.qv__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.qv__info { padding: 38px 36px 36px 16px; display: grid; gap: 16px; align-content: start; }
.qv__vendor { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.qv__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.qv__rating { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.qv__price strong { font-size: 30px; }
.opt { display: grid; gap: 10px; }
.opt + .opt { margin-top: 14px; }
.opt__label { font-size: 13px; color: var(--muted); }
.opt__label b { color: var(--text); font-weight: 600; }
.opt__values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__btn { min-width: 50px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease-back); }
.opt__btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.opt__btn.is-active { background: var(--grad-accent); color: #111; border-color: transparent; }
.opt__btn.is-unavailable { opacity: 0.4; text-decoration: line-through; }
.qv__stock { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--success); }
.qv__stock.is-out { color: var(--danger); }
.qv__stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
.qv__row { display: flex; gap: 10px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; }
.qty input { width: 40px; text-align: center; background: none; border: 0; outline: 0; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty .icon-btn { width: 40px; height: 40px; }
.qv__perks { list-style: none; display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.qv__perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c9c6cf; }
.qv__perks .icon { color: var(--accent); }
.qv__desc { color: var(--muted); font-size: 14px; }

/* ---------- Carrito lateral ---------- */
.drawer { position: fixed; inset: 0; z-index: 600; visibility: hidden; pointer-events: none; transition: visibility 0s 0.6s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.5s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateX(100%); transition: transform 0.6s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; }
.drawer__head h3 .icon { color: var(--accent); }
.drawer__count { font-family: var(--font); font-size: 12px; font-weight: 700; min-width: 24px; padding: 3px 9px; border-radius: 99px; text-align: center; background: var(--grad-accent); }
.drawer__items { flex: 1; overflow-y: auto; list-style: none; padding: 4px 24px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); animation: itemIn 0.5s var(--ease) both; }
.cart-item.is-removing { animation: itemOut 0.35s var(--ease) forwards; }
@keyframes itemIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes itemOut { to { opacity: 0; transform: translateX(40px); } }
.cart-item__img { width: 84px; height: 84px; border-radius: 14px; object-fit: contain; background: #fff; }
.cart-item__info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.cart-item__title { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item__variant { font-size: 12px; }
.cart-item__price { font-family: var(--font-display); font-size: 16px; margin-top: 2px; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-item__remove { width: 32px; height: 32px; }
.cart-item__remove:hover { color: var(--danger); }
.qty--sm { padding: 2px; }
.qty--sm .icon-btn { width: 30px; height: 30px; }
.qty--sm .icon-btn .icon { width: 15px; height: 15px; }
.cart-item__num { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.drawer__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 40px 24px; text-align: center; }
.drawer__empty > .icon { width: 56px; height: 56px; color: var(--accent); margin-bottom: 6px; animation: heroFloat 4s ease-in-out infinite; }
.drawer__empty h4 { font-family: var(--font-display); font-size: 22px; }
.drawer__empty .btn { margin-top: 10px; }
.drawer__foot { display: grid; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__row strong { font-family: var(--font-display); font-size: 26px; }
.drawer__note { font-size: 12px; }
.drawer__clear { justify-self: center; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.drawer__clear:hover { color: var(--danger); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 96px; right: 20px; z-index: 800; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(20, 20, 27, 0.92); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: toastIn 0.6s var(--ease-back) both; }
.toast.is-out { animation: toastOut 0.45s var(--ease) forwards; }
.toast img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.toast__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-accent); color: #111; flex-shrink: 0; }
.toast strong { display: block; font-size: 14px; }
.toast small { color: var(--muted); font-size: 13px; }
.toast__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad-accent); transform-origin: left; animation: toastBar var(--dur, 3s) linear forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(110%) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(110%); } }
@keyframes toastBar { to { transform: scaleX(0); } }

/* ---------- Fly to cart ---------- */
.fly { position: fixed; z-index: 9000; border-radius: 16px; object-fit: cover; pointer-events: none; box-shadow: var(--glow); transition: transform 0.9s cubic-bezier(0.6, -0.3, 0.7, 0.9), opacity 0.9s var(--ease), border-radius 0.9s; }

/* ---------- Checkout por WhatsApp ---------- */
.modal--checkout { z-index: 700; }
.modal__dialog--sm { width: min(580px, 100%); }
.co { display: grid; gap: 18px; padding: 34px 30px 30px; }
.co__head { display: grid; gap: 12px; justify-items: start; }
.co__head h3 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.05; letter-spacing: -0.02em; }
.co__head em { font-style: normal; background: var(--grad-accent); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldShift 5s linear infinite; }
.co__head p { font-size: 14px; color: var(--muted); }

.co__list { list-style: none; display: grid; gap: 10px; max-height: 262px; overflow-y: auto; }
.co-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.co-line img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.co-line__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.co-line__meta { font-size: 12px; color: var(--muted); }
.co-line__price { font-size: 15px; font-weight: 600; white-space: nowrap; }

.co__totals { display: grid; gap: 9px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.co__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; }
.co__row--total { padding-top: 11px; border-top: 1px solid var(--line); }
.co__row--total span { font-size: 15px; }
.co__row--total strong { font-family: var(--font-display); font-size: 26px; }

.co__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 15px; font-size: 15px; outline: 0; resize: vertical; transition: border-color 0.3s, box-shadow 0.3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15); }
.field input:user-invalid { border-color: var(--danger); }

.paysel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paysel__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14px; font-weight: 600; transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease-back); }
.paysel__btn .icon { width: 17px; height: 17px; }
.paysel__btn:hover { border-color: var(--accent-3); transform: translateY(-1px); }
.paysel__btn.is-active { background: var(--grad-accent); border-color: transparent; color: #111; }

.pay { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02)); border: 1px solid rgba(var(--accent-rgb), 0.28); }
.pay h4 { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 17px; }
.pay h4 .icon { color: var(--accent); }
.pay__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 3px; }
.pay__row + .pay__row { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 5px; }
.pay__row > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pay__val { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-align: right; word-break: break-all; font-variant-numeric: tabular-nums; }
.pay__copy { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line-2); flex-shrink: 0; }
.pay__copy .icon { width: 15px; height: 15px; }
.pay__note { font-size: 12px; color: var(--muted); }

.co__legal { font-size: 12px; color: var(--muted); text-align: center; }

.co-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 40px 30px 30px; }
.co-done__badge { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-accent); color: #111; box-shadow: var(--glow); animation: pop 0.6s var(--ease-back) both; }
.co-done__badge .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.co-done h3 { font-family: var(--font-display); font-size: 28px; }
.co-done p { font-size: 14px; color: var(--muted); }
.co-done__ref { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.04em; padding: 8px 20px; border-radius: 99px; background: var(--surface); border: 1px dashed var(--line-2); }
.co-done .pay { width: 100%; text-align: left; margin-top: 4px; }
.co-done__actions { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* ---------- Blindaje de colores ----------
   Los temas de Shopify (y otros estilos externos) pintan h1-h6, a, button,
   strong o input con su propio color oscuro. Aquí cada texto tiene color
   explícito con más prioridad ("html body") para que siempre se lea bien.
   Los estados :hover / .is-active de arriba siguen ganando por especificidad. */
html body { background: var(--bg); color: var(--text); }
html body :is(h1, h2, h3, h4, h5, h6) { color: var(--text); }
/* Spans/strong internos heredan del contenedor (el tema suele pintarlos directo) */
html body :is(.btn, .marquee--announce, .payments, .opt__label, .scroll-hint, .footer__bottom, .qv__stock, .pay, .empty, .paysel) :is(span, small, b, strong) { color: inherit; }
html body .hero__title .line:not(.line--outline) .char { color: var(--text); }
/* Nota: cada selector dentro de :is() debe tener como máximo una clase + un elemento,
   para no ganarle a los estados :hover / .is-active */
html body :is(.opt__label b,
  .logo__text, .hero__title, .section-title, .marquee--big span, .cat-card h3,
  .card__title, .price strong, .feature h4, .promo__title, .countdown strong,
  .rating-summary > strong, .review__user strong, .newsletter__card h2,
  .qv__title, .empty h3, .toast strong, .float-card strong,
  .co__head h3, .co-line__title, .co-line__price, .co__row strong, .pay h4, .pay__val, .paysel__btn,
  .field input, .field textarea, .co-done h3, .co-done__ref,
  .drawer__head h3, .cart-item__title, .cart-item__price, .cart-item__num, .drawer__row strong, .drawer__empty h4,
  .icon-btn, .btn--ghost, .opt__btn, .mobile-menu a, .search-field input,
  .newsletter__form input, .qty input, .select select, .preloader__logo
) { color: var(--text); }
html body :is(.announce, .btn--gold, .badge--gold, .avatar, .logo__mark, .float-card__icon, .toast__icon, .newsletter__icon, .to-top, .cart-btn__count, .drawer__count) { color: #111; }
html body :is(.review__text, .cat-card p, .promo__content > p, .qv__perks li) { color: #c9ccd3; }
html body :is(.hero__text, .stat span, .shop__meta, .feature p, .countdown small, .rating-summary small, .review__user small, .newsletter__card p, .footer__brand p, .footer__line, .footer__bottom, .qv__desc, .toast small, .float-card small, .empty p, .cart-item__variant, .drawer__note, .drawer__clear, .drawer__row span, .drawer__empty p) { color: var(--muted); }
html body :is(.co__head p, .co-line__meta, .co__row span, .field > span, .pay__note, .co__legal, .co-done p) { color: var(--muted); }
html body .co__row--total :is(span, strong) { color: var(--text); }
html body :is(.field input, .field textarea)::placeholder { color: #6b707a; opacity: 1; }
/* Textos con degradado: deben quedar transparentes para mostrar el metal */
html body :is(.gold-text, .section-title em, .co__head em, .logo__text b, .stat strong, .preloader__word .char, .hero__title .line--outline, .hero__title .line--outline .char, .marquee--big span.outline) { color: transparent; -webkit-text-fill-color: transparent; }
html body :is(.hero__title .line--outline, .hero__title .line--outline .char) { -webkit-text-fill-color: transparent; }
html body :is(.search-field input, .newsletter__form input)::placeholder { color: #6b707a; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__menu { display: inline-grid; }
  .logo { margin-right: auto; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { max-width: 520px; order: -1; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .qv { grid-template-columns: 1fr; }
  .qv__info { padding: 8px 24px 28px; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 32px); }
  .hide-sm { display: none; }
  .header__inner { gap: 6px; }
  .header__actions { gap: 0; }
  .logo { gap: 8px; }
  .logo__mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo__text { font-size: 16px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero { padding-block: 30px 90px; }
  .float-card { transform: scale(0.82); }
  .float-card--1 { left: 0; top: 4%; }
  .float-card--2 { right: 0; bottom: 6%; }
  .cat-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .cat-card--lg { grid-row: auto; min-height: 380px; }
  .shop__tools { width: 100%; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 10px 8px; }
  .select { width: 100%; }
  .select select { flex: 1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 12px 12px 14px; }
  .card__title { font-size: 14px; }
  .price strong { font-size: 16px; }
  .card__rating, .card__sizes { display: none; }
  .card__quick { left: 8px; right: 8px; bottom: 8px; gap: 6px; }
  .card__quick .btn { --pad: 11px 8px; }
  .card__quick .btn span { display: none; }
  .card__side { top: 8px; right: 8px; }
  .card__side .icon-btn { width: 34px; height: 34px; }
  .card__badges { top: 8px; left: 8px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .promo__card { grid-template-columns: 1fr; }
  .promo__visual { order: -1; min-height: 240px; }
  .promo__visual { background: linear-gradient(180deg, #fff 75%, transparent); }
  .promo__visual img { padding: 8% 10% 14%; }
  .countdown { gap: 8px; }
  .countdown div { min-width: 64px; }
  .review { width: 300px; padding: 22px; }
  .newsletter__form { flex-direction: column; border-radius: 22px; }
  .newsletter__form input { padding: 14px 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .qv__row { flex-direction: column; }
  .qty { justify-content: space-between; }
  .rating-summary { flex-direction: column; border-radius: 22px; gap: 6px; }
  .to-top { right: 16px; bottom: 16px; }
  .co, .co-done { padding: 30px 18px 22px; }
  .co__fields { grid-template-columns: 1fr; }
  .co__list { max-height: 210px; }
  .pay__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pay__val { text-align: left; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; }
}
