/* ==========================================================================
   Zap — sistema visual monocromo (blanco y negro)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #060607;
  --bg-soft: #0b0b0d;
  --panel: #111113;
  --panel-2: #16161a;
  --white: #fafafa;
  --muted: #8b8b93;
  --dim: #5b5b63;
  --line: #232327;
  --line-soft: #1a1a1e;
  --accent: #fafafa;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font: 400 14px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--white); color: #060607; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(255, 255, 255, .07), transparent 65%),
    radial-gradient(700px 420px at 6% 14%, rgba(255, 255, 255, .045), transparent 70%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }

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

.outline { -webkit-text-stroke: 1px rgba(250, 250, 250, .75); color: transparent; }

/* --- cabecera --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.site-header.scrolled { background: rgba(6, 6, 7, .82); border-color: var(--line-soft); backdrop-filter: blur(14px); }

.brand { display: flex; align-items: center; gap: 11px; font: 700 17px var(--font); letter-spacing: -.04em; }

.brand img { width: 30px; height: 30px; object-fit: contain; }

.brand .brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--white); color: #060607;
  display: grid; place-items: center; font: 700 17px var(--font);
}

.nav { display: flex; align-items: center; gap: 26px; font-size: 12.5px; color: var(--muted); }

.nav a { position: relative; transition: color .2s var(--ease); }

.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
  background: var(--white); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav a:hover, .nav a.active { color: var(--white); }

.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 9px 16px; border: 1px solid #35353c; border-radius: 999px; color: var(--white) !important;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.nav-cta::after { display: none; }

.nav-cta:hover { background: var(--white); color: #060607 !important; border-color: var(--white); }

.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 20px; cursor: pointer; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font: 500 10.5px var(--font);
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: blink 2.4s infinite; }

.page { padding-top: 96px; padding-bottom: 120px; }

.page h1, .hero h1 {
  font: 600 clamp(40px, 5.4vw, 72px)/1.02 var(--font); letter-spacing: -.05em; margin: 18px 0 0;
}

.lead { font-size: 16.5px; color: var(--muted); max-width: 560px; }

.section { padding: 110px 0; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }

.section-head h2, .spotlight h2, .final-cta h2 {
  font: 600 clamp(32px, 4vw, 54px)/1.05 var(--font); letter-spacing: -.045em; margin: 16px 0 0;
}

.section-head > p { max-width: 340px; color: var(--muted); margin: 0; }

/* --- botones --- */
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; font: 500 13px var(--font); cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
}

.button:hover { transform: translateY(-2px); }

.button-light { background: var(--white); color: #060607; box-shadow: 0 10px 40px rgba(255, 255, 255, .12); }

.button-light:hover { box-shadow: 0 16px 50px rgba(255, 255, 255, .2); }

.button-outline { border-color: #35353c; color: var(--white); background: transparent; }

.button-outline:hover { background: var(--white); color: #060607; border-color: var(--white); }

.button-ghost { color: var(--muted); border-color: transparent; background: transparent; }

.button-ghost:hover { color: var(--white); }

.text-link { font-size: 12.5px; color: var(--muted); transition: color .2s; }

.text-link:hover { color: var(--white); }

.text-link span { margin-left: 8px; }

/* --- tarjetas --- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

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

.feature-card {
  position: relative; overflow: hidden; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.feature-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, .09), transparent 60%);
}

.feature-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .18); }

.feature-card:hover::before { opacity: 1; }

.number { position: absolute; right: 24px; top: 24px; color: var(--dim); font: 500 11px var(--font); }

.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 17px; margin-bottom: 18px;
}

.feature-card h3 { font: 600 19px var(--font); margin: 0 0 8px; letter-spacing: -.02em; }

.feature-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }

.feature-card > a { display: inline-block; font-size: 12px; color: var(--white); }

/* --- footer --- */
.footer { border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; position: relative; z-index: 1; }

.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }

.footer-main p { margin: 0; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 34px;
  border-top: 1px solid var(--line-soft); color: var(--dim); flex-wrap: wrap;
}

@keyframes blink { 0%, 60% { opacity: 1; } 70%, 100% { opacity: .25; } }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; right: 16px; left: 16px; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line);
    background: rgba(10, 10, 12, .97); backdrop-filter: blur(16px); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 9px 8px; }
  .nav a::after { display: none; }
  .section { padding: 76px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .page { padding-top: 64px; padding-bottom: 80px; }
}

/* --- animación de entrada (la usan los [data-reveal]) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
