/* ═══════════════════════════════════════════════════════════
   éxodo bpo — TECNOLOGÍA CINEMÁTICA
   Identidad de página: amarillo #FFB900 · misma gramática
   Carga DESPUÉS de home-cine.css
   ═══════════════════════════════════════════════════════════ */
:root { --amar: #FFB900; --amar-d: #8a6400; --ink-2: #070708; --panel: #101013; }
.yellow { color: var(--amar); }

#nav { mix-blend-mode: normal; color: #fff; }
#nav.scrolled {
  background: rgba(7, 7, 8, 0.82);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.n-links li.active a { opacity: 1; }
.n-links li.active a::after { transform: scaleX(1); }

/* ═ HERO AMARILLO ═ */
.pgh {
  height: 100vh; height: 100svh; position: relative;
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--amar);
}
#heroCanvas { position: absolute; inset: 0; z-index: 0; }
.pgh-vig {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 110%, rgba(70, 48, 0, 0.55), transparent 55%),
    radial-gradient(ellipse 140% 110% at 50% 50%, transparent 38%, rgba(60, 42, 0, 0.6) 100%);
}
.pgh ::selection { background: #0a0a0b; color: var(--amar); }
.pgh-ct { position: relative; z-index: 3; width: 100%; padding: 0 var(--pad) clamp(72px, 12vh, 140px); }
.pgh-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-bottom: clamp(20px, 3vh, 36px);
  opacity: 0; transform: translateY(14px);
}
.pgh-badge i {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}
.pgh-h {
  font-size: clamp(44px, min(9vw, 14svh), 148px);
  font-weight: 760; letter-spacing: -0.045em; line-height: 0.96;
  color: #fff; margin-bottom: clamp(26px, 4vh, 44px);
}
.pgh-h .hl { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.06em; }
.pgh-h .hl-in { display: block; transform: translateY(112%); will-change: transform; }
.pgh-h .em { font-size: 1.04em; line-height: 0.9; color: rgba(255, 255, 255, 0.95); }
.pgh-p {
  font-size: clamp(14px, 1.15vw, 17px); font-weight: 300; line-height: 1.85;
  color: rgba(60, 42, 0, 0.85); max-width: 470px;
  opacity: 0; transform: translateY(16px); font-weight: 400;
}
.pgh-meta {
  position: absolute; z-index: 3; top: 50%; right: var(--pad);
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  color: rgba(60, 42, 0, 0.55); opacity: 0;
}
.pgh-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0;
}
.pgh-scroll .mono { font-size: 8px; color: rgba(60, 42, 0, 0.6); letter-spacing: 0.3em; }
.pgh-scroll .sc-line { background: rgba(60, 42, 0, 0.25); }
.pgh-scroll .sc-line::after { background: rgba(60, 42, 0, 0.7); }

/* ═ encabezados oscuros ═ */
.sd-h {
  font-size: clamp(30px, 4.2vw, 64px); font-weight: 750; letter-spacing: -0.04em;
  line-height: 1.04; max-width: 820px;
}
.sd-h em { font-size: 1.05em; }
.sd-sub { font-size: 14px; font-weight: 300; color: var(--mut); max-width: 460px; line-height: 1.85; margin-top: 20px; text-wrap: pretty; }

/* ═ OCR PIPELINE (tinta) ═ */
.ocr { padding: clamp(90px, 13vh, 180px) var(--pad); background: var(--ink); }
.ocr-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 6vw, 120px); align-items: center; }
.ocr-p { font-size: 14.5px; font-weight: 300; line-height: 1.9; color: var(--mut); margin: 24px 0 40px; max-width: 440px; text-wrap: pretty; }
.ocr-stats { display: flex; gap: clamp(32px, 4vw, 64px); }
.ocr-stat-num {
  font-size: clamp(34px, 3.6vw, 54px); font-weight: 230; letter-spacing: -0.03em;
  color: var(--amar); font-variant-numeric: tabular-nums;
}
.ocr-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mut-d); margin-top: 8px; }
.pipebox { background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.06); padding: clamp(24px, 2.6vw, 42px); position: relative; }
.pipebox-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pipebox-ti { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mut-d); }
.pipebox-live { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amar); }
.pipebox-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--amar); animation: pulse 1.6s ease-in-out infinite; }
.pipeline { position: relative; }
.pipeline::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: rgba(255, 255, 255, 0.08); }
.pipe-fill { position: absolute; left: 5px; top: 10px; width: 1px; height: 0; background: var(--amar); }
.pipe-step { display: flex; gap: 20px; align-items: flex-start; padding: 14px 0; position: relative; opacity: 0.22; transition: opacity 0.5s var(--ease); }
.pipe-step.active { opacity: 1; }
.pipe-step.done { opacity: 0.6; }
.pipe-dot {
  width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
  margin-top: 4px; flex-shrink: 0; position: relative; z-index: 1;
  transition: background 0.4s, box-shadow 0.4s;
}
.pipe-step.active .pipe-dot { background: var(--amar); animation: pipePulse 1.5s ease-in-out infinite; }
.pipe-step.done .pipe-dot { background: var(--amar); animation: none; box-shadow: none; }
@keyframes pipePulse { 0%, 100% { box-shadow: 0 0 8px rgba(255, 185, 0, 0.3); } 50% { box-shadow: 0 0 20px rgba(255, 185, 0, 0.55); } }
.pipe-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mut-d); margin-bottom: 4px; transition: color 0.4s; }
.pipe-step.active .pipe-label { color: var(--amar); }
.pipe-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.pipe-result {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--mut);
  line-height: 1.9; max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease);
}
.pipe-step.done .pipe-result, .pipe-step.active .pipe-result { max-height: 120px; }
.pipe-result .pv { color: var(--amar); font-weight: 500; }

/* ═ STACK (hueso) ═ */
.stackc { background: var(--bone); color: var(--ink); padding: clamp(90px, 13vh, 180px) var(--pad); }
.stackc .sd-sub { color: #8d897f; }
.stack-rows { margin-top: clamp(44px, 6vh, 72px); border-top: 1px solid rgba(10, 10, 11, 0.12); }
.stack-row {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: clamp(20px, 3vw, 48px); align-items: baseline;
  padding: clamp(22px, 3.2vh, 36px) 0; border-bottom: 1px solid rgba(10, 10, 11, 0.12);
  position: relative; opacity: 0; transform: translateY(24px);
}
.stack-row::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--amar); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.stack-row:hover::before { transform: scaleX(1); }
.stack-name { font-size: clamp(20px, 2.2vw, 32px); font-weight: 750; letter-spacing: -0.025em; }
.stack-de { font-size: 13.5px; font-weight: 300; line-height: 1.85; color: #6e6b65; max-width: 520px; text-wrap: pretty; }
.stack-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.stack-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em;
  padding: 5px 12px; border: 1px solid rgba(10, 10, 11, 0.18); border-radius: 100px;
  color: #6e6b65; white-space: nowrap; transition: all 0.3s;
}
.stack-row:hover .stack-tag { border-color: rgba(10, 10, 11, 0.4); color: var(--ink); }

/* ═ PLATAFORMAS (tinta-2) ═ */
.prods { background: var(--ink-2); padding: clamp(90px, 13vh, 180px) var(--pad); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 32px); margin-top: clamp(44px, 6vh, 72px); }
.prod-card {
  background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(28px, 3vw, 52px); position: relative; overflow: hidden;
  opacity: 0; transform: translateY(30px);
}
.prod-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--amar); transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.prod-card:hover::after { transform: scaleX(1); }
.prod-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--amar); border: 1px solid rgba(255, 185, 0, 0.35);
  border-radius: 100px; padding: 5px 14px; display: inline-block; margin-bottom: 28px;
}
.prod-name { font-size: clamp(26px, 2.8vw, 42px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 14px; }
.prod-name span { font-weight: 200; }
.prod-de { font-size: 13.5px; font-weight: 300; line-height: 1.9; color: var(--mut); margin-bottom: 30px; text-wrap: pretty; }
.prod-feats { display: flex; flex-direction: column; gap: 12px; }
.prod-feat { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; font-weight: 300; color: var(--mut); line-height: 1.7; }
.prod-feat::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--amar); margin-top: 7px; flex-shrink: 0; }

/* ═ INTEGRACIONES (tinta) ═ */
.ints { background: var(--ink); padding: clamp(90px, 13vh, 180px) var(--pad); }
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.07); margin-top: clamp(44px, 6vh, 72px); }
.int-cell {
  background: var(--ink); padding: clamp(26px, 2.8vw, 44px); min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; opacity: 0; transform: translateY(24px);
  transition: background 0.4s;
}
.int-cell:hover { background: var(--panel); }
.int-cell::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--amar); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.int-cell:hover::before { transform: scaleX(1); }
.int-name { font-size: clamp(20px, 2vw, 30px); font-weight: 750; letter-spacing: -0.025em; }
.int-type { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mut-d); margin-top: 20px; }
.int-note { margin-top: 32px; font-size: 13px; font-weight: 300; color: var(--mut); }
.int-note strong { color: var(--fg); font-weight: 600; }

/* ═ API PLAYGROUND (tinta-2) ═ */
.api { background: var(--ink-2); padding: clamp(90px, 13vh, 180px) var(--pad); }
.api-box { background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.07); margin-top: clamp(44px, 6vh, 72px); max-width: 940px; overflow: hidden; }
.api-bar { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.api-method {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--amar); padding: 4px 12px; background: rgba(255, 185, 0, 0.08);
}
.api-url { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mut); flex: 1; }
.api-run {
  padding: 8px 24px; background: var(--amar); color: #0a0a0b; border: none;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: box-shadow 0.3s; border-radius: 100px;
}
.api-run:hover { box-shadow: 0 6px 24px rgba(255, 185, 0, 0.35); }
.api-run:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.api-panels { display: grid; grid-template-columns: 1fr 1fr; }
.api-panel { padding: 24px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.95; }
.api-panel:first-child { border-right: 1px solid rgba(255, 255, 255, 0.06); }
.api-panel-label { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mut-d); margin-bottom: 14px; display: block; }
.api-panel pre { white-space: pre-wrap; word-break: break-all; }
.api-panel .ak { color: #c9c6bf; } .api-panel .av { color: var(--amar); } .api-panel .ab { color: var(--mut-d); }
.api-panel .ag { color: #58c463; } .api-panel .amut { color: var(--mut-d); }
.api-loading { color: var(--amar); animation: apiPulse 1s ease-in-out infinite; }
@keyframes apiPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ═ CTA ═ */
.sd-cta {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--ink); padding: clamp(90px, 12vh, 150px) 32px;
}
.sd-cta .cta-h { font-size: clamp(40px, 7vw, 110px); }
.sd-cta .cta-h em { color: var(--amar); }
.sd-cta .cta-tagline { color: var(--mut-d); }
.cta-btn.amar { background: var(--amar); color: #0a0a0b; }
.cta-btn.amar:hover { box-shadow: 0 24px 70px rgba(255, 185, 0, 0.35); }

/* ═ RESPONSIVE ═ */
@media (max-width: 1024px) {
  .ocr-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .api-panels { grid-template-columns: 1fr; }
  .api-panel:first-child { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .stack-row { grid-template-columns: 1fr; gap: 10px; }
  .stack-tags { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .pgh-meta { display: none; }
  .int-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pgh-h .hl-in, .pgh-badge, .pgh-p, .pgh-scroll, .pgh-meta,
  .stack-row, .prod-card, .int-cell { opacity: 1 !important; transform: none !important; }
  .pipe-step { opacity: 1 !important; }
  .pipe-result { max-height: none !important; }
}

/* ═ palabras-acento siempre en amarillo ═ */
.sd-h em { color: var(--amar); }
.sd-cta .cta-h em { color: var(--amar); }
