:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #242933;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* ===== Header ===== */


header {
  height: 43.2px;
  position: relative;
background-image: linear-gradient(141deg, #ff8300 20%, #a7a9ab 50%, #b3272d 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

header .brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

header .brand img {
  height: 43.2px;
  width: auto;
  max-width: 60vw;
  display: block;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
}

.demo-tag {
  position: absolute;
  right: 18px;
  top: 17px;
  font-size: 10px;
  letter-spacing: .4px;
  color: white;
  font-weight: 700;
}

.banner {
  background: #fff3d7;
  color: #714900;
  text-align: center;
  font-size: 13px;
  padding: 10px 15px;
  border-bottom: 1px solid #edddae;
  font-weight: 700;
}

/* ===== Layout ===== */
.container {
  max-width: 1150px;
  margin: 62px auto;
  padding: 0 20px;
}

.top {
  display: flex;
  align-items: left;
  justify-content: space-between;
  margin: 0 50px 0 20px;
}

.orange {
  color: #ff8200;
}

.title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

#titulo {
  font-size: 1.4rem;
  font-weight: 800;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: #ff8300;
  color: white;
  padding: 11px 11px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.btn:hover {
  background: #d9751f;
}

.btn.secondary {
  background: #e9edf1;
  color: #28313b;
}

.btn.danger {
  background: #bb3d48;
}

.btn.full {
  width: 100%;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ===== Consulta ===== */
.docheading {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 50px 0 4px;
}

.panel {
  border: 1px solid #e1e1e1;
  background: #fff;
}

.panelhead {
  background: #f4f4f4;
  border-bottom: 1px solid #dedede;
  font-weight: 700;
  padding: 13px 20px;
}

.panelbody {
  padding: 17px 20px 34px;
}

.data-row {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  font-size: 1.125rem;
}

.data-row strong {
  font-weight: 700;
}

.data-row span {
  color: #e77d24;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.empty {
  color: #6b7280;
}

/* ===== Formularios ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.field label {
  font-size: 13px;
  color: #4d5563;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid #ccd1d7;
  border-radius: 5px;
  background: white;
}

.field input:focus {
  outline: 2px solid #f2bd82;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ===== Avisos ===== */
.notice {
  margin: 16px 0;
  padding: 12px;
  border-radius: 5px;
  background: #fff2e3;
  color: #8f501e;
}

.error {
  background: #fff0f0;
  color: #ab2222;
}

.success {
  background: #e6f8ec;
  color: #186a34;
}

/* ===== Admin: registros y QR ===== */
.records {
  display: grid;
  gap: 12px;
}

.record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #ddd;
  background: white;
  padding: 16px;
  border-radius: 6px;
}

.record small {
  display: block;
  color: #69717c;
  margin-top: 5px;
}

.recordbuttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.qrbox {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed #ccc;
  margin-top: 20px;
}

.qrbox img {
  width: 225px;
  height: 225px;
}

/* ===== Utilidades ===== */
.muted {
  color: #6f7680;
  font-size: 13px;
}

.link {
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 650px) {
  .container {
    margin: 30px auto;
  }

  .top {
    align-items: flex-start;
  }

  .title {
    font-size: 19px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .record {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-row {
    font-size: 19px;
  }

  .docheading {
    margin-top: 36px;
  }
  header .brand img {
    height: 40px;
  }
}

@media (max-width: 700px) {
  .demo-tag {
    font-size: 8px;
    right: 8px;
    top: 4px;
  }

  .brand {
    font-size: 19px !important;
  }

  .data-row {
    font-size: 19px;
  }

  header {
    justify-content: flex-start;
    padding-left: 12px;
  }

  header .brand img {
    height: 42px;
  }
}