/**
 * base.css — Reset + tipografía + elementos HTML base.
 *
 * ORIGEN v1: mezclado entre styleNew.css (líneas 1-21) y especificos.css (líneas 24-47).
 * PROBLEMA: especificos.css declaraba html,body dos veces con valores conflictivos.
 * SOLUCIÓN: una sola declaración canónica aquí.
 */

@import './tokens.css';

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow: hidden;       /* app de pantalla completa, sin scroll de página */
  height: 100%;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-base);
  font-size: var(--font-size-md);
  background: var(--color-white);
  color: var(--color-text);
}

body {
  display: flex;
  flex-direction: column;
}

/* ── Tipografía ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
}

h1 {
  font-size: var(--font-size-lg);
  text-align: center;
  border: none;
  background-color: var(--color-white);
  color: var(--color-text);
  width: 100%;
  word-break: break-all;
}

h4 {
  text-align: center;
  font-size: var(--font-size-sm);
  margin: 0 0 var(--space-2xl);
  color: var(--color-text);
  width: 100%;
}

h5, h6 { color: var(--color-text-muted); }

/* ── Elementos de formulario ───────────────────────────────────────────────── */
img { vertical-align: middle; }

input[type="text"],
input[type="password"],
input {
  padding: var(--space-md);
  width: 100%;
  margin-bottom: var(--space-sm);
  background-color: #f1f1f1;
  border: 0.5px solid #f1f1f1;
  text-align: center;
}

textarea {
  border: 1px solid #999;
  width: 100%;
  margin: 5px 0;
  padding: 3px;
  flex-wrap: wrap;
}

select {
  width: 190px;
  border: none;
  background-color: #f1f1f1;
  color: var(--color-text);
  cursor: pointer;
  height: 26px;
  outline: none;
  font-size: var(--font-size-sm);
}

optgroup { background-color: grey; color: var(--color-white); }
option   { background-color: var(--color-white); color: var(--color-text); }

button:hover { opacity: .8; }

hr {
  border: none;
  border-top: 1px solid #555;
  margin: var(--space-md);
}

/* ── Utilidades básicas ────────────────────────────────────────────────────── */
.pointer   { cursor: pointer; }
.nowrap    { white-space: nowrap; overflow: auto; }
.center    { text-align: center; border: none; }
.center2   { display: block; margin: 0 auto; width: 100%; }
.imgMiddle { vertical-align: middle; }
.hidden    { display: none; }
.show      { display: block; }
