:root {
  --bg: #0c0d0e;
  --bg-2: #141618;
  --line: #26292c;
  --text: #f2efe9;
  --muted: #9a9790;
  --accent: #9df709;   /* verde lima del logo ARC-ON 3D */
  --accent-2: #ff3b30; /* rojo navidad */
  --radius: 18px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.02; margin: 0; letter-spacing: -0.03em; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); margin: 0 0 1rem; text-transform: uppercase; }
.section-title { font-size: clamp(2.4rem, 6vw, 5.2rem); font-weight: 700; }

/* film grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  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'/%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; gap: .5rem;
  background: var(--accent); color: #07140a; font-weight: 700; text-decoration: none;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1px solid var(--accent);
  transition: transform .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.btn-big { font-size: 1.15rem; padding: 1.2rem 2.2rem; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(12,13,14,.85), transparent);
}
.nav nav { display: flex; gap: clamp(.8rem, 2.5vw, 2rem); align-items: center; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav nav a:not(.btn):hover { color: var(--text); }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.logo-img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 16px rgba(157,247,9,.35); }
.cta-logo { width: 140px; height: 140px; margin: 0 auto 1.6rem; border-radius: 50%; box-shadow: 0 0 60px rgba(157,247,9,.3); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center start; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) brightness(.55); transform: scale(1.1); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(12,13,14,.55) 45%, var(--bg) 92%); }
.hero-content { position: relative; z-index: 2; padding: 0 clamp(1.2rem, 6vw, 6rem); max-width: 1100px; }
.hero-title { font-size: clamp(3rem, 10vw, 8.8rem); font-weight: 700; margin-bottom: 1.5rem; }
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-title .ch { display: inline-block; will-change: transform; }
.hero-sub { max-width: 520px; color: #d6d2ca; font-size: 1.15rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .6rem; z-index: 2; }
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.layer-counter { position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 2rem; color: var(--muted); z-index: 2; }
.layer-counter b { color: var(--accent); font-weight: 600; }

/* ASSEMBLE */
.assemble { position: relative; }
.assemble-pin {
  height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: clamp(1.5rem, 5vw, 6rem); padding: 5rem clamp(1.2rem, 6vw, 6rem) 2rem;
}
.assemble-stage { position: relative; height: min(78svh, 760px); aspect-ratio: 3 / 4; justify-self: center; }
.tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(8, 1fr); }
.tile { background-repeat: no-repeat; will-change: transform, opacity; border-radius: 2px; }
.nozzle {
  position: absolute; left: -6%; right: -6%; height: 3px; top: 100%;
  background: var(--accent); box-shadow: 0 0 18px 4px rgba(157,247,9,.7), 0 0 60px 10px rgba(157,247,9,.25);
  opacity: 0; pointer-events: none;
}
.assemble-text { max-width: 460px; }
.step-index { color: var(--accent); margin-bottom: 1.2rem; }
.steps { position: relative; min-height: 15rem; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .5s; }
.step.is-active { opacity: 1; transform: none; }
.step h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 1rem; }
.step p { color: var(--muted); font-size: 1.1rem; }
.progress { height: 2px; background: var(--line); margin-top: 2rem; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
@media (max-width: 860px) {
  .assemble-pin { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 1.2rem; padding-top: 4.5rem; }
  .assemble-stage { height: 50svh; }
  .steps { min-height: 9rem; }
  .step h2 { font-size: 1.9rem; margin-bottom: .4rem; }
  .step p { font-size: 1rem; }
  .assemble-text { justify-self: center; text-align: center; width: 100%; }
  .progress { margin-top: 1rem; }
}

/* PROCESS (horizontal) */
.process { overflow: hidden; }
.process-track { display: flex; gap: 2rem; align-items: center; height: 100svh; padding: 0 clamp(1.2rem, 6vw, 6rem); width: max-content; }
.process-intro { width: min(80vw, 420px); flex-shrink: 0; }
.panel { width: min(78vw, 360px); flex-shrink: 0; position: relative; }
.panel video { width: 100%; aspect-ratio: 9 / 16; max-height: 62svh; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.panel h3 { font-size: 1.6rem; margin: 1rem 0 .3rem; }
.panel p { color: var(--muted); margin: 0; font-size: 1rem; }
.panel-num { position: absolute; top: .9rem; left: .9rem; z-index: 2; background: rgba(12,13,14,.7); padding: .3rem .6rem; border-radius: 999px; color: var(--accent); backdrop-filter: blur(6px); }

/* CATALOG */
.catalog, .videos { padding: clamp(5rem, 12vw, 10rem) clamp(1.2rem, 6vw, 6rem); }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head .muted { margin-top: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.6rem; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: rgba(157,247,9,.5); transform: translateY(-4px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1a1c1f; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .35rem; }
.card-tag { color: var(--accent); }
.card-body h3 { font-size: 1.45rem; }
.card-price { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.card-price .arrow { color: var(--text); transition: transform .3s; }
.card:hover .arrow { transform: translateX(4px); }

/* print reveal effect (layer by layer) */
.print-reveal { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.print-reveal .scan {
  position: absolute; left: 0; right: 0; height: 2px; bottom: 0; z-index: 3; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 14px 3px rgba(157,247,9,.75); opacity: 0;
}

/* PIECES */
.pieces { padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 6vw, 6rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pieces-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.pieces-text .muted { margin-top: 1.2rem; max-width: 440px; }
.pieces-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pieces-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pieces-media .offset { margin-top: 4rem; }
@media (max-width: 860px) { .pieces-inner { grid-template-columns: 1fr; } }

/* VIDEOS */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); gap: 1rem; }
.vcard { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.vcard video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.vcard span { position: absolute; left: .8rem; bottom: .8rem; background: rgba(12,13,14,.7); padding: .3rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); }
.vcard:nth-child(even) { transform: translateY(2.5rem); }
@media (max-width: 640px) { .vcard:nth-child(even) { transform: none; } }

/* CTA */
.cta { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: 6rem 1.2rem; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}
.cta-title { font-size: clamp(3rem, 11vw, 9rem); font-weight: 700; margin-bottom: 1.2rem; }
.cta-title .ch { display: inline-block; }
.cta-inner > p { color: var(--muted); max-width: 520px; margin: 0 auto 2.2rem; font-size: 1.15rem; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem clamp(1.2rem, 6vw, 6rem); color: var(--muted); border-top: 1px solid var(--line); }

/* LIGHTBOX */
.lightbox { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text); padding: 0; width: min(1000px, 94vw); max-height: 92svh; }
.lightbox::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.lb-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.lb-media { background: #000; }
.lb-media img { width: 100%; height: 100%; max-height: 92svh; object-fit: contain; }
.lb-info { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.lb-info h3 { font-size: 2rem; }
.lb-tag { color: var(--accent); margin: 0; }
.lb-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.lb-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.lb-thumbs button.on { border-color: var(--accent); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-info .btn { margin-top: auto; align-self: flex-start; }
.lb-close { position: absolute; top: .6rem; right: .8rem; z-index: 2; background: rgba(12,13,14,.75); color: var(--text); border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
@media (max-width: 760px) {
  .lb-body { grid-template-columns: 1fr; overflow-y: auto; max-height: 92svh; }
  .lb-media img { max-height: 55svh; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; }
  .step { transition: none; }
}
