/* LZR Lab — web pública · estilo "taller técnico" */

:root {
  --paper: #ECECE7; --ink: #141414; --sub: #2B2C30; --sheet: #F7F7F3; --hov: #DFDFD8; --ph: #76787D;
  --g1: rgba(20,20,20,.07); --g2: rgba(20,20,20,.035);
  --foot: #141414; --footline: #3A3B40;
  --cl: #161616; --cr: #26272C; --ct: #3A3D45; --wm: #3A3D45;
  --grad: linear-gradient(90deg,#0EA5FF,#8B5CF6 45%,#F43F9B 62%,#FFB000);
  --accent: #8B5CF6;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #121212; --ink: #ECECE7; --sub: #B9BBC0; --sheet: #1A1A1B; --hov: #232325; --ph: #8C8E94;
  --g1: rgba(236,236,231,.06); --g2: rgba(236,236,231,.025);
  --foot: #070707; --footline: #2E2F33;
  --cl: #3A3B42; --cr: #56585F; --ct: #8A8D96; --wm: #A3A6AE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--g1) 1px, transparent 1px), linear-gradient(90deg, var(--g1) 1px, transparent 1px),
    linear-gradient(var(--g2) 1px, transparent 1px), linear-gradient(90deg, var(--g2) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.cd { font-stretch: 62%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .86; }
.sub { color: var(--sub); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.layer { height: 8px; background: var(--grad); }
.skip { position: absolute; left: 16px; top: -60px; padding: 12px 16px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Logo */
.fl { fill: var(--cl); } .fr { fill: var(--cr); } .ft { fill: var(--ct); }

/* Navegación */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand b { font-weight: 900; font-size: 24px; letter-spacing: -.02em; }
.brand b span { font-weight: 600; color: var(--wm); }
.nav a.lk { text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 2px;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat; transition: background-size .3s; }
.nav a.lk:hover, .nav a.lk[aria-current="page"] { background-size: 100% 2px; }
.mode { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.mode:hover { background: var(--hov); }
.mode .i-sun { display: none; }
:root[data-theme="dark"] .mode .i-sun { display: block; }
:root[data-theme="dark"] .mode .i-moon { display: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px;
  font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); cursor: pointer;
  transition: transform .15s, box-shadow .15s; }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--c, var(--accent)); }
.btn-dark:hover { color: var(--paper); transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--c, var(--accent)); }
.btn-dark:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--c, var(--accent)); }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: 72px; padding-bottom: 96px; }
.hero-text { flex: 1 1 600px; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(48px, 6.6vw, 112px); }
.pline { position: relative; display: block; }
.pline .ink { display: block; animation: printup 1.1s steps(11) both; }
.pline::after { content: ""; position: absolute; left: 0; right: 0; height: .07em; min-height: 5px; background: var(--grad); animation: nozzle 1.1s steps(11) both; }
.p2 .ink, .p2::after { animation-delay: 1.1s; }
.p3 .ink, .p3::after { animation-delay: 2.2s; }
.later { animation: fadein .8s ease 2.2s both; }
.hero-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; }
.hero-foot p { margin: 0; flex: 1 1 320px; max-width: 460px; font-size: 19px; line-height: 1.55; color: var(--sub); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-plate { flex: 1 1 380px; min-width: 0; max-width: 480px; }
.plate { position: relative; background-color: #2A2925;
  background-image: radial-gradient(rgba(255,240,210,.09) 1px, transparent 1.2px), radial-gradient(rgba(0,0,0,.25) 1px, transparent 1.2px);
  background-size: 5px 5px, 7px 7px; background-position: 0 0, 2px 3px; }
.plate-square { aspect-ratio: 1 / 1; border: 2px solid var(--ink); overflow: hidden; }
.corners { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.cube { position: absolute; left: 18%; top: 22%; width: 64%; height: auto; overflow: visible; }
.slab { animation: 6s steps(1) infinite both; }
.s5 { animation-name: slab5; } .s4 { animation-name: slab4; } .s3 { animation-name: slab3; } .s2 { animation-name: slab2; } .s1 { animation-name: slab1; }
.head { position: absolute; left: 0; right: 0; top: 54%; display: flex; justify-content: center; animation: headup 6s steps(1) infinite both; }
.head > svg { animation: sweep .5s ease-in-out infinite alternate; }
.plate-label { display: flex; justify-content: space-between; gap: 12px; border: 2px solid var(--ink); border-top: 0; background: var(--paper); padding: 10px 14px; font-size: 13px; }

/* Secciones */
.section { padding: 104px 0 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 48px; }
.section-head h2, .h2 { margin: 0; font-size: clamp(56px, 7vw, 112px); }
.section-head p { margin: 0; max-width: 400px; font-size: 18px; line-height: 1.55; color: var(--sub); }
.bt { border-top: 2px solid var(--ink); }

/* Índice de líneas */
.rows { border-bottom: 2px solid var(--ink); }
.row { position: relative; display: grid; grid-template-columns: 80px minmax(0,1.3fr) minmax(0,1fr) 150px 40px; align-items: center; gap: 24px;
  padding: 30px 24px; border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); isolation: isolate; transition: color .2s steps(2); }
.row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s steps(7); z-index: -1; }
.row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 8px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1) .1s; }
.row:hover, .row:focus-visible { color: var(--paper); }
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row:hover::after, .row:focus-visible::after { transform: scaleX(1); }
.row:hover .tag { border-color: var(--paper); }
.row:hover .arr { transform: translateX(8px); }
.row .name { font-size: clamp(48px, 5.4vw, 84px); }
.row .desc { font-size: 16px; line-height: 1.5; }
.row .st { display: flex; align-items: center; gap: 10px; }
.arr { transition: transform .3s; }
.swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.tag { display: inline-block; border: 1.5px solid var(--ink); padding: 6px 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag.soon { border-style: dashed; }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 2px solid var(--ink); background: var(--paper); }
.steps li { padding: 32px 28px 36px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 0 -2px -2px 0; }
.steps .n { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.steps .n span:first-child { font-size: 96px; }
.steps .sq { width: 18px; height: 18px; }
.steps h3 { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--sub); }

/* Encargo */
.encargo { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.encargo-intro { flex: 1 1 360px; min-width: 0; }
.encargo-intro p { margin: 0; max-width: 440px; font-size: 19px; line-height: 1.55; color: var(--sub); }
.sheet { flex: 1 1 520px; min-width: 0; background: var(--sheet); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 2px solid var(--ink); font-size: 13px; letter-spacing: .04em; }
.sheet-body { padding: 32px 28px 36px; }
.form { display: flex; flex-direction: column; gap: 28px; }
.form-row { display: flex; flex-wrap: wrap; gap: 24px; }
.form-row > div { flex: 1 1 200px; }
.flbl { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.uf { width: 100%; border: 0; border-bottom: 2px solid var(--ink); background: transparent; color: var(--ink); font-family: inherit; font-size: 19px;
  padding: 10px 0 8px; outline: none; border-radius: 0; transition: box-shadow .2s; }
.uf:focus { box-shadow: 0 3px 0 var(--accent); }
.uf::placeholder { color: var(--ph); }
textarea.uf { resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.ck { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 10px; border: 1.5px solid var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.ck:hover { background: var(--hov); }
.ck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck .box { width: 18px; height: 18px; border: 2px solid var(--ink); display: grid; place-items: center; }
.ck .box svg { visibility: hidden; }
.ck:has(input:checked) { background: var(--ink); color: var(--paper); }
.ck:has(input:checked) .box { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.ck:has(input:checked) .box svg { visibility: visible; }
.ck:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.about { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--ink); font-size: 15px; }
.errors { margin: 0; padding: 14px 18px 14px 34px; border: 2px solid #E0367F; color: var(--ink); background: var(--paper); }
.stamp-box { padding: 32px 0; text-align: center; }
.stamp { display: inline-block; padding: 14px 26px; border: 5px solid var(--ink); font-size: 72px; transform: rotate(-8deg); animation: stamp .5s cubic-bezier(.3,1.6,.5,1) both; }

/* Página de categoría */
.crumbs { margin: 0 0 40px; font-size: 13px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.cat-head { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; justify-content: space-between; }
.cat-head h1 { margin: 0; font-size: clamp(72px, 13vw, 200px); min-width: 0; overflow-wrap: anywhere; animation: printup 1s steps(10) both; }
.cat-head .meta { flex: 0 1 380px; padding-bottom: 12px; }
.cat-head .meta p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--sub); }
.tabs { border-bottom: 2px solid var(--ink); background: var(--paper); }
.tabs .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px 0; }
.tab { min-height: 48px; padding: 0 18px; border: 2px solid var(--ink); margin: 0 -2px 0 0; background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tab:hover { background: var(--hov); }
.tab[aria-current="page"] { background: var(--ink); color: var(--paper); }
.tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 2px solid var(--ink);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; animation: printup .7s steps(7) both; }
.pcard:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--ink); }
.pcard.soon { border-style: dashed; }
.pcard.soon:hover { transform: none; box-shadow: none; }
.pcard .pic { position: relative; aspect-ratio: 4 / 3; border-bottom: 2px solid var(--ink); overflow: hidden; display: grid; place-items: center; }
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pic .ph { font-size: 12px; letter-spacing: .08em; color: #C9B98F; }
.scan { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c); opacity: 0; }
.pcard:hover .scan { animation: scanup 1.2s steps(12) infinite; }
.pcard .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pcard .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pcard h2 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; }
.pcard p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sub); }
.specs { margin: auto 0 0; border-bottom: 1px solid var(--ink); }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ink); font-size: 14px; }
.spec dt { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.buy .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
.empty { padding: 48px 24px; border: 2px dashed var(--ink); text-align: center; font-size: 18px; }
.band { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }

/* Pie */
.site-foot { background: var(--foot); color: #ECECE7; border-top: 2px solid var(--ink); }
.site-foot .wrap { padding-top: 56px; padding-bottom: 32px; }
.site-foot .big { margin: 0 0 40px; font-size: clamp(96px, 19vw, 300px); line-height: .8; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; border-top: 1px solid var(--footline); padding-top: 24px; }
.foot-links span { font-size: 13px; color: #B9BBC0; margin-right: auto; }
.foot-links a { color: #ECECE7; text-decoration: none; padding: 10px 0; }

/* Animaciones */
.reveal { animation: fadein linear both; }
@supports (animation-timeline: view()) {
  .reveal { animation: printreveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
}
@keyframes printup { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nozzle { 0% { bottom: 0; opacity: 1; } 99% { bottom: 100%; opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes printreveal { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes slab5 { 0% { opacity: 0; } 5%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes slab4 { 0%, 15% { opacity: 0; } 20%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes slab3 { 0%, 30% { opacity: 0; } 35%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes slab2 { 0%, 45% { opacity: 0; } 50%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes slab1 { 0%, 60% { opacity: 0; } 65%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes headup { 0% { transform: translateY(0); } 15% { transform: translateY(-9%); } 30% { transform: translateY(-18%); } 45% { transform: translateY(-27%); } 60% { transform: translateY(-41%); } 75%, 100% { transform: translateY(-62%); } }
@keyframes sweep { from { transform: translateX(-90px); } to { transform: translateX(90px); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes scanup { 0% { bottom: 0; opacity: 1; } 100% { bottom: 100%; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pline::after { display: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  .nav { gap: 0 20px; }
  .brand { flex-basis: calc(100% - 64px); }
  .nav .mode { order: 1; }
  .nav a.lk { order: 2; font-size: 14px; }
}
@media (max-width: 900px) {
  .row { grid-template-columns: 48px minmax(0,1fr) 32px; gap: 12px 16px; }
  .row .desc, .row .st { grid-column: 2 / -1; }
  .row .arr { grid-row: 1; grid-column: 3; }
}
