/* ==========================================================
   UGD · Ultra Games Digital — estilos
   Colores tomados del logo: cian → violeta → magenta.
   ========================================================== */
:root {
  --ink: #0a0717;
  --ink-2: #110c22;
  --panel: #171130;
  --panel-2: #1f1840;
  --line: #2c2450;
  --line-2: #3d3370;
  --text: #f3f0ff;
  --muted: #a8a1c9;
  --dim: #7a73a0;
  --cyan: #2bd9f5;
  --violet: #8b5cf6;
  --magenta: #f03cc8;
  --ok: #3be38f;
  --wa: #25d366;
  --cyan-rgb: 43, 217, 245;
  --violet-rgb: 139, 92, 246;
  --magenta-rgb: 240, 60, 200;
  --ink-rgb: 10, 7, 23;
  --led: linear-gradient(100deg, var(--cyan), var(--violet) 50%, var(--magenta));
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin: 0;
}
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 58ch; margin: 14px 0 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(var(--violet-rgb), .35); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--violet); background: rgba(var(--violet-rgb), .12); }
.btn-wa { background: var(--wa); color: #04210f; }
.btn-wa:hover { background: #3fe07f; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Franja de despacho ---------- */
.topbar {
  background: var(--led);
  color: #0a0717;
  font-weight: 700; font-size: .9rem;
  text-align: center;
  padding: 7px var(--gutter);
}
.topbar span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 12px; vertical-align: middle; opacity: .6; }
@media (max-width: 640px) { .topbar span + span { display: none; } }

/* ---------- Adornos de temporada (portada) ---------- */
.season-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.season-fx span {
  position: absolute; top: -48px; line-height: 1; opacity: .5;
  animation: season-fall var(--d, 14s) linear infinite; animation-delay: var(--w, 0s);
  will-change: transform; user-select: none;
}
@keyframes season-fall {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(var(--x, 0px), var(--h, 900px), 0) rotate(var(--r, 30deg)); }
}
@media (prefers-reduced-motion: reduce) { .season-fx { display: none; } }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(var(--ink-rgb), .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.28rem; line-height: .95; letter-spacing: .01em; }
.brand-name small { display: block; font-size: .72rem; letter-spacing: .32em; color: var(--muted); font-style: normal; font-weight: 600; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--panel); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  font-weight: 700;
}
.icon-btn:hover { border-color: var(--violet); }
.cart-btn { padding: 0 14px 0 12px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--magenta); color: #fff; font-size: .8rem; line-height: 22px; text-align: center;
}
.cart-count[data-empty="true"] { background: var(--line-2); color: var(--muted); }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

@media (max-width: 980px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 10px; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .cart-label { display: none; }
}

/* ---------- HERO (inicio) ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 30%; height: 90%;
  background: radial-gradient(closest-side, rgba(var(--violet-rgb), .38), transparent),
              radial-gradient(closest-side at 80% 30%, rgba(var(--magenta-rgb), .22), transparent);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; min-height: min(760px, calc(100svh - 110px)); }
.hero-copy { position: relative; z-index: 2; padding: 56px 0; }
.hero h1 { font-size: clamp(3.2rem, 7.2vw, 6.8rem); text-shadow: 0 4px 30px rgba(var(--ink-rgb), .7); }
.hero h1 .led {
  background: var(--led); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .96rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--cyan); }

/* La pared de productos: tres columnas que se desplazan como una vitrina iluminada */
.wall {
  position: relative; z-index: 1; height: min(760px, calc(100svh - 110px));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  transform: rotate(-6deg) scale(1.12); transform-origin: center;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.wall-col { display: flex; flex-direction: column; gap: 14px; animation: wall-up 60s linear infinite; }
.wall-col:nth-child(2) { animation-name: wall-down; animation-duration: 70s; }
.wall-col:nth-child(3) { animation-duration: 54s; }
.wall:hover .wall-col { animation-play-state: paused; }
.wall-item {
  position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--panel);
  aspect-ratio: 3 / 4; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px -18px rgba(var(--violet-rgb), .55);
  text-decoration: none; cursor: pointer; padding: 0;
}
.wall-item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero-copy { padding: 40px 0 28px; }
  .wall { height: 300px; grid-template-columns: 1fr; grid-template-rows: repeat(2, 1fr); transform: rotate(-4deg) scale(1.1); margin: 0 calc(-1 * var(--gutter)) 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .wall-col { flex-direction: row; height: 100%; width: max-content; animation-name: wall-left; }
  .wall-col:nth-child(2) { animation-name: wall-right; }
  .wall-col:nth-child(3) { display: none; }
  .wall-item { width: 108px; height: 144px; flex: none; aspect-ratio: auto; }
  @keyframes wall-left { to { transform: translateX(-50%); } }
  @keyframes wall-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head .lede { margin-top: 10px; }
.text-link { color: var(--cyan); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Categorías */
.cats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(240px, 1fr)); gap: 16px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 240px; padding: 22px; border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; isolation: isolate; border: 1px solid var(--line);
}
.cat:first-child { grid-row: span 2; }
.cat:nth-child(4) { grid-column: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--ink-rgb), 0) 30%, rgba(var(--ink-rgb), .92)); }
.cat:hover img { transform: scale(1.04); }
.cat:hover { border-color: var(--violet); }
.cat h3 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: .95; margin: 0; }
.cat p { margin: 8px 0 0; color: #d9d4f2; font-size: .98rem; }
.cat .cat-price { color: var(--cyan); font-weight: 700; }
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .cat:first-child { grid-row: auto; grid-column: span 2; min-height: 320px; }
  .cat:nth-child(4) { grid-column: auto; }
}
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } .cat:first-child, .cat:nth-child(4) { grid-column: auto; } .cat { min-height: 210px; } }

/* Riel de destacados */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23%, 290px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); display: grid; place-items: center; }
.rail-nav button:hover { border-color: var(--violet); }
@media (max-width: 640px) { .rail { grid-auto-columns: 72%; } .rail-nav { display: none; } }

/* ---------- Tarjeta de producto ---------- */
.card {
  display: flex; flex-direction: column; text-align: left; padding: 0; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.card:hover { border-color: var(--line-2); }
.card:hover .card-img img { transform: scale(1.035); }
.card-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-badge { position: absolute; top: 10px; left: 10px; background: rgba(var(--ink-rgb), .78); backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 600; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-weight: 700; font-size: 1.02rem; line-height: 1.25; margin: 0; }
.card-meta { color: var(--dim); font-size: .88rem; }
.card-price { margin-top: auto; padding-top: 8px; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; }
.card-price small { font-family: var(--body); font-size: .82rem; font-weight: 500; color: var(--muted); margin-right: 4px; }

/* ---------- Cómo comprar ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 26px 24px 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 3.4rem; line-height: 1;
  background: var(--led); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 3px; background: var(--led); }
.steps h3 { margin: 0 0 6px; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Diseño propio ---------- */
.custom {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 48px);
}
.backlit { position: relative; isolation: isolate; }
.backlit::before {
  content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 30px;
  background: var(--led); filter: blur(42px); opacity: .7;
}
.backlit img { border-radius: var(--r-md); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.custom ul { padding: 0; margin: 22px 0 28px; list-style: none; display: grid; gap: 10px; }
.custom li { display: flex; gap: 10px; align-items: flex-start; color: #ddd8f5; }
.custom li .icon { color: var(--ok); margin-top: 4px; }
@media (max-width: 800px) { .custom { grid-template-columns: 1fr; } .custom .backlit { max-width: 360px; margin: 10px auto 0; } }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 8px; }

/* ---------- Página de categoría ---------- */
.page-head { position: relative; padding: clamp(36px, 6vw, 72px) 0 24px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 60%; height: 140%; right: -10%; top: -40%; background: radial-gradient(closest-side, rgba(var(--violet-rgb), .3), transparent); pointer-events: none; }
.page-head h1 { position: relative; font-size: clamp(2.8rem, 7vw, 5.6rem); }
.page-head .lede { position: relative; }
.breadcrumb { position: relative; font-size: .9rem; color: var(--dim); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 0; margin-bottom: 18px; background: rgba(var(--ink-rgb), .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) { .toolbar { position: static; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--violet); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip .n { opacity: .6; margin-left: 4px; font-weight: 500; }
.filters { display: flex; gap: 10px; flex: 1 1 320px; justify-content: flex-end; }
.field {
  height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  padding: 0 16px; min-width: 0;
}
.field:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), .18); }
.search-field { position: relative; flex: 1; max-width: 340px; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search-field input { width: 100%; padding-left: 40px; }
select.field { padding-right: 34px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a8a1c9' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
@media (max-width: 640px) { .filters { flex-basis: 100%; } .search-field { max-width: none; } .filters > label:last-child { flex: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 46%), 1fr)); gap: 16px; }
/* ---------- Oferta de la semana ---------- */
.offer-section { padding-bottom: 0; }
.offer-section .section-head { margin-bottom: 24px; }
.offers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.offer {
  position: relative; display: flex; flex-direction: column; text-align: left; overflow: hidden; padding: 0; width: 100%;
  border-radius: 22px; border: 1px solid transparent; color: inherit;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--led) border-box;
  box-shadow: 0 18px 60px -30px rgba(var(--violet-rgb), .75);
  transition: transform .2s ease;
}
.offer:hover { transform: translateY(-2px); }
.offer:hover .offer-img img { transform: scale(1.03); }
.offer-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.offer-pct { position: absolute; top: 14px; left: 14px; background: var(--led); color: #0a0717; font-family: var(--display); font-weight: 800; font-size: 1.25rem; padding: 4px 12px; border-radius: 999px; }
.offer-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.offer-tag { color: var(--cyan); font-weight: 600; font-size: .92rem; }
.offer-name { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: .98; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.offer-price strong { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1; background: var(--led); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offer-price small { color: var(--muted); font-weight: 500; }
.offer-price s { color: var(--dim); font-size: 1.15rem; font-weight: 600; }
.offer-until { margin: 0; color: var(--muted); font-size: .95rem; }
.offer-until::first-letter { text-transform: uppercase; }
.offer-cta { margin-top: auto; }
.offer-body > :nth-last-child(2) { margin-bottom: 12px; }
/* una sola oferta: tarjeta ancha con la foto al lado */
@media (min-width: 760px) {
  .offers[data-n="1"] .offer { flex-direction: row; align-items: stretch; }
  .offers[data-n="1"] .offer-img { flex: 0 0 min(38%, 430px); }
  .offers[data-n="1"] .offer-cta { margin-top: 6px; }
  .offers[data-n="1"] .offer-body { justify-content: center; padding: 36px 44px; gap: 12px; }
  .offers[data-n="1"] .offer-name { font-size: clamp(2rem, 3.6vw, 3.1rem); }
}
.card-offer { position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--led); color: #0a0717; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 800; }
.card.is-offer { border-color: rgba(var(--magenta-rgb), .55); }
.card-price s { font-family: var(--body); font-size: .88rem; font-weight: 500; color: var(--dim); margin-left: 8px; }
.pd-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.pd-offer span { background: var(--led); color: #0a0717; font-weight: 800; border-radius: 999px; padding: 3px 12px; }
.pd-price s { font-family: var(--body); font-size: 1.05rem; font-weight: 500; color: var(--dim); margin-left: 12px; }
@media (max-width: 520px) { .offer-body { padding: 18px 18px 20px; } }
a.offer { text-decoration: none; }
.offer-text { margin: 0; color: var(--text); font-size: 1.05rem; line-height: 1.45; max-width: 46ch; }
.option strong s, .ci-right s { font-family: var(--body); font-size: .85rem; font-weight: 500; color: var(--dim); margin-right: 8px; }
.ci-right strong { display: flex; align-items: baseline; }
.pd-offer b { font-weight: 600; color: var(--text); }
.cart-promo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px dashed rgba(var(--magenta-rgb), .6); background: rgba(var(--magenta-rgb), .08); }
.cart-promo span { font-weight: 700; }
.cart-promo small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }
.cart-promo strong { font-family: var(--display); font-size: 1.2rem; white-space: nowrap; }
.cart-hint { padding: 10px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); font-size: .92rem; }
.promo-strip { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px; padding: 12px 18px; border-radius: 14px; border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--led) border-box; }
.promo-strip span { background: var(--led); color: #0a0717; font-weight: 800; border-radius: 999px; padding: 3px 12px; font-size: .88rem; }
.promo-strip b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; }
.promo-strip em { font-style: normal; color: var(--muted); }

@media (max-width: 520px) { .grid { gap: 10px; } .card-body { padding: 10px 12px 12px; } .card-name { font-size: .95rem; } .card-price { font-size: 1.25rem; } }
.result-note { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty h3 { color: var(--text); margin: 0 0 6px; }
.empty .btn { margin-top: 18px; }
.custom-card {
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px;
  border-radius: var(--r-md); border: 1px dashed var(--line-2); background: linear-gradient(160deg, rgba(var(--violet-rgb), .14), rgba(var(--magenta-rgb), .06));
  min-height: 260px; text-decoration: none;
}
.custom-card h3 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.8rem; line-height: .95; margin: 0; }
.custom-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.custom-card .text-link { color: var(--wa); }

/* ---------- Modal de producto ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 3, 12, .78); backdrop-filter: blur(4px); }
.product-dialog { width: min(1000px, 100% - 24px); margin: auto; }
.pd {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  max-height: calc(100svh - 32px);
}
.pd-media { position: relative; background: #000; display: flex; align-items: center; justify-content: center; isolation: isolate; overflow: hidden; }
.pd-media::before { content: ""; position: absolute; inset: 14%; background: var(--led); filter: blur(60px); opacity: .55; z-index: -1; }
.pd-media img { width: 100%; height: 100%; max-height: calc(100svh - 32px); object-fit: contain; }
.pd-info { padding: 30px 28px 26px; overflow-y: auto; display: flex; flex-direction: column; }
.pd-cat { color: var(--cyan); font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.pd-info h2 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: .95; margin: 0 40px 12px 0; }
.pd-price { font-family: var(--display); font-weight: 800; font-size: 2rem; margin: 2px 0 18px; }
.pd-label { font-weight: 700; margin: 0 0 10px; font-size: .98rem; }
.options { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; background: var(--panel);
}
.option:hover { border-color: var(--violet); }
.option input { accent-color: var(--magenta); width: 18px; height: 18px; margin: 0 10px 0 0; flex: none; }
.option span:first-of-type { display: flex; align-items: center; flex: 1; }
.option strong { font-family: var(--display); font-size: 1.25rem; font-weight: 800; }
.option:has(input:checked) { border-color: var(--magenta); background: rgba(var(--magenta-rgb), .08); }
.pd-actions { display: grid; gap: 10px; margin-bottom: 20px; }
.specs { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.specs li { display: flex; gap: 10px; align-items: flex-start; }
.specs li .icon { color: var(--cyan); margin-top: 3px; }
.specs li.sub { padding-left: 28px; font-size: .9rem; }
.pd-ship { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(var(--cyan-rgb), .07); border: 1px solid rgba(var(--cyan-rgb), .25); font-size: .92rem; color: #cfeef5; }
.close-btn { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb), .85); display: grid; place-items: center; }
.close-btn:hover { border-color: var(--magenta); }
@media (max-width: 760px) {
  .product-dialog { width: 100%; margin: auto 0 0; }
  .pd { grid-template-columns: 1fr; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 94svh; overflow-y: auto; }
  .pd-media { max-height: 48svh; }
  .pd-media img { max-height: 48svh; }
  .pd-info { overflow: visible; padding: 22px 18px 26px; }
}

/* ---------- Carrito ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(5, 3, 12, .7); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%);
  background: var(--ink-2); border-left: 1px solid var(--line-2);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.8rem; }
.cart-head .close-btn { position: static; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.free-ship { padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); margin-bottom: 16px; font-size: .93rem; }
.free-ship .bar { height: 6px; border-radius: 6px; background: var(--line); margin-top: 8px; overflow: hidden; }
.free-ship .bar i { display: block; height: 100%; background: var(--led); border-radius: 6px; transition: width .3s ease; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); }
.cart-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; }
.ci-name { font-weight: 700; font-size: .96rem; line-height: 1.25; }
.ci-opt { color: var(--dim); font-size: .85rem; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 50%; }
.qty button:hover { background: var(--panel-2); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-right strong { font-family: var(--display); font-size: 1.2rem; }
.link-btn { background: none; border: 0; color: var(--dim); font-size: .84rem; text-decoration: underline; padding: 0; }
.link-btn:hover { color: var(--magenta); }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.cart-empty .btn { margin-top: 14px; }
.checkout { margin-top: 22px; display: grid; gap: 10px; }
.checkout h3 { margin: 6px 0 2px; font-size: 1.05rem; }
.checkout .hint { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.checkout .field { border-radius: var(--r-sm); height: 46px; width: 100%; }
.checkout label { font-size: .88rem; color: var(--muted); display: grid; gap: 4px; }
.ship-note { font-size: .88rem; color: #cfeef5; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(var(--cyan-rgb), .07); border: 1px solid rgba(var(--cyan-rgb), .22); }
.cart-foot { border-top: 1px solid var(--line); padding: 14px 20px 18px; background: var(--ink); }
.totals { display: grid; gap: 4px; margin-bottom: 12px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .grand { color: var(--text); font-weight: 700; font-size: 1.1rem; margin-top: 4px; }
.totals .grand strong { font-family: var(--display); font-size: 1.6rem; }
.form-error { color: #ff8aa8; font-size: .9rem; margin: 0 0 10px; min-height: 0; }
.secure { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--dim); font-size: .82rem; margin-top: 8px; }

/* ---------- Buscador global ---------- */
.search-dialog { width: min(760px, 100% - 24px); margin: 8vh auto auto; }
.search-box { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.search-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-top input { flex: 1; height: 46px; border: 0; background: transparent; font-size: 1.15rem; }
.search-top input:focus { outline: none; }
.search-top .icon { color: var(--dim); }
.search-results { max-height: 62vh; overflow-y: auto; padding: 8px; display: grid; gap: 4px; }
.sr-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); border: 0; background: transparent; text-align: left; width: 100%; }
.sr-item:hover, .sr-item:focus-visible { background: var(--panel); }
.sr-item img { width: 48px; height: 60px; object-fit: cover; border-radius: 6px; }
.sr-item small { display: block; color: var(--dim); }
.sr-item strong { font-family: var(--display); font-size: 1.1rem; }
.search-hint { padding: 22px; color: var(--muted); text-align: center; }

/* ---------- Pie de página ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { font-size: .98rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { color: var(--muted); margin: 12px 0 0; font-size: .95rem; max-width: 34ch; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante y aviso ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .6);
}
.wa-fab .icon { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.06); }
@media (max-width: 640px) { .wa-fab { width: 50px; height: 50px; right: 12px; bottom: 12px; } .wa-fab .icon { width: 26px; height: 26px; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%);
  background: var(--text); color: var(--ink); font-weight: 700; padding: 12px 18px; border-radius: 999px;
  display: flex; gap: 10px; align-items: center; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s; max-width: calc(100% - 32px); visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast button { background: var(--ink); color: var(--text); border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Políticas: aceptación en el carrito, aviso de retracto y páginas legales ---------- */
.cart-foot label.accept { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .88rem; line-height: 1.4; margin: 4px 0 10px; cursor: pointer; }
.accept input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--magenta); }
.accept a { color: var(--cyan); }
.pd-retracto { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--magenta); background: rgba(240, 60, 200, .08); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9rem; color: var(--text); }
/* Pie: enlaces legales */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: .92rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- Páginas legales ---------- */
.legal { padding: clamp(32px, 6vw, 64px) 0 40px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 4px; }
.legal-nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; }
.legal-nav a:hover { color: var(--text); background: var(--panel); }
.legal-nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); box-shadow: inset 3px 0 0 var(--magenta); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 10px; }
.legal .updated { color: var(--dim); margin: 0 0 28px; }
.legal-body { max-width: 74ch; }
.legal-body h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal-body h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal-body p, .legal-body li { color: #d6d1ef; line-height: 1.7; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li + li { margin-top: 6px; }
.legal-body a { color: var(--cyan); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { color: var(--text); }
.legal-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin: 16px 0; }
.legal-card p { margin: 4px 0; }
.legal-note { border-left: 3px solid var(--magenta); padding: 10px 16px; background: rgba(240, 60, 200, .06); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pendiente { background: rgba(255, 184, 77, .2); color: #ffd38a; padding: 0 4px; border-radius: 4px; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .legal-nav a { white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; }
}
