/* SLM AppIT · demos · base común (oscuro, a pantalla completa, zonas seguras).
   Cada app define --acento y --acento-txt. */
:root {
  --fondo: #000;
  --sup: #121212;
  --sup-2: #1b1b1b;
  --borde: #262626;
  --texto: #f5f5f4;
  --texto-2: rgba(245, 245, 244, .64);
  --texto-3: rgba(245, 245, 244, .42);
  --rojo: #ff6b5e;
  --sat: max(env(safe-area-inset-top, 0px), var(--slm-safe-top, 0px));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--slm-safe-bottom, 0px));
  --curva: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--fondo); color: var(--texto);
  font: 16px/1.45 -apple-system, "SF Pro Text", Roboto, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.app { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.app__fondo { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--sat) + 220px); pointer-events: none;
  background: radial-gradient(120% 90% at 50% -20%, color-mix(in srgb, var(--acento) 55%, #000) 0%, color-mix(in srgb, var(--acento) 14%, #000) 45%, #000 80%); }
.app__cuerpo { position: relative; min-height: 100%; max-width: 620px; margin: 0 auto; padding: calc(var(--sat) + 14px) 18px calc(var(--sab) + 28px); display: flex; flex-direction: column; }
.cab { display: flex; align-items: center; gap: 12px; }
.cab__icono { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--acento); color: var(--acento-txt); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.cab__icono svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cab h1 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.cab p { color: var(--texto-2); font-size: 14px; }
.boton { height: 52px; padding: 0 16px; white-space: nowrap; border-radius: 16px; background: var(--acento); color: var(--acento-txt); font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .12s, opacity .15s; }
.boton:active { transform: scale(.97); }
.boton:disabled { opacity: .4; }
.boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.boton--sec { background: var(--sup-2); color: var(--texto); border: 1px solid var(--borde); }
.tarjeta { background: var(--sup); border: 1px solid var(--borde); border-radius: 20px; }
.aviso { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; color: var(--texto-2); background: var(--sup); border: 1px dashed var(--borde); }
.vacio { color: var(--texto-3); text-align: center; padding: 36px 12px; font-size: 15px; }
.enlace { color: var(--acento); font-weight: 700; }
/* Tablet (iPad): más ancho y más grande; cada app arma sus dos columnas con .dos */
.dos, .dos > div { display: contents; }
@media (min-width: 768px) {
  .app__cuerpo { max-width: 1100px; padding: calc(var(--sat) + 28px) 44px calc(var(--sab) + 40px); }
  .app__fondo { height: calc(var(--sat) + 320px); }
  .cab { gap: 16px; }
  .cab__icono { width: 60px; height: 60px; border-radius: 17px; }
  .cab__icono svg { width: 32px; height: 32px; }
  .cab h1 { font-size: 34px; }
  .cab p { font-size: 16px; }
  .dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 30px; }
  .dos > div { display: flex; flex-direction: column; min-width: 0; }
  .dos > div > :first-child { margin-top: 0; }
}
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
