/* ===== Tokens ===== */
:root {
  --blue: #1558F6;
  --blue-light: #4D9BFF;
  --void: #07090F;
  --navy-900: #0D1626;
  --navy-800: #151F3B;
  --navy-600: #1E2E52;
  --ice: #E8ECF5;
  --steel: #8A9CC2;
  --paper: #FDFDFC;
  --line: #E4E7EF;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

a, button, .team-card {
  cursor: pointer;
}

h1, h2, h3, h4, .logo, .eyebrow, .btn {
  font-family: var(--font-head);
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

.accent { color: var(--blue-light); }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(21, 88, 246, 0.22), transparent 70%),
    radial-gradient(circle, rgba(232, 236, 245, 0.12) 1px, transparent 1px);
  background-size: auto, 34px 34px;
  background-position: center, center;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 40%, transparent 90%);
}
.hero-content { position: relative; max-width: 820px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid rgba(77, 155, 255, 0.35);
  background: rgba(77, 155, 255, 0.08);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(56px, 10vw, 108px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--ice);
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--steel);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.btn svg { transition: transform 0.28s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--blue);
  color: var(--ice);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ice);
  border-color: rgba(232, 236, 245, 0.3);
}
.btn-outline:hover {
  border-color: var(--ice);
  transform: translateY(-2px);
}
.section-light .btn-outline { color: var(--void); border-color: rgba(7,9,15,0.25); }
.section-light .btn-outline:hover { border-color: var(--void); }

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin-left: -210px;
  margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 155, 255, 0.22) 0%, rgba(77, 155, 255, 0.08) 45%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.6s var(--ease), background 0.4s var(--ease);
  will-change: transform;
}
/* ===== Sections ===== */
.section { padding: 120px 0; }
.section-dark { background: var(--void); }
.section-light { background: var(--paper); color: var(--void); }
.section-light .steel-text { color: #5A6478; }

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 850px;
  margin: 0 0 56px;
  color: var(--ice);
  text-wrap: balance;
}
.section-title.dark { color: var(--void); }

/* ===== Problema ===== */
.privacy-block p {
  color: var(--steel);
  font-size: 17px;
  max-width: 680px;
}
.privacy-block strong { color: var(--ice); }

/* ===== Producto ===== */
.product-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.product-visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.terminal-shape { position: relative; width: 70%; aspect-ratio: 1; }
.terminal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(21, 88, 246, 0.35);
}
.terminal-ring::before {
  content: '';
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1.5px solid rgba(21, 88, 246, 0.5);
}
.terminal-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--blue-light), var(--blue) 65%, #0C3FC4);
  box-shadow: 0 0 60px rgba(21, 88, 246, 0.45);
}
.product-text p {
  font-size: clamp(18px, 2.4vw, 24px);
  color: #3A4256;
  line-height: 1.6;
}
.product-text strong { color: var(--void); }

/* ===== Como funciona ===== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.how-num {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 16px;
}
.how-item h4 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.how-item p { color: var(--steel); font-size: 15.5px; }

/* ===== Propósito ===== */
.sector-note { color: #5A6478; font-size: 16px; max-width: 560px; }

/* ===== Diferencial ===== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  background: var(--navy-900);
  border: 1px solid var(--navy-600);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.diff-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}
.diff-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}
.diff-card h4 { font-size: 19px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.diff-card p { color: var(--steel); font-size: 15px; margin: 0; }

/* ===== Equipo ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  display: block;
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(7,9,15,0.06);
  border-color: var(--blue);
}
.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 18px;
}
.team-card h4 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
  color: var(--void);
  transition: color 0.25s var(--ease);
}
.team-card:hover h4 { color: var(--blue); }

/* ===== Contacto ===== */
.section-contact { text-align: center; }
.contact-sub {
  color: var(--steel);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 48px;
}
.contact-email { font-size: 17px; }

/* ===== Footer ===== */
.footer { background: var(--navy-900); padding: 48px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--steel); font-size: 14px; transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--ice); }
.footer-copy { color: #5A6484; font-size: 13px; margin: 0; width: 100%; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-visual { max-width: 280px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 40px; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .hero-sub { margin-bottom: 32px; }
  .product-layout { margin-bottom: 56px; gap: 40px; }
  .diff-card, .team-card { padding: 28px 22px; }
  .footer { padding: 40px 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
  .footer-links { justify-content: center; gap: 18px 22px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-email { width: 100%; justify-content: center; }
  .diff-card, .team-card { padding: 24px 20px; }
  .avatar { width: 56px; height: 56px; font-size: 17px; }
}
