/* ============ tokens ============ */
:root {
  --navy-0: #0d1826;
  --navy-1: #0a1420;
  --navy-2: #08101a;
  --navy-3: #060c14;
  --navy-4: #04080e;
  --navy-5: #020408;
  --steel: #8fa3b8;
  --steel-dim: #4d5c6e;
  --paper: #eef2f6;
  --amber: #e8a556;
  --alert: #d84b3a;
  --cyan: #4fd1e5;
  --border-soft: rgba(143, 163, 184, 0.16);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--navy-1);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1rem;
}

/* ============ header / nav ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--navy-1);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  mix-blend-mode: difference;
}
.logo-text span { display: block; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--steel); font-family: var(--font-mono); font-weight: 400; }

.tagline-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--steel);
  text-align: right;
  mix-blend-mode: difference;
}

.top-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 50;
}
.top-progress-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
}

.product-tabs {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  gap: 0.3rem;
  background: rgba(4, 8, 14, 0.65);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.3rem;
  backdrop-filter: blur(6px);
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.tab-btn:hover { color: var(--paper); }
.tab-btn.is-active { background: var(--cyan); color: var(--navy-5); font-weight: 600; }

@media (max-width: 760px) {
  .product-tabs { top: auto; bottom: 1rem; left: 1rem; right: 1rem; transform: none; justify-content: center; }
}

/* ============ paginas de producto (Sentinel / Aegis) ============ */
.product-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-5);
}
.product-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,4,8,0.4) 0%, rgba(2,4,8,0.1) 40%, rgba(2,4,8,0.88) 100%);
}
.product-hero-copy {
  position: relative; z-index: 2;
  padding: 0 clamp(1.4rem, 6vw, 5rem) clamp(4rem, 10vh, 7rem);
  max-width: 46rem;
}
.product-hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0.3rem 0 1.2rem;
}

.product-body {
  background: var(--navy-5);
  padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 4rem);
  border-top: 1px solid var(--border-soft);
}
.product-body-inner { max-width: 40rem; margin: 0 auto; }
.product-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin: 0 0 2rem;
}
.product-features {
  list-style: none; margin: 0 0 2.4rem; padding: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.product-features li {
  font-size: 0.95rem; line-height: 1.6; color: var(--paper);
  padding-left: 1.3rem; position: relative;
}
.product-features li::before {
  content: "›"; position: absolute; left: 0; color: var(--cyan); font-weight: 700;
}
.product-body .btn-primary { border: none; cursor: pointer; }

.stage-nav {
  position: fixed;
  right: clamp(1rem, 3vw, 2.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}
.stage-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.stage-nav li {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel-dim);
  transition: color 0.3s ease;
}
.stage-nav li .n { opacity: 0.7; }
.stage-nav li .t {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0; transition: max-width 0.35s ease, opacity 0.35s ease;
}
.stage-nav li.is-active { color: var(--paper); }
.stage-nav li.is-active .t { max-width: 12rem; opacity: 1; margin-left: 0.1rem; }
.stage-nav li.is-active .n { color: var(--amber); opacity: 1; }

@media (max-width: 760px) {
  .stage-nav { display: none; }
}

/* ============ hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.4rem, 6vw, 5rem) 4rem;
  background: radial-gradient(ellipse at 30% 20%, var(--navy-0), var(--navy-2) 70%);
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0.3rem 0 1.6rem;
  text-transform: uppercase;
}

.hero-claim {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  max-width: 40rem;
  color: var(--paper);
  margin: 0 0 1.2rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--steel);
  max-width: 34rem;
  line-height: 1.6;
}

.scroll-cue {
  margin-top: 3rem;
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--steel-dim);
  text-transform: uppercase;
}
.scroll-cue span {
  width: 1px; height: 2.2rem;
  background: linear-gradient(var(--steel-dim), transparent);
  animation: cue-pulse 1.8s ease-in-out infinite;
}
@keyframes cue-pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============ cinematic scroll block ============ */
.cine-block {
  position: relative;
  background: var(--navy-4);
}

.cine-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--navy-5);
}

#cine-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.cine-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(2,4,8,0.55) 0%, rgba(2,4,8,0) 22%, rgba(2,4,8,0) 70%, rgba(2,4,8,0.75) 100%),
    radial-gradient(ellipse at center, rgba(2,4,8,0) 45%, rgba(2,4,8,0.55) 100%);
  pointer-events: none;
}

.cine-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--steel);
  background: var(--navy-5);
  transition: opacity 0.5s ease;
  z-index: 5;
}
.cine-loading.is-hidden { opacity: 0; pointer-events: none; }

.stage-text {
  position: absolute;
  left: clamp(1.4rem, 6vw, 5rem);
  bottom: clamp(2.5rem, 10vh, 6rem);
  max-width: 34rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 3;
}
.stage-text.is-visible { opacity: 1; transform: translateY(0); }

.stage-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.8rem;
}

.stage-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.stage-stat strong { color: var(--cyan); font-weight: 700; }

/* ============ finale overlay (stage 5, inside the cine canvas) ============ */
.stage-text--finale {
  left: 50%;
  bottom: auto;
  top: 50%;
  transform: translate(-50%, calc(-50% + 16px));
  text-align: center;
  max-width: 36rem;
}
.stage-text--finale.is-visible {
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.stage-text--finale .stage-label { display: block; }

.cta-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 2rem;
}

.final-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  letter-spacing: 0.03em;
  margin-bottom: 2.4rem;
}
.final-logo span { display: block; font-size: 0.55rem; letter-spacing: 0.4em; color: var(--steel); font-family: var(--font-mono); font-weight: 400; margin-top: 0.4rem; }

.stage-text--finale .final-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: left;
}
.stage-text--finale .final-logo img { width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; }
.stage-text--finale .final-logo span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 1.9rem); letter-spacing: 0.03em; color: var(--paper); }
.stage-text--finale .final-logo em { display: block; font-style: normal; font-size: 0.5rem; letter-spacing: 0.35em; color: var(--steel); font-family: var(--font-mono); font-weight: 400; margin-top: 0.3rem; }

.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-5);
  background: var(--paper);
  padding: 1rem 2.2rem;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover { background: var(--cyan); transform: translateY(-2px); }

/* ============ pricing ============ */
.pricing {
  background: var(--navy-5);
  padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 4rem);
}

.pricing-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(3rem, 6vh, 4.5rem); }
.pricing-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0;
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 84rem;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 34rem; }
}

.plan {
  position: relative;
  background: var(--navy-3);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 2.2rem 1.8rem 2.4rem;
  display: flex;
  flex-direction: column;
}

.plan-plata { border-top: 2px solid #b9c4cf; }
.plan-oro { border-top: 2px solid var(--amber); background: var(--navy-2); }
.plan-platinum { border-top: 2px solid var(--cyan); }

.plan.is-featured { transform: translateY(-0.8rem); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
@media (max-width: 980px) { .plan.is-featured { transform: none; } }

.plan-featured-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--navy-5);
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 999px;
}

.plan-head { margin-bottom: 1.6rem; }
.plan-medal { font-size: 1.6rem; }
.plan-head h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.8rem; margin: 0.3rem 0 0.2rem;
}
.plan-tag { margin: 0; font-size: 0.9rem; color: var(--steel); }
.plan-audience { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--steel-dim); line-height: 1.4; }

.plan-price-table {
  width: 100%; border-collapse: collapse; margin: 1.4rem 0;
  font-family: var(--font-mono); font-size: 0.82rem;
}
.plan-price-table td { padding: 0.45rem 0; border-bottom: 1px dashed var(--border-soft); }
.plan-price-table td:last-child { text-align: right; color: var(--paper); font-weight: 600; }
.plan-price-table td:first-child { color: var(--steel); }

.plan-includes-note {
  font-size: 0.78rem; color: var(--steel); font-style: italic; margin: 0 0 0.8rem;
}

.plan-features {
  list-style: none; margin: 0 0 1.6rem; padding: 0;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.plan-features li {
  font-size: 0.85rem; line-height: 1.5; color: var(--paper);
  padding-left: 1.1rem; position: relative;
}
.plan-features li::before {
  content: "›"; position: absolute; left: 0; color: var(--cyan); font-weight: 700;
}
.plan-features li strong { color: var(--amber); }

.examples-title {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel); margin: 0.6rem 0 0.8rem;
}

.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
.plan-examples { width: 100%; border-collapse: collapse; font-size: 0.76rem; min-width: 22rem; }
.plan-examples th, .plan-examples td { padding: 0.5rem 0.5rem; text-align: left; white-space: nowrap; }
.plan-examples thead th { color: var(--steel); font-weight: 500; border-bottom: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.plan-examples tbody td { border-bottom: 1px solid rgba(143,163,184,0.08); }
.plan-examples tbody td:nth-child(4), .plan-examples tbody td:nth-child(5) { font-family: var(--font-mono); color: var(--paper); }

.plan-value-note { font-size: 0.76rem; color: var(--steel-dim); line-height: 1.5; margin-top: 0.5rem; }

.plan-covered-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  background: rgba(79, 209, 229, 0.08);
  border: 1px solid rgba(79, 209, 229, 0.25);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  margin: -0.4rem 0 1.2rem;
}
.plan-covered-note strong { color: var(--paper); }

.plan-cta-row { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.plan-cta-row .btn-plan { margin-top: 0; flex: 1; }

.btn-plan {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-plan:hover { border-color: var(--cyan); background: rgba(79, 209, 229, 0.08); }

.btn-plan-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy-5);
  font-weight: 600;
}
.btn-plan-primary:hover { background: var(--paper); border-color: var(--paper); }

/* ============ modal de contacto ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 4, 8, 0.78);
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy-2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 2.4rem clamp(1.4rem, 4vw, 2.4rem);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--steel);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--paper); border-color: var(--cyan); }

.modal-dialog h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.modal-sub { font-size: 0.85rem; color: var(--steel); margin: 0 0 1.8rem; }

.hp-field { position: absolute; left: -9999px; }

.form-field { display: block; margin-bottom: 1.2rem; }
.form-field span {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}
.form-field span em { font-style: normal; color: var(--steel-dim); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--navy-4);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 0.8rem;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.modal-dialog .btn-primary {
  width: 100%;
  border: none;
  margin-top: 0.4rem;
}
.modal-dialog .btn-primary:disabled { opacity: 0.6; cursor: default; }

.form-status { font-size: 0.8rem; margin: 0.9rem 0 0; min-height: 1.2em; }
.form-status.is-success { color: var(--cyan); }
.form-status.is-error { color: var(--alert); }

/* ============ final cta + footer ============ */
.final-cta {
  background: var(--navy-5);
  text-align: center;
  padding: clamp(4rem, 10vh, 7rem) 1.5rem clamp(5rem, 12vh, 8rem);
}

.site-footer {
  background: #010204;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  color: var(--steel-dim);
  font-size: 0.8rem;
}
.site-footer .final-logo { margin-bottom: 1rem; }
.site-footer p { margin: 0.3rem 0; }
.copyright { font-family: var(--font-mono); font-size: 0.68rem; margin-top: 1rem !important; }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
  .stage-text, .btn-primary { transition: none; }
}

.cine-block.is-reduced-motion { height: auto; }
.cine-block.is-reduced-motion .cine-sticky {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.cine-block.is-reduced-motion .cine-vignette { display: none; }
.cine-block.is-reduced-motion .stage-text {
  position: relative;
  left: auto; right: auto; bottom: auto; top: auto;
  transform: none;
  max-width: none;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem clamp(1.4rem, 6vw, 5rem);
  background-size: cover;
  background-position: center;
}
.cine-block.is-reduced-motion .stage-text--finale {
  align-items: center;
  justify-content: center;
  text-align: center;
}
