/* =========================================
   WARPQUBIT — Home Page Styles
   ========================================= */

/* ── Hero ────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(255,255,255,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 40% 70% at 10% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding-left: max(40px, calc((100vw - 1280px) / 2 + 40px));
  padding-right: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 0 0 500px;
  max-width: 500px;
}

.hero-visual {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  margin-left: -30px;
  transform: translateY(-40px);
}

.wq-office {
  position: relative;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 956 / 640;
  opacity: 0.55;
  mix-blend-mode: screen;
  filter: brightness(1.6) contrast(1.15);
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 30px, black 130px);
  mask-image: linear-gradient(to right, transparent 0, transparent 30px, black 130px);
}

.wq-office img,
.wq-office canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.wq-office canvas {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.wq-office.is-ready canvas {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .wq-office.is-ready canvas { visibility: hidden; }
}

.hero-content h1 {
  margin-bottom: 28px;
  line-height: 1.05;
}

.hero-accent {
  position: relative;
  display: inline-block;
  background: var(--border-lt);
  padding: 0 10px;
  margin: 0 -10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-sub {
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 40px;
  color: var(--white-70);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stats::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 100%;
  width: 100vw;
  height: 1px;
  background: var(--border);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-lt);
}

.stat-num {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num em {
  font-style: normal;
  font-size: 22px;
  opacity: 0.6;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--white-40);
  max-width: 120px;
  line-height: 1.4;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-40);
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--white-40);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); opacity: 0.4; }
  50% { transform: scaleX(0.5); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
}

/* ══════════════════════════════════════════
   NARRATIVE STAGE BACKGROUNDS
   Each section owns an explicit, deliberate gradient whose start
   color matches the previous section's end color — the black → white
   progression happens as a continuous relay across sections, not as
   one gradient painted indiscriminately over the whole page. Muted
   text tokens are bumped locally once the backdrop passes ~mid-gray
   so contrast stays comfortable as the page lightens.
   ══════════════════════════════════════════ */

.trusted {
  background: linear-gradient(to bottom, #000000, #070707);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services {
  background: linear-gradient(to bottom, #070707, #151515);
}

.process {
  background: linear-gradient(to bottom, #151515, #242424);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why {
  /* Lightens progressively across the whole section (not backloaded),
     and keeps going through extra bottom padding so the eye reads a
     continuous climb rather than "dark, then a late jump". */
  background: linear-gradient(to bottom, #242424 0%, #333333 45%, #505050 100%);
  padding-bottom: calc(120px + 100px);
  --ink-40: rgba(255,255,255,0.7);
  --ink-70: rgba(255,255,255,0.88);
  --ink-border: rgba(255,255,255,0.16);
  --ink-border-lt: rgba(255,255,255,0.4);
}

.cta-strip {
  padding: 0 0 120px;
  position: relative;
  z-index: 1;
  /* Starts exactly where .why ends (#505050) and spreads the climb to
     white across nearly the full section height instead of resolving
     by 72% and plateauing — the handoff reads as one continuous fade. */
  background: linear-gradient(to bottom, #505050 0%, #9a9a9a 45%, #e6e6e6 80%, #f2f2f2 100%);
}

/* ── Trusted / Tech ──────────────────────── */
.trusted-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-40);
  text-align: center;
  margin-bottom: 24px;
}

.trusted-logos {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.tech-badge {
  padding: 8px 20px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: border-color 0.2s, color 0.2s;
}

.tech-badge:hover {
  border-color: var(--border-lt);
  color: var(--white);
}

/* ── Section header (shared rhythm) ──────── */
.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-70);
}

/* ── Services — editorial list, not cards ──
   Five offerings read as a single continuous ledger: a large index
   number, the offering, its scope, and its focus areas — the same
   row grammar already used for "casos de uso" on empresas.html, so
   the two pages share one visual grammar instead of inventing a new
   card style. */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-border);
}

.service-row {
  display: grid;
  grid-template-columns: 88px 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--ink-border);
  transition: padding-left 0.35s cubic-bezier(.4,0,.2,1);
}

.service-row:hover {
  padding-left: 12px;
}

.service-num {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-40);
  padding-top: 6px;
  transition: color 0.3s;
}

.service-row:hover .service-num {
  color: var(--ink);
}

.service-main h3 {
  margin-bottom: 12px;
}

.service-main p {
  max-width: 560px;
  font-size: 15px;
}

.service-focus {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-focus li {
  font-size: 12.5px;
  color: var(--ink-40);
  padding: 10px 0;
  border-top: 1px solid var(--ink-border);
  padding-left: 16px;
  position: relative;
}

.service-focus li:first-child { border-top: none; }

.service-focus li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.5;
  font-size: 11px;
}

/* ── Process ──────────────────────────────── */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 64px;
}

.process-step {
  flex: 1;
  padding: 0 32px;
  position: relative;
}

.process-step:first-child { padding-left: 0; }
.process-step:last-child { padding-right: 0; }

.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: var(--border-lt);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.step-body h3 {
  margin-bottom: 12px;
}

.step-body p {
  font-size: 14px;
  line-height: 1.7;
}

.process-connector {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border-lt), transparent);
  margin-top: 20px;
  flex-shrink: 0;
}

/* ── Why WarpQubit ───────────────────────── */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: center;
}

.why-left h2 { margin-bottom: 20px; }
.why-left p { color: var(--ink-70); }

.why-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-border);
}

.why-item:first-child { border-top: 1px solid var(--ink-border); }

.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-70);
  border: 1px solid var(--ink-border-lt);
  margin-top: 2px;
}

.why-item h4 {
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}

.why-item p {
  font-size: 14px;
  color: var(--ink-40);
  line-height: 1.6;
}

/* ── CTA Strip (closing / light beat) ─────── */
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 64px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #f9f9f9;
  gap: 40px;
  flex-wrap: wrap;
  color: #0a0a0a;
}

.cta-box .eyebrow { color: rgba(10,10,10,0.45); }
.cta-box h2 { font-size: clamp(22px, 3vw, 36px); color: #0a0a0a; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-box .btn-primary {
  background: #0a0a0a;
  color: #ffffff;
}

.cta-box .btn-secondary {
  border-color: rgba(0,0,0,0.2);
  color: #0a0a0a;
}

.cta-box .btn-secondary:hover {
  border-color: #0a0a0a;
  background: rgba(0,0,0,0.05);
}

/* Footer closes the page back to pure black — a deliberate bracket,
   not a continuation of the fade, so the utility navigation always
   sits on a fixed, reliably high-contrast surface across all pages. */
footer { background: var(--black); }

/* ── Scene markers (hero visual language echoed at two seams) ────── */
.services { position: relative; }
.why { position: relative; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .process-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .process-connector { display: none; }
  .process-step { padding: 0; }
  .why-layout { grid-template-columns: 1fr; gap: 60px; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 56px; padding: 0 40px; }
  .hero-content { max-width: none; flex: none; }
  .hero-visual { justify-content: center; flex: none; transform: none; margin-left: 0; }
  .wq-office { max-width: 560px; margin: 0 auto; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-focus { grid-column: 1 / -1; padding-left: 60px; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .service-focus li { border-top: none; padding-left: 14px; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 80px; min-height: unset; }
  .hero-stats { flex-direction: column; gap: 24px; align-items: flex-start; }
  .stat-divider { width: 40px; height: 1px; }
  .process-steps { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .hero-scroll { display: none; }
  .hero-inner { padding: 0 24px; }
  .wq-office { max-width: 100%; }
  .service-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .service-row:hover { padding-left: 0; }
  .service-focus { padding-left: 0; }
  .service-num { padding-top: 0; }
}
