/* Mantenum — estilos del sitio
   Paleta y tipografía tomadas del diseño original (versión oscura). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.3100e775e8.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var-latin.0640890476.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080A12;
  --bg-2: #0B1020;
  --bg-card: #0C101C;
  --text: #EEF1F7;
  --text-2: #C3C9D6;
  --muted: #A9B1C2;
  --muted-2: #8F98AB;
  --muted-3: #7A8397;
  --link: #6EA8FF;
  --link-hover: #9DC3FF;
  --accent: #0060E0;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.09);
  --pad-x: clamp(16px, 5vw, 80px);
  --sec-y: clamp(64px, 9vw, 128px);
  --display: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--text); font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--sec-y) var(--pad-x); }
.section--line { border-top: 1px solid var(--line); }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.12em; color: var(--link); text-transform: uppercase; }
.lead { margin: 0; font-size: 15px; color: var(--muted); max-width: 320px; }
.sec-head { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.h2--sm { font-size: clamp(32px, 4vw, 48px); margin-top: 16px; }
.blue { color: var(--link); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; border-radius: 10px;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn--primary {
  background: var(--accent); color: #fff; font-size: 16px;
  padding: 15px 24px; min-height: 52px;
  box-shadow: 0 10px 40px -8px rgba(0,96,224,0.7);
}
.btn--primary:hover { background: #1A70EC; color: #fff; transform: translateY(-1px); }
.btn--ghost {
  gap: 8px; min-height: 44px; padding: 10px 18px; font-size: 14px; color: #fff;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
}
.btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.08); }
.btn--text { gap: 8px; color: var(--text); font-weight: 500; font-size: 15px; padding: 12px 0; }
.btn--text:hover { color: var(--link-hover); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8,10,18,0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--pad-x);
}
.nav { max-width: 1200px; margin: 0 auto; min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 30px; font-size: 14px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--text-2); text-decoration: none; padding: 10px 0; display: inline-block; }
.nav-links a:hover { color: #fff; }
@media (max-width: 720px) {
  .nav { justify-content: space-between; }
  .nav { gap: 0 12px; padding: 10px 0 0; }
  .nav-links { order: 3; width: 100%; gap: 0 20px; font-size: 13px; overflow-x: auto; flex-wrap: nowrap; }
  .nav .btn--ghost { padding: 8px 12px; min-height: 40px; font-size: 13px; }
  .brand { font-size: 20px; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(40px, 5vw, 72px);
  background: radial-gradient(60% 70% at 78% 40%, rgba(0,96,224,0.22), rgba(8,10,18,0) 70%);
}
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 40px; }
.hero-copy { flex: 1 1 500px; min-width: 0; }
.kicker { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--link); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--link); flex: none; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-sub { margin: 28px 0 0; font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 460px; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

.hero-art { flex: 1 1 420px; min-width: 0; position: relative; height: 540px; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.hero-glow { position: absolute; left: 10%; right: 10%; top: 15%; bottom: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,96,224,0.55), rgba(0,96,224,0) 75%); }
.stack { position: relative; width: min(280px, 58vw); height: min(280px, 58vw); margin-top: 60px; transform: rotateX(58deg) rotateZ(-42deg); transform-style: preserve-3d; }
.layer { position: absolute; inset: 0; border-radius: 36px; }
.layer--1 { transform: translateZ(0); background: linear-gradient(135deg, rgba(90,150,255,0.18), rgba(20,40,110,0.08)); border: 1px solid rgba(140,185,255,0.28); }
.layer--2 { transform: translateZ(34px); background: linear-gradient(135deg, rgba(90,150,255,0.22), rgba(20,40,110,0.10)); border: 1px solid rgba(140,185,255,0.36); }
.layer--3 { transform: translateZ(68px); background: linear-gradient(135deg, rgba(100,160,255,0.28), rgba(20,40,110,0.12)); border: 1px solid rgba(150,195,255,0.44); box-shadow: inset 0 0 40px rgba(110,168,255,0.12); }
.layer--4 { transform: translateZ(102px); background: linear-gradient(135deg, rgba(110,170,255,0.34), rgba(20,50,130,0.14)); border: 1px solid rgba(160,200,255,0.55); box-shadow: inset 0 0 50px rgba(110,168,255,0.16); }
.layer--top {
  transform: translate(26px, -26px) translateZ(178px);
  background: linear-gradient(135deg, rgba(140,190,255,0.42), rgba(30,70,170,0.18));
  border: 1.5px solid rgba(190,220,255,0.85);
  box-shadow: 0 0 60px rgba(0,96,224,0.45), inset 0 0 50px rgba(150,200,255,0.2);
  padding: 18%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10%;
}
.layer--top span { border-radius: 8px; border: 1px solid rgba(200,225,255,0.55); }
.layer--top span.on { border: 0; background: var(--accent); box-shadow: 0 0 24px rgba(60,140,255,0.9); }

.glass { position: absolute; background: rgba(20,24,38,0.72); border: 1px solid rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chip-approved { top: 34px; right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; }
.chip-approved .check { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(110,168,255,0.5); display: flex; align-items: center; justify-content: center; flex: none; }
.micro { display: block; font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); }
.chip-approved .who { display: block; font-size: 13px; font-weight: 600; }
.card-field { bottom: 20px; left: 0; width: 250px; padding: 14px 16px; border-radius: 14px; }
.card-field .row { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); }
.card-field .row .live { color: var(--link); }
.bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.1); margin: 10px 0; }
.bar > span { display: block; width: 70%; height: 3px; border-radius: 2px; background: var(--accent); }
.card-field p { margin: 0; font-size: 12px; color: var(--text-2); }
@media (max-width: 520px) {
  .hero-art { height: 440px; }
  .chip-approved { top: 0; }
  .card-field { bottom: 0; width: 230px; }
}

/* Franja */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px var(--pad-x); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); }

/* Manifiesto */
.manifesto .wrap { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.manifesto .side { flex: 1 1 220px; min-width: 0; }
.manifesto .side p + p { margin: 14px 0 0; font-size: 14px; color: var(--muted-2); }
.manifesto .main { flex: 3 1 560px; min-width: 0; }
.manifesto .quote { margin: 0; font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; letter-spacing: -0.02em; }
.manifesto .main p.body { margin: 24px 0 0; font-size: 16px; color: var(--muted); max-width: 560px; }

/* Tarjetas */
.cards { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 300px; min-width: 0; padding: 28px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2);
}
.card-top { display: flex; justify-content: space-between; align-items: center; }
.icon-box { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(110,168,255,0.35); background: rgba(0,96,224,0.12); display: flex; align-items: center; justify-content: center; }
.num { font-size: 12px; color: var(--muted-3); }
.card h3 { margin: 24px 0 6px; font-size: 21px; }
.card > p { margin: 0; font-size: 14px; color: var(--muted); }
.ticks { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,0.08); list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); }
.ticks li::before { content: "· "; }

/* La app */
.app-sec { background: radial-gradient(50% 60% at 20% 60%, rgba(0,96,224,0.14), rgba(8,10,18,0) 70%); }
.shots { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.shot { min-width: 0; display: flex; flex-direction: column; margin: 0; }
.shot--wide { flex: 3 1 560px; }
.shot--narrow { flex: 2 1 320px; }
.shot-frame { flex: 1 1 auto; padding: clamp(14px, 2vw, 24px); border-radius: 20px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); display: flex; flex-direction: column; justify-content: center; }
.shot-frame--blue { background: linear-gradient(180deg, rgba(0,96,224,0.16), rgba(255,255,255,0.02)); border-color: rgba(110,168,255,0.25); box-shadow: 0 30px 80px -40px rgba(0,96,224,0.6); }
.shot-frame--blue2 { background: linear-gradient(180deg, rgba(0,96,224,0.22), rgba(255,255,255,0.02)); }
.shot-frame--center { align-items: center; }
.shot-frame--center .shot-label { align-self: flex-start; }
.shot-label { font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 12px; }
.shot img { display: block; width: 100%; height: auto; }
.shot img.phone { width: min(260px, 100%); }
.shot figcaption { margin-top: 18px; }
.shot h3 { margin: 0; font-size: 20px; }
.pills { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-2); }
.pills li { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); }
.note { margin: 28px 0 0; font-size: 12px; color: var(--muted-3); }

/* Hecho para planta */
.plant { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.plant .wrap { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.plant .col { flex: 1 1 420px; min-width: 0; }
.plant .col > p.desc { margin: 18px 0 0; font-size: 15px; color: var(--muted); max-width: 420px; }
.roles { margin-top: 32px; position: relative; height: 300px; border-radius: 18px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.ring--1 { width: 220px; height: 220px; border: 1px solid rgba(110,168,255,0.22); background: radial-gradient(closest-side, rgba(0,96,224,0.25), rgba(0,96,224,0) 80%); }
.ring--2 { width: 130px; height: 130px; border: 1px dashed rgba(110,168,255,0.25); }
.core { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 16px; background: #1F2024; border: 1px solid rgba(110,168,255,0.45); box-shadow: 0 0 40px rgba(0,96,224,0.8); display: flex; align-items: center; justify-content: center; }
.roles ul { margin: 0; padding: 0; list-style: none; }
.role { position: absolute; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: #121726; border: 1px solid rgba(255,255,255,0.14); }
.role--t { left: 50%; top: 22px; transform: translateX(-50%); }
.role--l { left: 6%; top: 50%; transform: translateY(-50%); }
.role--r { right: 6%; top: 50%; transform: translateY(-50%); }
.role--b { left: 50%; bottom: 22px; transform: translateX(-50%); }
.features { display: flex; flex-direction: column; gap: 14px; }
.feature { display: flex; gap: 18px; padding: 24px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid var(--line-2); }
.feature > svg { flex: none; margin-top: 2px; }
.feature h3 { margin: 0; font-size: 19px; }
.feature p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.feature p.tag { margin-top: 10px; font-size: 10px; letter-spacing: 0.12em; color: var(--link); }
.integration { margin: 6px 0 0; font-size: 13px; color: var(--muted-2); }
.integration span { color: var(--text-2); }

/* Cómo funciona */
.steps { margin: 56px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 40px 28px; }
.steps li { flex: 1 1 220px; min-width: 0; }
.step-num { display: flex; align-items: center; gap: 14px; }
.step-num span:first-child { font-family: var(--display); font-size: 52px; font-weight: 300; line-height: 1; color: var(--link); }
.step-num span:last-child { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, rgba(110,168,255,0.5), rgba(110,168,255,0)); }
.steps h3 { margin: 22px 0 8px; font-size: 20px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }
.steps p.meta { margin-top: 14px; font-size: 11px; color: var(--muted-2); }

/* Caso */
.case .wrap { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.case-logo { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.logo-tile {
  position: relative; width: min(340px, 100%); aspect-ratio: 1 / 1; border-radius: 24px;
  background:
    radial-gradient(closest-side, rgba(0,96,224,0.35), rgba(0,96,224,0) 85%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 34px);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.logo-tile img { width: 72%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55)); }
.case-copy { flex: 1 1 440px; min-width: 0; }
.case-copy > p.desc { margin: 24px 0 0; font-size: 16px; color: var(--muted); max-width: 480px; }
.case blockquote { margin: 24px 0 0; padding: 0; font-size: 18px; color: var(--text); }
.case .cite { margin: 10px 0 0; font-size: 13px; color: var(--muted-2); }
.metrics { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; gap: 20px 40px; }
.metrics .v { font-family: var(--display); font-size: 34px; font-weight: 500; color: var(--link); }
.metrics .l { font-size: 13px; color: var(--muted); }

/* Planes */
.plan { padding: 30px; display: flex; flex-direction: column; }
.plan h3 { margin: 0; font-size: 22px; }
.plan > p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.plan .ticks { margin: 24px 0 28px; font-size: 14px; }
.plan--featured { background: linear-gradient(180deg, rgba(0,96,224,0.20), rgba(0,96,224,0.04)); border-color: rgba(110,168,255,0.55); box-shadow: 0 30px 70px -40px rgba(0,96,224,0.8); }
.plan-cta { margin-top: auto; text-align: center; padding: 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.plan-cta:hover { color: #fff; border-color: rgba(255,255,255,0.36); }
.plan-cta--primary { background: var(--accent); border-color: var(--accent); }
.plan-cta--primary:hover { background: #1A70EC; }

/* CTA final */
.cta { padding: clamp(24px, 4vw, 48px) var(--pad-x) clamp(64px, 9vw, 112px); }
.cta-box {
  max-width: 1200px; margin: 0 auto; border-radius: 28px; border: 1px solid rgba(255,255,255,0.1);
  background: radial-gradient(60% 90% at 50% 0%, rgba(0,96,224,0.38), rgba(8,10,18,0) 70%), var(--bg-card);
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px); text-align: center;
}
.cta h2 { margin: 20px auto 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.035em; max-width: 820px; }
.cta-box > p.sub { margin: 20px auto 0; font-size: 16px; color: var(--muted); max-width: 460px; }
.cta .hero-ctas { justify-content: center; }
.cta .alt { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 12px 0; }
.cta .alt:hover { color: #fff; }

/* Footer */
.site-footer { padding: 48px var(--pad-x) 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer .about { flex: 1 1 280px; min-width: 0; }
.site-footer .brand { font-size: 24px; color: #fff; }
.site-footer .about p { margin: 10px 0 0; max-width: 300px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.foot-nav div { display: flex; flex-direction: column; gap: 8px; }
.foot-nav .h { font-size: 11px; letter-spacing: 0.12em; color: var(--muted-3); }
.foot-nav a { color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.legal { max-width: 1200px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px; color: var(--muted-3); }
.legal a { color: var(--muted-2); text-decoration: none; }
.legal a:hover { color: #fff; }

/* Páginas de texto (legales / 404) */
.doc { padding: clamp(48px, 7vw, 96px) var(--pad-x); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 16px 0 24px; }
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc .updated { font-size: 13px; color: var(--muted-3); }

[hidden] { display: none !important; }

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