/* ═══════════════════════════════════════════════════════════════
   TickD OS — El Ticket Maestro
   Paleta binding: blanco · #29215D · #3D396A · #E3336C · #F6006B
                   #B3B1C6 · #7C7A99 · #E85A8F
   Tipos: Archivo (var, wdth 62–125) · Fragment Mono
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #FFFFFF;
  --ground: #F4F3F8;
  --ground-deep: #ECEAF3;
  --ink: #29215D;
  --ink-deep: #1C1642;
  --text: #353060;
  --text-2: #5B5878;
  --lav: #B3B1C6;
  --slate: #615E7E; /* rol de texto: #7C7A99 de la paleta, oscurecido para AA */
  --slate-decor: #7C7A99;
  --mag: #E3336C;
  --mag-vivid: #F6006B;
  --mag-text: #BE1E55; /* magenta para texto pequeño: cumple 4.5:1 sobre blanco */
  --pink: #E85A8F;
  --line: #DDDBE8;
  --hole: var(--ground);
  --shadow: 0 18px 50px -18px rgba(41, 33, 93, .25), 0 4px 14px -6px rgba(41, 33, 93, .12);
  --shadow-soft: 0 10px 30px -14px rgba(41, 33, 93, .18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

[data-theme="dark"] {
  --paper: #201A44;
  --ground: #141031;
  --ground-deep: #100C28;
  --ink: #EFEDF9;
  --ink-deep: #FFFFFF;
  --text: #D9D6EC;
  --text-2: #A9A5C9;
  --lav: #5F5A8A;
  --slate: #9995BC;
  --slate-decor: #8D89B0;
  --mag: #F1568D;
  --mag-vivid: #FF4F92;
  --mag-text: #FF8AB4;
  --pink: #E85A8F;
  --line: #37315F;
  --hole: var(--ground);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .55), 0 4px 14px -6px rgba(0, 0, 0, .35);
  --shadow-soft: 0 10px 30px -14px rgba(0, 0, 0, .45);
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  background: var(--ground);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background .45s ease, color .45s ease;
  overflow-x: clip;
}

::selection { background: var(--mag); color: #fff; }

:focus-visible { outline: 2.5px solid var(--mag); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ground-deep); }
::-webkit-scrollbar-thumb { background: var(--lav); border-radius: 8px; border: 3px solid var(--ground-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

img { max-width: 100%; display: block; }

.mono {
  font-family: "Fragment Mono", monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { color: var(--ink); text-wrap: balance; }

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 760;
  font-variation-settings: "wdth" 112;
  line-height: 1.04;
  letter-spacing: -.02em;
}
h2 em {
  font-style: normal;
  color: var(--mag);
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

section { scroll-margin-top: calc(var(--nav-h) + 12px); }

.section { padding: clamp(72px, 9vw, 132px) 0 0; }
.section__inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }

.section__head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__lead { margin-top: 18px; font-size: 1.06rem; max-width: 56ch; color: var(--text-2); }

/* ── Botones ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 640; font-size: .95rem;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: 999px; padding: 13px 26px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s ease;
}
.btn--primary {
  background: var(--mag); color: #fff;
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--mag) 65%, transparent);
}
.btn--primary:hover { background: var(--mag-vivid); transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--mag) 70%, transparent); }
.btn--primary:active { transform: translateY(0); }

/* ── Nav (cabecera de ticket) ─────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  padding: 10px clamp(10px, 2vw, 22px) 0;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  max-width: 1280px; margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 26px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 18px;
  padding: 0 12px 0 22px;
  box-shadow: var(--shadow-soft);
  transition: background .45s ease, border-color .45s ease;
}
.nav__logo img { height: 34px; width: auto; }
[data-theme="dark"] .nav__logo img,
[data-theme="dark"] .footer__logo-plate img { filter: none; }
[data-theme="dark"] .nav__logo,
.footer__logo-plate {
  background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-flex;
}
.nav__logo { display: inline-flex; align-items: center; border-radius: 10px; }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  color: var(--text); text-decoration: none; font-weight: 560; font-size: .93rem;
  padding: 9px 14px; border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.nav__links a:hover { background: color-mix(in srgb, var(--mag) 10%, transparent); color: var(--mag); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { padding: 11px 20px; font-size: .9rem; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.theme-toggle:hover { border-color: var(--slate); background: color-mix(in srgb, var(--lav) 18%, transparent); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity .3s ease, transform .5s var(--ease-out); }
.theme-toggle__moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(40deg) scale(.6); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; padding: 0 10px;
}
.nav__burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .25s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid; place-items: center;
}
.mobile-menu nav { display: grid; gap: 8px; text-align: center; }
.mobile-menu a {
  color: var(--ink); text-decoration: none; font-size: 1.6rem; font-weight: 700;
  font-variation-settings: "wdth" 112; padding: 10px 26px; border-radius: 14px;
}
.mobile-menu a:hover { color: var(--mag); }
.mobile-menu .btn { font-size: 1.05rem; justify-content: center; margin-top: 18px; color: #fff; }

/* ── Hero: el ticket maestro ──────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 26px) clamp(10px, 2vw, 22px) 0;
  position: relative;
}
.hero__ticket {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  height: calc(100svh - var(--nav-h) - 48px);
  min-height: 540px; max-height: 860px;
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 128px;
  box-shadow: var(--shadow);
  /* perforación inferior de rollo de tickets */
  -webkit-mask:
    radial-gradient(circle 7px at 12px calc(100% - 0px), transparent 6.5px, #000 7px) -12px 0 / 24px 100% repeat-x,
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - 7px) no-repeat;
  mask:
    radial-gradient(circle 7px at 12px calc(100% - 0px), transparent 6.5px, #000 7px) -12px 0 / 24px 100% repeat-x,
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - 7px) no-repeat;
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 38%;
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(178deg, rgba(28, 22, 66, .38) 0%, rgba(28, 22, 66, 0) 32%),
    linear-gradient(2deg, rgba(28, 22, 66, .62) 0%, rgba(28, 22, 66, .18) 38%, rgba(28, 22, 66, 0) 60%);
}

.hero__meta {
  position: absolute; z-index: 3; top: 0; left: 0; right: 128px;
  display: flex; gap: clamp(14px, 3vw, 34px); flex-wrap: wrap;
  padding: 22px clamp(20px, 3.4vw, 40px);
  color: rgba(255, 255, 255, .92);
  border-bottom: 1px dashed rgba(255, 255, 255, .35);
}
.hero__meta b { font-weight: 400; }
.hero__meta-num { margin-left: auto; }

.hero__copy {
  position: relative; z-index: 3;
  align-self: end;
  padding: 0 clamp(20px, 3.4vw, 44px) clamp(30px, 4.5vh, 52px);
  color: #fff;
}
.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  font-weight: 830;
  font-variation-settings: "wdth" 118;
  line-height: .98;
  letter-spacing: -.025em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(28, 22, 66, .35);
}
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line i { display: inline-block; font-style: normal; }

.hero__sub {
  margin-top: 22px; max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: rgba(255, 255, 255, .93);
}

.hero__barcode {
  margin-top: 30px; display: flex; align-items: center; gap: 16px;
  color: rgba(255, 255, 255, .9);
}
.hero__barcode svg { width: 132px; height: 26px; }
.hero__barcode .mono { letter-spacing: .22em; font-size: .62rem; }

/* Talón lateral */
.hero__stub {
  position: relative; z-index: 4;
  background: var(--mag);
  color: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 0;
  border-left: 2px dashed rgba(255, 255, 255, .55);
  transition: background .3s ease;
}
.hero__stub::before, .hero__stub::after {
  content: ""; position: absolute; left: -12px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--hole);
  transition: background .45s ease;
}
.hero__stub::before { top: -11px; }
.hero__stub::after { bottom: -11px; }
.hero__stub:hover { background: var(--mag-vivid); }
.hero__stub:hover .hero__stub-arrow { transform: translateX(6px); }

.hero__stub-label {
  writing-mode: vertical-rl;
  letter-spacing: .3em; font-size: .72rem;
}
.hero__stub-qr {
  width: 76px; height: 76px; background: #fff; color: #1C1642;
  border-radius: 10px; padding: 9px;
}
.hero__stub-qr svg { width: 100%; height: 100%; }
.hero__stub-arrow { width: 30px; height: 30px; transition: transform .35s var(--ease-out); }
.hero__stub-arrow svg { width: 100%; height: 100%; }

/* impresión del ticket al cargar */
.hero__ticket { clip-path: inset(0 0 0 0 round 26px); }
.is-printing .hero__ticket { animation: print-in 1.05s var(--ease-out) both; }
@keyframes print-in {
  from { clip-path: inset(0 0 100% 0 round 26px); transform: translateY(-14px); }
  to { clip-path: inset(0 0 0 0 round 26px); transform: none; }
}
.is-printing .hero__title-line i { animation: line-up .9s var(--ease-out) both; }
.is-printing .hero__title-line:nth-child(1) i { animation-delay: .38s; }
.is-printing .hero__title-line:nth-child(2) i { animation-delay: .48s; }
.is-printing .hero__title-line:nth-child(3) i { animation-delay: .58s; }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
.is-printing .hero__sub, .is-printing .hero__barcode { animation: fade-up .8s var(--ease-out) .75s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Consola "Operación de hoy" ───────────────────────────────── */
.console {
  position: absolute;
  right: max(clamp(26px, 4vw, 64px), calc(50% - 640px + 46px));
  bottom: -66px;
  z-index: 10;
  width: min(390px, calc(100vw - 48px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background .45s ease, border-color .45s ease;
}
.console__head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.console__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mag-vivid);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--mag-vivid) 50%, transparent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mag-vivid) 45%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.console__tag {
  margin-left: auto; font-size: .66rem; letter-spacing: .12em;
  color: var(--slate); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 999px;
}
.console__feed {
  list-style: none; height: 132px; overflow: hidden;
  padding: 10px 18px; display: flex; flex-direction: column; gap: 7px;
  font-size: .66rem; letter-spacing: .06em; color: var(--text-2);
}
.console__feed li { display: flex; gap: 10px; animation: feed-in .5s var(--ease-out); white-space: nowrap; }
.console__feed li b { color: var(--mag); font-weight: 400; }
.console__feed li .ok { color: var(--ink); margin-left: auto; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.console__foot {
  display: flex; justify-content: space-between;
  padding: 11px 18px; border-top: 1px dashed var(--line);
  color: var(--ink); font-size: .62rem;
}
.console__cursor {
  display: inline-block; width: 7px; height: 11px; margin-left: 6px;
  background: var(--mag); animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Marquee partners ─────────────────────────────────────────── */
.partners { padding: 120px 0 0; }
.partners__label { text-align: center; color: var(--slate); margin-bottom: 26px; }
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  list-style: none; display: flex; gap: 18px; width: max-content;
  animation: marquee 30s linear infinite;
  padding-block: 6px;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.chip-stub {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 620; font-size: .95rem;
  padding: 13px 30px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background .45s ease, border-color .45s ease;
}
.chip-stub::before, .chip-stub::after {
  content: ""; position: absolute; top: 50%; translate: 0 -50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--hole-bg, var(--ground));
  border: 1px solid var(--line);
  transition: background .45s ease;
}
.chip-stub::before { left: -7px; }
.chip-stub::after { right: -7px; }

.marquee--slow .marquee__track { animation-duration: 55s; }

/* ── Banda "en terreno": fotos como talones ───────────────────── */
.terreno { margin-top: clamp(48px, 6vw, 84px); overflow: hidden; }
.terreno__label { text-align: center; color: var(--slate); margin-bottom: 28px; }
.terreno__track { gap: clamp(18px, 2.4vw, 30px); align-items: center; }
.photo-stub {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px 12px;
  rotate: var(--tilt, 0deg);
  box-shadow: var(--shadow-soft);
  display: grid; gap: 10px;
  transition: background .45s ease, border-color .45s ease, rotate .4s var(--ease-out);
}
.photo-stub:hover { rotate: 0deg; }
.photo-stub img {
  width: clamp(240px, 24vw, 330px);
  aspect-ratio: 4 / 2.7;
  object-fit: cover;
  border-radius: 8px;
}
.photo-stub .mono {
  color: var(--slate); font-size: .62rem;
  border-top: 1px dashed var(--line);
  padding: 9px 4px 0;
  display: block;
}

/* ── Industrias ───────────────────────────────────────────────── */
.industrias__grid {
  display: grid; grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: clamp(34px, 5vw, 74px);
  align-items: start;
}
.industrias__head { position: sticky; top: calc(var(--nav-h) + 30px); }
.industrias__giant {
  font-size: clamp(9rem, 17vw, 15rem);
  font-weight: 870;
  font-variation-settings: "wdth" 125;
  line-height: .82;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--mag);
  margin-bottom: 20px;
  user-select: none;
}
.industrias__giant span { display: inline-block; }
.industrias__lead { margin-top: 16px; color: var(--text-2); max-width: 42ch; }
.industrias__hint { margin-top: 26px; color: var(--slate); }

.industrias__panel { display: grid; gap: 24px; }
.industrias__photo {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16 / 8.5;
  box-shadow: var(--shadow);
  background: #1C1642;
}
.industrias__photo img {
  width: 100%; height: 100%; object-fit: cover;
  animation: photo-in .7s var(--ease-out);
}
@keyframes photo-in { from { opacity: .2; transform: scale(1.05); } to { opacity: 1; transform: none; } }
.industrias__photo-meta {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 26px 22px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(28, 22, 66, .72));
}

.acc { list-style: none; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; gap: 18px;
  background: none; border: none; cursor: pointer;
  padding: 17px 6px;
  font: inherit; text-align: left; color: var(--ink);
  transition: transform .3s var(--ease-out);
}
.acc__btn:hover { transform: translateX(6px); }
.acc__btn:hover .acc__name { color: var(--mag); }
.acc__code { color: var(--slate); font-size: .66rem; }
.acc__name {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 680;
  font-variation-settings: "wdth" 108;
  transition: color .25s ease;
}
.acc__chev { width: 20px; height: 20px; margin-left: auto; color: var(--slate); transition: transform .4s var(--ease-out), color .25s ease; flex: none; }
.acc__item.is-open .acc__chev { transform: rotate(180deg); color: var(--mag); }
.acc__item.is-open .acc__code { color: var(--mag); }
.acc__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.acc__body > div { overflow: hidden; }
.acc__body p { padding: 0 6px 18px 52px; color: var(--text-2); max-width: 58ch; }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }

/* ── Problema: 4 tarjetas verticales ──────────────────────────── */
.problema__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.pain-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px 22px;
  min-height: 330px;
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .45s ease, border-color .45s ease;
}
/* perforación vertical: muescas arriba y abajo */
.pain-card::before, .pain-card::after {
  content: ""; position: absolute; left: 50%; translate: -50% 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--line);
  transition: background .45s ease;
}
.pain-card::before { top: -9px; }
.pain-card::after { bottom: -9px; }
.pain-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pain-card:hover .pain-card__icon { color: var(--mag); }
.pain-card__icon {
  width: 58px; height: 58px;
  color: var(--ink);
  margin: 10px 0 24px;
  transition: color .35s ease;
}
.pain-card h3 {
  font-size: 1.22rem; font-weight: 700; font-variation-settings: "wdth" 110;
  margin-bottom: 10px;
}
.pain-card p { color: var(--text-2); flex: 1; }

/* ── TickD OS ─────────────────────────────────────────────────── */
.os { position: relative; }
/* Tira de conteo impresa: dato de ticket, no hero-métrica */
.os__tally {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(26px, 3vw, 40px) 0;
  margin-bottom: 34px;
  box-shadow: var(--shadow-soft);
  transition: background .45s ease, border-color .45s ease;
}
.os__tally::before, .os__tally::after {
  content: ""; position: absolute; top: 50%; translate: 0 -50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--line);
  transition: background .45s ease;
}
.os__tally::before { left: -9px; }
.os__tally::after { right: -9px; }
.os__tally-item {
  display: grid; gap: 8px; justify-items: center; text-align: center;
}
.os__tally-item + .os__tally-item { border-left: 1px dashed var(--line); }
.os__tally-item b {
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 125;
  font-weight: 880;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--mag);
  font-variant-numeric: tabular-nums;
}
.os__tally-item .mono { color: var(--slate); font-size: .68rem; }

.os__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.module {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 26px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .45s ease, border-color .45s ease;
}
.module::before, .module::after {
  content: ""; position: absolute; top: 50%; translate: 0 -50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--line);
  transition: background .45s ease;
}
.module::before { left: -8px; }
.module::after { right: -8px; }
.module:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.module:hover .module__icon { color: var(--mag); transform: translateY(-2px); }
.module--wide { grid-column: span 2; }
.module__code {
  display: block;
  color: var(--slate); font-size: .62rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px; margin-bottom: 18px;
}
.module__code::before { content: "MÓDULO "; letter-spacing: .14em; }

/* color por módulo: ciclo magenta / navy / rosa dentro de la paleta */
.os__grid .module:nth-child(3n+1) { --mod: var(--mag); }
.os__grid .module:nth-child(3n+2) { --mod: #4A4380; }
.os__grid .module:nth-child(3n) { --mod: var(--pink); }
[data-theme="dark"] .os__grid .module:nth-child(3n+2) { --mod: #8F88C8; }
.os__grid .module {
  background: color-mix(in srgb, var(--mod) 6%, var(--paper));
  border-color: color-mix(in srgb, var(--mod) 22%, var(--line));
}
.os__grid .module .module__icon { color: var(--mod); }
.os__grid .module .module__code { color: color-mix(in srgb, var(--mod) 55%, var(--ink)); border-color: color-mix(in srgb, var(--mod) 30%, var(--line)); }
.os__grid .module:hover .module__icon { color: var(--mod); transform: translateY(-2px) scale(1.08); }
.module__icon {
  width: 34px; height: 34px; color: var(--ink);
  margin-bottom: 16px;
  transition: color .3s ease, transform .35s var(--ease-out);
}
.module h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 7px; font-variation-settings: "wdth" 108; }
.module p { font-size: .88rem; color: var(--text-2); }

.os__pillars {
  margin-top: clamp(44px, 6vw, 72px);
  background: var(--ink-deep);
  border-radius: 20px;
  padding: clamp(30px, 4vw, 50px);
  color: #C9C5E4;
}
[data-theme="dark"] .os__pillars { background: var(--paper); border: 1px solid var(--line); }
.os__pillars-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 780;
  font-variation-settings: "wdth" 115;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.os__pillars-title em { font-style: normal; color: var(--pink); }
[data-theme="dark"] .os__pillars-title { color: var(--ink); }
.os__pillars-list {
  list-style: none; counter-reset: pilar;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3vw, 40px);
}
.os__pillars-list li { counter-increment: pilar; position: relative; padding-top: 34px; }
.os__pillars-list li::before {
  content: "0" counter(pilar);
  position: absolute; top: 0; left: 0;
  font-family: "Fragment Mono", monospace;
  font-size: .68rem; letter-spacing: .14em;
  color: var(--pink);
  border-bottom: 1px dashed color-mix(in srgb, var(--pink) 45%, transparent);
  padding-bottom: 6px; width: 100%;
}
.os__pillars-list b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
[data-theme="dark"] .os__pillars-list b { color: var(--ink); }
.os__pillars-list span { font-size: .88rem; }

/* ── Integraciones ────────────────────────────────────────────── */
.integra__grid {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}
.integra__pairs { list-style: none; margin-top: 40px; display: grid; gap: 14px; }
.integra__pairs li {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 6px 18px; align-items: baseline;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: background .45s ease, border-color .45s ease;
}
.integra__prob { color: var(--slate); font-size: .66rem; }
.integra__sol { color: var(--mag-text); font-size: .66rem; }
.integra__pairs p { font-size: .92rem; color: var(--text-2); }
.integra__pairs p + .integra__sol + p,
.integra__pairs .integra__sol ~ p { color: var(--ink); }

.integra__chips {
  position: sticky; top: calc(var(--nav-h) + 30px);
  display: grid; gap: 10px;
  background: var(--ground-deep);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  --hole-bg: var(--ground-deep);
}
.integra__chips-label { color: var(--slate); margin: 14px 0 4px; }
.integra__chips-label:first-child { margin-top: 0; }
.integra__chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.integra__chips .chip-stub { font-size: .85rem; padding: 10px 22px; }

/* ── CTA intermedio ───────────────────────────────────────────── */
.cta .section__inner { max-width: 1280px; }
.cta__ticket {
  position: relative;
  display: grid; grid-template-columns: 1fr auto;
  border-radius: 24px;
  overflow: hidden;
  /* placa oscura fija: --ink-deep se invierte a blanco en tema oscuro */
  background: linear-gradient(120deg, #1C1642 30%, #6C2154 72%, #E3336C 105%);
  box-shadow: var(--shadow);
  min-height: 320px;
}
.cta__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .26;
  mix-blend-mode: luminosity;
}
/* velo de legibilidad: la foto tiene zonas muy claras (techo de vidrio) que se comen
   el eyebrow y el párrafo según dónde caiga el encuadre. El degradado protege la
   columna de texto y se desvanece antes del talón para no apagar el magenta. */
.cta__ticket::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(16, 12, 40, .88) 0%,
    rgba(16, 12, 40, .78) 32%,
    rgba(16, 12, 40, .40) 58%,
    rgba(16, 12, 40, 0) 84%);
}
.cta__content {
  position: relative; z-index: 2;
  padding: clamp(40px, 6vw, 72px);
  align-self: center;
}
.cta__kicker-data { color: var(--pink); margin-bottom: 18px; }
.cta__content h2 { color: #fff; }
.cta__content p { margin-top: 16px; color: #D8D4EC; max-width: 46ch; }
.cta__stub {
  position: relative; z-index: 2;
  width: clamp(180px, 22vw, 250px);
  background: color-mix(in srgb, #fff 8%, transparent);
  backdrop-filter: blur(4px);
  border-left: 2px dashed rgba(255, 255, 255, .5);
  color: #fff; text-decoration: none;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 34px clamp(22px, 2.6vw, 36px);
  transition: background .3s ease;
}
.cta__stub::before, .cta__stub::after {
  content: ""; position: absolute; left: -12px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--ground);
  transition: background .45s ease;
}
.cta__stub::before { top: -11px; }
.cta__stub::after { bottom: -11px; }
.cta__stub:hover { background: color-mix(in srgb, #fff 16%, transparent); }
.cta__stub:hover svg { transform: translateX(6px); }
.cta__stub .mono { color: var(--pink); font-size: .66rem; }
.cta__stub b { font-size: 1.2rem; font-weight: 720; font-variation-settings: "wdth" 110; line-height: 1.25; }
.cta__stub svg { width: 26px; height: 26px; transition: transform .35s var(--ease-out); }

/* ── Hardware ─────────────────────────────────────────────────── */
.hw__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.hw__card {
  position: relative; overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 30px) clamp(26px, 3vw, 38px) clamp(26px, 3vw, 38px);
  text-align: left;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .45s ease, border-color .45s ease;
}
.hw__card::before, .hw__card::after {
  content: ""; position: absolute; top: 50%; translate: 0 -50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--line);
  transition: background .45s ease;
}
.hw__card::before { left: -9px; }
.hw__card::after { right: -9px; }
.hw__code {
  display: block;
  color: var(--slate); font-size: .62rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px; margin-bottom: 22px;
}
.hw__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.hw__card:hover .hw__draw { color: var(--mag); }
.hw__draw {
  width: clamp(96px, 9vw, 128px); height: auto;
  color: var(--ink);
  margin-bottom: 22px;
  transition: color .35s ease;
}
.hw__card h3 { font-size: 1.18rem; font-weight: 700; font-variation-settings: "wdth" 108; margin-bottom: 9px; }
.hw__card p { color: var(--text-2); font-size: .93rem; max-width: 40ch; }
.hw__spec {
  display: inline-block; margin-top: 18px;
  color: var(--mag-text); font-size: .66rem;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* ── Noticias ─────────────────────────────────────────────────── */
.news__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.news__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  min-height: 220px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .45s ease, border-color .45s ease;
}
.news__card::before, .news__card::after {
  content: ""; position: absolute; top: 50%; translate: 0 -50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--line);
  transition: background .45s ease;
}
.news__card::before { left: -8px; }
.news__card::after { right: -8px; }
.news__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.news__tag {
  display: block; align-self: stretch;
  color: var(--mag-text); font-size: .66rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.news__tag::before { content: "PASE DE PRENSA · "; color: var(--slate); }
.news__card h3 { font-size: 1.05rem; font-weight: 700; font-variation-settings: "wdth" 106; margin-bottom: 8px; }
.news__card p { font-size: .87rem; color: var(--text-2); flex: 1; }
.news__meta { color: var(--slate); font-size: .66rem; margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.news__go {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  margin-top: 14px;
  font-family: "Fragment Mono", monospace;
  font-size: .72rem; letter-spacing: .18em;
  color: #fff; text-decoration: none;
  background: var(--mag);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background .25s ease, transform .3s var(--ease-out), gap .3s var(--ease-out);
}
.news__go:hover { background: var(--mag-vivid); transform: translateY(-2px); gap: 12px; }
.news__go svg { width: 14px; height: 14px; }
/* enlace aún no entregado: no navega (preventDefault en main.js) */
.news__go[data-pending-link] { cursor: default; }

/* ── Video ────────────────────────────────────────────────────── */
.video__frame {
  position: relative;
  border-radius: 22px; overflow: hidden;
  aspect-ratio: 16 / 7.5;
  box-shadow: var(--shadow);
}
.video__frame img { width: 100%; height: 100%; object-fit: cover; }
.video__badge {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px;
  background: linear-gradient(rgba(28, 22, 66, .45), rgba(28, 22, 66, .66));
  color: #fff; padding: 24px;
}
.video__badge p { max-width: 40ch; color: #E6E3F4; font-size: .98rem; }
.video__badge-tag {
  color: var(--pink);
  letter-spacing: .3em; font-size: .72rem;
  border: 1px dashed color-mix(in srgb, var(--pink) 55%, transparent);
  border-radius: 999px;
  padding: 8px 18px;
}
.video__play {
  width: 92px; height: 92px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--mag); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 40px -8px rgba(227, 51, 108, .7);
  transition: transform .35s var(--ease-out), background .25s ease;
}
.video__play:hover { transform: scale(1.08); background: var(--mag-vivid); }
.video__play svg { width: 40px; height: 40px; margin-left: 4px; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Contacto ─────────────────────────────────────────────────── */
.contacto__grid {
  display: grid;
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}
/* Correo, teléfono y cobertura en una sola línea; se reacomodan solos
   cuando cada columna bajaría de 180px. */
.contacto__data {
  list-style: none; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.contacto__data li { display: grid; gap: 5px; border-left: 1px solid var(--line); padding-left: 20px; }
.contacto__data .mono { color: var(--slate); font-size: .66rem; }
.contacto__data a, .contacto__data b {
  color: var(--ink); font-weight: 640; font-size: 1.08rem; text-decoration: none;
  width: fit-content;
}
.contacto__data a:hover { color: var(--mag); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  margin-top: clamp(80px, 10vw, 140px);
  background: var(--ink-deep);
  color: #B9B5D6;
  /* perforación superior */
  -webkit-mask: radial-gradient(circle 7px at 12px 0, transparent 6.5px, #000 7px) -12px 0 / 24px 100% repeat-x;
  mask: radial-gradient(circle 7px at 12px 0, transparent 6.5px, #000 7px) -12px 0 / 24px 100% repeat-x;
}
[data-theme="dark"] .footer { background: var(--ground-deep); }
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(30px, 3.6vw, 44px) clamp(18px, 4vw, 44px) 24px;
  display: grid; gap: 24px;
}
.footer__top {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px 30px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.footer__nav a { color: #D8D4EC; text-decoration: none; font-size: .93rem; font-weight: 560; padding: 6px 0; }
.footer__nav a:hover { color: var(--pink); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between;
  border-top: 1px dashed rgba(255, 255, 255, .16);
  padding-top: 18px;
  color: #9591B4;
  font-size: .62rem;
}

/* ── Reveals de scroll ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* Documentos: se imprimen (misma emisión que el hero), no se desvanecen.
   El estado oculto es solo opacidad — un clip-path total daría área visible
   cero y el IntersectionObserver jamás dispararía el reveal. */
.reveal--print { transform: none; transition: none; }
.reveal--print.is-in {
  transform: none;
  opacity: 1;
  animation: doc-print .8s var(--ease-out) both;
}
@keyframes doc-print {
  from { opacity: 1; clip-path: inset(0 0 100% 0); translate: 0 -12px; }
  to { opacity: 1; clip-path: inset(-60px -60px -60px -60px); translate: 0 0; }
}
.reveal--print[data-reveal-delay="1"].is-in { animation-delay: .08s; }
.reveal--print[data-reveal-delay="2"].is-in { animation-delay: .16s; }
.reveal--print[data-reveal-delay="3"].is-in { animation-delay: .24s; }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-reveal-delay="4"] { transition-delay: .32s; }
.reveal[data-reveal-delay="5"] { transition-delay: .4s; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .os__grid { grid-template-columns: repeat(3, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .os__pillars-list { grid-template-columns: repeat(2, 1fr); }
  .problema__grid { grid-template-columns: repeat(2, 1fr); }
  .pain-card { min-height: 300px; }
  .hw__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .industrias__grid { grid-template-columns: 1fr; }
  .industrias__head { position: static; }
  .industrias__giant { font-size: clamp(7rem, 24vw, 11rem); }
  .integra__grid { grid-template-columns: 1fr; }
  .integra__chips { position: static; }
  .cta__ticket { grid-template-columns: 1fr; }
  /* apilado: el texto queda arriba, así que el velo también se vuelve vertical */
  .cta__ticket::before {
    background: linear-gradient(180deg,
      rgba(16, 12, 40, .88) 0%,
      rgba(16, 12, 40, .78) 46%,
      rgba(16, 12, 40, .42) 74%,
      rgba(16, 12, 40, .10) 100%);
  }
  .cta__stub {
    width: auto; flex-direction: row; align-items: center; justify-content: space-between;
    border-left: none; border-top: 2px dashed rgba(255, 255, 255, .5);
  }
  .cta__stub::before, .cta__stub::after { left: auto; top: -12px; bottom: auto; }
  .cta__stub::before { left: -11px; }
  .cta__stub::after { right: -11px; left: auto; }
  .cta__stub br { display: none; }
}

@media (max-width: 720px) {
  .hero { padding-top: calc(var(--nav-h) + 18px); }
  .hero__ticket {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: auto; min-height: calc(100svh - var(--nav-h) - 40px);
  }
  .hero__meta { right: 0; font-size: .58rem; gap: 12px; }
  .hero__meta-gate { display: none; }
  .hero__copy { padding-bottom: 34px; }
  .hero__stub {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-left: none; border-top: 2px dashed rgba(255, 255, 255, .55);
  }
  .hero__stub::before { left: -11px; top: -12px; }
  .hero__stub::after { right: -11px; left: auto; top: -12px; bottom: auto; }
  .hero__stub-label { writing-mode: horizontal-tb; letter-spacing: .2em; }
  .hero__stub-qr { width: 54px; height: 54px; padding: 7px; }
  .console { position: relative; right: auto; bottom: auto; margin: 22px auto 0; }
  .partners { padding-top: 66px; }
  .problema__grid { grid-template-columns: 1fr; }
  .os__grid { grid-template-columns: 1fr 1fr; }
  .module--wide { grid-column: span 2; }
  .hw__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .os__pillars-list { grid-template-columns: 1fr; }
  .video__frame { aspect-ratio: 16 / 11; }
  .integra__pairs li { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .os__grid { grid-template-columns: 1fr; }
  .module--wide { grid-column: span 1; }
  .hero__title { font-size: clamp(2.2rem, 11vw, 2.9rem); }
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reveal { opacity: 1; transform: none; }
  .reveal--print { clip-path: none; translate: none; opacity: 1; }
}
