/* ─────────────────────────────────────────────────────────────
   Bobina — estilos
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f0;
  --muted: #9a9aa3;
  --brand: #5b7cff;          /* azul Crea3D (más claro para fondo oscuro) */
  --brand-rgb: 91, 124, 255;
  --on-brand: #ffffff;
  --orange: #ff7a1a;
  --pink: #ff4dbe;
  --cyan: #4de1ff;
  --whats: #25d366;
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --tint: rgba(255, 255, 255, 0.03);
  --tint-hover: rgba(255, 255, 255, 0.08);
  --tint-2: rgba(255, 255, 255, 0.05);
  --ring: rgba(255, 255, 255, 0.2);
  --grid-line: rgba(255, 255, 255, 0.03);
  --star-off: rgba(255, 255, 255, 0.2);
  --nav-bg: rgba(10, 10, 12, 0.65);
  --chip-bg: rgba(22, 22, 26, 0.7);
  --bar-bg: rgba(17, 17, 20, 0.88);
  --map-stroke: rgba(255, 255, 255, 0.35);
  color-scheme: dark;
}

/* ───────── Modo claro ───────── */
:root[data-theme="light"] {
  --bg: #f5f5f1;
  --bg-2: #ecece6;
  --surface: #ffffff;
  --surface-2: #e7e7e1;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.17);
  --text: #15151a;
  --muted: #5e6068;
  --brand: #3b5bdb;
  --brand-rgb: 59, 91, 219;
  --orange: #e8650a;
  --tint: rgba(0, 0, 0, 0.03);
  --tint-hover: rgba(0, 0, 0, 0.07);
  --tint-2: rgba(0, 0, 0, 0.05);
  --ring: rgba(0, 0, 0, 0.18);
  --grid-line: rgba(0, 0, 0, 0.045);
  --star-off: rgba(0, 0, 0, 0.18);
  --nav-bg: rgba(245, 245, 241, 0.78);
  --chip-bg: rgba(255, 255, 255, 0.82);
  --bar-bg: rgba(255, 255, 255, 0.92);
  --map-stroke: rgba(0, 0, 0, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--brand); color: var(--on-brand); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 0.98; margin: 0; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); font-size: 0.85em; }
.muted { color: var(--muted); }
.tiny { font-size: 0.82rem; }
.hl { color: var(--orange); }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 1.5em; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.5); }
.btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(var(--brand-rgb), 0.6); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-2); background: var(--tint); }
.btn--ghost:hover { background: var(--tint-hover); }
.btn--whats { background: var(--whats); color: #04210f; }
.btn--whats:hover { filter: brightness(1.08); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.15em 2em; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); transition: background 0.2s;
}
.icon-btn:hover { background: var(--tint-hover); }

/* ───────── Topbar marquee ───────── */
.topbar { background: var(--brand); color: var(--on-brand); font-size: 0.82rem; font-weight: 600; overflow: hidden; }
.marquee { display: flex; overflow: hidden; padding: 0.55em 0; }
.marquee__track { display: flex; gap: 1.6em; white-space: nowrap; animation: marquee 40s linear infinite; padding-right: 1.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem var(--gutter);
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; min-width: 0; }
.logo__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.5), 0 0 20px rgba(var(--brand-rgb), 0.35); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text small { font-family: var(--font); font-size: 0.68rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.nav__links { display: flex; gap: 0.25rem; }
.nav__links a { padding: 0.5em 0.9em; border-radius: 999px; font-size: 0.93rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--text); background: var(--tint-hover); }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.currency { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.currency__btn { padding: 0.3em 0.8em; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.currency__btn.is-active { background: var(--text); color: var(--bg); }
.cart-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--text); color: var(--bg); transition: transform 0.3s var(--ease);
}
.cart-btn:hover { transform: scale(1.06); }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--orange); color: #1a0d00; font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.cart-btn.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.22) rotate(-8deg); } }

/* ───────── Hero ───────── */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  min-height: min(88vh, 860px);
}
.hero__glow {
  position: absolute; inset: -10% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(var(--brand-rgb), 0.16), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(255, 77, 190, 0.14), transparent 70%);
  filter: blur(20px); pointer-events: none; z-index: -1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em; margin: 0 0 1.2rem;
  font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.2); animation: pulse 2s infinite; }
.hero__title { font-size: clamp(2.9rem, 7.4vw, 6.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; }
.hero__title-alt { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero__title em {
  font-style: normal; -webkit-text-stroke: 0;
  background: linear-gradient(100deg, var(--brand), #8fa6ff 45%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }
.hero__sub { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 32rem; margin: 1.8rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin: 3rem 0 0; padding: 0; }
.hero__stats div { border-left: 1px solid var(--line-2); padding-left: 1rem; }
.hero__stats dt { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.hero__stats dd { margin: 0; font-size: 0.85rem; color: var(--muted); }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.hero__orbit { position: absolute; inset: 0; }
.hero__spool { position: absolute; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); }
.hero__spool svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__spool--main { inset: 12%; z-index: 2; }
.hero__spool--a { width: 30%; aspect-ratio: 1; top: 0; right: 2%; z-index: 1; animation: float 7s ease-in-out infinite; }
.hero__spool--b { width: 24%; aspect-ratio: 1; bottom: 4%; left: 0; z-index: 3; animation: float 8s ease-in-out -2s infinite; }
.hero__spool--c { width: 18%; aspect-ratio: 1; bottom: 10%; right: 4%; z-index: 3; animation: float 6s ease-in-out -4s infinite; }
.hero__spool--a svg, .hero__spool--b svg, .hero__spool--c svg { animation-duration: 18s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-16px); } }
.hero__chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 0.5em;
  padding: 0.6em 1em; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: var(--chip-bg); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero__chip--1 { top: 18%; left: -2%; animation: float 9s ease-in-out infinite; }
.hero__chip--2 { bottom: 26%; right: -4%; animation: float 7s ease-in-out -3s infinite; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--whats); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ───────── Sections ───────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--gutter) 0; }
.section--narrow { max-width: 900px; }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ───────── Bento ───────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 14px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; text-align: left; isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.0; transition: opacity 0.4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%);
}
.tile:hover::before { opacity: 1; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__tag { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.tile__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: 0.9; margin: 0.4rem 0; }
.tile--big .tile__name { font-size: clamp(3.5rem, 8vw, 6.5rem); }
.tile__blurb { color: var(--muted); font-size: 0.93rem; max-width: 26rem; margin: 0; }
.tile__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: 0.85rem; }
.tile__foot > * { position: relative; }
.tile__arrow { background: var(--surface); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: all 0.3s var(--ease); }
.tile:hover .tile__arrow { background: var(--accent); color: #fff; border-color: transparent; transform: rotate(-45deg); }
.tile__spool { position: absolute; right: -14%; bottom: -18%; width: 62%; opacity: 0.9; z-index: -1; transition: transform 0.8s var(--ease); }
.tile:not(.tile--big):not(.tile--wide) .tile__spool { width: 46%; right: -14%; top: -16%; bottom: auto; }
.tile:not(.tile--big):not(.tile--wide) .tile__blurb { max-width: 74%; }
.tile--wide .tile__spool { width: 40%; right: -6%; bottom: -30%; }
.tile--wide .tile__blurb { max-width: 58%; }
.tile--big .tile__spool { width: 58%; right: -8%; bottom: -12%; }
.tile:hover .tile__spool { transform: rotate(40deg) scale(1.04); }

/* ───────── Toolbar / chips ───────── */
.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem; height: 46px; min-width: 260px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: border-color 0.2s;
}
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); min-width: 0; }
.select {
  height: 46px; padding: 0 2.4rem 0 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239a9aa3' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.select:focus { border-color: var(--brand); }
.select option { background: var(--surface); }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip {
  padding: 0.55em 1.1em; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.9rem; font-weight: 500;
  color: var(--muted); transition: all 0.25s var(--ease); display: inline-flex; align-items: center; gap: 0.45em;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip__count { font-family: var(--mono); font-size: 0.75rem; opacity: 0.6; }

/* ───────── Product grid ───────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card {
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.5s var(--ease), border-color 0.3s;
  animation: cardIn 0.6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card__media {
  position: relative; aspect-ratio: 1 / 0.92; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 30%, transparent), transparent 62%), var(--bg-2);
  transition: background 0.5s;
}
.card__media .spool { width: 68%; transition: transform 1s var(--ease); }
.card:hover .card__media .spool { transform: rotate(-60deg) scale(1.05); }
.card__badge {
  position: absolute; top: 14px; left: 14px; padding: 0.3em 0.75em; border-radius: 999px;
  background: var(--orange); color: #1a0d00; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.card__mat { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); padding: 0.3em 0.7em; border-radius: 999px; border: 1px solid var(--line-2); background: var(--chip-bg); }
.card__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.card__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; }
.card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.card__meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.card__color { color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%; background: var(--sw); position: relative;
  box-shadow: inset 0 0 0 1px var(--ring); transition: transform 0.2s var(--ease);
}
.swatch:hover { transform: scale(1.15); }
.swatch.is-active::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--text); }
.card__actions { display: flex; gap: 0.5rem; margin-top: auto; }
.card__add {
  flex: 1; height: 44px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 0.92rem;
  display: flex; align-items: center; justify-content: center; gap: 0.4em; transition: background 0.25s, transform 0.2s;
}
.card__add:hover { background: var(--brand); color: var(--on-brand); }
.card__add:active { transform: scale(0.97); }
.card__add.added { background: var(--brand); color: var(--on-brand); }
.card__view { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.2s; }
.card__view:hover { background: var(--tint-hover); }
.empty { text-align: center; color: var(--muted); padding: 4rem 0; }

/* ───────── Compare ───────── */
.compare { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 1.1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.compare td:first-child { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.compare td:first-child i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 0.6rem; vertical-align: middle; }
.bar { display: flex; gap: 4px; }
.bar span { width: 22px; height: 8px; border-radius: 4px; background: var(--surface-2); }
.bar span.on { background: var(--accent); }
.compare tbody tr { transition: background 0.2s; }
.compare tbody tr:hover { background: var(--tint); }

/* ───────── Calculator ───────── */
.calc {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(1.8rem, 5vw, 4rem); border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(var(--brand-rgb), 0.1), transparent 60%),
    radial-gradient(500px circle at 100% 100%, rgba(77, 225, 255, 0.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.calc__copy p { max-width: 28rem; margin-top: 1.5rem; }
.calc__panel { display: flex; flex-direction: column; gap: 1.3rem; padding: 1.6rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.field > span { display: flex; justify-content: space-between; }
.field output { color: var(--text); }
.field .select { width: 100%; color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-2); outline: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); cursor: pointer; box-shadow: 0 0 0 6px rgba(var(--brand-rgb), 0.18); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--brand); cursor: pointer; }
.calc__result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.calc__result div { padding: 0.9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.calc__result small { display: block; font-size: 0.75rem; color: var(--muted); }
.calc__result strong { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.02em; }
.meter { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.meter__fill { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--brand), var(--orange)); transition: width 0.5s var(--ease); }

/* ───────── Shipping ───────── */
.ship { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card-lite { padding: 1.7rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.3rem; }
.paylist, .steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.paylist li { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem; border-radius: var(--radius-sm); background: var(--bg-2); }
.pay-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; flex: none; color: var(--ico, var(--text)); border: 1px solid color-mix(in srgb, var(--ico, #fff) 30%, transparent); }
.paylist small, .steps li > span { display: block; color: var(--muted); font-size: 0.82rem; }
.steps li { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding: 0.9rem 0; border-bottom: 1px dashed var(--line-2); }
.steps li:last-child { border-bottom: 0; }
.steps li > b, .steps li > span { grid-column: 1; }
.steps em { font-style: normal; font-weight: 600; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.88rem; text-align: right; }
.vemap { flex: 1; min-height: 200px; display: grid; place-items: center; }
.vemap svg { width: 100%; max-height: 260px; }
.vemap .city { fill: var(--brand); }
.vemap .city-ring { fill: none; stroke: var(--brand); transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.vemap .route { fill: none; stroke: rgba(var(--brand-rgb), 0.35); stroke-width: 1; stroke-dasharray: 3 4; animation: dash 20s linear infinite; }
@keyframes ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(3); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -200; } }

/* ───────── FAQ ───────── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq details p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ───────── CTA / footer ───────── */
.cta {
  text-align: center; padding: clamp(3rem, 8vw, 6rem) var(--gutter); border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(800px circle at 50% 120%, rgba(var(--brand-rgb), 0.18), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.cta p { color: var(--muted); margin: 1.4rem auto 2rem; max-width: 30rem; }
.footer { padding: clamp(4rem, 10vw, 8rem) var(--gutter) 2rem; max-width: var(--max); margin: 0 auto; overflow: hidden; }
.footer__big {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.07em; line-height: 0.8;
  font-size: clamp(5rem, 24vw, 22rem); text-align: center;
  background: linear-gradient(180deg, var(--surface-2), transparent 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.footer__row a:hover { color: var(--brand); }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Modal ───────── */
.modal {
  width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 6px); background: var(--surface); color: var(--text); overflow: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 0.45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--surface); }
.modal__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pm__media { display: grid; place-items: center; padding: 3rem; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 32%, transparent), transparent 65%), var(--bg-2); transition: background 0.5s; min-height: 380px; }
.pm__media .spool { width: 82%; animation: spin 30s linear infinite; }
.pm__info { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.pm__info h3 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; }
.pm__price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.pm__price small { font-family: var(--font); font-size: 0.9rem; font-weight: 400; color: var(--muted); margin-left: 0.5rem; }
.pm__specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pm__specs div { padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.pm__specs small { display: block; color: var(--muted); font-size: 0.75rem; }
.pm__specs b { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; }
.pm__swatches .swatch { width: 32px; height: 32px; }
.pm__row { display: flex; gap: 0.6rem; align-items: center; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 48px; }
.qty button { width: 42px; height: 100%; font-size: 1.2rem; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.pm__row .btn { flex: 1; height: 48px; }
.stars { color: var(--brand); letter-spacing: 1px; }

/* ───────── Drawer ───────── */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.4s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.5s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.6rem; font-weight: 800; }
.drawer__ship { padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.drawer__ship .meter { height: 6px; margin-top: 0.6rem; }
.drawer__items { flex: 1; overflow-y: auto; padding: 0.6rem 1.4rem; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); animation: cardIn 0.4s var(--ease) both; }
.ci__thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; }
.ci__thumb .spool { width: 80%; }
.ci__name { font-weight: 600; font-size: 0.95rem; }
.ci__sub { font-size: 0.8rem; color: var(--muted); }
.ci__qty { display: inline-flex; align-items: center; gap: 0.2rem; margin-top: 0.4rem; border: 1px solid var(--line-2); border-radius: 999px; }
.ci__qty button { width: 28px; height: 28px; color: var(--muted); }
.ci__qty button:hover { color: var(--text); }
.ci__qty span { min-width: 18px; text-align: center; font-size: 0.85rem; font-weight: 600; }
.ci__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.ci__price { font-weight: 700; }
.ci__rm { font-size: 0.78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ci__rm:hover { color: #ff6b6b; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cart-empty .spool { width: 120px; margin: 0 auto 1rem; opacity: 0.5; }
.drawer__foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.9rem; background: var(--bg); }
.totals div { display: flex; justify-content: space-between; }
.totals b { font-family: var(--font-display); font-size: 1.5rem; }
.totals .muted { font-size: 0.85rem; }
.checkout-details summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; padding: 0.3rem 0; color: var(--muted); }
.checkout-details summary:hover { color: var(--text); }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0.6rem; }
.checkout-grid input {
  height: 46px; padding: 0 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); outline: 0; min-width: 0;
}
.checkout-grid .select { border-radius: 12px; width: 100%; min-width: 0; font-size: 0.9rem; }
.checkout-grid input:focus { border-color: var(--brand); }

/* ───────── Toast ───────── */
.toast {
  position: fixed; left: 50%; top: 84px; z-index: 120; transform: translate(-50%, -300px); opacity: 0;
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1.1rem 0.7rem 0.7rem; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 0.92rem;
  transition: transform 0.5s var(--ease), opacity 0.3s; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6); max-width: calc(100% - 32px);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.toast .spool { width: 32px; flex: none; }

/* ───────── Reveal ───────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .ship { grid-template-columns: 1fr 1fr; }
  .card-lite--map { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero__visual { max-width: 420px; order: -1; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--big { grid-column: span 2; grid-row: span 1; min-height: 300px; }
  .calc { grid-template-columns: 1fr; }
  .modal__body { grid-template-columns: minmax(0, 1fr); }
  .pm__media { min-height: 260px; padding: 2rem; }
  .pm__media .spool { width: 60%; }
}
@media (max-width: 640px) {
  .hero { padding-top: 1.5rem; gap: 1rem; }
  .hero__visual { max-width: 290px; }
  .bento { grid-template-columns: 1fr; }
  .tile--big, .tile--wide { grid-column: span 1; }
  .tile { min-height: 200px; }
  .ship { grid-template-columns: 1fr; }
  .card-lite--map { grid-column: span 1; }
  .search { min-width: 0; flex: 1 1 100%; }
  .toolbar { width: 100%; }
  .toolbar .select { flex: 1 1 100%; }
  .calc__result { grid-template-columns: 1fr 1fr 1fr; }
  .calc__result strong { font-size: 1.1rem; }
  .calc__panel { padding: 1.1rem; }
  .hero__stats dt { font-size: 1.35rem; }
  .hero__chip { font-size: 0.75rem; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { right: 0; }
  .pm__info { padding: 1.6rem 1.3rem; }
  .pm__info h3 { font-size: 1.9rem; }
  .pm__row { flex-wrap: wrap; }
  .pm__row .btn { min-width: 0; }
  .checkout-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__body { padding: 0.8rem; gap: 0.55rem; }
  .card__name { font-size: 1.02rem; }
  .card__price { font-size: 1.02rem; }
  .card__top { flex-direction: column; gap: 0.1rem; }
  .card__meta { display: none; }
  .swatch { width: 20px; height: 20px; }
  .card__view { display: none; }
  .card__add { height: 40px; font-size: 0.85rem; }
  .card__badge, .card__mat { top: 10px; font-size: 0.65rem; }
  .card__badge { left: 10px; } .card__mat { right: 10px; }
  .currency__btn { padding: 0.3em 0.65em; }
}
@media (max-width: 340px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────── Impresora animada ───────── */
.printer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.printer__stage {
  position: relative; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(700px circle at 45% 85%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: clamp(0.5rem, 2vw, 1.5rem);
}
.printer__stage svg { width: 100%; height: auto; display: block; }
.printer__panel {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border-radius: calc(var(--radius) + 6px);
  background: var(--surface); border: 1px solid var(--line);
}
.printer__status { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; }
.printer__led { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.printer__led.is-heat { background: #ff9a3d; box-shadow: 0 0 12px #ff9a3d; animation: pulse 1s infinite; }
.printer__led.is-on { background: var(--brand); box-shadow: 0 0 12px var(--brand); animation: pulse 1.6s infinite; }
.printer__led.is-done { background: var(--whats); box-shadow: 0 0 12px var(--whats); }
.printer__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.printer__stats div { padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.printer__stats .span2 { grid-column: span 2; }
.printer__stats small, .printer__filament small { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); }
.printer__stats b { font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.printer__filament { display: flex; flex-direction: column; gap: 0.5rem; }
.printer__filament b { font-size: 0.95rem; }
.printer__controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.printer__controls .btn { flex: 1; padding: 0.75em 1em; font-size: 0.88rem; }
.printer__controls .btn--primary { flex-basis: 100%; }
.printer-link { display: inline-flex; align-items: center; gap: 0.4em; color: var(--brand); font-weight: 600; }
.printer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Página de impresión */
.print-page { min-height: 100dvh; display: flex; flex-direction: column; }
.print-page main { flex: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 3rem; }
.print-page h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.05em; margin-bottom: 0.6rem; }
.print-page .lead { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }
.print-page .printer { grid-template-columns: minmax(0, 1fr) 320px; }

@media (max-width: 960px) {
  .printer, .print-page .printer { grid-template-columns: minmax(0, 1fr); }
  .printer__stats { grid-template-columns: repeat(4, 1fr); }
  .printer__stats .span2 { grid-column: span 4; }
  .printer__controls .btn--primary { flex-basis: auto; }
}
@media (max-width: 640px) {
  .printer__stats { grid-template-columns: 1fr 1fr; }
  .printer__stats .span2 { grid-column: span 2; }
  .printer__panel { padding: 1.1rem; }
}

/* ───────── Crea3D: beneficios, promo, cómo comprar ───────── */
.perks {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.perk {
  display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.perk__ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; font-size: 1.3rem; background: rgba(var(--brand-rgb), 0.12); border: 1px solid rgba(var(--brand-rgb), 0.25); }
.perk b { display: block; font-size: 0.95rem; }
.perk small { color: var(--muted); font-size: 0.82rem; }
.section__sub { max-width: 34rem; margin: 1rem 0 0; }
.promo {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm); font-size: 0.95rem;
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.16), rgba(var(--brand-rgb), 0.12));
  border: 1px solid rgba(255, 122, 26, 0.3);
}
.promo b { color: var(--orange); }
.card__meta { align-items: center; }
.card__brand { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--brand); }
.card__color { display: inline-flex; align-items: center; gap: 0.4rem; }
.card__color i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ring); }
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: none; }
.howto li {
  position: relative; padding: 1.6rem 1.4rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.5rem; overflow: hidden;
}
.howto li::after {
  content: ""; position: absolute; top: 2.55rem; left: calc(1.4rem + 52px); right: -14px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.howto li:last-child::after { display: none; }
.howto__n {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 0.6rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand), #3b5bdb); box-shadow: 0 8px 24px -8px rgba(var(--brand-rgb), 0.7);
}
.howto b { font-size: 1.05rem; }
.howto p { margin: 0; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 1080px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: repeat(2, 1fr); }
  .howto li::after { display: none; }
}
@media (max-width: 640px) {
  .perks, .howto { grid-template-columns: 1fr; }
  .logo__text small { display: none; }
  .logo__img { width: 34px; height: 34px; }
  .logo { font-size: 1.1rem; }
}


/* ───────── Repuestos: vista explotada ───────── */
.section__aside { max-width: 24rem; margin: 0; }
.xp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.xp__stage {
  position: relative; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(700px circle at 50% 40%, rgba(var(--brand-rgb), 0.1), transparent 65%),
    var(--surface);
}
.xp__stage svg { width: 100%; height: auto; display: block; }
.xp__part { cursor: pointer; outline: none; transition: opacity 0.3s, filter 0.3s; }
.xp.has-sel .xp__part:not(.is-sel) { opacity: 0.35; }
.xp__part.is-sel { filter: drop-shadow(0 0 10px rgba(var(--brand-rgb), 0.9)); }
.xp__part:focus-visible { filter: drop-shadow(0 0 6px var(--orange)); }
.xp__label text { font-family: var(--font); font-size: 13px; font-weight: 500; fill: var(--muted); transition: fill 0.2s; pointer-events: none; }
.xp__label.is-sel text { fill: var(--text); font-weight: 600; }
.xp__spin { animation: spin 1.4s linear infinite; }
.xp__spin--fast { animation-duration: 0.9s; }
.xp__controls {
  position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.xp__controls .btn { padding: 0.65em 1.2em; font-size: 0.88rem; min-width: 112px; }
.xp__controls input { flex: 1; }
.xp__panel {
  display: flex; flex-direction: column; gap: 0.9rem; padding: 1.4rem; border-radius: calc(var(--radius) + 6px);
  background: var(--surface); border: 1px solid var(--line);
}
.xp__panel h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.xp__panel p { margin: 0; }
.xp__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.xp__list .chip { padding: 0.4em 0.85em; font-size: 0.8rem; }

@media (max-width: 960px) {
  .xp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .xp__label { display: none; }
  .xp__controls { position: static; padding: 0 12px 12px; }
  .xp__controls .btn { min-width: 96px; }
}

/* ───────── Páginas secundarias (Repuestos) ───────── */
.sub-page main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sub-hero { padding: clamp(2rem, 5vw, 4rem) 0 2rem; }
.sub-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 800; letter-spacing: -0.05em; margin-bottom: 1rem; }
.sub-hero .lead { color: var(--muted); max-width: 42rem; margin: 0 0 2rem; font-size: 1.05rem; }
.sub-section { padding-bottom: clamp(3rem, 7vw, 6rem); }
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(var(--brand-rgb), 0.16); }
.printer-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }
.printer-pick__label { font-weight: 600; font-size: 0.95rem; }
.printer-pick .chips { margin: 0; }

.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.part {
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.3s;
}
.part:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb), 0.5); }
.part__media {
  height: 190px; display: block; padding: 1.2rem;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(circle at 50% 50%, rgba(var(--brand-rgb), 0.16), transparent 65%), var(--bg-2);
}
.part__media svg { display: block; width: 100%; height: 100%; overflow: visible; transition: transform 0.8s var(--ease); }
.part:hover .part__media svg { transform: scale(1.08) rotate(-3deg); }
.part__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.part__body h3 { font-size: 1.2rem; }
.part__body p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.part__actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.6rem; }
.part__actions .btn { flex: 1; padding: 0.7em 0.9em; font-size: 0.85rem; }
.footer--slim { padding-top: 0; }

/* Banner de repuestos en la página principal */
.parts-teaser {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: calc(var(--radius) + 6px); border: 1px solid rgba(var(--brand-rgb), 0.35);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(600px circle at 100% 50%, rgba(var(--brand-rgb), 0.22), transparent 60%), var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.parts-teaser:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb), 0.7); }
.parts-teaser h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.parts-teaser p { color: var(--muted); margin: 0.8rem 0 0; max-width: 34rem; }
.parts-teaser__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.1rem; }
.parts-teaser__tags span { padding: 0.35em 0.8em; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8rem; color: var(--muted); }
.parts-teaser__go {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--brand); color: var(--on-brand); transition: transform 0.4s var(--ease);
}
.parts-teaser:hover .parts-teaser__go { transform: rotate(-45deg); }

@media (max-width: 640px) {
  .parts-teaser { grid-template-columns: 1fr; }
  .parts-teaser__go { width: 56px; height: 56px; }
  .part__actions { flex-direction: column; }
}


/* ============================================================
   Crea3D_AG — piezas que se suman al diseño base
   (catálogo por colores, página de producto, reseñas, galería,
   cuenta, combos, descuentos, destacados)
   ============================================================ */
.btn--sm { padding: 0.6em 1.1em; font-size: 0.85rem; }
.section--tight { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ───────── Navegación extra ───────── */
.nav__burger { display: none; }
.nav__actions .icon-btn.is-on { background: var(--brand); border-color: transparent; color: #fff; }
.mobile-menu { display: none; flex-direction: column; padding: 0.4rem var(--gutter) 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 49; }
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu .mobile-menu__wa { margin-top: 0.8rem; border: 0; text-align: center; border-radius: 999px; background: var(--whats); color: #04210f; font-weight: 600; }
@media (max-width: 1080px) { .nav__burger { display: grid; } }
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }

/* ───────── Catálogo ───────── */
.results { color: var(--muted); font-size: 0.85rem; margin: -0.6rem 0 1rem; min-height: 1.2em; }
.chips--brands { margin-top: -0.9rem; align-items: center; }
.chips__label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-right: 0.3rem; }
.chip--sm { padding: 0.4em 0.9em; font-size: 0.82rem; }
.chip--soon { opacity: 0.7; border-style: dashed; }
.chip--soon .chip__count { color: var(--orange); opacity: 1; }
.soon { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.soon__ico { font-size: 2.8rem; }
.soon h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.soon p { max-width: 28rem; margin: 0 0 0.8rem; }

.card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media:has(.card__photo) { background: #fff; }
.card__emoji { font-size: 4rem; line-height: 1; }
.card__emoji--xl { font-size: 8rem; }
.card__badge--static { position: static; display: inline-block; }
.card__stock { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 0.3em 0.75em; border-radius: 999px; background: rgba(255, 77, 77, 0.92); color: #fff; font-size: 0.72rem; font-weight: 700; }
.card__stock--out { background: rgba(60, 60, 68, 0.92); }
.card.is-sold .card__media .spool, .card.is-sold .card__photo { opacity: 0.45; }
.card__rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); margin-top: -0.3rem; }
.card__add--notify { background: var(--whats); color: #04210f; text-decoration: none; }
.card__add--notify:hover { background: var(--whats); color: #04210f; filter: brightness(1.08); }
.card__meta { flex-wrap: wrap; gap: 0.3rem 0.6rem; }
.rstars {
  --pct: 0%;
  display: inline-block; letter-spacing: 2px;
  background: linear-gradient(90deg, #ffb23d var(--pct), var(--star-off) var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* ───────── Destacados (diapositivas) ───────── */
.deck {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background:
    radial-gradient(700px circle at 100% 0%, rgba(var(--brand-rgb), 0.16), transparent 60%),
    radial-gradient(600px circle at 0% 100%, rgba(255, 122, 26, 0.1), transparent 60%),
    var(--surface);
}
.deck__track { display: flex; transition: transform 0.6s var(--ease); will-change: transform; }
.deck__slide {
  flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(2.6rem, 6vw, 5rem) clamp(2.8rem, 5vw, 3.6rem);
}
.deck__slide--text { grid-template-columns: 1fr; text-align: center; }
.deck__slide--text .deck__text p, .deck__slide--text .deck__price, .deck__slide--text .deck__cta { margin-left: auto; margin-right: auto; justify-content: center; }
.deck__text .eyebrow { margin-bottom: 0.4rem; }
.deck__text h3 { font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin: 0.3rem 0 0.9rem; }
.deck__text p { max-width: 34rem; margin: 0; }
.deck__price { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin: 1.2rem 0 1.5rem; }
.deck__price b { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; }
.deck__price small { color: var(--muted); }
.deck__cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.deck__price + .deck__cta { margin-top: 0; }
.deck__media {
  position: relative; justify-self: center; width: 100%; max-width: 420px; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: var(--radius); cursor: pointer;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 32%, transparent), transparent 65%);
}
.deck__media .spool { width: 84%; animation: spin 40s linear infinite; }
.deck__media .card__badge { z-index: 2; }
.deck__media--photo { background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6); }
.deck__media--photo img { width: 100%; height: 100%; object-fit: contain; }
.deck__media--custom { aspect-ratio: 1.5; max-width: 520px; cursor: default; }
.deck__media--custom img { object-fit: cover; }
.deck__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 10, 12, 0.7); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(8px);
}
.deck__arrow:hover { background: var(--brand); }
.deck__arrow--prev { left: 12px; }
.deck__arrow--next { right: 12px; }
.deck__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.deck__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); padding: 0; transition: all 0.3s var(--ease); }
.deck__dot.is-active { background: var(--brand); width: 26px; border-radius: 6px; }

/* ───────── Combos ───────── */
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.combo { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.combo__media { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 1.3rem; background: var(--bg-2); }
.combo__thumb {
  width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; font-size: 1.8rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line);
}
.combo__thumb img { width: 100%; height: 100%; object-fit: cover; }
.combo__thumb .spool { width: 82%; }
.combo__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.combo__body h3 { font-size: 1.35rem; }
.combo__items { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--muted); }
.combo__price { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.combo__price b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.combo__price s { color: var(--muted); }
.combo__price em { font-style: normal; color: #3ddc84; font-size: 0.85rem; font-weight: 600; }
.combo__body .btn { margin-top: auto; }

/* ───────── Tiles extra ───────── */
.tile__emoji { font-size: 7rem; line-height: 1; filter: grayscale(0.2); }
.tile--wide .tile__spool:has(.tile__emoji) { right: 4%; bottom: auto; top: 50%; width: auto; transform: translateY(-50%); opacity: 0.55; }
.tile:hover .tile__spool .tile__emoji { transform: rotate(-12deg) scale(1.06); }
.tile__emoji { display: inline-block; transition: transform 0.6s var(--ease); }

/* ───────── Página de producto ───────── */
.product-page { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gutter) 8rem; }
.pp__crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.pp__crumbs a { cursor: pointer; color: var(--muted); }
.pp__crumbs a:hover { color: var(--brand); }
.pp__crumbs b { color: var(--text); font-weight: 600; }
.pp__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.pp__gallery { position: sticky; top: 100px; min-width: 0; }
.pp__info { min-width: 0; }
.pp__stage {
  position: relative; aspect-ratio: 1; border-radius: calc(var(--radius) + 6px); overflow: hidden; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); touch-action: pan-y;
}
.pp__stage img { width: 100%; height: 100%; object-fit: contain; }
.pp__stage--art { background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 34%, transparent), transparent 66%), var(--bg-2); }
.pp__stage--art .spool { width: 78%; animation: spin 40s linear infinite; }
.pp__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 10, 12, 0.72); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center;
}
.pp__arrow:hover { background: var(--brand); }
.pp__arrow--prev { left: 12px; }
.pp__arrow--next { right: 12px; }
.pp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pp__thumb { flex: 0 0 auto; width: 74px; height: 74px; padding: 0; border-radius: 14px; border: 2px solid var(--line); background: #fff; overflow: hidden; opacity: 0.75; transition: all 0.2s; }
.pp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp__thumb.is-active { border-color: var(--brand); opacity: 1; }
.pp__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin: 0.2rem 0 0.8rem; }
.pp__rating { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; cursor: pointer; margin-bottom: 0.5rem; }
.pp__rating--empty { color: var(--muted); }
.pp__price { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.pp__price b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.pp__price s { color: var(--muted); }
.pp__price small { color: var(--muted); font-size: 0.9rem; }
.pp__share { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.pp__colors { margin: 0 0 1.2rem; }
.pp__swatches .swatch { width: 36px; height: 36px; }
.swatch.is-sold { opacity: 0.45; }
.swatch.is-sold::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(to top right, transparent 46%, var(--text) 47%, var(--text) 53%, transparent 54%); }
.pp__stock { font-size: 0.92rem; margin: 0 0 1.2rem; }
.pp__stock--ok { color: #3ddc84; }
.pp__stock--low { color: #ffb23d; }
.pp__stock--out { color: #ff6b6b; }
.pp__info .pm__specs { margin-bottom: 0.4rem; }
.pp__block { border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 1.3rem; }
.pp__block h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.pp__block ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; color: var(--muted); font-size: 0.95rem; }

.bulk { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); margin: 0 0 1.4rem; }
.bulk__head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.8rem 1.1rem; background: linear-gradient(90deg, rgba(255, 122, 26, 0.16), rgba(var(--brand-rgb), 0.12)); }
.bulk__table { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 0.9rem 0.6rem 0.4rem; }
.bulk__cell { text-align: center; padding: 0.6rem 0.2rem 0.7rem; border-radius: 12px; }
.bulk__cell small { display: block; font-weight: 600; font-size: 0.76rem; color: var(--muted); margin-bottom: 0.45rem; }
.bulk__cell b { display: inline-block; padding: 0.2em 0.7em; border-radius: 999px; background: rgba(var(--brand-rgb), 0.14); font-family: var(--font-display); font-size: 1.05rem; }
.bulk__cell span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; }
.bulk__cell.is-on { background: rgba(61, 220, 132, 0.12); }
.bulk__cell.is-on b { background: #3ddc84; color: #04210f; }
.bulk__foot { padding: 0 1.1rem 0.8rem; margin: 0; }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bar-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); }
.buybar__inner { max-width: var(--max); margin: 0 auto; padding: 0.8rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.buybar__price b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; display: block; line-height: 1.1; }
.buybar__price small { color: var(--muted); font-size: 0.78rem; }
.buybar__actions { display: flex; align-items: center; gap: 0.7rem; }
.buybar__actions .btn { min-width: 200px; }

/* ───────── Reseñas ───────── */
.rv-item { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.rv-item p { margin: 0.4rem 0 0; color: var(--text); }
.rv-form-wrap { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.rv-form { display: grid; gap: 0.7rem; }
.rv-form h4 { margin: 0; font-size: 1.05rem; }
.rv-stars { display: flex; gap: 4px; }
.rv-star { font-size: 1.8rem; line-height: 1; padding: 0 2px; color: var(--star-off); transition: color 0.15s, transform 0.15s; }
.rv-star:hover { transform: scale(1.15); }
.rv-star.on { color: #ffb23d; }
.rv-form input, .rv-form textarea, .modal__pad input, .modal__pad textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); outline: 0; color: var(--text); font: inherit; font-size: 0.95rem;
}
.rv-form input:focus, .rv-form textarea:focus, .modal__pad input:focus, .modal__pad textarea:focus { border-color: var(--brand); }
.rv-form textarea { resize: vertical; }
.form-error { color: #ff6b6b; font-size: 0.88rem; margin: 0; }
.thanks { color: #3ddc84; font-weight: 500; margin: 0.6rem 0 0; }

/* ───────── Comunidad ───────── */
.community { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.community__empty { grid-column: 1 / -1; }
.shot { position: relative; aspect-ratio: 1; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 0.9rem 0.8rem; text-align: left; font-size: 0.85rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); }
.shot__cap small { display: block; opacity: 0.8; font-size: 0.74rem; }

/* ───────── Ventanas (cuenta, subir foto, foto grande) ───────── */
.modal--small { width: min(460px, calc(100vw - 32px)); }
.modal--photo { width: min(640px, calc(100vw - 32px)); }
.modal__pad { padding: 2.2rem 1.7rem 1.7rem; display: flex; flex-direction: column; gap: 0.9rem; }
.modal__pad h3 { font-size: 1.8rem; font-weight: 800; }
.modal__pad form { display: flex; flex-direction: column; gap: 0.7rem; }
.modal__pad .select { width: 100%; border-radius: 12px; }
.divider { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.seg__btn { flex: 1; padding: 0.55em 0.8em; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.seg__btn.is-active { background: var(--text); color: var(--bg); }
.acc-user { display: flex; align-items: center; gap: 0.8rem; }
.acc-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.acc-h { margin: 0.4rem 0 0; font-family: var(--font-display); font-size: 1.2rem; }
.order-item { padding: 0.8rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.2rem; }
.order-item__top { display: flex; justify-content: space-between; }
.upload-preview { aspect-ratio: 1.4; border: 2px dashed var(--line-2); border-radius: 14px; display: grid; place-items: center; text-align: center; padding: 10px; color: var(--muted); font-size: 0.9rem; cursor: pointer; overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.lightbox__img { width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.lightbox__info { padding: 1rem 1.3rem 1.4rem; display: grid; gap: 0.6rem; justify-items: start; }
.lightbox__info p { margin: 0; }

/* ───────── Carrito extra ───────── */
.drawer__ship[hidden] { display: none; }
.ci__thumb { overflow: hidden; }
.ci__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci__emoji { font-size: 1.7rem; }
.ci__price s { color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.hl-row { color: #3ddc84; }
.checkout-grid__full { grid-column: 1 / -1; }
.checkout-grid select { width: 100%; min-width: 0; height: 46px; }

/* ───────── Responsive de las piezas nuevas ───────── */
@media (max-width: 900px) {
  .pp__grid { grid-template-columns: minmax(0, 1fr); }
  .pp__gallery { position: static; }
  .deck__slide { grid-template-columns: 1fr; gap: 1rem; padding: 1.4rem 1.2rem 3rem; }
  .deck__media { order: -1; max-width: 300px; }
  .deck__arrow { display: none; }
}
@media (max-width: 640px) {
  .buybar__actions .btn { min-width: 0; padding: 0.85em 1.1em; }
  .buybar__actions .qty { display: none; }
  .pp__price b { font-size: 2.1rem; }
  .combo-grid { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav { gap: 0.5rem; }
  .logo { flex: 1 1 auto; overflow: hidden; }
  .logo__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav__actions { gap: 0.4rem; flex: none; }
  #openAccount { display: none; }
  .currency__btn { padding: 0.25em 0.6em; }
}

.nav__soon { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); border: 1px solid rgba(255, 122, 26, 0.5); border-radius: 999px; padding: 0.1em 0.5em; margin-left: 0.3em; vertical-align: middle; }
.soon--page { max-width: 640px; margin: 1rem auto 2rem; padding: clamp(2.5rem, 6vw, 4rem) 1.4rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: radial-gradient(500px circle at 50% 120%, rgba(var(--brand-rgb), 0.16), transparent 60%), var(--surface); }
.soon--page .btn { margin-top: 0.2rem; }
.checkout-grid input.is-invalid, .checkout-grid select.is-invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18); }

/* ───────── Mapa de Venezuela ───────── */
.vemap svg { width: 100%; max-width: 460px; max-height: 340px; margin: 0 auto; }
.vemap .land { fill: var(--tint-2); stroke: var(--map-stroke); stroke-width: 1.1; stroke-linejoin: round; }
.vemap .city-label { fill: var(--muted); font-family: var(--font); font-size: 8.5px; }
.vemap .hub-label { fill: var(--text); font-family: var(--font); font-size: 10px; font-weight: 600; }

/* ───────── Interruptor claro / oscuro ───────── */
.theme-switch { position: relative; width: 58px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--tint-hover); padding: 0; flex: none; transition: background 0.3s; }
.theme-switch:hover { border-color: var(--text); }
.theme-switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.theme-switch[aria-checked="true"] .theme-switch__knob { transform: translateX(26px); }
.theme-switch svg { width: 14px; height: 14px; }
.theme-switch .ico-sun { display: none; }
.theme-switch[aria-checked="true"] .ico-sun { display: block; }
.theme-switch[aria-checked="true"] .ico-moon { display: none; }
.mobile-menu__theme { display: none; align-items: center; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
@media (max-width: 560px) {
  .nav__actions > .theme-switch { display: none; }
  .mobile-menu__theme { display: flex; }
}
@media (min-width: 1081px) { .mobile-menu__theme { display: none !important; } }
/* El dibujo de la impresora y el cabezal siempre se ven sobre fondo oscuro */
.printer__stage { background: radial-gradient(700px circle at 45% 85%, rgba(91, 124, 255, 0.12), transparent 60%), linear-gradient(180deg, #16161a, #111114); }

:root[data-theme="light"] .pp__stock--ok, :root[data-theme="light"] .thanks, :root[data-theme="light"] .combo__price em, :root[data-theme="light"] .hl-row { color: #167a45; }
:root[data-theme="light"] .pp__stock--low { color: #b36b00; }

/* al saltar a una sección, que no quede tapada por la barra de arriba */
.section, .perks, #tienda, #faq, #comunidad, #calculadora, #materiales, #como-comprar, #envios { scroll-margin-top: 84px; }
