
.agro-pqrs,
.agro-pqrs * {
  box-sizing: border-box;
}

.agro-pqrs {
  --agro-green: #547a00;
  --agro-green-dark: #3d5a00;
  --agro-green-soft: #e8f2d0;
  --agro-green-border: #c5dba0;
  --agro-bg: #f2f5f2;
  --agro-text: #222;
  --agro-muted: #777;
  width: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--agro-text);
}

.agro-pqrs__wrap {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 12px;
}

.agro-pqrs__brand {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 18px 45px rgba(53, 82, 0, .08);
}

.agro-pqrs__brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: #fff;
}

.agro-pqrs__logo {
  display: block;
  max-width: min(58vw, 270px);
  max-height: 64px;
  object-fit: contain;
}

.agro-pqrs__logo-fallback {
  color: var(--agro-green);
  font-weight: 800;
}

.agro-pqrs__brand-text {
  text-align: right;
  min-width: 190px;
}

.agro-pqrs__brand-title {
  color: var(--agro-green);
  font-size: 14px;
  font-weight: 800;
}

.agro-pqrs__brand-subtitle {
  color: #777;
  font-size: 11px;
  margin-top: 3px;
}

.agro-pqrs__brand-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--agro-green-dark);
  color: #d9e9bd;
  padding: 9px 24px;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.agro-pqrs__brand-strip span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #7aab2e;
  flex: 0 0 auto;
}

.agro-pqrs__form,
.agro-pqrs__confirm {
  background: #fff;
  border: 1px solid #d5e5a8;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(53, 82, 0, .08);
}

.agro-pqrs__section {
  margin: 0 0 28px;
}

.agro-pqrs__section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--agro-green-border);
  color: var(--agro-green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.agro-pqrs__section h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--agro-green);
  color: #fff;
  font-size: 11px;
}

.agro-pqrs__section h3 b {
  color: #d32f2f;
}

.agro-pqrs__section h3 em {
  margin-left: 3px;
  color: #aaa;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.agro-pqrs__policy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  border: 1px solid var(--agro-green-border);
  border-radius: 12px;
  background: var(--agro-green-soft);
  font-size: 13px;
  line-height: 1.65;
  cursor: pointer;
}

.agro-pqrs__policy input {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--agro-green);
  flex: 0 0 auto;
}

.agro-pqrs a {
  color: var(--agro-green);
  font-weight: 700;
  text-decoration: none;
}

.agro-pqrs a:hover {
  text-decoration: underline;
}

.agro-pqrs__row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.agro-pqrs__cols2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agro-pqrs__cols3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agro-pqrs__field {
  display: block;
  color: #555;
  font-size: 12px;
  font-weight: 600;
}

.agro-pqrs__field b {
  margin-left: 2px;
  color: #d32f2f;
}

.agro-pqrs__field input,
.agro-pqrs__field select,
.agro-pqrs__field textarea {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.agro-pqrs__field textarea {
  min-height: 122px;
  resize: vertical;
}

.agro-pqrs__field input:focus,
.agro-pqrs__field select:focus,
.agro-pqrs__field textarea:focus {
  outline: none;
  border-color: var(--agro-green);
  box-shadow: 0 0 0 4px rgba(197, 219, 160, .35);
}

.agro-pqrs__field small {
  display: none;
  margin-top: 5px;
  color: #d32f2f;
  font-size: 11px;
  font-weight: 400;
}

.agro-pqrs__field.is-error input,
.agro-pqrs__field.is-error select,
.agro-pqrs__field.is-error textarea {
  border-color: #d32f2f;
}

.agro-pqrs__field.is-error small {
  display: block;
}

.agro-pqrs__tipo-grid {
  display: grid;
  gap: 12px;
}

.agro-pqrs__card {
  border: 1.5px solid #e1e1e1;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.agro-pqrs__card:hover {
  border-color: var(--agro-green);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(53, 82, 0, .06);
}

.agro-pqrs__card.is-active {
  border: 2px solid var(--agro-green);
  background: #f4f8ea;
}

.agro-pqrs__card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
}

.agro-pqrs__card-head i {
  width: 19px;
  height: 19px;
  border: 2px solid #bbb;
  border-radius: 999px;
  flex: 0 0 auto;
}

.agro-pqrs__card.is-active .agro-pqrs__card-head i {
  border-color: var(--agro-green);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--agro-green);
}

.agro-pqrs__card-head strong {
  display: block;
  font-size: 14px;
  color: #222;
}

.agro-pqrs__card-head em {
  display: block;
  margin-top: 2px;
  color: var(--agro-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.agro-pqrs__card-head mark {
  margin-left: auto;
  background: transparent;
  font-size: 23px;
}

.agro-pqrs__subtipos,
.agro-pqrs__sugerencia,
.agro-pqrs__conditional {
  display: none;
  padding: 0 18px 16px;
}

.agro-pqrs__card.is-active .agro-pqrs__subtipos,
.agro-pqrs__card.is-active .agro-pqrs__sugerencia,
.agro-pqrs__conditional.is-visible {
  display: block;
}

.agro-pqrs__subtipos::before {
  content: "Seleccione el subtipo:";
  display: block;
  margin: 0 0 9px;
  color: #777;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.agro-pqrs__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agro-pqrs__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fafafa;
  color: #555;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  transition: all .12s ease;
}

.agro-pqrs__chip:hover,
.agro-pqrs__chip.is-selected {
  border-color: var(--agro-green);
  background: var(--agro-green-soft);
  color: var(--agro-green);
  font-weight: 700;
}

.agro-pqrs__badge {
  padding: 2px 7px;
  border: 1px solid var(--agro-green-border);
  border-radius: 999px;
  background: #fff;
  color: var(--agro-green);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.agro-pqrs__chip.is-selected .agro-pqrs__badge {
  border-color: var(--agro-green);
  background: var(--agro-green);
  color: #fff;
}

.agro-pqrs__note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 11px;
}

.agro-pqrs__note--warning {
  border: 1px solid #ffd54f;
  background: #fff8e1;
  color: #7b5a00;
}

.agro-pqrs__note--info {
  border: 1px solid #90caf9;
  background: #e3f2fd;
  color: #0d47a1;
}

.agro-pqrs__tipo-error {
  display: none;
  margin-top: 8px;
  color: #d32f2f;
  font-size: 11px;
}

.agro-pqrs__tipo-error.is-visible {
  display: block;
}

.agro-pqrs__upload {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 25px 18px;
  border: 2px dashed #ccc;
  border-radius: 14px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
}

.agro-pqrs__upload:hover {
  border-color: var(--agro-green);
  background: var(--agro-green-soft);
}

.agro-pqrs__upload input {
  display: none;
}

.agro-pqrs__upload-icon {
  font-size: 29px;
}

.agro-pqrs__upload span:last-child {
  color: #777;
  font-size: 13px;
  line-height: 1.7;
}

.agro-pqrs__upload strong {
  color: #333;
}

.agro-pqrs__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.agro-pqrs__file {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #f3f3f3;
  color: #555;
  font-size: 12px;
}

.agro-pqrs__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.agro-pqrs__btn {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
}

.agro-pqrs__btn:hover {
  transform: translateY(-1px);
}

.agro-pqrs__btn--primary {
  flex: 1;
  border: 0;
  background: var(--agro-green);
  color: #fff;
}

.agro-pqrs__btn--primary:hover {
  background: #466700;
}

.agro-pqrs__btn--secondary {
  border: 1px solid #ccc;
  background: #fff;
  color: #666;
}

.agro-pqrs__btn[disabled] {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.agro-pqrs__message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.agro-pqrs__message.is-error {
  display: block;
  border: 1px solid #ffcdd2;
  background: #ffebee;
  color: #b71c1c;
}

.agro-pqrs__message.is-ok {
  display: block;
  border: 1px solid var(--agro-green-border);
  background: var(--agro-green-soft);
  color: var(--agro-green-dark);
}

.agro-pqrs__confirm {
  text-align: center;
  padding: 44px 28px;
}

.agro-pqrs__confirm-icon {
  margin-bottom: 10px;
  font-size: 52px;
}

.agro-pqrs__confirm h3 {
  margin: 0;
  color: var(--agro-green);
  font-size: 22px;
}

.agro-pqrs__entity {
  margin: 4px 0 20px;
  color: #aaa;
  font-size: 12px;
}

.agro-pqrs__radicado {
  display: inline-block;
  margin: 8px auto 18px;
  padding: 10px 26px;
  border: 1.5px solid var(--agro-green-border);
  border-radius: 10px;
  background: var(--agro-green-soft);
  color: var(--agro-green);
  font-size: 28px;
  letter-spacing: .06em;
}

.agro-pqrs__confirm-text {
  max-width: 560px;
  margin: 0 auto 16px;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}

.agro-pqrs__confirm small {
  display: block;
  margin-bottom: 22px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  color: #999;
}

.agro-pqrs__footer {
  margin-top: 18px;
  padding-bottom: 12px;
  color: #999;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
}

@media (max-width: 680px) {
  .agro-pqrs__brand-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .agro-pqrs__brand-text {
    text-align: left;
    min-width: 0;
  }

  .agro-pqrs__cols2,
  .agro-pqrs__cols3 {
    grid-template-columns: 1fr;
  }

  .agro-pqrs__form,
  .agro-pqrs__confirm {
    padding: 22px 16px;
  }

  .agro-pqrs__actions {
    flex-direction: column;
  }

  .agro-pqrs__btn {
    width: 100%;
  }

  .agro-pqrs__radicado {
    font-size: 22px;
  }
}

.agro-pqrs [hidden] {
  display: none !important;
}

.agro-pqrs__hint {
  align-self: end;
  display: block;
  padding: 10px 12px;
  border: 1px solid #d5e5a8;
  border-radius: 10px;
  background: #f6faef;
  color: #6d7b55;
  font-size: 12px;
  line-height: 1.45;
}

.agro-pqrs__other-field {
  margin-top: 14px;
}

/* v1.3: ocultar aviso informativo de carga de municipios */
.agro-pqrs__hint[data-municipio-hint] { display: none !important; }


.agro-pqrs__area-otro {
  margin-top: 12px;
}
