/* Herramientas del equipo (2026-08-27). Se apoya en los tokens que ya existen
   en styles.css —--ink, --paper, --brand, --green, --red…— para que estas dos
   pantallas nuevas no se noten pegadas con cinta. */

.herr-campos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px;
}
.herr-campos label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.herr-campos label.ancho { grid-column: 1 / -1; }
.herr-campos input[type=text], .herr-campos select {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: inherit; font-size: 15px; background: var(--card); color: var(--ink); width: 100%;
}
.herr-marcas { display: grid; gap: 8px; align-content: end; }
.herr-marcas .marca { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.herr-marcas input { width: 17px; height: 17px; accent-color: var(--brand); }

.herr-soltar {
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 32px 20px;
  display: grid; gap: 8px; justify-items: center; text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.herr-soltar.encima { border-color: var(--brand); background: var(--brand-pale); }
.herr-soltar b { font-size: 16px; }
.herr-acciones { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }

.herr-trabajo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.herr-trabajo:first-child { border-top: 0; }
.herr-estado { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-muted); }
.herr-estado.mal { color: var(--red); } .herr-estado.bien { color: var(--green); } .herr-estado.ojo { color: var(--amber); }
.herr-girando {
  width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line);
  border-top-color: var(--brand); animation: herrGirar .8s linear infinite; display: inline-block;
}
@keyframes herrGirar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .herr-girando { animation: none; } }

/* -- el panel del resultado ------------------------------------------- */
#herrTelon {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .34); z-index: 900;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
#herrTelon.abierto { opacity: 1; pointer-events: auto; }
#herrPanel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: var(--card); z-index: 901; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1); overflow-y: auto;
  padding: 30px; box-shadow: -20px 0 60px rgba(15, 23, 42, .16);
}
#herrPanel.abierto { transform: translateX(0); }
#herrPanel h2 { margin: 0 0 6px; font-size: 24px; }
#herrPanel h3 { margin: 26px 0 10px; font-size: 15px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-muted); }
.herr-cerrar {
  position: absolute; top: 22px; right: 22px; border: 0; background: var(--line-soft);
  width: 30px; height: 30px; border-radius: 50%; color: var(--ink-soft); cursor: pointer;
}
.herr-dato { display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.herr-dato span { color: var(--ink-muted); }
.herr-punto { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 15px; }
.herr-punto i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); margin-top: 8px; flex: none; }
.herr-punto.bien i { background: var(--green); }
.herr-punto.mal i { background: var(--red); }
.herr-punto.ojo i { background: var(--amber); }
.herr-punto p { margin: 0; }

/* La calificación del 1 al 10. El número manda y el medidor lo sitúa; el
   color solo repite lo que ya dice el número, para quien lo lea de lejos. */
.herr-nota { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.herr-nota b { font-size: 56px; line-height: 1; font-weight: 700; }
.herr-nota span { color: var(--ink-muted); font-size: 18px; }
.herr-nota.bien b { color: var(--green); }
.herr-nota.ojo b { color: var(--amber); }
.herr-nota.mal b { color: var(--red); }
.herr-medidor {
  position: relative; height: 9px; border-radius: 999px; margin: 12px 0 8px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 30%, var(--amber) 45%,
              var(--amber) 65%, var(--green) 80%, var(--green) 100%);
}
.herr-medidor span {
  position: absolute; top: -5px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--ink); transform: translateX(-50%);
}
.herr-escala { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
.herr-titular { font-size: 18px; line-height: 1.45; margin: 18px 0 10px; font-weight: 600; }
.herr-pie { margin-top: 20px; font-size: 13px; }

@media (max-width: 760px) {
  .herr-campos { grid-template-columns: 1fr; }
}
