/* =========================================================
   PADAWAN — estilos principales (Catálogo + Personalizar + Hiperviaje)
   ========================================================= */
:root {
  --jedi: #FFE81F;
  --jedi-glow: rgba(255, 232, 31, .45);
  --saber: #00E5FF;
  --saber-glow: rgba(0, 229, 255, .42);
  --green: #38ef7d;
  --sith: #ff2a3d;
  --bg: #000;
  --panel: rgba(8, 14, 28, 0.74);
  --card: rgba(15, 21, 35, 0.86);
  --line: rgba(0, 229, 255, 0.24);
  --border: rgba(255, 255, 255, 0.11);
  --text: #eef1f7;
  --muted: #94a0b8;
  --radius: 16px;
  --f-head: 'Orbitron', sans-serif;
  --f-body: 'Exo 2', system-ui, sans-serif;
  --f-mono: 'Share Tech Mono', monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

html, body { height: 100%; overflow: hidden; }
html {
  scroll-behavior: auto;
  font-size: clamp(14px, calc(0.4vw + 0.5vh + 5px), 20px);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--jedi); }

/* ---------- Espacio de fondo e Hiperviaje Z (INTACTO) ---------- */
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.tunnel {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 20, 40, .55) 75%, #000 100%);
  opacity: 0; transition: opacity .35s ease;
}
body.warping .tunnel { opacity: 1; }
main {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100svh;
  z-index: 2; perspective: 1100px; transform-style: preserve-3d; overflow: hidden;
}

.stage-sec {
  position: absolute; inset: 0; width: 100%; height: 100vh; height: 100svh;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(0.04); filter: blur(8px); transform-origin: center center;
  will-change: transform, opacity, filter; transition: none; z-index: 1;
}
.stage-sec::-webkit-scrollbar { display: none; }
.stage-sec > * {
  width: 100%; max-width: min(1720px, 94vw); margin-left: auto; margin-right: auto;
}
.stage-sec.section-catalogo > *,
.stage-sec.section-customizer > *,
.stage-sec.section-faq > .site-footer { max-width: none; }

.stage-sec.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: scale(1); filter: blur(0px);
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease-out,
    filter 0.55s ease-out;
  z-index: 3;
}
.stage-sec.is-exiting {
  opacity: 0; visibility: visible; pointer-events: none;
  transform: scale(4.2); filter: blur(12px);
  transition:
    transform 0.52s cubic-bezier(0.5, 0, 0.9, 0.35),
    opacity 0.45s cubic-bezier(0.4, 0, 1, 1),
    filter 0.45s ease-in;
  z-index: 4;
}

/* ---------- Header flotante + Modo Auto-Ocultable estilo Windows (solo #catalogo y #personalizar en desktop) ---------- */
.nav-hotzone {
  position: fixed; top: 0; left: 0; right: 0; height: 10px;
  z-index: 60; pointer-events: none; display: none;
}
.nav-peek-tab {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 62; display: inline-flex; align-items: center; gap: 8px;
  padding: 2px 15px 4px; border-radius: 0 0 10px 10px;
  background: rgba(8, 12, 22, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); border-top: 0;
  color: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: transform 220ms var(--ease-out), opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.nav-peek-tab .peek-cart { display: inline-flex; align-items: center; gap: 4px; color: var(--jedi); font-weight: 700; }
.nav-peek-tab.bump { border-color: var(--jedi); color: #fff; box-shadow: 0 4px 16px var(--jedi-glow); }

.site-header {
  position: fixed; top: clamp(0.55rem, 1.2vh, 1rem); left: 50%; transform: translateX(-50%);
  width: min(980px, calc(100% - 2rem)); z-index: 65;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 1.3rem; border-radius: 12px;
  background: rgba(4, 6, 12, 0.42);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 240ms var(--ease-out), opacity 180ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.site-header.scrolled {
  background: rgba(6, 10, 18, 0.78);
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.68), 0 0 20px rgba(0, 229, 255, 0.08);
}

/* Activación del auto-ocultamiento tipo Windows únicamente en Desktop (>980px) y en #catalogo / #personalizar */
@media (min-width: 981px) {
  body.mode-autohide-nav .nav-hotzone { display: block; pointer-events: auto; }
  body.mode-autohide-nav .nav-peek-tab { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
  body.mode-autohide-nav .site-header {
    transform: translate(-50%, -150%); opacity: 0; pointer-events: none;
    background: rgba(6, 10, 18, 0.95); border-color: rgba(0, 229, 255, 0.34);
  }
  body.mode-autohide-nav.nav-revealed .site-header {
    transform: translate(-50%, 0); opacity: 1; pointer-events: auto;
  }
  body.mode-autohide-nav.nav-revealed .nav-peek-tab {
    opacity: 0; pointer-events: none; transform: translate(-50%, -110%);
  }
}

.brand-img { height: 30px; width: auto; filter: drop-shadow(0 0 6px var(--jedi-glow)); display: block; }
.main-nav { display: flex; gap: 1.35rem; align-items: center; }
.main-nav a {
  font-family: var(--f-head); font-size: .72rem; letter-spacing: 1.1px; text-transform: uppercase;
  color: #a4acb9; transition: color .2s, text-shadow .2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--jedi); text-shadow: 0 0 10px var(--jedi-glow); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.cart-btn { position: relative; padding: .38rem; color: #cfd3dd; transition: color .2s, transform 150ms var(--ease-out); }
.cart-btn:active { transform: scale(0.93); }
.cart-btn:hover { color: var(--saber); }
.cart-count {
  position: absolute; top: -2px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--jedi); color: #000; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; opacity: 0; transform: scale(0.82);
  transition: transform 180ms var(--ease-out), opacity 150ms ease;
}
.cart-count.show { opacity: 1; transform: scale(1); }
.menu-btn { display: none; font-size: 1.3rem; padding: .2rem .4rem; }

/* ---------- Botones generales ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-head); font-weight: 700; font-size: .8rem; letter-spacing: 1.8px; text-transform: uppercase;
  padding: 0.82rem 1.7rem; border-radius: 10px; position: relative; overflow: hidden;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-saber { border: 2px solid var(--saber); color: var(--saber); box-shadow: 0 0 18px rgba(0,229,255,.18), inset 0 0 12px rgba(0,229,255,.1); }
.btn-gold { border: 2px solid var(--jedi); color: var(--jedi); box-shadow: 0 0 18px rgba(255,232,31,.16); }
.btn-ghost { border: 1px solid var(--line); color: #c9cdd8; background: rgba(255,255,255,.03); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-saber:hover { background: var(--saber); color: #001014; box-shadow: 0 0 36px var(--saber-glow); }
  .btn-gold:hover { background: var(--jedi); color: #000; box-shadow: 0 0 36px var(--jedi-glow); }
  .btn-ghost:hover { border-color: #fff3; background: rgba(255,255,255,.07); }
}

/* ---------- 1. Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center;
  padding: clamp(4.5rem, 8vh, 6.5rem) 1.25rem clamp(1.2rem, 3vh, 2.5rem);
}
.hero-logo-img {
  height: clamp(90px, 18vh, 160px); width: auto; max-width: 90vw;
  filter: drop-shadow(0 0 20px rgba(255, 232, 31, 0.45));
  animation: forceGlow 4s infinite alternate ease-in-out;
  transition: transform 0.35s var(--ease-out), filter 0.35s ease;
}
@keyframes forceGlow {
  from { filter: drop-shadow(0 0 8px rgba(255,232,31,.25)) drop-shadow(0 0 2px rgba(255,140,0,.15)); }
  to   { filter: drop-shadow(0 0 28px rgba(255,232,31,.6)) drop-shadow(0 0 8px rgba(255,140,0,.35)); }
}
.hero-sub {
  margin-top: clamp(0.8rem, 2vh, 1.4rem); font-family: var(--f-head); font-weight: 500;
  font-size: clamp(0.8rem, 1.8vh, 1.15rem); letter-spacing: .22em; text-transform: uppercase; color: #d9dce4;
}
.hero-sub b { color: var(--jedi); font-weight: 700; }
.hero-claim { margin-top: .4rem; font-family: var(--f-mono); color: var(--muted); letter-spacing: 2px; font-size: clamp(0.75rem, 1.4vh, 0.88rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: clamp(1rem, 2.5vh, 1.8rem); }
.hint { margin-top: clamp(0.6rem, 1.5vh, 1rem); font-family: var(--f-mono); font-size: .72rem; letter-spacing: 1.5px; color: #7a8398; animation: blink 2.5s infinite; }
@keyframes blink { 0%,100% { opacity: .45; } 50% { opacity: .95; } }
.trust {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem;
  margin-top: clamp(1.2rem, 3vh, 2.5rem); font-size: clamp(0.75rem, 1.4vh, 0.85rem); color: #aab0bf;
}
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust .ico { color: var(--jedi); }

/* ---------- Secciones generales ---------- */
.section {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: safe center;
  padding: clamp(3.6rem, 6vh, 4.4rem) clamp(1rem, 3.5vw, 3rem) clamp(1.5rem, 3vh, 2.5rem);
  width: 100%;
}
.section-catalogo, .section-customizer {
  padding: 0; justify-content: stretch; overflow: hidden;
}
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(0.35rem, 1vh, 0.75rem); }
.kicker { font-family: var(--f-mono); color: var(--saber); letter-spacing: 2px; font-size: clamp(0.68rem, 1.1vh, 0.78rem); }
h2 { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.15rem, 2.3vh, 1.8rem); line-height: 1.15; margin: .15rem 0 .25rem; }
h2 em { display: inline-block; margin-left: .35rem; }
.section-head p { color: var(--muted); font-size: clamp(0.75rem, 1.2vh, 0.88rem); line-height: 1.3; }
.reveal { opacity: 1; transform: none; }

.warranty, .quality-grid {
  background: rgba(8, 14, 28, 0.58);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   2. SECCIÓN CATÁLOGO (50/50 ZERO-SCROLL >=19")
   ========================================================= */
.catalog-shell {
  height: 100vh; height: 100svh; width: 100%; max-width: 1900px; margin: 0 auto;
  padding: 25px clamp(12px, 1.4vw, 22px) clamp(10px, 1.1vh, 15px);
  display: grid; grid-template-columns: minmax(430px, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(10px, 1.3vw, 18px); overflow: hidden;
}

.left-studio {
  display: flex; flex-direction: column; gap: clamp(7px, 0.95vh, 11px);
  padding: clamp(10px, 1.15vh, 14px) clamp(12px, 1.3vw, 18px);
  border-radius: 16px; background: var(--panel);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border); min-height: 0; overflow: hidden;
}

.left-top-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.search-box { position: relative; flex: 1 1 auto; min-width: 120px; }
.search-input {
  width: 100%; padding: 6.5px 28px 6.5px 11px; border-radius: 9px;
  border: 1px solid var(--border); background: rgba(0, 0, 0, 0.48);
  color: var(--text); font-family: var(--f-body); font-size: 13px; outline: none;
  transition: border-color 180ms ease;
}
.search-input:focus { border-color: var(--saber); }
.search-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); padding: 0 5px; border-radius: 4px; pointer-events: none;
}

.wood-group {
  display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); flex-shrink: 0;
}
.wood-title { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; margin-right: 2px; }
.wood-dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 150ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease;
}
.wood-dot:active { transform: scale(0.92); }
.wood-dot.active { border-color: var(--jedi); transform: scale(1.16); box-shadow: 0 0 10px var(--jedi-glow); }

.upload-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6.5px 11px; border-radius: 9px;
  border: 1px solid rgba(255, 232, 31, 0.55); background: rgba(255, 232, 31, 0.1);
  color: var(--jedi); font-family: var(--f-head); font-size: 10.5px; letter-spacing: 0.7px;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
  transition: transform 150ms var(--ease-out), background-color 180ms ease;
}
.upload-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .upload-btn:hover { background: var(--jedi); color: #05070c; }
}

.cat-pills { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: clamp(4px, 0.7vh, 8px); }
.cat-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4.5px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--muted);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: transform 150ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.cat-pill:active { transform: scale(0.97); }
.cat-pill .cnt { font-family: var(--f-mono); font-size: 10.5px; opacity: 0.75; }
.cat-pill.active {
  background: var(--jedi); color: #05070c; border-color: var(--jedi);
  box-shadow: 0 0 14px rgba(255, 232, 31, 0.24);
}

/* Escritorio 1:1 */
.desk-stage-wrap {
  display: flex; align-items: center; justify-content: center;
  flex: 0 1 auto; min-height: 0; width: 100%; margin-top: clamp(2px, 0.5vh, 6px);
}
.desk {
  position: relative; width: min(100%, calc((100svh - 370px) * 2)); max-width: 100%;
  aspect-ratio: 2 / 1; border-radius: 12px; border: 2px solid #593d26;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.84), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  overflow: hidden; user-select: none; transition: border-color 260ms ease;
}
.desk-wood-layer {
  position: absolute; inset: 0; background: url('assets/desk_walnut_wood.jpg') center/cover no-repeat;
  transition: filter 280ms ease; z-index: 0;
}
.desk-wood-tint {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  transition: background-color 280ms ease, opacity 280ms ease;
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.38) 100%);
}
.desk.wood-walnut { border-color: #5b3e26; }
.desk.wood-black { border-color: #2b303b; }
.desk.wood-black .desk-wood-layer { filter: grayscale(1) brightness(0.34) contrast(1.48); }
.desk.wood-black .desk-wood-tint { background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(15,20,30,0.08) 50%, rgba(0,0,0,0.45) 100%); }
.desk.wood-white { border-color: #cfd6e1; }
.desk.wood-white .desk-wood-layer { filter: grayscale(1) brightness(2.55) contrast(0.52); }
.desk.wood-white .desk-wood-tint { background: rgba(244, 247, 252, 0.34); mix-blend-mode: screen; }
.desk.wood-pink { border-color: #d88aa7; }
.desk.wood-pink .desk-wood-layer { filter: grayscale(1) brightness(2.25) contrast(0.60); }
.desk.wood-pink .desk-wood-tint { background: rgba(244, 152, 188, 0.56); mix-blend-mode: multiply; }

.monitor-wrap {
  position: absolute; top: 1.5%; left: 20%; width: 60%; height: 9%;
  z-index: 4; pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.monitor-ambient {
  position: absolute; top: -90%; left: 0; right: 0; height: 210%; background-color: #ff2a3d;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  filter: blur(12px); opacity: 0.85; transition: background-color 300ms ease-out;
}
.monitor-curved {
  position: relative; width: 100%; height: 52%;
  background: linear-gradient(180deg, #151922, #07090d);
  border-radius: 50% 50% 4px 4px / 100% 100% 0 0;
  border-top: 1.5px solid #525969; box-shadow: 0 5px 14px rgba(0, 0, 0, 0.92); z-index: 2;
}

.pad-ghost {
  position: absolute; border-radius: 6px; border: 1.5px dashed rgba(0, 229, 255, 0.6);
  background: rgba(0, 229, 255, 0.04); pointer-events: none; z-index: 2;
  opacity: 0; transform: scale(0.98); transition: opacity 220ms ease-out, transform 220ms var(--ease-out);
}
.desk.show-ghosts .pad-ghost { opacity: 1; transform: scale(1); }
.pad-ghost span {
  position: absolute; font-family: var(--f-mono); font-size: 10.5px;
  padding: 1px 4px; background: rgba(0,0,0,0.8); border-radius: 3px;
}
.g-80 { border-color: #38ef7d; } .g-80 span { color: #38ef7d; left: 6px; bottom: 4px; }
.g-90 { border-color: #00e5ff; } .g-90 span { color: #00e5ff; right: 6px; bottom: 4px; }
.g-100 { border-color: #ffb020; } .g-100 span { color: #ffb020; right: 6px; top: 4px; }

.pad-box {
  position: absolute; z-index: 3;
  transition: left 260ms var(--ease-out), top 260ms var(--ease-out), width 260ms var(--ease-out), height 260ms var(--ease-out);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.78));
}
.pad-img, .pad-canvas { width: 100%; height: 100%; display: block; object-fit: fill; }
.pad-img[hidden], .pad-canvas[hidden] { display: none !important; }
.pad-box.is-procedural .pad-canvas { border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.7); }
.pad-box.is-procedural::after {
  content: ''; position: absolute; inset: 3px; border-radius: 4px;
  border: 1.5px dashed rgba(255, 255, 255, 0.36); pointer-events: none;
}
.dim-tag {
  position: absolute; font-family: var(--f-mono); font-size: 11px; color: var(--jedi);
  background: rgba(0, 0, 0, 0.85); border: 1px solid rgba(255, 232, 31, 0.45);
  padding: 1px 6px; border-radius: 4px; white-space: nowrap; pointer-events: none; z-index: 6;
}
.dim-w { top: -21px; left: 50%; transform: translateX(-50%); }
.dim-h { left: -6px; top: 50%; transform: translate(-100%, -50%); }

.kb-real, .mouse-real {
  position: absolute; pointer-events: none; z-index: 5;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.82));
  opacity: 1; transform: translateY(0) scale(1);
  transition: opacity 220ms ease-out, transform 240ms var(--ease-out);
}
.desk.hide-gear .kb-real, .desk.hide-gear .mouse-real { opacity: 0; transform: translateY(10px) scale(0.95); }
.kb-real img, .mouse-real img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kb-accent-glow {
  position: absolute; inset: 14% 4%; border-radius: 6px; opacity: 0.22;
  filter: blur(8px); z-index: -1; transition: background-color 280ms ease-out;
}

/* Dock lateral derecho de 2 íconos luminosos sobre el escritorio */
.desk-side-dock {
  position: absolute; right: 10px; top: 56%; transform: translateY(-50%); z-index: 9;
  display: flex; flex-direction: column; gap: 9px; padding: 6px; border-radius: 14px;
  background: rgba(5, 8, 16, 0.56); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}
.desk-ico-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(10, 14, 26, 0.82);
  transition: transform 160ms var(--ease-out), background-color 180ms ease, box-shadow 200ms ease, border-color 180ms ease, color 180ms ease;
}
.desk-ico-btn:active { transform: scale(0.92); }
.desk-ico-btn svg { width: 20px; height: 20px; display: block; }
.desk-ico-btn.ico-sizes { border: 1.5px solid rgba(255, 232, 31, 0.65); color: var(--jedi); animation: beaconJedi 2.4s ease-in-out infinite; }
.desk-ico-btn.ico-sizes.active {
  animation: none; background: var(--jedi); border-color: var(--jedi); color: #06080f;
  box-shadow: 0 0 22px rgba(255, 232, 31, 0.72);
}
.desk-ico-btn.ico-gear {
  border: 1.5px solid rgba(0, 229, 255, 0.72); color: var(--saber); background: rgba(0, 229, 255, 0.14);
  animation: beaconSaber 2.4s ease-in-out 1.2s infinite;
}
.desk-ico-btn.ico-gear.is-off {
  border-color: rgba(0, 229, 255, 0.55); background: rgba(10, 14, 26, 0.88); color: rgba(0, 229, 255, 0.75);
}
.desk-ico-btn .slash-line { opacity: 0; transition: opacity 160ms ease; }
.desk-ico-btn.is-off .slash-line { opacity: 1; }

@keyframes beaconJedi {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 232, 31, 0.25); border-color: rgba(255, 232, 31, 0.48); }
  50% { box-shadow: 0 0 18px rgba(255, 232, 31, 0.68); border-color: rgba(255, 232, 31, 0.98); }
}
@keyframes beaconSaber {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 229, 255, 0.25); border-color: rgba(0, 229, 255, 0.48); }
  50% { box-shadow: 0 0 18px rgba(0, 229, 255, 0.72); border-color: rgba(0, 229, 255, 0.98); }
}
@media (hover: hover) and (pointer: fine) {
  .desk-ico-btn:hover { transform: scale(1.09); }
  .desk-ico-btn.ico-sizes:hover { animation: none; background: rgba(255, 232, 31, 0.24); border-color: var(--jedi); color: #fff; box-shadow: 0 0 24px rgba(255, 232, 31, 0.8); }
  .desk-ico-btn.ico-sizes.active:hover { background: var(--jedi); color: #06080f; }
  .desk-ico-btn.ico-gear:hover { animation: none; background: rgba(0, 229, 255, 0.28); border-color: var(--saber); color: #fff; box-shadow: 0 0 24px rgba(0, 229, 255, 0.82); }
}

/* Bloque de Compra Protagonista (sin caja anidada, tipografía Orbitron en los 3 precios) */
.buy-hero-card {
  display: flex; flex-direction: column; gap: clamp(8px, 1.2vh, 13px);
  margin-top: clamp(4px, 0.8vh, 10px); padding: clamp(10px, 1.3vh, 15px) 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14); flex: 1 0 auto;
}
.buy-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.buy-title-wrap { min-width: 0; }
.buy-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono);
  font-size: 11px; color: var(--saber); text-transform: uppercase; letter-spacing: 0.8px;
}
.buy-model-name {
  font-family: var(--f-head); font-size: clamp(16px, 2vh, 21px); font-weight: 700; color: #fff;
  line-height: 1.2; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buy-size-badge {
  flex-shrink: 0; padding: 3px 10px; border-radius: 7px;
  background: rgba(255, 232, 31, 0.12); border: 1px solid rgba(255, 232, 31, 0.45);
  color: var(--jedi); font-family: var(--f-head); font-size: 12px; font-weight: 700;
}
.buy-size-badge.exclusive { background: rgba(192, 132, 252, 0.16); border-color: rgba(192, 132, 252, 0.6); color: #e9d5ff; }

.buy-specs-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px;
  font-family: var(--f-mono); font-size: 11.5px; color: #cbd5e1;
}
.spec-inline { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.spec-inline .dot { color: var(--saber); font-size: 10px; }
.spec-inline strong { color: #fff; font-weight: 600; }

.buy-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.price-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.buy-price {
  font-family: var(--f-head); font-size: clamp(23px, 2.9vh, 30px); font-weight: 900;
  color: var(--jedi); line-height: 1; text-shadow: 0 0 18px rgba(255, 232, 31, 0.25);
}
.buy-transfer-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--green); line-height: 1.15; }
.buy-transfer-line .amt { font-family: var(--f-head); font-size: clamp(16px, 2vh, 20.5px); font-weight: 700; letter-spacing: 0.4px; }
.buy-transfer-line .lbl { font-family: var(--f-mono); font-size: clamp(11.5px, 1.3vh, 13px); opacity: 0.92; white-space: nowrap; }

.buy-installments { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: var(--saber); line-height: 1.15; }
.buy-installments .amt { font-family: var(--f-head); font-size: clamp(14.5px, 1.75vh, 18px); font-weight: 700; letter-spacing: 0.4px; }
.buy-installments .lbl { font-family: var(--f-mono); font-size: clamp(11.5px, 1.3vh, 13px); opacity: 0.92; white-space: nowrap; }

.buy-cta {
  font-family: var(--f-head); font-size: clamp(11.5px, 1.35vh, 13px); font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: clamp(11px, 1.35vh, 14px) clamp(16px, 1.7vw, 23px);
  border-radius: 10px; border: 1.5px solid var(--saber);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.24), rgba(0, 140, 255, 0.18));
  color: #fff; white-space: nowrap; box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  transition: transform 150ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease;
}
.buy-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .buy-cta:hover { background: var(--saber); color: #021016; box-shadow: 0 0 28px var(--saber-glow); }
}

/* Galería Derecha con scroll interno propio */
.right-gallery {
  display: block; padding: clamp(10px, 1.15vh, 14px) clamp(10px, 1.2vw, 15px);
  border-radius: 16px; background: var(--panel);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border); min-height: 0; height: 100%;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(0, 229, 255, 0.35) transparent;
}
.right-gallery::-webkit-scrollbar { width: 6px; }
.right-gallery::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.3); border-radius: 999px; }

.cards-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(202px, auto); gap: clamp(8px, 1vh, 12px); align-content: start;
}
.design-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 5px;
  padding: clamp(6px, 0.75vh, 8px); border-radius: 11px; border: 1px solid var(--border);
  background: var(--card); text-align: left; cursor: pointer; min-height: 0; overflow: hidden;
  transition: transform 160ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease;
}
.design-card:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .design-card:hover { border-color: rgba(0, 229, 255, 0.55); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48); }
}
.design-card.active { border-color: var(--jedi); box-shadow: 0 0 0 1px var(--jedi), 0 0 18px rgba(255, 232, 31, 0.22); }

/* Orden unificado PC & Mobile: 1° Foto -> 2° Medidas -> 3° Nombre + botón + */
.thumb-frame {
  position: relative; flex: 1 1 auto; min-height: 0; width: 100%; padding: 4px;
  display: flex; align-items: center; justify-content: center; border-radius: 7px;
  overflow: hidden; background: rgba(0, 0, 0, 0.30); order: 1;
}
.thumb-frame img {
  width: 100%; max-height: 100%; aspect-ratio: 2.25 / 1; object-fit: contain; display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
}
.thumb-frame.procedural img { object-fit: cover; border-radius: 5px; border: 1px dashed rgba(255, 255, 255, 0.24); }

.card-sizes-bar { display: flex; align-items: center; gap: 4px; flex-shrink: 0; order: 2; }
.card-sz-btn {
  flex: 1; padding: 2.5px 4px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.03); color: var(--muted); font-family: var(--f-mono);
  font-size: 10.5px; text-align: center;
  transition: transform 120ms var(--ease-out), border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.card-sz-btn:active { transform: scale(0.94); }
.card-sz-btn.active { border-color: var(--saber); background: rgba(0, 229, 255, 0.18); color: #fff; font-weight: 700; }
.card-sz-btn.excl { border-color: rgba(192, 132, 252, 0.6); background: rgba(192, 132, 252, 0.16); color: #e9d5ff; cursor: default; }

.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-shrink: 0; order: 3; }
.card-titles { min-width: 0; flex: 1; }
.card-name { display: block; font-weight: 700; font-size: clamp(12px, 1.35vh, 13.5px); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.design-card.active .card-name { color: var(--jedi); }
.card-meta { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-card-price { display: none; font-family: var(--f-head); font-size: 15px; color: var(--jedi); margin-top: 2px; }
.mobile-card-price small { font-family: var(--f-mono); font-size: 11px; color: var(--green); font-weight: 400; margin-left: 6px; }

.quick-add-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.1); color: var(--saber); font-family: var(--f-head);
  font-size: 16px; line-height: 1; display: inline-grid; place-items: center; flex-shrink: 0;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.quick-add-btn:active { transform: scale(0.90); }
@media (hover: hover) and (pointer: fine) {
  .quick-add-btn:hover { background: var(--saber); color: #021016; }
}

/* =========================================================
   3. SECCIÓN PERSONALIZAR (FULL-SCREEN STUDIO + TCG PLAYMATS)
   ========================================================= */
.custom-shell {
  height: 100vh; height: 100svh; width: 100%; max-width: 1900px; margin: 0 auto;
  padding: 25px clamp(12px, 1.4vw, 22px) clamp(10px, 1.1vh, 15px);
  display: grid; grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
  gap: clamp(10px, 1.3vw, 18px); overflow: hidden;
}

.custom-sidebar {
  display: flex; flex-direction: column; gap: 11px;
  padding: clamp(12px, 1.3vh, 16px); border-radius: 16px; background: var(--panel);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border); min-height: 0; height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(0, 229, 255, 0.32) transparent;
}
.cs-kicker { font-family: var(--f-mono); font-size: 11px; color: var(--saber); letter-spacing: 1.2px; text-transform: uppercase; }
.cs-title { font-family: var(--f-head); font-size: clamp(14.5px, 1.8vh, 18px); margin: 2px 0 0; line-height: 1.2; }
.cs-group, .cs-subblock { display: flex; flex-direction: column; gap: 7px; }
.cs-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-label { font-family: var(--f-mono); font-size: 11px; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.9px; }
.cs-mini-lbl { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.cs-val { font-family: var(--f-mono); font-size: 11.5px; color: var(--saber); min-width: 38px; text-align: right; }

.dpi-chip {
  font-family: var(--f-mono); font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(56, 239, 125, 0.5); background: rgba(56, 239, 125, 0.12); color: var(--green);
}
.dpi-chip.warn { border-color: rgba(255, 232, 31, 0.6); background: rgba(255, 232, 31, 0.14); color: var(--jedi); }
.dpi-chip.bad { border-color: rgba(255, 42, 61, 0.65); background: rgba(255, 42, 61, 0.16); color: #ff8590; }

.cs-sizes-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cs-sz-btn {
  padding: 6px 4px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; align-items: center; gap: 1px;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.cs-sz-btn:active { transform: scale(0.96); }
.cs-sz-btn strong { font-family: var(--f-head); font-size: 11.5px; color: var(--text); }
.cs-sz-btn small { font-family: var(--f-mono); font-size: 9.5px; color: var(--muted); }
.cs-sz-btn.active { border-color: var(--saber); background: rgba(0, 229, 255, 0.15); }
.cs-sz-btn.active strong { color: var(--saber); }

.cs-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border);
}
.cs-tab {
  padding: 7px 4px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease;
}
.cs-tab.active { background: rgba(0, 229, 255, 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.4); }

.cs-tab-pane { display: none; flex-direction: column; gap: 11px; }
.cs-tab-pane.active { display: flex; }

.cs-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px;
  padding: 14px 10px; border-radius: 11px; border: 1.5px dashed rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.05); cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.cs-dropzone.compact { padding: 10px 8px; }
.cs-dropzone:hover, .cs-dropzone.dragover { border-color: var(--jedi); background: rgba(255, 232, 31, 0.09); }
.cs-dropzone strong { font-size: 12.5px; color: #fff; }
.cs-dropzone span { font-size: 11px; color: var(--muted); }

.cs-inline-row { display: flex; align-items: center; gap: 8px; }
.cs-range { flex: 1; accent-color: var(--saber); cursor: pointer; }
.cs-btn-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cs-mini-btn {
  padding: 6px 8px; border-radius: 7px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); color: #d6dce8; font-family: var(--f-mono); font-size: 11px;
  white-space: nowrap; transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.cs-mini-btn:active { transform: scale(0.96); }
.cs-mini-btn.active { border-color: var(--saber); background: rgba(0, 229, 255, 0.16); color: #fff; }
.cs-mini-btn.danger:hover { border-color: var(--sith); color: #ff8a96; }
.cs-link-btn { font-family: var(--f-mono); font-size: 11px; color: #ff8a96; text-decoration: underline; }

.cs-presets-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cs-swatch {
  width: 28px; height: 28px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, 0.22);
  transition: transform 140ms var(--ease-out), border-color 160ms ease;
}
.cs-swatch.active { border-color: var(--jedi); transform: scale(1.1); box-shadow: 0 0 10px var(--jedi-glow); }
.cs-color-pick {
  position: relative; width: 28px; height: 28px; border-radius: 7px; border: 1px dashed var(--border);
  display: grid; place-items: center; cursor: pointer; overflow: hidden;
}
.cs-color-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.cs-text-input, .cs-select {
  width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.48); color: var(--text); font-size: 12.5px; outline: none;
}
.cs-select { width: auto; flex: 1; }
.cs-color-input { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 7px; background: none; cursor: pointer; }

.cs-tcg-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.cs-tcg-btn {
  padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); font-family: var(--f-head); font-size: 11px; color: #cfd5e2;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.cs-tcg-btn:active { transform: scale(0.97); }
.cs-tcg-btn.active { border-color: var(--jedi); background: rgba(255, 232, 31, 0.14); color: var(--jedi); }

.cs-tcg-layouts { display: flex; flex-direction: column; gap: 5px; }
.cs-layout-opt {
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03); text-align: left; display: flex; flex-direction: column; gap: 1px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.cs-layout-opt strong { font-size: 12px; color: #fff; }
.cs-layout-opt small { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.cs-layout-opt.active { border-color: var(--saber); background: rgba(0, 229, 255, 0.14); }
.cs-line-colors { display: flex; align-items: center; gap: 6px; }
.cs-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28); }
.cs-dot.active { border-color: var(--jedi); transform: scale(1.15); }
.cs-check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #cbd5e1; cursor: pointer; }
.cs-check-row input { accent-color: var(--saber); }

/* Columna Derecha del Personalizador: Lienzo Gigante + Barra Compra */
.custom-stage-col {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(8px, 1vh, 12px);
  padding: clamp(10px, 1.2vh, 16px) clamp(14px, 1.5vw, 20px);
  border-radius: 16px; background: var(--panel);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border); min-height: 0; overflow: hidden;
}
.custom-stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cs-view-switch {
  display: inline-flex; gap: 4px; padding: 3px; border-radius: 9px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border);
}
.cs-view-btn {
  padding: 5px 12px; border-radius: 6px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease;
}
.cs-view-btn.active { background: rgba(0, 229, 255, 0.18); color: #fff; }
.cs-stage-actions { display: flex; gap: 6px; }

.custom-canvas-area {
  display: flex; align-items: center; justify-content: center;
  min-height: 0; width: 100%; height: 100%; position: relative;
}
.c-editor-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; gap: 8px;
}
.c-editor-wrap[hidden], .c-desk-wrap[hidden] { display: none !important; }
#customCanvas {
  max-width: 100%; max-height: calc(100% - 26px); width: auto; height: auto;
  cursor: grab;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.85));
  touch-action: none;
}
#customCanvas:active { cursor: grabbing; }
.c-drag-hint { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

.c-desk-wrap { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.c-desk-wrap .desk { width: min(100%, calc((100svh - 300px) * 2)); }
.custom-buy-bar { flex: 0 0 auto; margin-top: 0; }

/* =========================================================
   4. CALIDAD / BLUEPRINT 3D (INTACTO)
   ========================================================= */
.quality-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1rem, 2.5vw, 2.2rem);
  padding: clamp(1rem, 2.2vw, 2rem); max-height: clamp(400px, 80vh, 920px); overflow: hidden;
}
.blueprint-card { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); padding-right: clamp(0.8rem, 2vw, 1.8rem); }
.blueprint-wrapper { position: relative; width: 100%; height: clamp(170px, 32vh, 400px); perspective: 1200px; display: flex; align-items: center; justify-content: center; }
.blueprint-stage { position: relative; width: min(380px, 86%); aspect-ratio: 16 / 9; transform-style: preserve-3d; animation: blueprintOrbit 12s infinite alternate ease-in-out; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }
@keyframes blueprintOrbit {
  0% { transform: rotateX(58deg) rotateZ(-26deg) rotateY(-5deg); }
  50% { transform: rotateX(64deg) rotateZ(-12deg) rotateY(6deg); }
  100% { transform: rotateX(54deg) rotateZ(-32deg) rotateY(-8deg); }
}
.blueprint-stage:hover, .blueprint-stage.exploded { animation-play-state: paused; }
.bp-layer { position: absolute; inset: 0; border-radius: 8px; transform-style: preserve-3d; transition: transform 320ms var(--ease-out), box-shadow 250ms ease; }
.bp-top {
  transform: translateZ(42px);
  background: radial-gradient(circle at 50% 50%, rgba(0,229,255,0.22), rgba(0,112,243,0.28) 65%, rgba(2,11,26,0.52) 100%), linear-gradient(rgba(0,229,255,0.22) 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, rgba(0,229,255,0.22) 1px, transparent 1px) 0 0 / 14px 14px;
  border: 1.5px solid #00e5ff; box-shadow: 0 0 30px rgba(0, 229, 255, 0.45), inset 0 0 20px rgba(0, 229, 255, 0.2);
}
.bp-mid { transform: translateZ(0px); border: 2px dashed #00e5ff; box-shadow: 0 0 22px rgba(0, 229, 255, 0.7); animation: stitchPulse 2.8s infinite alternate ease-in-out; }
@keyframes stitchPulse { 0% { border-color: rgba(0,229,255,0.6); } 100% { border-color: #00e5ff; box-shadow: 0 0 30px rgba(0,229,255,0.85); } }
.bp-base {
  transform: translateZ(-42px);
  background: repeating-linear-gradient(45deg, rgba(0,229,255,0.08) 0 2px, transparent 2px 8px), repeating-linear-gradient(-45deg, rgba(0,112,243,0.12) 0 2px, transparent 2px 8px), rgba(3,7,18,0.62);
  border: 1.5px solid rgba(0,229,255,0.35); box-shadow: 0 30px 60px rgba(0,0,0,0.75);
}
.blueprint-stage:hover .bp-top, .blueprint-stage.exploded .bp-top { transform: translateZ(90px); }
.blueprint-stage:hover .bp-base, .blueprint-stage.exploded .bp-base { transform: translateZ(-90px); }
.bp-tag { position: absolute; top: 6px; left: 8px; font-family: var(--f-mono); font-size: clamp(0.55rem, 0.9vh, 0.65rem); letter-spacing: 1.4px; color: #00e5ff; }
.bp-coord { position: absolute; font-family: var(--f-mono); font-size: 0.6rem; color: rgba(0, 229, 255, 0.6); }
.bp-coord.tl { bottom: 6px; left: 8px; } .bp-coord.tr { bottom: 6px; right: 8px; }
.bp-cross { position: absolute; font-family: var(--f-mono); font-size: 0.75rem; color: #00e5ff; line-height: 1; }
.c-tl { top: 3px; left: 3px; } .c-tr { top: 3px; right: 3px; } .c-bl { bottom: 3px; left: 3px; } .c-br { bottom: 3px; right: 3px; }
.bp-scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #00e5ff, transparent); animation: scanBeam 4s infinite linear; }
@keyframes scanBeam { 0% { top: -5%; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: 105%; opacity: 0; } }
.bp-circle { position: absolute; right: 12%; top: 20%; width: 45%; height: 60%; border-radius: 50%; border: 1px dashed rgba(0, 229, 255, 0.35); }
.bp-legend { list-style: none; display: grid; gap: 0.35rem; margin-top: 0.5rem; }
.bp-legend li { padding-left: 0.8rem; border-left: 2px solid var(--line); transition: border-color 180ms ease; cursor: pointer; }
.bp-legend li:hover, .bp-legend li.active { border-left-color: var(--saber); }
.bp-legend b { display: block; font-family: var(--f-head); font-size: clamp(0.74rem, 1.3vh, 0.84rem); color: #e0e6f5; }
.bp-legend span { font-size: clamp(0.68rem, 1.1vh, 0.78rem); color: var(--muted); line-height: 1.3; }

.wash-card { display: flex; flex-direction: column; justify-content: space-between; padding-left: clamp(0.5rem, 1.5vw, 1.2rem); gap: 0.6rem; }
.wash-badge { display: inline-block; font-family: var(--f-mono); font-size: clamp(0.65rem, 1.1vh, 0.72rem); letter-spacing: 1.8px; color: var(--saber); background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.25); padding: 2px 9px; border-radius: 6px; margin-bottom: 0.4rem; }
.wash-header h3 { font-family: var(--f-head); font-size: clamp(1.15rem, 2.2vh, 1.45rem); margin-bottom: 0.2rem; }
.wash-header p { color: var(--muted); font-size: clamp(0.75rem, 1.3vh, 0.85rem); }
.wash-steps-grid { display: grid; gap: 0.45rem; }
.w-step { display: flex; gap: 0.7rem; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 0.45rem 0.75rem; border-radius: 8px; }
.w-num { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--saber); color: var(--saber); font-family: var(--f-head); font-size: 0.72rem; flex: none; }
.w-step strong { display: block; font-size: clamp(0.78rem, 1.3vh, 0.84rem); color: #fff; }
.w-step p { font-size: clamp(0.68rem, 1.1vh, 0.75rem); color: var(--muted); }
.wash-features { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-family: var(--f-mono); font-size: clamp(0.68rem, 1.1vh, 0.75rem); color: #a0f0ff; border-top: 1px solid var(--line); padding-top: 0.5rem; }

/* =========================================================
   5. GARANTÍA + 6. FAQ + FOOTER
   ========================================================= */
.warranty {
  display: grid; grid-template-columns: clamp(130px, 15vw, 250px) 1fr;
  gap: clamp(1.2rem, 3vw, 3.2rem); padding: clamp(1.4rem, 3.2vh, 2.8rem) clamp(1.4rem, 3.4vw, 3.6rem); align-items: center;
}
.seal { width: 100%; color: var(--jedi); filter: drop-shadow(0 0 14px var(--jedi-glow)); animation: spin 40s linear infinite; display: grid; place-items: center; }
.seal svg { width: 100%; height: auto; max-width: 240px; }
@keyframes spin { to { transform: rotate(360deg); } }
.warranty-copy h2 { font-size: clamp(1.4rem, 0.9rem + 1.6vh, 2.4rem); margin: 0.25rem 0 0.5rem; }
.warranty-copy > p { color: var(--muted); font-size: clamp(0.84rem, 0.6rem + 0.65vh, 1.05rem); line-height: 1.5; }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.6rem, 1.3vw, 1.3rem); margin: clamp(0.8rem, 1.8vh, 1.4rem) 0; }
.w-col { padding: clamp(0.8rem, 1.6vh, 1.3rem) clamp(1rem, 1.5vw, 1.5rem); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.w-col h3 { font-family: var(--f-head); font-size: clamp(0.78rem, 0.55rem + 0.5vh, 0.96rem); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: .55rem; }
.w-col ul { list-style: none; display: grid; gap: .42rem; font-size: clamp(0.8rem, 0.6rem + 0.55vh, 0.98rem); color: #c0c5d1; }
.w-col li::before { margin-right: .5rem; }
.yes h3 { color: #5fff8a; } .yes li::before { content: '✓'; color: #5fff8a; }
.no h3 { color: #ff6b78; } .no li::before { content: '✕'; color: #ff6b78; }
.fine { font-size: clamp(0.74rem, 0.55rem + 0.45vh, 0.9rem); color: #8c94a8; line-height: 1.45; }

.section-faq { justify-content: space-between; padding: clamp(4.2rem, 7.5vh, 5.2rem) 0 0; }
.faq-body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: min(1720px, 94vw); margin: 0 auto; padding: clamp(0.4rem, 1.2vh, 1rem) clamp(1rem, 3.5vw, 3rem); }
.faq { max-width: 60rem; margin: 0 auto; display: grid; gap: clamp(0.35rem, 0.9vh, 0.6rem); width: 100%; }
.faq details { background: rgba(8, 14, 28, 0.62); border: 1px solid var(--line); border-radius: 10px; padding: clamp(0.65rem, 1.3vh, 0.95rem) clamp(0.9rem, 1.5vw, 1.3rem); backdrop-filter: blur(12px); transition: border-color .2s, background-color .2s; }
.faq details[open] { background: rgba(8, 14, 26, 0.8); border-color: rgba(0, 229, 255, 0.45); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; font-size: clamp(0.8rem, 1.4vh, 0.92rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--saber); font-family: var(--f-head); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: .4rem; color: var(--muted); font-size: clamp(0.74rem, 1.2vh, 0.84rem); line-height: 1.4; }

.site-footer {
  width: 100%; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(4, 6, 12, 0.55);
  backdrop-filter: blur(12px); padding: clamp(0.65rem, 1.3vh, 1rem) clamp(1rem, 4vw, 3rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(0.8rem, 2vw, 1.5rem); align-items: center;
}
.foot-brand img { height: clamp(22px, 2.8vh, 28px); width: auto; filter: drop-shadow(0 0 8px rgba(255,232,31,.35)); }
.foot-cols { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2.5vw, 2.2rem); justify-content: flex-end; }
.foot-cols h4 { font-family: var(--f-head); font-size: .65rem; letter-spacing: 1.5px; color: var(--jedi); margin-bottom: .2rem; text-transform: uppercase; }
.foot-cols a, .foot-cols p { display: block; color: var(--muted); font-size: .75rem; margin-bottom: .12rem; transition: color .2s; }
.foot-cols a:hover { color: #fff; }
.copy { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .68rem; color: #8c94a8; }

/* =========================================================
   DRAWER DE CARRITO + TOAST
   ========================================================= */
.cart-backdrop {
  position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity 220ms ease;
}
.cart-backdrop.open { opacity: 1; }
.cart-backdrop[hidden] { display: none; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(410px, 94vw); z-index: 90;
  background: rgba(9, 13, 24, 0.97); border-left: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.85);
  display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}
.cart-drawer.open { transform: translateX(0); }

.cd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.cd-head h3 { font-family: var(--f-head); font-size: 14px; letter-spacing: 1px; }
.cd-close {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  color: var(--muted); display: grid; place-items: center;
}
.cd-close:hover { color: #fff; border-color: var(--saber); }

.cd-items { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.cd-empty { text-align: center; padding: 40px 16px; color: var(--muted); font-size: 13px; }
.cd-item {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center;
  padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
}
.cd-item img { width: 74px; aspect-ratio: 2.25 / 1; object-fit: cover; border-radius: 5px; background: #000; }
.cd-item-info { min-width: 0; }
.cd-item-info strong { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-item-info small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.cd-item-price { font-family: var(--f-head); font-size: 12.5px; color: var(--jedi); margin-top: 2px; }
.cd-qty { display: flex; align-items: center; gap: 5px; }
.cd-qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.05); color: #fff; font-family: var(--f-mono);
}
.cd-qty span { font-family: var(--f-mono); font-size: 12px; min-width: 16px; text-align: center; }

.cd-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 11px; }
.ship-row { display: flex; gap: 6px; margin-top: 4px; }
.ship-row input {
  flex: 1; padding: 7px 10px; border-radius: 7px; border: 1px solid var(--border);
  background: rgba(0,0,0,0.45); color: var(--text); font-size: 12.5px; outline: none;
}
.ship-row input:focus { border-color: var(--saber); }
.ship-row button { padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; }
.ship-row button:hover { border-color: var(--saber); color: var(--saber); }
.ship-result { font-size: 12px; color: #b8c2d4; margin-top: 5px; min-height: 1.2em; }

.cd-totals { display: flex; flex-direction: column; gap: 5px; }
.cd-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cd-row strong { font-family: var(--f-head); color: var(--jedi); font-size: 15px; }
.cd-row.green strong { color: var(--green); }

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 95;
  transform: translate(-50%, 140%) scale(0.96); opacity: 0;
  background: rgba(9, 13, 24, 0.95); border: 1px solid var(--saber); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  transition: transform 220ms var(--ease-out), opacity 180ms ease-out; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* =========================================================
   RESPONSIVE MOBILE / TABLET (<= 980px)
   ========================================================= */
@media (max-width: 980px) {
  .site-header { width: calc(100% - 1.2rem); top: 8px; padding: 0.42rem 0.9rem; background: rgba(6, 10, 18, 0.92); }
  .menu-btn { display: block; }
  .main-nav {
    position: fixed; top: 56px; left: 0.6rem; right: 0.6rem; flex-direction: column; gap: 0;
    background: rgba(6, 10, 18, 0.97); backdrop-filter: blur(18px); border-radius: 12px; border: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
    transition: transform 200ms var(--ease-out), opacity 160ms ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .main-nav a { width: 100%; padding: 0.85rem 1.2rem; border-top: 1px solid rgba(255,255,255,0.08); }

  .section-catalogo, .section-customizer { display: block; overflow-y: auto; }

  /* Catálogo Mobile: vuela el escritorio preview, quedan filtros arriba + tarjetas 1 col full-width */
  .catalog-shell {
    display: flex; flex-direction: column;
    height: auto; min-height: auto; overflow: visible;
    padding: 66px 10px 28px; gap: 10px;
  }
  .left-studio { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; overflow: visible; min-width: 0; width: 100%; }
  .left-top-row { flex-wrap: wrap; }
  .wood-group, .desk-stage-wrap, .left-studio .buy-hero-card { display: none !important; }
  .cat-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
  .cat-pills::-webkit-scrollbar { display: none; }

  .right-gallery { display: flex; flex-direction: column; gap: 12px; padding: 10px; height: auto; overflow: visible; min-width: 0; width: 100%; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 14px; }
  .design-card { padding: 10px; gap: 9px; }
  .card-sz-btn { padding: 6px 8px; font-size: 12px; border-radius: 7px; }
  .card-name { font-size: 15px; }
  .mobile-card-price { display: block; }
  .quick-add-btn { width: auto; height: auto; padding: 9px 15px; font-size: 12px; }

  /* Personalizador Mobile */
  .custom-shell {
    display: flex; flex-direction: column;
    height: auto; min-height: auto; overflow: visible;
    padding: 66px 10px 28px; gap: 12px;
  }
  .custom-stage-col {
    order: 1; display: flex; flex-direction: column; gap: 10px;
    height: auto; overflow: visible; min-width: 0; width: 100%; padding: 12px;
  }
  .custom-stage-col > * { flex: 0 0 auto; }
  .custom-stage-bar { gap: 8px; }
  .cs-view-switch { width: 100%; justify-content: space-between; }
  .cs-view-btn { flex: 1; padding: 6px 8px; font-size: 10.5px; text-align: center; }
  .cs-stage-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .cs-stage-actions .cs-mini-btn { flex: 1; text-align: center; }
  .custom-canvas-area { display: block; height: auto; width: 100%; min-width: 0; }
  .c-editor-wrap { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: auto; width: 100%; gap: 8px; }
  .c-desk-wrap { display: block; height: auto; width: 100%; }
  #customCanvas { display: block; width: 100%; max-width: 100%; max-height: none; height: auto; }
  .c-drag-hint { text-align: center; font-size: 10.5px; line-height: 1.35; }
  .c-desk-wrap .desk { width: 100%; }
  .custom-buy-bar .buy-title-row { flex-wrap: wrap; gap: 6px; }
  .custom-buy-bar .buy-title { white-space: normal; font-size: 14px; }
  .custom-buy-bar .buy-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .custom-buy-bar .buy-price-line { flex-wrap: wrap; }
  .custom-buy-bar .buy-price-line .lbl { white-space: normal; }
  .custom-buy-bar .buy-cta { width: 100%; text-align: center; }
  .custom-sidebar { order: 2; height: auto; overflow: visible; min-width: 0; width: 100%; }

  .quality-grid { grid-template-columns: 1fr; max-height: none; }
  .blueprint-card { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 1rem; }
  .warranty { grid-template-columns: 1fr; text-align: center; }
  .seal { width: 110px; margin: 0 auto; }
  .w-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .foot-cols { justify-content: flex-start; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-img, .hint, .blueprint-stage, .bp-mid, .bp-scan, .seal, .desk-ico-btn { animation: none !important; }
}
