:root {
  --navy-950: #050505;
  --navy-900: #0b0b0c;
  --navy-850: #121213;
  --navy-800: #19191b;
  --navy-700: #232326;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f5;
  --text-2: #b4b4b9;
  --text-3: #7c7c82;
  --blue: #6e6e73;
  --cyan: #e8e8e8;
  --violet: #96969b;
  --glow: rgba(232, 232, 232, 0.22);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 6px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Instrument Serif", "Ivar", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(232, 232, 232, 0.3); }

.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }

/* Fondo: rejilla + halos */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  opacity: 0.45;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(800px 500px at 85% -10%, rgba(110, 110, 115, 0.28), transparent 60%),
    radial-gradient(700px 600px at -10% 30%, rgba(150, 150, 155, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(232, 232, 232, 0.10), transparent 60%),
    var(--navy-950);
}

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 5, 5, 0.62);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav .logo svg { height: 22px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-2); font-weight: 500; }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--cyan); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; font: 600 12px var(--mono); }
.lang button { background: none; border: 0; color: var(--text-3); padding: 4px 10px; border-radius: 999px; cursor: pointer; font: inherit; }
.lang button.on { background: rgba(232, 232, 232, 0.14); color: var(--cyan); }
.burger { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  font: 600 14px var(--font); letter-spacing: .02em;
  cursor: pointer; border: 0; transition: transform .2s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #050505;
  background: linear-gradient(135deg, var(--cyan), #e4e4e7 55%, #d4d4d8);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 10px 40px -10px var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 14px 50px -8px var(--glow); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Tipografía */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.label::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3 { font-family: var(--font); margin: 0; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.lead { color: var(--text-2); font-size: clamp(16px, 1.5vw, 19px); max-width: 720px; }
/* Gris metalizado: acero cepillado con reflejos (identidad LynxCap en negro) */
.grad {
  background: linear-gradient(100deg, #8d8d94 0%, #f4f4f6 18%, #a6a6ad 34%, #e2e2e6 50%, #75757c 66%, #d9d9de 82%, #9c9ca3 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: metal 9s ease-in-out infinite;
}
@keyframes metal { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .grad { animation: none; } }
section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 820px; }

/* Tarjeta de cristal */
.glass {
  background: linear-gradient(180deg, rgba(34, 34, 37, 0.55), rgba(18, 18, 19, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}
.glass.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(232,232,232,.55), transparent 35%, transparent 65%, rgba(150,150,155,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--text-3); font-size: 13px; }
footer .top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
footer .logo svg { height: 24px; width: auto; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a:hover { color: var(--text); }
footer .legal { max-width: 880px; line-height: 1.6; }

@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgba(5,5,5,.96); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav .wrap { gap: 12px; }
  .nav-right { margin-left: auto; }
  .nav-right .btn-sm .txt-long { display: none; }
}
@media (max-width: 480px) {
  .nav .logo svg { height: 19px; }
  .lang button { padding: 4px 8px; }
}
