/* ============================================================
   pentIA — Landing page styles
   Dark cyber theme · cyan → violet gradient accents
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-soft: #080c16;
  --panel: #0b1020;
  --panel-2: #0d1326;
  --surface: rgba(148, 163, 184, 0.06);
  --surface-2: rgba(148, 163, 184, 0.12);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e6ecf5;
  --muted: #93a1b5;
  --faint: #5d6b80;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Background FX ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
  /* capa propia: el grid no se repinta durante el scroll */
  transform: translateZ(0);
}

/* Orbes: gradiente radial pre-difuminado (sin filter: blur, que castiga el GPU en móvil) */
.orb {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: orb-float 16s ease-in-out infinite alternate;
}
.orb-1 {
  width: 560px; height: 560px;
  top: -180px; left: -160px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.4) 0%, rgba(14, 116, 144, 0.14) 45%, transparent 68%);
}
.orb-2 {
  width: 480px; height: 480px;
  top: 24vh; right: -200px;
  animation-delay: -8s;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.4) 0%, rgba(91, 33, 182, 0.14) 45%, transparent 68%);
}

@keyframes orb-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(30px, 45px, 0) scale(1.12); }
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 7, 13, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18), 0 4px 14px rgba(34, 211, 238, 0.18);
}
.brand em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:not(.btn) {
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

a.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 12px;
  padding: 14px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad);
  color: #03060c;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.28), 0 2px 10px rgba(139, 92, 246, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(34, 211, 238, 0.4), 0 4px 16px rgba(139, 92, 246, 0.35);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--nav-h) + 64px) 0 96px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 54ch;
  margin-bottom: 34px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  letter-spacing: 0.04em;
}

/* Terminal */

.hero-terminal { position: relative; }

.terminal-window {
  background: linear-gradient(180deg, rgba(13, 19, 38, 0.92), rgba(8, 12, 22, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(34, 211, 238, 0.08);
  overflow: hidden;
  position: relative;
}
.terminal-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.04);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.85;
  padding: 22px 24px;
  min-height: 322px; /* fallback si JS no corre; el JS fija la altura exacta */
  overflow: hidden;
}
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-cmd  { color: var(--text); }
.t-info { color: var(--muted); }
.t-ai   { color: var(--cyan); }
.t-ok   { color: var(--green); }
.t-warn { color: var(--amber); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text);
  background: rgba(11, 16, 32, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: chip-float 6s ease-in-out infinite alternate;
}
.chip-1 { top: -18px; left: -14px; }
.chip-2 { bottom: -16px; right: -10px; animation-delay: -3s; color: var(--green); border-color: rgba(52, 211, 153, 0.35); }
@keyframes chip-float {
  from { transform: translateY(-4px); }
  to   { transform: translateY(6px); }
}

/* Stats */

.stats-bar {
  margin-top: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.05), rgba(148, 163, 184, 0.02));
  overflow: hidden;
}
.stat {
  padding: 30px 24px;
  text-align: center;
  position: relative;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.section { padding: 108px 0; }
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-head h2,
.deliverables-copy h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.06rem; }

.muted { color: var(--muted); }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), rgba(11, 16, 32, 0.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.65), rgba(139, 92, 246, 0.65));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(34, 211, 238, 0.07);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: var(--cyan);
  margin-bottom: 22px;
}
.card-icon svg { width: 25px; height: 25px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.service-card:hover .tags span { color: var(--muted); border-color: var(--border-strong); }

/* ---------- Metodología ---------- */

.steps {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.5));
  opacity: 0.35;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 6px var(--bg);
  position: relative;
  z-index: 1;
}
.step-body {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.045), rgba(148, 163, 184, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover .step-body { border-color: rgba(34, 211, 238, 0.35); transform: translateX(4px); }
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-body h3 em {
  font-style: normal;
  color: var(--cyan);
}
.step-body p { color: var(--muted); font-size: 0.95rem; }

.callout {
  max-width: 780px;
  margin: 44px auto 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.callout-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.callout-icon svg { width: 23px; height: 23px; }
.callout h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 4px; }
.callout p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Plataforma (features) ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.045), rgba(148, 163, 184, 0.015));
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.07), rgba(148, 163, 184, 0.02));
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Entregables ---------- */

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.deliverables-grid > * { min-width: 0; }
.deliverables-copy .section-label { margin-bottom: 16px; }
.deliverables-copy p { max-width: 50ch; margin-bottom: 28px; }

.checklist { display: grid; gap: 16px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
}
.checklist svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  padding: 3px;
}

/* Finding card (mock report) */

.finding-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 50px rgba(248, 113, 113, 0.05);
  font-size: 0.92rem;
}
.finding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.finding-ref { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.06em; }
.finding-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
}
.finding-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.finding-title h3 { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.4; }
.finding-title code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}

.sev {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 6px;
  padding: 5px 10px;
  margin-top: 2px;
}
.sev-critical { color: #fecaca; background: rgba(248, 113, 113, 0.14); border: 1px solid rgba(248, 113, 113, 0.45); }

.finding-rows { border-top: 1px solid var(--border); }
.finding-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.finding-row span { color: var(--faint); }
.finding-row strong { color: var(--text); font-weight: 500; text-align: right; }

.finding-poc {
  margin: 18px 0;
  background: #060910;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
}
.finding-poc code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  white-space: pre;
}

.finding-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.finding-summary span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border-radius: 6px;
  padding: 5px 10px;
  border: 1px solid;
}
.fs-c { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }
.fs-h { color: #fdba74; border-color: rgba(251, 146, 60, 0.4); background: rgba(251, 146, 60, 0.08); }
.fs-m { color: #fde047; border-color: rgba(250, 204, 21, 0.35); background: rgba(250, 204, 21, 0.07); }
.fs-l { color: #94a3b8; border-color: var(--border-strong); background: var(--surface); }

/* ---------- CTA panel ---------- */

.cta-section { padding: 40px 0 108px; }

.cta-panel {
  position: relative;
  text-align: center;
  padding: 72px 40px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(139, 92, 246, 0.14), transparent 60%),
    var(--panel);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.5), transparent 30%, transparent 70%, rgba(139, 92, 246, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 16px;
  line-height: 1.2;
}
.cta-panel p { color: var(--muted); max-width: 52ch; margin: 0 auto 34px; }
.cta-note {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-info > p { max-width: 46ch; margin-bottom: 34px; }

.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list svg {
  flex-shrink: 0;
  width: 44px; height: 44px;
  padding: 11px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 12px;
  box-sizing: content-box;
}
.contact-list span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.contact-list a, .contact-list strong { font-weight: 500; font-size: 0.98rem; }
.contact-list a { color: var(--cyan); }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: linear-gradient(180deg, var(--panel), rgba(11, 16, 32, 0.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a1b5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}
.form-field select:invalid { color: var(--faint); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
}

.form-success {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.form-success[hidden] { display: none; }
.form-success svg {
  flex-shrink: 0;
  width: 26px; height: 26px;
  color: var(--green);
}
.form-success strong { font-family: var(--font-display); }
.form-success p { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 30ch;
  margin-top: 16px;
}
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 26px;
  font-size: 0.85rem;
  color: var(--faint);
}
.footer-tag { font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 48px; }
}

@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .hero { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 72px; }

  /* Sin backdrop-filter en móvil: repintar el blur en cada frame del scroll es costoso */
  .navbar.scrolled {
    background: rgba(5, 7, 13, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 7, 13, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) {
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-links a:not(.btn)::after { display: none; }
  a.nav-cta-mobile {
    display: inline-flex;
    margin-top: 20px;
    justify-content: center;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-terminal { max-width: 560px; margin: 12px auto 0; }
  .chip { display: none; }
  .terminal-body {
    /* más compacta en móvil: menos líneas envueltas = terminal menos alta */
    font-size: 0.76rem;
    line-height: 1.75;
    padding: 18px 18px;
    min-height: 200px;
  }

  .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }

  .deliverables-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .container { width: min(1180px, 100% - 36px); }
  .section { padding: 68px 0; }
  .hero-sub { font-size: 1.02rem; }
  .hero-actions .btn { flex: 1 1 auto; }

  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .cta-panel { padding: 52px 24px; }
  .contact-form { padding: 26px 20px; }
  .finding-card { padding: 22px 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step-num { width: 44px; height: 44px; font-size: 0.8rem; border-radius: 11px; }
  .steps::before { left: 21.5px; }
  .callout { flex-direction: column; padding: 22px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
