/* Formulario de PQRSF (pqrsf.html), 2026-09-23. Tarjeta blanca de texto oscuro fijo (no cambia con el
   aspecto claro/oscuro), tipos de solicitud con color propio y mensajes de error junto a cada campo. */
.pqrsf-form, .pqrsf-exito {
  max-width: 900px; margin: 1.5rem 0 2.5rem; padding: 1.5rem; border-radius: 18px; background: #fff; color: var(--card-text);
  box-shadow: 0 10px 34px rgba(10, 30, 56, 0.16); border-top: 8px solid var(--funprotec-orange);
}
.pqrsf-form[hidden], .pqrsf-exito[hidden] { display: none; }
.pqrsf-form fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.pqrsf-form legend { padding: 0; margin-bottom: 0.8rem; font-size: 1.15rem; font-weight: 800; color: var(--funprotec-navy); }

.pqrsf-tipos__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 0.7rem; }
.pqrsf-tipo { --c: #60a5fa; position: relative; display: block; cursor: pointer; }
.pqrsf-tipo--peticion { --c: #3b82f6; } .pqrsf-tipo--queja { --c: #f97316; } .pqrsf-tipo--reclamo { --c: #ef4444; }
.pqrsf-tipo--sugerencia { --c: #10b981; } .pqrsf-tipo--felicitacion { --c: #eab308; }
.pqrsf-tipo input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pqrsf-tipo span {
  display: grid; gap: 0.2rem; height: 100%; padding: 0.8rem 0.9rem; border-radius: 14px; border: 2px solid #e5e7eb; border-left: 8px solid var(--c);
  background: #f9fafb; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.pqrsf-tipo strong { color: #111827; font-size: 1.02rem; }
.pqrsf-tipo small { color: #4b5563; font-size: 0.8rem; line-height: 1.3; }
.pqrsf-tipo:hover span { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--c), 0 8px 18px rgba(0,0,0,0.12); }
.pqrsf-tipo input:checked + span { background: var(--c); border-color: var(--c); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.pqrsf-tipo input:checked + span strong, .pqrsf-tipo input:checked + span small { color: #0a1e38; }
.pqrsf-tipo input:focus-visible + span { outline: 3px solid var(--funprotec-navy); outline-offset: 2px; }

.pqrsf-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 0.6rem; }
.pqrsf-campo { display: grid; align-content: start; gap: 0.3rem; margin-bottom: 0.8rem; }
.pqrsf-campo--ancho { grid-column: span 2; }
@media (max-width: 640px) { .pqrsf-campo--ancho { grid-column: auto; } }
.pqrsf-campo label { font-weight: 700; font-size: 0.92rem; color: #111827; }
.pqrsf-campo input, .pqrsf-campo select, .pqrsf-campo textarea {
  width: 100%; min-height: 46px; padding: 0.6rem 0.8rem; border: 2px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 1rem;
  color: #111827; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pqrsf-campo textarea { resize: vertical; min-height: 130px; }
.pqrsf-campo input:focus, .pqrsf-campo select:focus, .pqrsf-campo textarea:focus {
  outline: none; border-color: var(--funprotec-aqua); box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.2);
}
.pqrsf-campo [aria-invalid="true"] { border-color: #dc2626; background: #fef2f2; }
.pqrsf-campo input:disabled { background: #f3f4f6; }
.pqrsf-pie { display: flex; justify-content: space-between; gap: 1rem; }
.pqrsf-ayuda { font-weight: 400; font-size: 0.8rem; color: #4b5563; }
.pqrsf-contador { font-size: 0.8rem; color: #4b5563; white-space: nowrap; }
.pqrsf-error { margin: 0; min-height: 0; font-size: 0.85rem; font-weight: 700; color: #b91c1c; }
.pqrsf-error:empty { display: none; }
.pqrsf-check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.4; cursor: pointer; }
.pqrsf-check input { flex: none; width: 22px; height: 22px; margin-top: 0.1rem; accent-color: var(--funprotec-navy); }
.pqrsf-check--datos { padding: 0.8rem; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; }
.pqrsf-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pqrsf-boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 56px; padding: 0.8rem 1.8rem; border: 0; border-radius: 999px;
  cursor: pointer; font: inherit; font-size: 1.1rem; font-weight: 800; color: #0a1e38;
  background: linear-gradient(180deg, #fff27a 0%, #ffd60a 45%, #ffb000 100%); box-shadow: 0 5px 0 #b86e00, 0 0 22px rgba(255, 176, 0, 0.55);
  transition: transform 0.12s ease, filter 0.15s ease;
}
.pqrsf-boton:hover { filter: brightness(1.07); }
.pqrsf-boton:active { transform: translateY(3px); box-shadow: 0 2px 0 #b86e00; }
.pqrsf-boton:focus-visible { outline: 4px solid var(--funprotec-navy); outline-offset: 3px; }
.pqrsf-boton:disabled { opacity: 0.7; cursor: progress; }
.pqrsf-enviando .pqrsf-boton__txt::after { content: "…"; }
.pqrsf-boton--sec { background: #14345c; color: #fff; box-shadow: 0 4px 0 #0a1e38; min-height: 48px; font-size: 1rem; }
.pqrsf-estado { min-height: 1.4rem; margin: 0.8rem 0 0; font-weight: 700; }
.pqrsf-estado--error { color: #b91c1c; }
.pqrsf-estado--info { color: #075985; }

.pqrsf-exito { text-align: center; border-top-color: #10b981; }
.pqrsf-exito__kicker { margin: 0; font-size: 1.1rem; font-weight: 800; color: #047857; text-transform: uppercase; letter-spacing: 0.08em; }
.pqrsf-exito__etq { margin: 0.6rem 0 0; color: #4b5563; }
.pqrsf-exito__num {
  display: inline-block; margin: 0.4rem 0 1rem; padding: 0.6rem 1.4rem; border-radius: 14px; font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 900;
  letter-spacing: 0.06em; color: #0a1e38; background: #ecfdf5; border: 3px dashed #10b981; user-select: all;
}
.pqrsf-exito__dato { margin: 0.4rem 0; color: #111827; }
.pqrsf-exito__alerta { margin: 1rem auto; max-width: 620px; padding: 0.8rem 1rem; border-radius: 12px; background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; font-weight: 600; }
.pqrsf-exito__alerta[hidden] { display: none; }
.pqrsf-exito__acciones { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.2rem; }
