/* Una Manito — landing. Tokens de daev.space (tema oscuro). */
:root {
  --bg: #080d14;
  --surface: #0f1724;
  --surface-el: #1a2332;
  --accent: #00e5ff;
  --accent-hover: #38bdf8;
  --accent-2: #818cf8;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e3a5f;
  --rojo: #f87171;
  --ambar: #fbbf24;
  --azul: #60a5fa;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.contenedor--angosto { max-width: 820px; }
.acento { color: var(--accent); }
.ceja { font: 500 0.8125rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ── Botones ─────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 10px;
  font: 600 0.9375rem/1.2 var(--sans); text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.boton--acento { background: var(--accent); color: var(--bg); box-shadow: 0 8px 24px -10px rgba(0, 229, 255, .55); }
.boton--acento:hover { background: var(--accent-hover); transform: translateY(-1px); }
.boton--borde { border: 1px solid var(--border); color: var(--text); background: rgba(15, 23, 36, .6); }
.boton--borde:hover { border-color: var(--accent); color: var(--accent); }
.boton--chico { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }

/* ── Barra ───────────────────────────────────────── */
.barra {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 13, 20, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.barra.con-borde { border-bottom-color: var(--border); }
.barra__fila { display: flex; align-items: center; gap: 24px; height: 68px; }
.marca { display: inline-flex; align-items: center; }
.marca img { border-radius: 8px; }
.barra__nav { display: flex; gap: 28px; margin: 0 auto; font-size: 0.9375rem; color: var(--text-muted); }
.barra__nav a:hover { color: var(--text); }
.barra__acciones { display: flex; gap: 10px; margin-left: auto; }
@media (min-width: 861px) { .barra__acciones { margin-left: 0; } }
@media (max-width: 860px) { .barra__nav { display: none; } }
@media (max-width: 520px) { .ocultar-movil { display: none; } }

/* ── Hero ────────────────────────────────────────── */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__fila { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__texto { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1.06; font-weight: 700; }
.hero__bajada { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--text-muted); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero__nota { font-size: 0.875rem; color: var(--text-muted); }
@media (max-width: 960px) {
  .hero__fila { grid-template-columns: 1fr; }
  .hero__texto { justify-items: center; text-align: center; max-width: 680px; margin: 0 auto; }
  .hero__ctas { justify-content: center; }
}
@media (max-width: 520px) { .hero__ctas { flex-direction: column; width: 100%; } .hero__ctas .boton { width: 100%; } }

/* Collage de capturas: laptop al fondo, tablet y celular delante. */
.collage { position: relative; aspect-ratio: 7 / 5.6; width: 100%; max-width: 760px; margin: 0 auto; }
.collage > .disp { position: absolute; margin: 0; }
.collage__laptop { top: 0; right: 0; width: 88%; padding: 0; }
.collage__tablet { left: 0; bottom: 0; width: 28%; }
.collage__movil { right: 6%; bottom: 0; width: 21%; }
.collage__laptop .disp__base { margin: 0 -4%; }

/* ── Dispositivos ────────────────────────────────── */
.disp__pantalla { overflow: hidden; background: #111318; }
.disp__pantalla img { width: 100%; }
.disp--laptop { padding: 0 5%; }

.disp--laptop .disp__pantalla {
  border: clamp(6px, 1vw, 12px) solid #1c2433; border-bottom-width: clamp(10px, 1.4vw, 18px);
  border-radius: clamp(10px, 1.4vw, 16px) clamp(10px, 1.4vw, 16px) 4px 4px;
  box-shadow: 0 0 0 1px var(--border), 0 30px 80px -30px rgba(0, 229, 255, .35);
}
.disp--laptop .disp__base {
  height: clamp(8px, 1.2vw, 14px); margin: 0 -5.5%;
  background: linear-gradient(#2a3446, #121925);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .8);
}
.disp--tablet .disp__pantalla {
  border: clamp(8px, 1.1vw, 14px) solid #1c2433; border-radius: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 0 0 1px var(--border), 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.disp--movil .disp__pantalla {
  border: clamp(5px, .8vw, 9px) solid #1c2433; border-radius: clamp(22px, 3vw, 36px);
  box-shadow: 0 0 0 1px var(--border), 0 30px 60px -24px rgba(0, 0, 0, .9);
}

/* ── Secciones ───────────────────────────────────── */
.seccion { padding: clamp(64px, 10vw, 128px) 0; }
.seccion--panel { background: var(--surface); border-block: 1px solid var(--border); }
.seccion__cabeza { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.seccion h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.12; font-weight: 700; }

.funcion {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.funcion + .funcion { margin-top: clamp(72px, 11vw, 140px); }
.funcion--invertida .funcion__texto { order: 2; }
.funcion__texto { display: grid; gap: 16px; }
.funcion__num { font: 500 0.875rem/1 var(--mono); color: var(--accent); }
.funcion h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.15; font-weight: 600; }
.funcion__texto > p { color: var(--text-muted); font-size: 1.0625rem; }
.funcion__visual { display: flex; justify-content: center; }
.funcion__visual .disp--laptop { width: 100%; }
.funcion__visual .disp--movil { width: min(300px, 62%); }
.funcion__visual--par { gap: clamp(16px, 3vw, 32px); }
.funcion__visual--par .disp--movil { width: min(260px, 46%); }
.funcion__visual--par .disp--movil:last-child { margin-top: 56px; }
@media (max-width: 860px) {
  .funcion { grid-template-columns: 1fr; }
  .funcion--invertida .funcion__texto { order: 0; }
}

.lista { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.lista li { position: relative; padding-left: 26px; }
.lista li::before {
  content: ''; position: absolute; left: 0; top: .62em; width: 12px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.lista b { color: var(--accent); font-weight: 600; }
.etiqueta {
  display: inline-block; font: 600 0.75rem/1 var(--sans); padding: 4px 8px; border-radius: 999px; margin: 2px 2px 2px 0;
}
.etiqueta--rojo { color: var(--rojo); background: rgba(248, 113, 113, .14); }
.etiqueta--ambar { color: var(--ambar); background: rgba(251, 191, 36, .14); }
.etiqueta--azul { color: var(--azul); background: rgba(96, 165, 250, .14); }

/* ── Pantallas ───────────────────────────────────── */
.pantallas { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.pantallas__texto { display: grid; gap: 18px; justify-items: start; }
.pantallas__texto > p:not(.ceja) { color: var(--text-muted); font-size: 1.0625rem; }
.pantallas__visual { display: flex; justify-content: center; }
.pantallas__visual .disp { width: min(380px, 100%); }
@media (max-width: 860px) {
  .pantallas { grid-template-columns: 1fr; }
  .pantallas__visual .disp { width: min(320px, 80%); }
}
@media (max-width: 520px) { .pantallas__texto .boton { width: 100%; } }

/* ── Pasos ───────────────────────────────────────── */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.paso {
  position: relative; padding: 28px; border: 1px solid var(--border); border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.paso__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 10px; border: 1px solid var(--accent); color: var(--accent); font: 500 1rem/1 var(--mono);
}
.paso h3 { font-size: 1.25rem; margin-bottom: 8px; font-weight: 600; }
.paso p { color: var(--text-muted); }
@media (max-width: 860px) { .pasos { grid-template-columns: 1fr; } }

/* ── Confianza ───────────────────────────────────── */
.confianza { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.confianza__item { border-top: 2px solid var(--accent); padding-top: 20px; }
.confianza__item:nth-child(2) { border-color: var(--accent-hover); }
.confianza__item:nth-child(3) { border-color: var(--accent-2); }
.confianza h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.confianza p { color: var(--text-muted); }
@media (max-width: 860px) { .confianza { grid-template-columns: 1fr; } }

/* ── CTA final ───────────────────────────────────── */
.cierre { padding: clamp(80px, 12vw, 144px) 0; border-top: 1px solid var(--border); }
.cierre__caja { display: grid; gap: 18px; justify-items: center; text-align: center; }
.cierre h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); line-height: 1.1; font-weight: 700; max-width: 780px; }
.cierre p { color: var(--text-muted); font-size: 1.0625rem; }

/* ── Pie ─────────────────────────────────────────── */
.pie { border-top: 1px solid var(--border); padding: 32px 0; font-size: 0.875rem; color: var(--text-muted); }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.pie__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pie__nav a:hover { color: var(--accent); }
.firma { margin-left: auto; font-family: var(--mono); }
.firma a {
  font-weight: 700;
  background: linear-gradient(90deg, #00e5ff, #38bdf8, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 640px) { .firma { margin-left: 0; width: 100%; } }

/* ── Revelado al scroll (solo con JS) ────────────── */
.js .revelar { opacity: 0; transform: translateY(28px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revelar { opacity: 1; transform: none; transition: none; }
  .boton { transition: none; }
}
