/* ============================================================
   Bioma — base: reset + tipografía + .ic (SVG line, cero emojis)
   ============================================================ */
* { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);            /* crema, jamás negro/blanco puro */
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  color-scheme: light;              /* sin dark mode: el fondo nunca es oscuro */
}

/* Sin dark mode: ignoramos prefers-color-scheme (regla dura de marca). */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--bg); color: var(--text-body); }
}

h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }
a { color: var(--olive); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* Encuadre mobile-first: la app vive en una columna de máx 430px, centrada,
   sobre crema. En desktop se ve como un teléfono. */
#app {
  max-width: var(--app-max);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  overflow: hidden;
}
@media (min-width: 460px) {
  body { padding: 0; }
  #app { min-height: 100dvh; }
}

/* ===== Ícono base: SIEMPRE line (stroke), nunca fill/emoji ===== */
.ic {
  width: var(--ic-size);
  height: var(--ic-size);
  stroke: currentColor;
  stroke-width: var(--ic-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.ic-lg { width: 30px; height: 30px; }
.ic-xl { width: 48px; height: 48px; stroke-width: 1.4; }
.ic-sm { width: 18px; height: 18px; }

/* Tipografía display */
.display { font-family: var(--font-display); font-weight: var(--w-display); line-height: var(--lh-title); color: var(--text); }
.display-xl { font-size: var(--fs-display-xl); }
.display-lg { font-size: var(--fs-display-lg); }
.display-md { font-size: var(--fs-display-md); }
.display-sm { font-size: var(--fs-display-sm); }

/* Labels UPPERCASE */
.label {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--w-med);
}

.muted { color: var(--text-muted); }
.body-sm { font-size: var(--fs-body-sm); }

/* Separador dorado fino (uso quirúrgico, 20–40px) */
.sep-gold {
  width: 32px; height: 2px; border-radius: var(--r-xs);
  background: var(--gold); border: none; margin: var(--s-4) 0;
}

/* Utilidades de layout */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); }
.grow { flex: 1; }
.hidden { display: none !important; }

/* Accesibilidad: área táctil mínima */
.tap { min-height: var(--touch-min); min-width: var(--touch-min); }

@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse-olive { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: translateY(0); } }
