:root {
  --azul: #2563eb;
  --azul-oscuro: #1e40af;
  --verde: #16a34a;
  --rojo: #dc2626;
  --gris: #6b7280;
  --fondo: #f5f7fb;
  --borde: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--fondo);
  margin: 0;
  color: #1f2937;
}

.contenedor {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.contenedor-ancho {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

header.top {
  background: white;
  border-bottom: 1px solid var(--borde);
  padding: 16px;
}

header.top h1 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--azul-oscuro);
}

.card {
  background: white;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 4px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 1rem;
}

button, .btn {
  display: inline-block;
  background: var(--azul);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: 14px;
}

button:hover, .btn:hover { background: var(--azul-oscuro); }

.btn-secundario { background: var(--gris); }
.btn-rojo { background: var(--rojo); }
.btn-verde { background: var(--verde); }
.btn-chico { padding: 6px 10px; font-size: 0.85rem; margin-top: 0; }

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.slot {
  padding: 10px 6px;
  text-align: center;
  border: 1px solid var(--azul);
  color: var(--azul);
  border-radius: 6px;
  cursor: pointer;
  background: white;
  font-size: 0.9rem;
}

.slot.selected { background: var(--azul); color: white; }
.slot:hover { background: #dbeafe; }

.mensaje-error {
  background: #fee2e2;
  color: var(--rojo);
  padding: 10px;
  border-radius: 6px;
  margin-top: 12px;
}

.mensaje-ok {
  background: #dcfce7;
  color: #166534;
  padding: 14px;
  border-radius: 6px;
  margin-top: 12px;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--borde); font-size: 0.9rem; }
th { color: var(--gris); font-weight: 600; }

.badge { padding: 3px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-verde { background: #dcfce7; color: #166534; }
.badge-rojo { background: #fee2e2; color: #991b1b; }
.badge-gris { background: #f1f5f9; color: #475569; }

nav.admin-nav a {
  margin-right: 16px;
  color: var(--azul-oscuro);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fila-inline { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.fila-inline > div { flex: 1; min-width: 140px; }

form.inline { display: inline; }
