/* Estilos comunes. Es un esqueleto: simple y legible, sin diseño final. */
:root {
  --fondo: #f4f6f8;
  --tarjeta: #ffffff;
  --texto: #1d2733;
  --suave: #5d6b7a;
  --linea: #dde3ea;
  --ara: #22b8cf;
  --max: #f59f00;
  --nico: #5c9e3f;
  --tina: #8b5cf6;
  --principal: #0b7285;
  --ok: #2b8a3e;
  --error: #c92a2a;
  --radio: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  font-size: 17px;
  line-height: 1.45;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

a { color: var(--principal); }

.contenedor { max-width: 960px; margin: 0 auto; padding: 16px; }

.barra {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #0f2a3a; color: #fff; font-size: 14px;
}
.barra a { color: #9be7f3; text-decoration: none; }
.barra [data-modo] { opacity: .75; }

.tarjeta {
  background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 16px; margin-bottom: 14px;
}

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border: 0; border-radius: 999px;
  background: var(--principal); color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.boton:disabled { opacity: .4; cursor: default; }
.boton.secundario { background: #e7edf2; color: var(--texto); }
.boton.grande { min-height: 60px; font-size: 20px; padding: 12px 28px; }
.boton.ancho { width: 100%; }

input, select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 10px;
  width: 100%; background: #fff; color: var(--texto);
}
label { display: block; font-weight: 600; margin: 10px 0 4px; }

.fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grilla { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #e7edf2;
}

.suave { color: var(--suave); }
.oculto { display: none !important; }
.centro { text-align: center; }

.aviso {
  padding: 10px 14px; border-radius: 10px; background: #fff4e6; border: 1px solid #ffd8a8; font-size: 15px;
}
.aviso.ok { background: #ebfbee; border-color: #b2f2bb; }
.aviso.error { background: #fff5f5; border-color: #ffc9c9; }

.estrellas { color: #f2b705; letter-spacing: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--linea); }

.equipo-punto {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 6px;
}

.etiqueta-esqueleto {
  position: fixed; right: 10px; bottom: 10px; z-index: 50; background: #0f2a3a; color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px; opacity: .7; pointer-events: none;
}
