* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #eef2f7;
  margin: 0;
  color: #1b2430;
}
.flash-container { max-width: 480px; margin: 12px auto 0; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.flash-error { background: #fde2e2; color: #9b1c1c; border: 1px solid #f5b5b5; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
  width: 320px;
  text-align: center;
}
.login-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: #2f6fdb;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.login-card h1 { font-size: 16px; margin-bottom: 20px; color: #33415c; }
.login-card input {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid #d7deea; border-radius: 8px; font-size: 14px;
}
.login-card button {
  width: 100%; padding: 10px; background: #2f6fdb; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.login-card button:hover { background: #2559b3; }
.hint { font-size: 12px; color: #7c8aa0; margin-top: 14px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #1b2440; color: #fff; padding: 10px 24px; font-size: 14px;
}
.topbar a { color: #cfd8ee; text-decoration: none; margin-left: 16px; }
.topbar a:hover { color: #fff; }

.panel-wrap { max-width: 760px; margin: 30px auto; padding: 0 16px; }
.panel-wrap h1 { font-size: 20px; color: #1b2440; }

.tabs { display: flex; border-bottom: 2px solid #d7deea; margin-bottom: 20px; }
.tab-btn {
  padding: 10px 18px; border: none; background: none; cursor: pointer;
  font-size: 14px; color: #7c8aa0; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab-btn.active { color: #2f6fdb; border-bottom-color: #2f6fdb; font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

#form-subir { display: flex; gap: 10px; margin-top: 14px; }
#form-subir input[type=file] {
  flex: 1; padding: 8px; border: 1px solid #d7deea; border-radius: 8px; background: #fff;
}
#form-subir button {
  padding: 8px 18px; background: #2f6fdb; color: #fff; border: none; border-radius: 8px; cursor: pointer;
}
.spinner {
  width: 24px; height: 24px; margin-top: 14px;
  border: 3px solid #d7deea; border-top-color: #2f6fdb; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#progreso-texto { font-size: 13px; color: #7c8aa0; margin-top: 6px; }
.ok { color: #1a7f37; }
.error { color: #9b1c1c; }

.version-actual {
  background: #fff; border: 1px solid #d7deea; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 20px;
}
.version-actual .meta { display: block; font-size: 12px; color: #7c8aa0; margin-top: 4px; }

.tabla-versiones { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.tabla-versiones th, .tabla-versiones td {
  padding: 10px 12px; text-align: left; font-size: 14px; border-bottom: 1px solid #eef1f7;
}
.tabla-versiones th { background: #f5f7fb; color: #33415c; }
.btn-descargar {
  background: #2f6fdb; color: #fff; padding: 6px 12px; border-radius: 6px;
  text-decoration: none; font-size: 13px;
}
.btn-descargar:hover { background: #2559b3; }
.badge {
  background: #e4f6e8; color: #1a7f37; font-size: 11px; padding: 2px 8px; border-radius: 10px;
}
