/* =============================================================
   LL Print 3D — estilos
   ============================================================= */
:root {
  --bg: #040915;
  --bg-2: #07122a;
  --surface: rgba(14, 30, 64, .55);
  --surface-solid: #0b1a3a;
  --border: rgba(96, 150, 255, .16);
  --border-strong: rgba(96, 170, 255, .38);
  --text: #e7eeff;
  --muted: #8ea3cc;
  --blue: #2f7bff;
  --blue-2: #1a4fd6;
  --cyan: #3fd4ff;
  --indigo: #6a5cff;
  --grad: linear-gradient(100deg, #3fd4ff 0%, #2f7bff 50%, #6a5cff 100%);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
::selection { background: var(--blue); color: #fff; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- fondo ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(80, 140, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 140, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 700px; height: 700px; border-radius: 50%;
  left: 0; top: 0;
  background: radial-gradient(circle, rgba(47, 123, 255, .16), transparent 60%);
  transform: translate(-50%, -50%);
  transition: transform .6s var(--ease);
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--grad); z-index: 100;
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: rgba(6, 14, 34, .45);
  border: 1px solid transparent;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  transition: background .4s, border-color .4s, top .4s;
}
.nav.scrolled { background: rgba(6, 14, 34, .82); border-color: var(--border); top: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.15rem; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-weight: 700; letter-spacing: -.04em;
  box-shadow: 0 6px 24px rgba(47, 123, 255, .45);
}
.logo-text b { color: var(--cyan); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .92rem;
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(47, 123, 255, .14); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(47, 123, 255, .14); border: 1px solid var(--border);
  transition: background .25s, transform .25s;
}
.cart-btn:hover { background: rgba(47, 123, 255, .3); transform: scale(1.05); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--cyan); color: #04142e; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
  transform: scale(0); transition: transform .35s var(--ease);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 50% { transform: scale(1.45); } }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid var(--border); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--grad); background-size: 200% 100%; color: #fff; box-shadow: 0 10px 30px -8px rgba(47, 123, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(63, 212, 255, .6); background-position: 100% 0; }
.btn-ghost { border-color: var(--border-strong); background: rgba(47, 123, 255, .06); }
.btn-ghost:hover { background: rgba(47, 123, 255, .18); transform: translateY(-2px); }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(47, 123, 255, .08); display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.icon-btn:hover { background: rgba(47, 123, 255, .25); transform: rotate(90deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px max(24px, calc((100vw - 1180px) / 2)) 80px;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(4, 9, 21, .7) 40%, transparent 75%),
              linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
  margin: 0 0 18px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); }
.hero-title { font-size: clamp(2.8rem, 8vw, 5.8rem); font-weight: 700; margin-bottom: 24px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--display); font-size: 2rem; }
.hero-stats small { font-size: 1rem; color: var(--cyan); margin-left: 2px; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(47, 123, 255, .08), rgba(106, 92, 255, .08));
  transform: rotate(-1.5deg) scale(1.03);
}
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; white-space: nowrap; }
.marquee span:nth-of-type(odd) { -webkit-text-stroke: 1px var(--cyan); color: transparent; }
.marquee i { color: var(--blue); font-style: normal; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { padding: 120px max(24px, calc((100vw - 1180px) / 2)); position: relative; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2, .custom-info h2, .contact h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 18px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- reveal on scroll ---------- */
.reveal, .reveal-up, .reveal-left, .reveal-right, .card {
  opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal { transform: translateY(30px); }
.reveal-up { transform: translateY(70px) scale(.97); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.in { opacity: 1 !important; transform: none !important; }

/* ---------- catálogo ---------- */
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(14, 30, 64, .4); color: var(--muted); font-size: .9rem;
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 20px -6px var(--blue); }
.search {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--border); background: rgba(14, 30, 64, .4); color: var(--muted);
  min-width: 240px; transition: border-color .3s;
}
.search:focus-within { border-color: var(--cyan); }
.search input { background: none; border: 0; outline: 0; color: var(--text); width: 100%; font: inherit; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(50px) scale(.96);
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
}
.card.in { transition: opacity .9s var(--ease), transform .25s ease-out, border-color .3s, box-shadow .3s; }
.card:hover { border-color: var(--border-strong); box-shadow: 0 30px 60px -20px rgba(47, 123, 255, .45); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(63, 212, 255, .14), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card-media {
  aspect-ratio: 4 / 3.2; position: relative; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #16357a, #081636 70%);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img, .card:hover .ph-shape { transform: scale(1.08); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 3; flex-wrap: wrap; }
.badge {
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;
  background: rgba(4, 9, 21, .7); border: 1px solid var(--border-strong); backdrop-filter: blur(6px);
}
.badge.stock { color: #5ef0b0; border-color: rgba(94, 240, 176, .4); }
.badge.pedido { color: #ffc86b; border-color: rgba(255, 200, 107, .4); }
.badge.hot { background: var(--grad); border-color: transparent; color: #fff; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); }
.card-body h3 { font-size: 1.25rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.card-meta { display: flex; gap: 12px; font-size: .8rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.price.ask { font-size: 1.05rem; color: var(--cyan); }
.add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(47, 123, 255, .12); font-size: .88rem; font-weight: 600;
  transition: all .3s var(--ease);
}
.add-btn:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.add-btn.added { background: #1fae78; border-color: #1fae78; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty a { color: var(--cyan); text-decoration: underline; }
.grid .empty { grid-column: 1 / -1; }

/* placeholder cuando no hay foto */
.ph { position: absolute; inset: 0; display: grid; place-items: center; perspective: 600px; }
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(63, 212, 255, .08) 0 1px, transparent 1px 7px);
  animation: layers 6s linear infinite;
}
@keyframes layers { to { background-position: 0 -140px; } }
.ph-shape { width: 42%; aspect-ratio: 1; transition: transform .8s var(--ease); filter: drop-shadow(0 18px 30px rgba(47, 123, 255, .55)); }
.ph-shape svg { width: 100%; height: 100%; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(4deg); } }

/* ---------- proceso ---------- */
.steps { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 90px; }
.step-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.step-line span { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(0); }
.step {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.steps .step:nth-child(3), .steps .step:nth-child(5) { margin-top: 90px; }
.step-num {
  font-family: var(--display); font-size: 3.2rem; font-weight: 700; line-height: 1;
  -webkit-text-stroke: 1px var(--blue); color: transparent; display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- personalizado ---------- */
.custom-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.custom-info { position: sticky; top: 110px; }
.custom-info > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(63, 212, 255, .15); color: var(--cyan); font-size: .75rem; display: grid; place-items: center; font-weight: 700;
}
.cube-scene { width: 150px; height: 150px; perspective: 700px; margin: 50px 0 0 40px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube .f {
  position: absolute; inset: 0; border: 1px solid rgba(63, 212, 255, .6);
  background: linear-gradient(135deg, rgba(47, 123, 255, .22), rgba(106, 92, 255, .1)),
              repeating-linear-gradient(0deg, rgba(63, 212, 255, .18) 0 1px, transparent 1px 8px);
  box-shadow: inset 0 0 30px rgba(47, 123, 255, .3);
}
.f1 { transform: translateZ(75px); } .f2 { transform: rotateY(180deg) translateZ(75px); }
.f3 { transform: rotateY(90deg) translateZ(75px); } .f4 { transform: rotateY(-90deg) translateZ(75px); }
.f5 { transform: rotateX(90deg) translateZ(75px); } .f6 { transform: rotateX(-90deg) translateZ(75px); }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }

.custom-form {
  padding: 34px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(20, 44, 96, .6), rgba(8, 18, 42, .7));
  border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; gap: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .dims input {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  background: rgba(4, 9, 21, .55); border: 1px solid var(--border);
  color: var(--text); font: inherit; outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%233fd4ff' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--surface-solid); }
.field input::placeholder, .field textarea::placeholder, .dims input::placeholder { color: #5a6d96; }
.field input:focus, .field select:focus, .field textarea:focus, .dims input:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(63, 212, 255, .12); background: rgba(4, 9, 21, .8);
}
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 110px; }
.invalid { border-color: #ff6b8b !important; box-shadow: 0 0 0 4px rgba(255, 107, 139, .12) !important; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dims label { position: relative; }
.dims i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .75rem; color: var(--cyan); font-weight: 700; pointer-events: none; }
.dims input { padding-right: 28px; }

.dropzone {
  position: relative; display: block; min-height: 170px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed var(--border-strong); background: rgba(4, 9, 21, .4);
  transition: border-color .3s, background .3s; overflow: hidden;
}
.dropzone:hover, .dropzone.drag { border-color: var(--cyan); background: rgba(63, 212, 255, .06); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--muted); pointer-events: none; padding: 16px; }
.dz-empty svg { color: var(--cyan); margin-bottom: 4px; transition: transform .3s; }
.dropzone:hover .dz-empty svg { transform: translateY(-4px); }
.dz-empty b { color: var(--text); font-weight: 600; }
.dz-preview { position: relative; }
.dz-preview img { width: 100%; max-height: 280px; object-fit: contain; background: #030712; }
.dz-remove { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(4, 9, 21, .8); }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }
.form-note b { color: var(--cyan); font-weight: 600; }

/* ---------- contacto ---------- */
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 7vw, 80px) 24px; border-radius: 32px;
  background: linear-gradient(160deg, #0d2458, #07122a 70%);
  border: 1px solid var(--border-strong);
}
.contact-card > * { position: relative; }
.contact-card .eyebrow::before { display: none; }
.contact-card p:not(.eyebrow) { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.contact-glow {
  position: absolute !important; width: 520px; height: 520px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(63, 212, 255, .3), transparent 60%);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .5; transform: translateX(-50%) scale(1.2); } }
.phone {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display); font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 700;
  margin-bottom: 30px; transition: transform .3s var(--ease);
}
.phone svg { color: #25d366; flex-shrink: 0; }
.phone:hover { transform: scale(1.04); }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 36px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem;
}
.footer p { margin: 0; }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { to { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }

/* ---------- carrito ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(2, 5, 14, .6); backdrop-filter: blur(4px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .35s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 61;
  background: var(--bg-2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: grid; gap: 12px; align-content: start; }
.drawer-foot { padding: 22px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font-family: var(--display); font-size: 1.6rem; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.cart-item h4 { margin: 0; font-size: .98rem; font-family: var(--display); }
.cart-item .ci-price { color: var(--muted); font-size: .85rem; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: transparent; }
.qty button:hover { background: rgba(47, 123, 255, .2); }
.ci-remove { background: none; border: 0; color: #ff8aa3; font-size: .8rem; justify-self: end; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(2, 5, 14, .7); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  transform: translateY(40px) scale(.96); transition: transform .5s var(--ease);
}
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.modal-media { position: relative; min-height: 320px; background: radial-gradient(circle at 50% 40%, #16357a, #081636 70%); }
.modal-media > img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.thumbs .thumb { flex: 0 0 56px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #081636; opacity: .7; transition: opacity .2s, border-color .2s; }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb:hover, .thumbs .thumb.active { opacity: 1; border-color: var(--cyan); }
.modal-info { padding: 36px; display: grid; gap: 14px; align-content: center; }
.modal-info h3 { font-size: 2rem; }
.modal-info p { margin: 0; color: var(--muted); }
.specs { display: grid; gap: 8px; margin: 6px 0; }
.specs div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.specs span { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 120px); padding: 14px 22px; border-radius: 999px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); transition: transform .5s var(--ease); font-size: .92rem;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 76px; left: 16px; right: 16px;
    flex-direction: column; padding: 14px; border-radius: 22px;
    background: rgba(6, 14, 34, .96); border: 1px solid var(--border);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .35s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; }
  .burger { display: block; }
  .custom-wrap { grid-template-columns: 1fr; gap: 40px; }
  .custom-info { position: static; }
  .cube-scene { display: none; }
  .steps { grid-template-columns: 1fr; gap: 20px; padding-left: 28px; }
  .step-line { left: 0; }
  .steps .step:nth-child(3), .steps .step:nth-child(5) { margin-top: 0; }
  .reveal-left, .reveal-right { transform: translateY(40px); }
  .modal-card { grid-template-columns: 1fr; }
  .modal-media { min-height: 240px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 5%, rgba(4, 9, 21, .55) 60%, rgba(4, 9, 21, .3)); }
}
@media (max-width: 560px) {
  .section { padding-block: 84px; }
  .form-row { grid-template-columns: 1fr; }
  .custom-form { padding: 22px; }
  .search { min-width: 0; width: 100%; }
  .hero-stats { gap: 24px; }
  .hero-stats b { font-size: 1.6rem; }
  .modal-info { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
