/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08090c;
  --bg-elev: #0f1116;
  --border: rgba(255,255,255,0.08);
  --text: #f2f3f5;
  --text-dim: #9a9ea8;
  --text-dimmer: #6b6f78;
  --accent: #00fcab;
  --accent-soft: #5dffc9;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --max: 1120px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8,9,12,0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8,9,12,0.85);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent-soft); }
.logo .dot { color: var(--text-dimmer); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #06070a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(0,252,171,0.5); }
.btn-nav {
  background: var(--text);
  color: #08090c;
  padding: 9px 18px;
  font-size: 0.85rem;
}
.btn-nav:hover { transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 25% 30%, rgba(0,252,171,0.25), transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(0,252,171,0.18), transparent 45%);
  filter: blur(60px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(2%, -3%) scale(1.05); }
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.grad {
  color: var(--accent-soft);
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--text-dimmer);
}
.hero-note strong { color: var(--text-dim); }

/* ---------- Sections shared ---------- */
section { position: relative; padding: 110px 0; }
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 14px;
}
.tag-lyra { color: var(--accent-soft); }
.tag-zayn { color: var(--accent-soft); }
h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.center { text-align: center; }
.br-desktop { display: inline; }
@media (max-width: 640px) { .br-desktop { display: none; } }

/* ---------- Concept ---------- */
.concept { border-top: 1px solid var(--border); }
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.concept-copy {
  color: var(--text-dim);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.concept-copy strong { color: var(--text); }
@media (max-width: 860px) {
  .concept-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Agents ---------- */
.agent { border-top: 1px solid var(--border); }
.agent-lyra { background: radial-gradient(ellipse at 20% 50%, rgba(0,252,171,0.08), transparent 60%); }
.agent-zayn { background: radial-gradient(ellipse at 80% 50%, rgba(0,252,171,0.08), transparent 60%); }
.agent-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.agent-grid-reverse { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) {
  .agent-grid, .agent-grid-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .agent-grid-reverse .agent-visual { order: -1; }
}
.agent-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 20px 0 22px;
  max-width: 480px;
}
.agent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agent-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  color: var(--text);
}
.agent-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.agent-cta { margin-top: 28px; }

.callback-form { max-width: 420px; }
.callback-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.callback-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.callback-input::placeholder { color: var(--text-dimmer); }
.callback-input:focus {
  outline: none;
  border-color: var(--accent);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.callback-status {
  margin-top: 10px;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.callback-status.is-success { color: var(--accent-soft); }
.callback-status.is-error { color: #ff8a8a; }

/* Orb visuals */
.agent-visual { display: flex; justify-content: center; }
.orb {
  position: relative;
  width: 260px; height: 260px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-lyra {
  background: radial-gradient(circle at 35% 30%, rgba(0,252,171,0.35), rgba(0,252,171,0.05) 70%);
  border: 1px solid rgba(0,252,171,0.25);
}
.orb-zayn {
  background: radial-gradient(circle at 65% 30%, rgba(0,252,171,0.35), rgba(0,252,171,0.05) 70%);
  border: 1px solid rgba(0,252,171,0.25);
}
.orb-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  z-index: 2;
}
.orb-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,252,171,0.35);
  animation: pulse 3s ease-out infinite;
}
.orb-wave:nth-child(2) { animation-delay: 1s; }
.orb-wave:nth-child(3) { animation-delay: 2s; }
@keyframes pulse {
  0% { transform: scale(0.75); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.chat-bubble {
  position: absolute;
  border-radius: 14px;
  background: rgba(0,252,171,0.18);
  border: 1px solid rgba(0,252,171,0.3);
  animation: float 5s ease-in-out infinite;
}
.b1 { width: 90px; height: 26px; top: 30px; left: 10px; animation-delay: 0s; }
.b2 { width: 70px; height: 22px; bottom: 55px; right: 5px; animation-delay: 1.2s; }
.b3 { width: 60px; height: 20px; bottom: 20px; left: 40px; animation-delay: 2.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Custom (a la medida) ---------- */
.custom { border-top: 1px solid var(--border); }
.custom-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.custom-copy {
  color: var(--text-dim);
  margin-top: 18px;
  font-size: 1.05rem;
  max-width: 620px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .custom-box { padding: 36px 24px; }
}

/* ---------- Proceso ---------- */
.proceso { border-top: 1px solid var(--border); }
.proceso h2 { margin-bottom: 56px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.05em;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 14px 0 10px;
}
.step p { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Fundador ---------- */
.fundador { border-top: 1px solid var(--border); }
.fundador-grid { max-width: 720px; }
.fundador-copy {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-top: 18px;
}
.fundador-copy strong { color: var(--text); }

/* ---------- Contacto ---------- */
.contacto {
  border-top: 1px solid var(--border);
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,252,171,0.12), transparent 60%);
}
.contacto-inner h2 { max-width: 640px; margin: 0 auto 18px; }
.contacto-sub {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p {
  color: var(--text-dimmer);
  font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .orb-wave, .chat-bubble { animation: none; }
}
