/* ============================================================
   TECHCAM DATA STUDIO · landing styles
   Industrial Argentino · IBM Plex Mono · catálogo técnico
   ============================================================ */

:root {
  --paper: #E8DDC4;
  --paper-2: #DCD0B4;          /* slightly darker for stripes */
  --ink: #1A1A1A;
  --ink-50: rgba(26, 26, 26, 0.55);
  --ink-25: rgba(26, 26, 26, 0.28);
  --ink-10: rgba(26, 26, 26, 0.12);
  --orange: #E85D2F;
  --live: #34D058;

  --hair: 1px solid var(--ink);
  --hair-faint: 1px solid var(--ink-25);

  --gutter: 20px;
  --col: 1fr;
  --maxw: 1320px;

  --fz-micro: 12px;
  --fz-tiny: 13px;
  --fz-small: 14px;
  --fz-body: 16px;
  --fz-lead: 19px;
  --fz-h3: 22px;
  --fz-h2: 36px;
  --fz-display: clamp(40px, 8.4vw, 116px);
}

@media (min-width: 760px) {
  :root { --gutter: 28px; --fz-body: 17px; --fz-h2: 48px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 40px; --fz-body: 17px; --fz-h2: 56px; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: var(--fz-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* faint horizontal scanlines like printed paper */
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(0,0,0,0.012) 3px,
      rgba(0,0,0,0.012) 4px
    );
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }

p { margin: 0 0 1em; text-wrap: pretty; }

hr {
  border: 0;
  border-top: var(--hair);
  margin: 0;
}

/* ============================================================
   LAYOUT GRID
   ============================================================ */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule { border-top: var(--hair); }
.rule-faint { border-top: var(--hair-faint); }

/* ============================================================
   00 · TICKER BAR (the one protagonist animation)
   ============================================================ */

.ticker {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
  font-size: var(--fz-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
}

.ticker-rail {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-scroll 75s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-rail,
.ticker:focus-within .ticker-rail { animation-play-state: paused; }

.ticker-rail > span { display: inline-flex; align-items: center; gap: 10px; }

.ticker-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--live);
  border-radius: 0;
  animation: pulse 1.6s ease-in-out infinite;
}

.ticker-sep { color: rgba(232, 221, 196, 0.35); }

.ticker-tag {
  color: var(--live);
  font-weight: 500;
}

.ticker-num { font-variant-numeric: tabular-nums; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-rail { animation: none; padding-left: 0; }
  .ticker-dot  { animation: none; }
}

/* ============================================================
   HEADER
   ============================================================ */

.site-head {
  border-bottom: var(--hair);
  padding: 18px 0 16px;
}

.site-head .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
}

@media (min-width: 760px) {
  .site-head .row {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }
}

.brand-line { display: flex; flex-direction: column; gap: 4px; }

.brand-mark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: var(--fz-tiny);
  color: var(--ink-50);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.primary {
  display: flex;
  gap: 22px;
  font-size: var(--fz-tiny);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav.primary a { position: relative; padding-bottom: 2px; }
nav.primary a::before {
  content: '↳';
  margin-right: 6px;
  color: var(--ink-50);
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */

section {
  border-bottom: var(--hair);
  padding: 56px 0;
}

@media (min-width: 760px) { section { padding: 88px 0; } }

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 28px;
  border-bottom: var(--hair-faint);
  margin-bottom: 32px;
  font-size: var(--fz-tiny);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sec-num {
  font-weight: 600;
  font-size: var(--fz-small);
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px 2px;
  line-height: 1;
  align-self: start;
}

.sec-title { color: var(--ink); }
.sec-meta {
  text-align: right;
  color: var(--ink-50);
  font-size: var(--fz-micro);
}

@media (min-width: 760px) {
  .sec-head {
    grid-template-columns: auto 1fr auto;
  }
}

/* ============================================================
   01 · APERTURA
   ============================================================ */

.apertura {
  padding-top: 72px;
  padding-bottom: 72px;
}

.apertura .display {
  font-family: inherit;
  font-size: var(--fz-display);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
  max-width: 17ch;
}

.apertura .display .fix {
  color: var(--orange);
  font-style: normal;
}

/* strike: pseudo-element line that gets drawn after typewriter; see ANIMATIONS block */
.apertura .display .strike {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.apertura .display .strike::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.apertura .display .strike.drawn::after { transform: scaleX(1); }

.apertura .lede {
  font-size: var(--fz-lead);
  max-width: 56ch;
  margin-bottom: 36px;
  color: var(--ink);
}

.apertura .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.apertura-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: end;
}

@media (min-width: 980px) {
  .apertura-grid {
    grid-template-columns: 1fr 280px;
    gap: 56px;
  }
}

.fiche {
  border: var(--hair);
  padding: 16px;
  font-size: var(--fz-tiny);
  display: grid;
  gap: 10px;
  align-self: end;
  background: rgba(0,0,0,0.015);
}

.fiche-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  line-height: 1.4;
}

.fiche-k {
  color: var(--ink-50);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  padding-top: 2px;
}

.fiche-v { color: var(--ink); }
.fiche-v .live { color: var(--live); font-weight: 500; }
.fiche-v .live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--live);
  margin-right: 6px;
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: var(--fz-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s linear, color 0.12s linear, border-color 0.12s linear;
  border-radius: 0;
  line-height: 1;
}

.btn:hover { background: var(--ink); color: var(--paper); }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.btn-primary {
  border-color: var(--ink);
  background: var(--live);
  color: var(--ink);
  transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out, padding 80ms ease-out;
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--live);
  border-color: var(--live);
}
.btn-primary:active {
  background: #2BB849;
  color: var(--ink);
  padding-top: 12px;
  padding-bottom: 12px;
}
.btn-primary .arrow {
  display: inline-block;
  transition: transform 200ms ease-out;
}
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fz-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
}
.btn-link:hover { color: var(--orange); border-bottom-color: var(--orange); }
.btn-link .arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
.btn-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   02 · PROBLEMA
   ============================================================ */

.problema-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.diag {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: var(--hair-faint);
  align-items: start;
}
.diag:last-of-type { border-bottom: var(--hair-faint); }

@media (min-width: 760px) {
  .diag { grid-template-columns: 90px 1fr 168px; gap: 32px; padding: 28px 0; }
}

.diag-num {
  font-size: var(--fz-tiny);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border-right: 1px solid var(--ink-25);
  padding-right: 18px;
  height: 100%;
  display: flex;
  align-items: start;
}

.diag-body {
  font-size: var(--fz-lead);
  line-height: 1.45;
  max-width: 62ch;
  text-wrap: pretty;
}

/* meta column: impact meter + label, ficha-style */
.diag-meta {
  display: none;
}
@media (min-width: 760px) {
  .diag-meta {
    display: grid;
    gap: 10px;
    padding-top: 4px;
    text-align: left;
  }
}
.diag-meta .k {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.diag-impact {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.diag-impact .dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  background: transparent;
  display: inline-block;
  transition: background-color 250ms ease-out;
}
.diag-impact .dot.on { background: var(--orange); border-color: var(--orange); }
.diag-impact .dot.live { background: var(--live); border-color: var(--live); }
.diag-tag-chip {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  border: 1px solid var(--ink);
  padding: 3px 6px 2px;
  display: inline-block;
  line-height: 1.1;
}

.diag-tag {
  display: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  text-align: right;
  padding-top: 6px;
}
@media (min-width: 760px) { .diag-tag { display: block; } }

.problema-close {
  margin-top: 36px;
  padding: 22px 22px 20px;
  border: 2px solid var(--ink);
  background: transparent;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
@media (min-width: 760px) {
  .problema-close { grid-template-columns: 1fr auto; gap: 36px; }
}
.problema-close .text {
  font-size: var(--fz-lead);
  font-weight: 500;
}
.problema-close .text::before {
  content: '¬ ';
  color: var(--orange);
}
.problema-checks {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.problema-checks .box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease-out;
}
.problema-checks .box:hover { background: rgba(232,93,47,0.08); }
.problema-checks .box.on { background: var(--ink); color: var(--orange); }
.problema-checks .k {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-right: 4px;
}

/* ============================================================
   03A · DÍA IMPOSIBLE
   ============================================================ */

.day-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
@media (min-width: 760px) {
  .day-intro { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.persona {
  border: var(--hair);
  padding: 16px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  font-size: var(--fz-tiny);
}
.persona-avatar {
  width: 56px; height: 56px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
}
.persona-k {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.day-tbl {
  border-top: var(--hair);
  border-bottom: var(--hair);
}

.day-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: var(--hair-faint);
}
.day-row:last-child { border-bottom: 0; }

@media (min-width: 860px) {
  .day-row { grid-template-columns: 160px 1fr 1fr; }
}

.day-time {
  padding: 22px 18px 12px;
  border-bottom: var(--hair-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 860px) {
  .day-time { border-bottom: 0; border-right: var(--hair-faint); padding: 26px 18px; }
}
.day-clock {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.day-context {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.day-cell {
  padding: 18px;
  font-size: var(--fz-body);
  line-height: 1.5;
  position: relative;
}
.day-cell + .day-cell { border-top: var(--hair-faint); }
@media (min-width: 860px) {
  .day-cell + .day-cell { border-top: 0; border-left: var(--hair-faint); }
}

.day-cell .ribbon {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
  padding: 2px 6px;
  line-height: 1;
}
.day-cell.before .ribbon {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}
.day-cell.after .ribbon {
  background: var(--live);
  color: var(--ink);
}

.day-cell.before { color: var(--ink-50); }
.day-cell.before .body { text-decoration: line-through; text-decoration-color: var(--ink-25); }
.day-cell.after .body { color: var(--ink); font-weight: 500; }

/* ============================================================
   03B · BITÁCORA
   ============================================================ */

.bitacora {
  position: relative;
  padding-left: 28px;
  display: grid;
  gap: 6px;
}
.bitacora::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ink);
}
@media (min-width: 760px) { .bitacora { padding-left: 56px; } }
.log {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: var(--hair-faint);
  position: relative;
}
.log:last-of-type { border-bottom: 0; }

.log::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 30px;
  width: 12px;
  height: 1px;
  background: var(--ink);
}
@media (min-width: 760px) {
  .log::before { left: -62px; width: 18px; }
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.log-metric {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 4px 8px 3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.log-metric.live {
  color: var(--ink);
  background: var(--live);
  border-color: var(--ink);
}
.log-metric.live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--ink);
  margin-right: 6px;
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}

.log-tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.log-tag .blob {
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  background: var(--ink);
}
@media (min-width: 760px) {
  .log-tag .blob { left: -67px; width: 11px; height: 11px; }
}
.log-tag.now .blob { background: var(--live); animation: pulse 1.6s ease-in-out infinite; }

.log-body {
  font-size: var(--fz-lead);
  line-height: 1.5;
  max-width: 62ch;
  text-wrap: pretty;
}

.bitacora-disclaimer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: var(--hair-faint);
  font-size: var(--fz-micro);
  color: var(--ink-50);
  max-width: 70ch;
  line-height: 1.5;
}

/* ============================================================
   04 · CATÁLOGO
   ============================================================ */

.catalog { border-top: var(--hair); }

.op {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 22px 0;
  border-bottom: var(--hair-faint);
}
@media (min-width: 760px) {
  .op { grid-template-columns: 110px 1fr 1.2fr; gap: 28px; padding: 26px 0; align-items: start; }
}
@media (min-width: 880px) {
  .op { grid-template-columns: 110px 1fr 1.2fr 170px; gap: 28px; }
}
@media (min-width: 1100px) {
  .op { grid-template-columns: 110px 1fr 1.3fr 200px; gap: 32px; }
}

.op-stack {
  display: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
  padding-top: 8px;
  line-height: 1.5;
}
.op-stack .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-25);
  margin-bottom: 4px;
}
@media (min-width: 880px) { .op-stack { display: block; } }

.op-id {
  font-size: var(--fz-tiny);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-50);
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-left: 14px;          /* reserved space for hover caret — prevents layout shift */
}
.op-id::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  opacity: 0;
  transition: opacity 150ms ease-out;
  font-weight: 600;
}
.op { cursor: default; transition: color 150ms ease-out; }
.op:hover { cursor: pointer; }
.op:hover .op-id::before { opacity: 1; }
.op:hover .op-id { color: var(--ink); }
.op-name {
  font-size: var(--fz-h3);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.op-desc {
  font-size: var(--fz-body);
  line-height: 1.5;
  max-width: 56ch;
  color: var(--ink);
}

.op:hover .op-name { color: var(--orange); }

/* ============================================================
   05 · PROCESO
   ============================================================ */

.proceso {
  position: relative;
  display: grid;
  gap: 4px;
}

.phase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 0;
  border-bottom: var(--hair-faint);
  position: relative;
}
.phase:last-of-type { border-bottom: 0; }

@media (min-width: 760px) {
  .phase { grid-template-columns: 200px 1fr 200px; gap: 40px; padding: 32px 0; align-items: start; }
}

.phase-fiche {
  display: none;
  border-left: 1px solid var(--ink-25);
  padding: 4px 0 4px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
@media (min-width: 760px) { .phase-fiche { display: grid; gap: 10px; } }
.phase-fiche .row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.phase-fiche .k {
  text-transform: uppercase;
  color: var(--ink-50);
  letter-spacing: 0.14em;
  font-size: 11px;
  padding-top: 1px;
}
.phase-fiche .v {
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.phase-fiche .v.live { color: var(--live); }

.phase-marker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phase-num {
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.phase-when {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.phase-body { max-width: 62ch; }
.phase-name {
  font-size: var(--fz-h3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.phase-text { font-size: var(--fz-body); line-height: 1.55; }

/* ============================================================
   06 · DATOS BAJO CONTROL
   ============================================================ */

.seguridad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .seguridad-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

.seguridad-lede {
  font-size: var(--fz-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 14ch;
}

.seguridad-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hair-faint);
}
.seguridad-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: var(--hair-faint);
  align-items: baseline;
  font-size: var(--fz-body);
  line-height: 1.4;
}
.seguridad-list li .k {
  font-size: var(--fz-tiny);
  color: var(--ink-50);
  font-variant-numeric: tabular-nums;
}

.seguridad-close {
  margin-top: 24px;
  font-size: var(--fz-lead);
  font-weight: 500;
  max-width: 40ch;
}

/* ============================================================
   07 · CTA FORM
   ============================================================ */

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.cta-copy h2 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.cta-copy .sub {
  font-size: var(--fz-lead);
  margin: 0 0 18px;
  color: var(--ink);
}
.cta-copy .body {
  font-size: var(--fz-body);
  line-height: 1.6;
  max-width: 52ch;
  color: var(--ink);
}

form.lead {
  border: 2px solid var(--ink);
  padding: 24px;
  background: var(--paper);
  display: grid;
  gap: 18px;
}

.field { display: grid; gap: 6px; }

.field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: var(--fz-body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0 8px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.12s;
  resize: none;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--orange); }

.field textarea { min-height: 70px; }

.field .req { color: var(--orange); }

.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}
.form-foot .micro {
  font-size: var(--fz-micro);
  color: var(--ink-50);
  max-width: 44ch;
  line-height: 1.5;
}

.form-success {
  display: none;
  padding: 18px;
  border: 1px dashed var(--live);
  background: rgba(52, 208, 88, 0.08);
  font-size: var(--fz-body);
}
.form-success.on { display: block; }
form.lead.sent .field, form.lead.sent .form-foot { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-foot {
  padding: 36px 0 24px;
  font-size: var(--fz-tiny);
  background: var(--ink);
  color: var(--paper);
  border-top: var(--hair);
}
.site-foot a:hover { color: var(--live); }

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}

.foot-mark {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.foot-k {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,221,196,0.5);
  margin-bottom: 6px;
}
.foot-row { line-height: 1.7; }
.foot-bar {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(232,221,196,0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,221,196,0.5);
}

/* ============================================================
   UTILITIES
   ============================================================ */

.mono-tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--live);
  vertical-align: 2px;
  margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
.live-text { color: var(--live); font-weight: 500; }

.cur { font-variant-numeric: tabular-nums; }

/* hide visually but keep for screen readers */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   ANIMATIONS · paquete v2
   Todas las animaciones de esta landing se concentran acá para
   poder leerlas / desactivarlas / portarlas como bloque único.
   Cada bloque indica QUÉ hace y POR QUÉ.
   ============================================================ */

/* --- B1 · TYPEWRITER ---------------------------------------------------------
   El headline aparece letra por letra al primer load. JS envuelve cada char
   en <span class="ch">. Estado inicial: invisible y sin ocupar layout extra.
   La regla solo aplica cuando el h1 está en modo "tw" (armado por JS), así
   que sin JS / sin sessionStorage limpio, el texto se ve completo por defecto.
---------------------------------------------------------------------------- */
.display.tw .ch { opacity: 0; }
.display.tw .ch.on { opacity: 1; }
/* mientras tipea, la línea de tachado y el cursor están escondidos */
.display.tw .strike::after { transform: scaleX(0); }

/* --- A5 · CURSOR TERMINAL -----------------------------------------------------
   Bloque parpadeante al final del headline. Color naranja máquina, timing
   VT100 (≈530ms on / 530ms off). Aparece recién cuando termina el typewriter.
---------------------------------------------------------------------------- */
.term-cursor {
  display: inline-block;
  color: var(--orange);
  margin-left: 4px;
  font-weight: 500;
  line-height: 1;
  vertical-align: baseline;
  opacity: 0;                                  /* hidden hasta .typed */
  transform: translateY(-0.04em);
}
.display.typed .term-cursor {
  opacity: 1;
  animation: term-blink 1.06s steps(1, end) infinite;
}
/* si no hay JS / no se dispara typewriter, igual mostramos el cursor estático */
.display:not(.tw) .term-cursor {
  opacity: 1;
}
@keyframes term-blink {
  0%, 49.999%   { opacity: 1; }
  50%, 100%     { opacity: 0; }
}

/* --- D1 · BITÁCORA REVEAL ----------------------------------------------------
   La línea vertical se "dibuja" top→bottom cuando la sección entra al viewport
   (ver .bitacora::before más arriba). Los .log items aparecen estáticos —
   probamos un stagger por opacity/transform y resultó frágil en ciertos motores
   de render (iframes con transform:scale), así que la animación se reservó
   exclusivamente para la línea, que es la metáfora central de "bitácora".
---------------------------------------------------------------------------- */

/* --- D2 · IMPACT METER FILL --------------------------------------------------
   Cada .diag en sección 02 tiene un medidor de 4 puntos. Cuando la sección
   entra al viewport, los puntos se llenan de izq→der con stagger por fila
   y por punto, simulando un instrumento de medición industrial.
   Estado por defecto: ya pintados (no-JS safe). Si JS detecta la sección
   antes de viewport, arma .armed para esconder y desencadenar.
---------------------------------------------------------------------------- */
#problema.armed .diag-impact .dot { background: transparent !important; border-color: var(--ink) !important; }
#problema.armed.in .diag-impact .dot { transition: background-color 200ms ease-out, border-color 200ms ease-out; }
#problema.armed.in .diag .diag-impact .dot.on   { background: var(--orange) !important; border-color: var(--orange) !important; }
#problema.armed.in .diag .diag-impact .dot.live { background: var(--live)   !important; border-color: var(--live)   !important; }
/* stagger por fila */
#problema.armed.in .diag:nth-of-type(1) .dot { transition-delay: 0ms; }
#problema.armed.in .diag:nth-of-type(2) .dot { transition-delay: 80ms; }
#problema.armed.in .diag:nth-of-type(3) .dot { transition-delay: 160ms; }
#problema.armed.in .diag:nth-of-type(4) .dot { transition-delay: 240ms; }
/* dentro de cada fila, los puntos se encienden en cascada */
#problema.armed.in .diag .diag-impact .dot:nth-child(1) { transition-delay: calc(var(--row-delay, 0ms) + 0ms); }
#problema.armed.in .diag:nth-of-type(1) .diag-impact .dot:nth-child(1) { transition-delay: 0ms; }
#problema.armed.in .diag:nth-of-type(1) .diag-impact .dot:nth-child(2) { transition-delay: 90ms; }
#problema.armed.in .diag:nth-of-type(1) .diag-impact .dot:nth-child(3) { transition-delay: 180ms; }
#problema.armed.in .diag:nth-of-type(1) .diag-impact .dot:nth-child(4) { transition-delay: 270ms; }
#problema.armed.in .diag:nth-of-type(2) .diag-impact .dot:nth-child(1) { transition-delay: 120ms; }
#problema.armed.in .diag:nth-of-type(2) .diag-impact .dot:nth-child(2) { transition-delay: 210ms; }
#problema.armed.in .diag:nth-of-type(2) .diag-impact .dot:nth-child(3) { transition-delay: 300ms; }
#problema.armed.in .diag:nth-of-type(2) .diag-impact .dot:nth-child(4) { transition-delay: 390ms; }
#problema.armed.in .diag:nth-of-type(3) .diag-impact .dot:nth-child(1) { transition-delay: 240ms; }
#problema.armed.in .diag:nth-of-type(3) .diag-impact .dot:nth-child(2) { transition-delay: 330ms; }
#problema.armed.in .diag:nth-of-type(3) .diag-impact .dot:nth-child(3) { transition-delay: 420ms; }
#problema.armed.in .diag:nth-of-type(3) .diag-impact .dot:nth-child(4) { transition-delay: 510ms; }
#problema.armed.in .diag:nth-of-type(4) .diag-impact .dot:nth-child(1) { transition-delay: 360ms; }
#problema.armed.in .diag:nth-of-type(4) .diag-impact .dot:nth-child(2) { transition-delay: 450ms; }
#problema.armed.in .diag:nth-of-type(4) .diag-impact .dot:nth-child(3) { transition-delay: 540ms; }
#problema.armed.in .diag:nth-of-type(4) .diag-impact .dot:nth-child(4) { transition-delay: 630ms; }

/* --- D3 · CLOCKS TICK (sec 03A) ---------------------------------------------
   Los 3 relojes (08:00 / 10:30 / 18:00) ticquean desde 00:00 al entrar al
   viewport. JS resetea el textContent en init y arranca el contador en el
   observer. La columna .day-time usa tabular-nums → cero shift de ancho.
   No requiere CSS extra: la animación es 100% por update de textContent.
   En reduced-motion, el JS no toca los valores y se ven directo.
---------------------------------------------------------------------------- */

/* --- D4 · PROCESO REVEAL (sec 05) -------------------------------------------
   Las 4 fases aparecen con stagger top→bottom, reforzando la idea de
   secuencia temporal del proceso. Mismo patrón visual que D1 (bitácora)
   pero con timing más ajustado (380ms / 120ms entre fases).
---------------------------------------------------------------------------- */
.proceso.armed .phase {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 380ms ease-out, transform 380ms ease-out;
}
.proceso.armed.in .phase {
  opacity: 1;
  transform: translateY(0);
}
.proceso.armed.in .phase:nth-of-type(1) { transition-delay: 0ms; }
.proceso.armed.in .phase:nth-of-type(2) { transition-delay: 120ms; }
.proceso.armed.in .phase:nth-of-type(3) { transition-delay: 240ms; }
.proceso.armed.in .phase:nth-of-type(4) { transition-delay: 360ms; }

/* --- D5 · SEGURIDAD PRINT (sec 06) ------------------------------------------
   Los 4 ítems imprimen izq→der, evocando una impresora matricial bajando
   línea por línea. Translation horizontal corta + opacity. Stagger 100ms.
---------------------------------------------------------------------------- */
.seguridad-list.armed li {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 340ms ease-out, transform 340ms ease-out;
}
.seguridad-list.armed.in li {
  opacity: 1;
  transform: translateX(0);
}
.seguridad-list.armed.in li:nth-child(1) { transition-delay: 0ms; }
.seguridad-list.armed.in li:nth-child(2) { transition-delay: 100ms; }
.seguridad-list.armed.in li:nth-child(3) { transition-delay: 200ms; }
.seguridad-list.armed.in li:nth-child(4) { transition-delay: 300ms; }

/* --- PREFERS-REDUCED-MOTION --------------------------------------------------
   Plan de contingencia para usuarios con animaciones reducidas:
   · Ticker se detiene.
   · Pulsos de live-dot apagados.
   · Typewriter: el JS detecta el media query y muestra el texto completo
     directamente (no hace falta CSS aquí, ya lo cubre la regla .display:not(.tw)).
   · Cursor terminal queda estático (sin parpadeo).
   · Strike aparece dibujado (transición sin animación, pero scaleX(1) si .drawn).
   · Reveal de bitácora: el JS no arma .armed; los items se ven directo.
   Hover effects se mantienen — no son problemáticos.
---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ticker-rail            { animation: none; padding-left: 0; }
  .ticker-dot,
  .live-dot,
  .fiche-v .live::before,
  .log-tag.now .blob      { animation: none; }
  .display.typed .term-cursor { animation: none; opacity: 1; }
  .apertura .display .strike::after,
  .bitacora::before       { transition: none; }
  .proceso.armed .phase,
  .seguridad-list.armed li { transition: none; opacity: 1; transform: none; }
  /* el JS también respeta el flag y no arma .tw / .armed / clocks tick */
}
