/* form-reclamos-stu - estilos */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* El atributo HTML `hidden` debe ganar sobre cualquier `display:flex/grid`
   que pongamos en .field, .grid, etc. */
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 36px 60px;
  background: #ffffff;
  min-height: 100vh;
  position: relative;
}

.title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 22px;
  color: #111827;
}

/* ===== Stepper ===== */
.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 14px;
}
.step { display: flex; align-items: center; gap: 8px; color: #6b7280; }
.step.active { color: #1f2937; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #c7cdd4;
  border-radius: 50%;
  font-size: 12px;
  color: #6b7280;
}
.step.active .step-num {
  border-color: #1f2937;
  color: #1f2937;
  font-weight: 600;
}
.step-icon.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #2d6cdf;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 2px #e1ecff;
}
.step-sep { color: #c7cdd4; }

/* ===== Secciones ===== */
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 18px;
  color: #111827;
}

/* ===== Grid de campos ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-bottom: 30px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2937;
  font-size: 13px;
}
.req { color: #d33; margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #1f2937;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #2d6cdf;
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #d33;
  background: #fff5f5;
}

/* ===== Botones ===== */
.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.actions.split {
  justify-content: space-between;
}
.btn {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: #c64a1f;
  color: #fff;
  border-color: #c64a1f;
}
.btn-primary:hover { background: #a93d18; border-color: #a93d18; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline {
  background: #ffffff;
  color: #c64a1f;
  border-color: #c64a1f;
}
.btn-outline:hover { background: #fdf2ec; }

/* ===== Page counter ===== */
.page-counter {
  position: absolute;
  bottom: 24px;
  right: 36px;
  font-size: 12px;
  color: #6b7280;
}

/* ===== Success ===== */
.success-box {
  text-align: center;
  padding: 60px 20px;
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f5ec;
  color: #1f9b56;
  font-size: 36px;
  margin-bottom: 18px;
}
.success-box h2 { margin: 0 0 8px; color: #1f2937; }
.success-box p { color: #4b5563; margin: 6px 0; }
.muted { color: #9aa3ad; font-size: 12px; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .container { padding: 20px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .actions { flex-direction: column-reverse; gap: 10px; }
  .actions.split { flex-direction: column; }
  .btn { width: 100%; }
  .page-counter { position: static; text-align: right; margin-top: 20px; }
}

/* ===== Combo (input con buscador y lista filtrable) ===== */
.combo {
  position: relative;
}
.combo-input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/></svg>")
    no-repeat 9px center;
  background-size: 14px 14px;
  color: #1f2937;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.combo-input:focus {
  outline: none;
  border-color: #2d6cdf;
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15);
}
.combo-input:disabled {
  background-color: #f3f4f6;
  color: #9aa3ad;
  cursor: wait;
}
.combo-input.invalid,
.combo-value.invalid + .combo-list,
.combo.has-error .combo-input {
  border-color: #d33;
  background-color: #fff5f5;
}
.combo-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-height: 240px;
  overflow-y: auto;
}
.combo-list li {
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #1f2937;
  line-height: 1.4;
}
.combo-list li:hover {
  background: #f3f4f6;
}
.combo-list li.active {
  background: #fdf2ec;
  color: #c64a1f;
}
.combo-list li.empty {
  color: #9aa3ad;
  font-style: italic;
  cursor: default;
}
.combo-list li.empty:hover {
  background: transparent;
}
.combo-list li mark {
  background: #fff2cc;
  color: inherit;
  font-weight: 600;
  padding: 0 1px;
  border-radius: 2px;
}
