/* ============================================================
   Ogaluo · página principal
   Colores de marca: tinta #14181c y el punto naranja #fb8c00.
   Cada herramienta tiene su color: Luomap (verde azulado) y Luonum (azul).
   ============================================================ */
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #1b1f24;
  --text-2: #5b6068;
  --line: #e4e2dc;
  --ink: #14181c;
  --naranja: #fb8c00;
  --luomap: #00695c;
  --luomap-hover: #00564b;
  --luonum: #1f66c1;
  --luonum-hover: #1a56a3;
  --sombra: 0 1px 2px rgba(20, 24, 28, .05), 0 12px 32px rgba(20, 24, 28, .07);
  --radio: 24px;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1215;
    --surface: #171b1f;
    --text: #eceae6;
    --text-2: #a6abb2;
    --line: #272c32;
    --luomap: #00897b;
    --luomap-hover: #009e8e;
    --luonum: #2f7fdc;
    --luonum-hover: #4590e6;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 6px; }
.cont { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.punto { color: var(--naranja); }
.tenue { color: var(--text-2); }

/* ---------- barra superior ---------- */
.barra { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.barra-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { font: 500 22px/1 var(--mono); letter-spacing: -.5px; text-decoration: none; }
.menu { display: flex; gap: 4px; }
.menu a { font: 500 14px/1 var(--mono); text-decoration: none; color: var(--text-2); padding: 9px 12px; border-radius: 999px; }
.menu a:hover { color: var(--text); background: var(--surface); }

/* ---------- portada ---------- */
.portada { position: relative; padding-top: clamp(40px, 8vw, 88px); padding-bottom: clamp(36px, 6vw, 64px); }
.simbolo { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: min(400px, 36vw); height: auto; color: var(--text); pointer-events: none; }
.portada > :not(.simbolo) { position: relative; }
.simbolo .centro { stroke: var(--bg); }
.portada h1 { font: 700 clamp(34px, 5.6vw, 60px)/1.08 var(--sans); letter-spacing: -.025em; margin: 0; max-width: 16ch; text-wrap: balance; }
.intro { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 58ch; margin: 22px 0 0; text-wrap: pretty; }
.apps { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.app { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; box-shadow: var(--sombra); transition: transform .15s ease, border-color .15s ease; }
.app:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--text) 18%, var(--line)); }
.app img { width: 56px; height: 56px; border-radius: 13px; }
.app b { display: block; font: 500 17px/1.2 var(--mono); }
.app small { display: block; font-size: 14px; color: var(--text-2); margin-top: 3px; }

/* ---------- tarjetas de producto ---------- */
.producto { margin-bottom: clamp(28px, 5vw, 56px); scroll-margin-top: 80px; }
.producto > .banner, .producto > .cuerpo { background: var(--surface); }
.producto > .banner { width: 100%; aspect-ratio: 1024 / 340; object-fit: cover; object-position: center 52%; border-radius: var(--radio) var(--radio) 0 0; }
.producto > .cuerpo { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radio) var(--radio); box-shadow: var(--sombra); padding: clamp(24px, 4.5vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.cuerpo.invertido { grid-template-columns: 1.05fr 1fr; }
.cuerpo.invertido .texto { order: 2; }
.etiqueta { font: 500 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.luomap .etiqueta { color: var(--luomap); }
.luonum .etiqueta { color: var(--luonum); }
.texto h2 { font: 700 clamp(26px, 3.2vw, 36px)/1.15 var(--sans); letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.texto > p { margin: 0 0 18px; color: var(--text-2); }

.lista { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.lista li { position: relative; padding-left: 26px; }
.lista li::before { content: ''; position: absolute; left: 2px; top: .52em; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent); background: var(--c, var(--naranja)); }
/* en Luomap, los puntos tienen los colores de las capas */
.luomap .lista li:nth-child(1) { --c: #29b6f6; }
.luomap .lista li:nth-child(2) { --c: #8e24aa; }
.luomap .lista li:nth-child(3) { --c: #e0bc84; }
.luomap .lista li:nth-child(4) { --c: #e53935; }
.luomap .lista li:nth-child(5) { --c: #43a047; }
.luonum .lista li:nth-child(odd) { --c: #2a78d6; }
.luonum .lista li:nth-child(even) { --c: #eb6834; }

.boton { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.boton:hover { transform: translateY(-1px); }
.luomap .boton { background: var(--luomap); }
.luomap .boton:hover { background: var(--luomap-hover); }
.luonum .boton { background: var(--luonum); }
.luonum .boton:hover { background: var(--luonum-hover); }

/* ---------- capturas de móvil ---------- */
.moviles { display: flex; justify-content: center; align-items: center; margin: 0; }
.movil { margin: 0; width: 40%; max-width: 230px; border-radius: 28px; border: 6px solid #0d0f11; background: #0d0f11; overflow: hidden; box-shadow: 0 18px 40px rgba(10, 14, 18, .22); flex: none; }
.movil img { border-radius: 22px; }
.movil:not(.central) { transform: scale(.86); }
.movil:first-child { margin-right: -12%; transform: scale(.86) rotate(-4deg); }
.movil:last-child { margin-left: -12%; transform: scale(.86) rotate(4deg); }
.movil.central { position: relative; z-index: 2; width: 44%; max-width: 254px; }

/* ---------- captura en ventana de navegador ---------- */
.navegador { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(10, 14, 18, .16); background: var(--surface); }
.nav-barra { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: color-mix(in srgb, var(--text) 5%, var(--surface)); border-bottom: 1px solid var(--line); }
.nav-barra i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 18%, transparent); }
.nav-barra span { margin-left: 10px; flex: 1; max-width: 260px; font: 400 12px/22px var(--mono); color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- pie ---------- */
.pie { border-top: 1px solid var(--line); margin-top: clamp(16px, 4vw, 40px); }
.pie-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 32px; font-size: 14px; }
.pie .marca { font-size: 17px; }

/* ---------- pantallas estrechas ---------- */
@media (max-width: 860px) {
  .simbolo { display: none; }
  .producto > .cuerpo, .cuerpo.invertido { grid-template-columns: 1fr; }
  .cuerpo.invertido .texto { order: 0; }
  .producto > .banner { border-radius: 18px 18px 0 0; }
  .producto > .cuerpo { border-radius: 0 0 18px 18px; }
}
@media (max-width: 560px) {
  .cont { padding-left: 16px; padding-right: 16px; }
  body { font-size: 16px; }
  .app { flex: 1 1 100%; }
  .movil { border-width: 4px; border-radius: 18px; }
  .movil img { border-radius: 14px; }
  .producto > .banner { aspect-ratio: 1024 / 500; }
}
