/* ==========================================================================
   Alternativa Advertising
   Concepto: "Pliego de imprenta". Papel cálido, tinta negra y el cian de la
   marca (que es literalmente el cian de proceso). Magenta y amarillo solo
   aparecen como marcas de registro y sobreimpresión (multiply).
   ========================================================================== */

:root {
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --paper-3: #dcd4c2;
  --ink: #121212;
  --ink-2: #2a2a2a;
  --mute: #6b665c;

  --c: #00b4fb;      /* cian de marca, tomado del logo */
  --m: #ec008c;
  --y: #ffe100;
  --k: #121212;
  --c-deep: #0077b8;  /* cian para texto sobre papel (contraste AA) */

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-variation-settings: normal; }
::selection { background: var(--c); color: var(--ink); }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.h2 {
  font-size: clamp(2.3rem, 6.2vw, 6rem);
  line-height: .92;
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2 em { font-size: 1.06em; color: var(--c-deep); }
.h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; font-variation-settings: "wdth" 80; line-height: 1; letter-spacing: -.02em; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.4rem; color: var(--mute); }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.sw--c { background: var(--c); } .sw--m { background: var(--m); } .sw--y { background: var(--y); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); } .sw--k { background: var(--k); }

/* ---------- Grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); transition: opacity .2s; }
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
  mix-blend-mode: multiply;
}
.cursor__label { font: 600 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .2s; color: var(--ink); }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--c); border-color: var(--c); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--y); border-color: var(--y); mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.on-dark .cursor__dot { background: var(--paper); }
.cursor.on-dark .cursor__ring { border-color: var(--paper); mix-blend-mode: normal; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; align-content: center; gap: 22px; background: var(--paper); }
.anim .loader { display: grid; }
.anim .loader.is-done { display: none; }
.loader__mark svg { width: 74px; height: 74px; fill: none; stroke: var(--ink); stroke-width: 2.2; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader__bar { display: flex; width: min(260px, 70vw); height: 8px; gap: 3px; }
.loader__bar i { flex: 1; transform-origin: left; transform: scaleX(0); }
.loader__bar i:nth-child(1){background:var(--c)} .loader__bar i:nth-child(2){background:var(--m)} .loader__bar i:nth-child(3){background:var(--y)} .loader__bar i:nth-child(4){background:var(--k)}
.loader__label { color: var(--mute); }
.loader__curtain { position: absolute; inset: 0; pointer-events: none; }
.loader__curtain i { position: absolute; inset: 0; transform: translateY(100%); }
.loader__curtain .c{background:var(--c)} .loader__curtain .m{background:var(--m)} .loader__curtain .y{background:var(--y)} .loader__curtain .k{background:var(--paper)}

/* ---------- Color bar ---------- */
.colorbar { display: flex; height: 6px; }
.colorbar i { flex: 1; }
.colorbar i:nth-child(1){background:var(--c)} .colorbar i:nth-child(2){background:var(--m)} .colorbar i:nth-child(3){background:var(--y)} .colorbar i:nth-child(4){background:var(--k)}
.colorbar i:nth-child(5){background:#3a3a3a} .colorbar i:nth-child(6){background:#7a7a7a} .colorbar i:nth-child(7){background:#b5b5b5} .colorbar i:nth-child(8){background:#e3e3e3}
.colorbar--lg { height: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 80; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(18,18,18,.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; transition: transform .8s var(--ease); }
.brand:hover img { transform: rotate(-360deg); }
.brand__name { font-weight: 800; font-variation-settings: "wdth" 85; line-height: .95; font-size: 1.02rem; letter-spacing: -.01em; }
.brand__name em { font-size: 1.05em; color: var(--c-deep); }
.nav__links { display: flex; gap: 6px; }
.nav__links a { position: relative; text-decoration: none; padding: 8px 12px; font-weight: 500; font-size: .95rem; border-radius: 99px; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: var(--ink); border-radius: 50%; position: relative; }
.nav__burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--paper); transition: transform .4s var(--ease); }
.nav__burger i:first-child { top: 18px; } .nav__burger i:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 75; background: var(--ink); color: var(--paper); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); }
.menu[hidden] { display: none; }
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(2.6rem, 12vw, 4.5rem); font-weight: 800; font-variation-settings: "wdth" 75; text-decoration: none; line-height: 1.05; border-bottom: 1px solid rgba(243,239,230,.12); padding: 6px 0; }
.menu nav a:hover { color: var(--c); }
.menu .mono { color: rgba(243,239,230,.6); text-transform: none; }
.menu-open .nav__burger { background: var(--c); }
.menu-open .nav__burger i { background: var(--ink); }

/* ---------- Acceso al ERP ---------- */
.erp { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px 0 13px; border: 1px solid var(--ink); border-radius: 99px; text-decoration: none; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; transition: background .35s var(--ease), color .35s var(--ease); }
.erp svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.erp:hover { background: var(--ink); color: var(--paper); }
.erp:hover svg path { transform: translateY(-1.5px); }
.erp svg path { transition: transform .35s var(--ease); }
.menu__erp { color: var(--c); text-decoration: none; display: inline-block; margin-bottom: 8px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Idioma ---------- */
/* Switch como tira de control de color: tres parches, el activo entintado en cian */
.lang { display: flex; border: 1px solid var(--ink); border-radius: 99px; overflow: hidden; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; }
.lang a { position: relative; padding: 7px 10px; text-decoration: none; transition: background .35s var(--ease), color .35s var(--ease); }
.lang a + a { border-left: 1px solid rgba(18,18,18,.25); }
.lang a:hover { background: var(--paper-3); }
.lang a[aria-current] { background: var(--c); color: var(--ink); font-weight: 500; }
.hero__clock { color: var(--ink-2); }
.hero__clock b { font-weight: 500; color: var(--c-deep); }

/* Sugerencia de idioma: una "prueba de imprenta" con marcas de corte */
.slip {
  position: fixed; left: var(--gutter); bottom: 24px; z-index: 95; width: min(380px, calc(100vw - 24px));
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 4px;
  padding: 18px 20px 20px; box-shadow: 10px 10px 0 -1px var(--c), 10px 10px 0 0 var(--ink);
  transform: translateY(calc(100% + 60px)) rotate(-2deg); transition: transform .9s var(--ease);
}
.slip.is-in { transform: none; }
.menu-open .slip { transform: translateY(calc(100% + 60px)) rotate(-2deg); }
.slip::before, .slip::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
.slip::before { left: -8px; top: -8px; border-width: 1px 0 0 1px; }
.slip::after { right: -8px; bottom: -8px; border-width: 0 1px 1px 0; }
.slip__k { display: flex; justify-content: space-between; align-items: center; color: var(--mute); margin-bottom: 10px; padding-right: 30px; }
.slip__x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--mute); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .3s, color .3s; }
.slip__x:hover { background: var(--paper-3); color: var(--ink); }
.slip__k i { width: 34px; height: 8px; background: linear-gradient(90deg, var(--c) 25%, var(--m) 0 50%, var(--y) 0 75%, var(--k) 0); }
.slip__t { font-size: 1.25rem; font-weight: 800; font-variation-settings: "wdth" 82; line-height: 1.1; letter-spacing: -.01em; }
.slip__t em { color: var(--c-deep); }
.slip__q { margin: 6px 0 16px; color: var(--ink-2); }
.slip__row { display: flex; flex-wrap: wrap; gap: 8px; }
.slip .btn { padding: 11px 16px 11px 18px; font-size: .92rem; }
.slip__no { border: 0; background: none; font: inherit; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 11px 8px; }
.slip__no:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 15px 24px; border-radius: 99px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 1.5px solid var(--bg); transition: color .4s var(--ease), border-color .4s;
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover, var(--c)); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn--ink:hover { color: var(--ink); }
.btn--cyan { --bg: var(--c); --fg: var(--ink); --hover: var(--ink); }
.btn--cyan:hover { color: var(--paper); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --hover: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--paper { --bg: var(--paper); --fg: var(--ink); --hover: var(--pick, var(--c)); }
.btn--paper:hover { color: var(--on-pick, var(--ink)); }
.btn--xl { font-size: clamp(1.05rem, 1.6vw, 1.35rem); padding: 22px 30px 22px 34px; }
.link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Crop marks ---------- */
.crop { position: absolute; width: 34px; height: 34px; pointer-events: none; z-index: 2; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink); }
.crop::before { width: 100%; height: 1px; top: 50%; } .crop::after { height: 100%; width: 1px; left: 50%; }
.crop--tl { left: calc(var(--gutter) - 17px); top: 92px; } .crop--tr { right: calc(var(--gutter) - 17px); top: 92px; }
.crop--bl { left: calc(var(--gutter) - 17px); bottom: 16px; } .crop--br { right: calc(var(--gutter) - 17px); bottom: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 130px var(--gutter) 90px; display: grid; grid-template-columns: 1.35fr .9fr; grid-template-rows: auto 1fr auto; column-gap: 4vw; overflow: hidden; }
.hero__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero > :is(.hero__meta, .hero__title, .hero__foot, .hero__stack) { position: relative; z-index: 1; }
.hero__scroll { z-index: 1; }
.hero__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--mute); border-top: 1px solid rgba(18,18,18,.15); padding-top: 12px; }
.hero__title { grid-column: 1; align-self: center; margin-top: 4vh; font-weight: 900; line-height: .86; letter-spacing: -.035em; }
.reg { position: relative; display: block; font-size: clamp(3.4rem, 10.6vw, 11rem); font-variation-settings: "wdth" 72; white-space: nowrap; }
.reg__base { position: relative; display: block; color: var(--ink); }
.reg__layer { position: absolute; inset: 0; mix-blend-mode: multiply; will-change: transform; }
.reg__c { color: var(--c); } .reg__m { color: var(--m); } .reg__y { color: var(--y); }
.hero__line2 { display: block; font-size: clamp(1.9rem, 4.6vw, 5.4rem); font-variation-settings: "wdth" 100; font-weight: 800; margin-top: .14em; }
.hero__line2 em { color: var(--c-deep); font-size: 1.12em; padding-right: .08em; }
.hero__line2 .dot { color: var(--c); }
.hero__foot { grid-column: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 5vh; }
.hero__lede { max-width: 34ch; font-size: clamp(1.02rem, 1.25vw, 1.2rem); color: var(--ink-2); }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__stack { grid-column: 2; grid-row: 2 / 4; align-self: center; position: relative; height: min(64vh, 620px); }
.ticket {
  position: absolute; left: 50%; top: 50%; width: min(26vw, 330px); aspect-ratio: 4 / 5;
  background: #fff; padding: 10px 10px 36px; border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 30px 60px -20px rgba(18,18,18,.45);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  translate: 0 var(--in-y, 0px);
  transition: transform .9s var(--ease);
}
.ticket img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.ticket figcaption { position: absolute; left: 12px; bottom: 10px; color: var(--mute); }
.hero__stack:hover .ticket:nth-child(1) { transform: translate(-50%, -50%) translate(-62%, 10%) rotate(-14deg); }
.hero__stack:hover .ticket:nth-child(2) { transform: translate(-50%, -50%) translate(56%, -6%) rotate(12deg); }
.hero__stack:hover .ticket:nth-child(3) { transform: translate(-50%, -50%) translate(0, -4%) rotate(0deg) scale(1.04); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--mute); }
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(var(--ink) 50%, transparent 0) 0 0 / 1px 200%; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 20px 0; transform: rotate(-1.6deg) scale(1.04); position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 30px; font-size: clamp(1.8rem, 4.2vw, 3.8rem); font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase; letter-spacing: -.01em; will-change: transform; animation: marquee 40s linear infinite; }
.anim .marquee__track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__track b { color: var(--c); font-weight: 400; font-size: .7em; }
.marquee__track span:nth-of-type(3n+2) { -webkit-text-stroke: 1.5px var(--paper); color: transparent; }

/* ---------- Work ---------- */
.work { position: relative; padding-top: 60px; }
.work__pin { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 80px 0 30px; }
.work__head { padding: 0 var(--gutter); margin-bottom: 4vh; max-width: 1100px; }
.work__head .h2 { font-size: clamp(2.2rem, min(5vw, 8vh), 5rem); }
.work__track { display: flex; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--gutter); width: max-content; will-change: transform; align-items: flex-end; }
.case { position: relative; width: clamp(240px, min(24vw, 44vh), 380px); flex-shrink: 0; }
.case:nth-child(even) { margin-bottom: 5vh; }
.case__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.case__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.1s var(--ease); }
.case:hover .case__img img { transform: scale(1.14); }
.case__img::after { content: ""; position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply; opacity: 0; transition: opacity .5s; }
.case:hover .case__img::after { opacity: .2; }
.case__ticket { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(18,18,18,.35); color: var(--mute); }
.case__title { margin-top: 8px; font-size: clamp(1.5rem, 2.3vw, 2.2rem); font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -.02em; line-height: 1; }
.case__title small { display: block; margin-top: 6px; font: italic 400 1.05rem var(--f-serif); color: var(--mute); letter-spacing: 0; }
.case--end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; aspect-ratio: 4 / 5; padding: 34px; border-radius: var(--radius); border: 1.5px dashed var(--ink); align-self: center; }
.case--end .h3 em { color: var(--c-deep); }
.work__progress { margin: 40px var(--gutter) 0; height: 2px; background: rgba(18,18,18,.12); }
.work__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--c) 0 33.3%, var(--m) 33.3% 66.6%, var(--y) 66.6%); transform-origin: left; transform: scaleX(0); }
/* Sin pin (móvil, sin JS o movimiento reducido): scroll horizontal nativo */
.no-pin .work__pin { min-height: 0; }
.no-pin .work__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
.no-pin .work__track::-webkit-scrollbar { display: none; }
.no-pin .case { scroll-snap-align: center; }
.no-pin .case:nth-child(even) { margin-bottom: 0; }
.no-pin .work__progress { display: none; }

/* ---------- Services ---------- */
.services { position: relative; padding: 140px var(--gutter) 120px; }
.services__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4vw; align-items: end; margin-bottom: 60px; }
.services__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.services__note { color: var(--ink-2); max-width: 40ch; font-size: 1.1rem; }
.svc { border-top: 1.5px solid var(--ink); }
.svc__row { position: relative; display: grid; grid-template-columns: 70px 1.2fr 1fr 48px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid rgba(18,18,18,.18); transition: padding .5s var(--ease), color .4s; isolation: isolate; }
.svc__row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.svc__row:hover { color: var(--paper); padding-left: 20px; }
.svc__row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc__n { color: var(--mute); transition: color .4s; }
.svc__row:hover .svc__n { color: var(--c); }
.svc__t { font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 800; font-variation-settings: "wdth" 72; letter-spacing: -.02em; line-height: 1; transition: font-variation-settings .6s var(--ease); }
.svc__row:hover .svc__t { font-variation-settings: "wdth" 105; }
.svc__d { opacity: .78; max-width: 42ch; }
.svc__arrow { font-size: 1.8rem; justify-self: end; transition: transform .5s var(--ease), color .3s; }
.svc__row:hover .svc__arrow { transform: rotate(45deg); color: var(--c); }
.svc__preview { position: fixed; left: 0; top: 0; z-index: 60; width: 240px; aspect-ratio: 4 / 5; margin: -150px 0 0 -120px; pointer-events: none; border-radius: 10px; overflow: hidden; opacity: 0; transform: scale(.6); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.svc__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Color configurator (sección oscura) ---------- */
.color {
  --pick: #e2231a;
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
  padding: 140px var(--gutter); background: var(--ink); color: var(--paper); overflow: hidden;
  border-radius: 28px 28px 0 0;
}
.color .eyebrow { color: rgba(243,239,230,.6); }
.color .h2 em { color: var(--pick); transition: color .6s var(--ease); }
.color__lede { margin-top: 22px; max-width: 42ch; color: rgba(243,239,230,.75); font-size: 1.1rem; }
.swatches { border: 0; padding: 0; margin: 36px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { color: rgba(243,239,230,.55); margin-bottom: 12px; }
.swatches label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 74px; }
.swatches input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.swatches span { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(243,239,230,.12); transition: transform .4s var(--ease), box-shadow .3s; overflow: hidden; }
.swatches b { font: 400 .68rem var(--f-mono); letter-spacing: .03em; text-align: center; color: rgba(243,239,230,.6); }
.swatches label:hover span { transform: translateY(-4px) scale(1.06); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--paper); transform: scale(1.08); }
.swatches input:checked ~ b { color: var(--paper); }
.swatches input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 6px; }
.swatches .rainbow { background: conic-gradient(from 0deg, #ff004c, #ffb000, #ffe100, #3ddc84, #00b4fb, #7a4cff, #ff004c); }
.rainbow input[type="color"] { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); opacity: 0; cursor: pointer; }
.readout { display: flex; flex-wrap: wrap; margin-bottom: 32px; border: 1px solid rgba(243,239,230,.18); border-radius: 10px; overflow: hidden; width: max-content; max-width: 100%; }
.readout div { padding: 10px 16px; border-right: 1px solid rgba(243,239,230,.18); min-width: 64px; }
.readout div:last-child { border-right: 0; }
.readout dt { color: rgba(243,239,230,.5); font-size: .68rem; }
.readout dd { font-size: 1.05rem; color: var(--paper); font-variant-numeric: tabular-nums; }
.readout div:nth-child(1) dt { color: var(--c); } .readout div:nth-child(2) dt { color: var(--m); } .readout div:nth-child(3) dt { color: var(--y); }
.color__stage { position: relative; display: grid; place-items: center; min-height: 580px; }
.stage__glow { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--pick) 0%, transparent 65%); opacity: .5; filter: blur(30px); transition: background .8s; }
.display { position: relative; width: min(100%, 400px); height: auto; overflow: visible; will-change: transform; }
.fillc { fill: var(--pick); transition: fill .7s var(--ease); }
.display__brand { font: 800 30px var(--f-display); font-variation-settings: "wdth" 75; fill: var(--on-pick, #fff); letter-spacing: 1px; transition: fill .5s; }
.products > * { fill: var(--paper); opacity: .92; }
.dims path { stroke: rgba(243,239,230,.45); stroke-width: 1; fill: none; }
.dims text { font: 400 11px var(--f-mono); fill: rgba(243,239,230,.6); letter-spacing: .05em; }

/* ---------- Process ---------- */
.process { position: relative; padding: 140px var(--gutter); background: var(--paper-2); }
.process__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 4vw; align-items: end; margin-bottom: 70px; }
.process__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.process__note { color: var(--ink-2); max-width: 40ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.step { position: relative; padding: 30px 24px 10px 0; display: flex; flex-direction: column; gap: 18px; }
.step + .step { padding-left: 24px; border-left: 1px solid rgba(18,18,18,.18); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 6px; background: var(--sc); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.step.is-in::before, .no-anim .step::before { transform: scaleX(1); }
.step__n { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--sc); color: var(--paper); font-weight: 900; font-size: 2.4rem; font-variation-settings: "wdth" 80; }
.step:nth-child(1) .step__n, .step:nth-child(3) .step__n { color: var(--ink); }
.step h3 { font-size: 1.7rem; font-weight: 800; font-variation-settings: "wdth" 85; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* ---------- Clients: pliego de imposición ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clients { position: relative; padding: 140px var(--gutter) 0; overflow: hidden; }
.clients__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4vw; align-items: end; margin-bottom: 60px; }
.clients__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.clients__note { color: var(--ink-2); max-width: 40ch; font-size: 1.1rem; }
.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(18,18,18,.22); border-left: 1px solid rgba(18,18,18,.22); }
.client { position: relative; border-right: 1px solid rgba(18,18,18,.22); border-bottom: 1px solid rgba(18,18,18,.22); }
/* marca de registro en cada intersección */
.client::before { content: ""; position: absolute; z-index: 3; left: -8px; top: -8px; width: 15px; height: 15px; pointer-events: none;
  background: linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat; }
.client > a { position: relative; display: flex; flex-direction: column; aspect-ratio: 1 / .92; padding: 22px; text-decoration: none; overflow: hidden; isolation: isolate; transition: color .45s var(--ease); }
.client__img { position: absolute; inset: 0; z-index: -1; clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .8s var(--ease); }
.client__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease); }
.client__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,.55), rgba(18,18,18,.15) 40%, rgba(18,18,18,.75)); }
.client > a:hover .client__img, .client > a:focus-visible .client__img { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.client > a:hover .client__img img { transform: scale(1); }
.client > a:hover, .client > a:focus-visible { color: var(--paper); }
.client__top { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); transition: color .45s; }
.client > a:hover .client__top { color: rgba(243,239,230,.8); }
.client__mark { margin: auto 0; font-size: clamp(2.2rem, 4.4vw, 4.4rem); font-weight: 900; font-variation-settings: "wdth" var(--w, 80); letter-spacing: -.035em; line-height: .9; text-transform: uppercase; transition: font-variation-settings .7s var(--ease), letter-spacing .7s var(--ease); }
.client > a:hover .client__mark { font-variation-settings: "wdth" 125; letter-spacing: -.01em; }
.client__tags { color: var(--ink-2); text-transform: none; transition: color .45s; padding-right: 36px; }
.client > a:hover .client__tags { color: var(--y); }
.client__go { position: absolute; right: 20px; bottom: 16px; font-size: 1.6rem; line-height: 1; transition: transform .5s var(--ease), color .3s; }
.client > a:hover .client__go { transform: rotate(45deg); color: var(--c); }
.client--cta > a { background: var(--c); transition: background .45s var(--ease), color .45s; }
.client--cta .client__top, .client--cta .client__tags { color: var(--ink); }
.client--cta .client__mark { font-variation-settings: "wdth" 70; }
.client--cta .client__mark em { text-transform: none; font-size: 1.05em; letter-spacing: -.01em; }
.client--cta > a:hover { background: var(--ink); color: var(--paper); }
.client--cta > a:hover .client__top { color: var(--c); }
.client--cta > a:hover .client__mark em { color: var(--c); }
.clients__band { margin: 90px calc(var(--gutter) * -1) 0; padding: 18px 0; background: var(--paper-2); border-top: 1px solid rgba(18,18,18,.12); overflow: hidden; }
.clients__band-track { display: flex; width: max-content; align-items: center; gap: 28px; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase; animation: marquee 34s linear infinite reverse; }
.clients__band-track span { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.clients__band-track i { font-style: normal; color: var(--m); font-size: .6em; }
.clients__band:hover .clients__band-track { animation-play-state: paused; }

/* ---------- Contact ---------- */
.contact { padding: 120px var(--gutter); background: var(--c); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(18,18,18,.16) 1.4px, transparent 1.6px); background-size: 14px 14px; mask-image: linear-gradient(115deg, transparent 30%, #000 85%); -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 85%); pointer-events: none; }
.contact > * { position: relative; }
.contact .eyebrow { color: var(--ink); }
.contact__title { display: flex; flex-direction: column; font-size: clamp(3rem, 10vw, 10rem); line-height: .88; font-weight: 900; font-variation-settings: "wdth" 72; letter-spacing: -.035em; margin-bottom: 44px; }
.contact__title > span { display: block; overflow: hidden; padding-bottom: .05em; }
.contact__title em { color: var(--paper); font-size: 1.1em; }
.contact .btn--cyan { --bg: var(--ink); --fg: var(--paper); --hover: var(--paper); }
.contact .btn--cyan:hover { color: var(--ink); }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 80px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; min-height: 170px; border-radius: var(--radius); background-color: var(--paper); text-decoration: none; transition: background-color .4s, color .4s; will-change: transform; }
.card--map { grid-row: span 2; background-color: var(--ink); color: var(--paper); justify-content: flex-end; background-image: repeating-linear-gradient(0deg, transparent 0 38px, rgba(0,180,251,.22) 38px 39px), repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,180,251,.22) 38px 39px); }
.card:hover { background-color: var(--ink); color: var(--paper); }
.card--map:hover { background-color: #000; }
.card__k { color: var(--mute); }
.card:hover .card__k, .card--map .card__k { color: var(--c); }
.card__v { margin-top: auto; font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -.02em; line-height: 1.05; overflow-wrap: anywhere; }
.card__v--sm { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.card--map .card__v { margin-top: 0; }
.card__note { color: rgba(243,239,230,.65); text-transform: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); overflow: hidden; }
.footer__inner { padding: 40px var(--gutter) 28px; }
.footer__word { font-size: clamp(4rem, 19vw, 20rem); font-weight: 900; font-variation-settings: "wdth" 62; letter-spacing: -.05em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(243,239,230,.3); white-space: nowrap; background: linear-gradient(90deg, var(--c) 0 33.3%, var(--m) 33.3% 66.6%, var(--y) 66.6%) 0 0 / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.6s var(--ease); }
.footer__word:hover, .footer__word.is-in { background-size: 100% 100%; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(243,239,230,.15); color: rgba(243,239,230,.6); }
.footer__row a { text-decoration: none; color: var(--paper); }
/* Crédito TZCode: obligatorio en todas las páginas */
.footer__credit { margin-top: 18px; text-align: center; text-transform: none; }
.credit { color: inherit; text-decoration: none; opacity: .75; transition: opacity .3s, color .3s; }
.credit:hover { opacity: 1; color: var(--c); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero__stack { grid-column: 1; grid-row: auto; height: 440px; margin-top: 40px; }
  .ticket { width: min(52vw, 280px); }
  .services__head, .process__head { grid-template-columns: 1fr; }
  .color { grid-template-columns: 1fr; }
  .color__stage { min-height: 480px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .card--map { grid-row: auto; grid-column: span 2; min-height: 220px; }
  .clients__head { grid-template-columns: 1fr; }
  .client > a { padding: 16px; }
  .client__mark { font-size: 4.6vw; }
}
@media (max-width: 820px) {
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .client > a { aspect-ratio: 1 / .78; }
  .client__mark { font-size: 8vw; }
}
@media (max-width: 640px) {
  .nav__cta { display: none; }
  .nav__inner { gap: 10px; }
  .erp { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .erp span { display: none; }
  .brand__name { font-size: .92rem; }
  .crop { display: none; }
  .hero__meta span:nth-child(2) { display: none; }
  .lang a { padding: 7px 8px; }
  .slip { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .reg { font-size: 15.5vw; }
  .hero__line2 { font-size: 8.4vw; }
  .hero__stack { height: 360px; }
  .svc__row { grid-template-columns: 34px 1fr 28px; gap: 6px 12px; padding: 22px 0; }
  .svc__d { grid-column: 2 / 3; font-size: .95rem; }
  .svc__arrow { grid-row: 1; grid-column: 3; font-size: 1.4rem; }
  .svc__row:hover { padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { border-left: 0; padding-left: 0; }
  .step__n { width: 64px; height: 64px; font-size: 1.8rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .card--map { grid-column: auto; }
  .swatches { gap: 6px; }
  .swatches label { width: 62px; }
  .swatches span { width: 46px; height: 46px; }
  .readout div { padding: 8px 10px; min-width: 48px; }
  .color, .services, .process, .contact { padding-top: 96px; padding-bottom: 96px; }
  .clients { padding-top: 96px; }
  .client > a { padding: 14px; aspect-ratio: 1 / 1.05; }
  .client__mark { font-size: 9vw; }
  .client__top span:last-child { display: none; }
  .client__go { right: 12px; bottom: 10px; font-size: 1.2rem; }
  .client__tags { font-size: .66rem; padding-right: 22px; }

  /* Configurador en móvil: el exhibidor sube debajo del título y los colores
     quedan pegados a él, para ver el cambio sin hacer scroll. */
  .color { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .color__copy { display: contents; }
  .color .eyebrow { order: 1; }
  .color .h2 { order: 2; }
  .color__lede { order: 3; margin-top: 14px; font-size: 1rem; }
  .color__stage { order: 4; min-height: 0; height: min(50svh, 420px); grid-template-rows: 100%; margin: 18px 0 6px; }
  .color__stage .display { width: auto; height: 100%; }
  .stage__glow { width: auto; height: 90%; }
  .swatches { order: 5; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 0 0 18px; }
  .swatches legend { margin-bottom: 10px; }
  .swatches label { width: auto; min-height: 48px; justify-content: center; }
  .swatches span { width: 40px; height: 40px; }
  .swatches b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .readout { order: 6; width: 100%; margin-bottom: 18px; flex-wrap: nowrap; }
  .readout div { flex: 1 1 0; min-width: 0; padding: 8px 8px; }
  .readout__hex { flex: 2 1 0 !important; }
  .color .btn { order: 7; justify-content: center; }
}

@media (hover: none) {
  .svc__preview { display: none; }
  /* En táctil la foto del cliente se ve siempre */
  .client:not(.client--cta) > a { color: var(--paper); }
  .client:not(.client--cta) .client__img { clip-path: none; }
  .client:not(.client--cta) .client__img img { transform: none; }
  .client:not(.client--cta) .client__top { color: rgba(243,239,230,.8); }
  .client:not(.client--cta) .client__tags { color: var(--y); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
