/* ============================================================================
   LATICON — Registro de proveedores
   Se apoya en ../assets/css/styles.css (tokens, header, campos, pie) y en
   ../postulaciones/postulaciones.css (hero, formulario, opciones, carga de PDF).
   Aquí van solo los añadidos de esta página.
   ========================================================================== */

/* ----------------------------- Hero: «Ten a mano» ------------------------- */
.prov-tener__item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); }
.prov-tener__item svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 12px; background: rgba(107,215,158,.12); fill: none; stroke: var(--brand-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prov-tener__item b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff; }
.prov-tener__item span { display: block; font-size: .86rem; line-height: 1.4; color: rgba(255,255,255,.72); }

/* ----------------------------- Columna de apoyo --------------------------- */
.prov-card-calidad { border-left: 4px solid var(--brand); }
.prov-lista { margin-top: 12px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.prov-lista li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--ink-2); }
.prov-lista li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: var(--brand-bright); }

/* ----------------------------- Campos ------------------------------------- */
.pg-prov .field textarea.prov-corto { min-height: 76px; }
.prov-cifras { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.post-form .field input[type="date"] { min-height: 48px; }
.field textarea[aria-invalid="true"] { border-color: var(--error); background: #FFF8F7; }

.prov-nota, .prov-aviso {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 14px;
  border-radius: 12px; font-size: .88rem; line-height: 1.5; color: var(--ink-2);
}
.prov-nota { background: var(--mint-2); border: 1px solid var(--line); }
.prov-aviso { background: var(--mint); border: 1px solid var(--brand-300); color: var(--brand-800); }
.prov-nota svg, .prov-aviso svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------- Áreas -------------------------------------- */
.prov-grupo { margin: 14px 0 8px; font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prov-grupo:first-child { margin-top: 0; }
.prov-grupo__marca { letter-spacing: .02em; text-transform: none; font-size: .74rem; padding: 2px 8px; border-radius: 6px; background: var(--mint); color: var(--brand-700); }
.prov-areas__fila { display: flex; flex-wrap: wrap; gap: 8px; }

.opc--area span {
  display: inline-flex; align-items: center; min-height: 44px; position: relative;
  padding: 9px 14px 9px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2);
  font-size: .9rem; font-weight: 500; line-height: 1.3; color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.opc--area span::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 5px; border: 2px solid var(--check-borde); background: #fff center/12px no-repeat;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.opc--area:hover span { border-color: var(--brand-300); }
.opc--area input:checked + span { background: var(--mint); border-color: var(--brand); color: var(--ink); }
.opc--area input:checked + span::before {
  background-color: var(--brand); border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.opc--area input:focus-visible + span { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
.prov-zonas-opc { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ----------------------------- Aseguramiento de la Calidad ---------------- */
.prov-calidad { margin: 6px 0 22px; padding: 20px; border: 1px solid var(--brand-300); border-radius: 16px; background: var(--mint-2); min-width: 0; }
.prov-calidad__titulo { display: flex; align-items: center; gap: 10px; padding: 0 8px; margin-left: -8px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--brand-800); }
.prov-calidad__titulo svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prov-calidad__p { font-size: .9rem; margin: 2px 0 16px; }
.prov-calidad .drop, .prov-calidad .field input { background-color: #fff; }

.prov-patrones { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.prov-patrones__h { font-size: 1rem; margin-bottom: 6px; }
.prov-patron { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.prov-patron__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.prov-patron__n { font-family: var(--font-display); font-size: .9rem; color: var(--ink); }
.prov-patron__quitar { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--ink-2); }
.prov-patron__quitar:hover { border-color: var(--error-borde); color: var(--error); }
.prov-patron .field:last-child { margin-bottom: 0; }
.drop__archivo.es-invalido { border-color: var(--error); background: #FFF8F7; }
.drop--mini { padding: 16px 14px; }
.drop--mini .drop__icon { width: 38px; height: 38px; }

.prov-agregar {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 46px; padding: 10px 18px;
  border-radius: 999px; border: 1px dashed var(--brand); background: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--brand);
  transition: background .2s var(--ease);
}
.prov-agregar:hover { background: var(--mint); }
.prov-agregar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.post-privacidad .post-check + .field__error + .post-check { border-top: 0; padding-top: 4px; }

/* ----------------------------- Responsive --------------------------------- */
@media (max-width: 1099px) {
  .prov-tener { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .prov-zonas-opc { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prov-tener { grid-template-columns: 1fr; }
  .prov-calidad { padding: 16px 14px; }
  .prov-patron { padding: 14px 12px; }
  .prov-agregar { width: 100%; justify-content: center; }
}
