/* Herramientas gratuitas NexFiscal.
   La tipografía y el encabezado se heredan de styles.css + legal.css;
   aquí va solo el formulario y la presentación del resultado. */

.herr-form { display: grid; gap: 20px; margin-top: 8px; }
.herr-fila { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.campo { display: flex; flex-direction: column; gap: 7px; }
.campo label { font-size: 14px; font-weight: 500; color: var(--ink); }
.campo .ayuda { font-size: 13px; color: var(--gris-1); line-height: 1.5; }
.campo input, .campo select {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); width: 100%;
}
.campo input:focus, .campo select:focus {
  outline: none; border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(21, 52, 107, .12);
}
.campo--check { flex-direction: row; align-items: center; gap: 10px; }
.campo--check input { width: auto; }
.campo--check label { font-weight: 400; }

.herr-acciones { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.herr-nota { font-size: 13px; color: var(--gris-1); }

/* Resultado */
.resultado { margin-top: 40px; }
.resultado[hidden] { display: none; }
.resultado__total {
  background: var(--azul); color: var(--paper);
  border-radius: 14px; padding: 26px 28px; margin-bottom: 22px;
}
.resultado__total .etiqueta {
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250, 250, 247, .72);
}
.resultado__total .cifra {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(30px, 5vw, 40px); line-height: 1.1; margin-top: 6px;
}

.desglose { width: 100%; border-collapse: collapse; font-size: 15px; }
.desglose th, .desglose td { padding: 11px 4px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.desglose th { font-weight: 500; color: var(--ink-soft); }
.desglose td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.desglose tr:last-child th, .desglose tr:last-child td { border-bottom: none; }
.desglose .sub th { padding-left: 18px; font-weight: 400; color: var(--gris-1); font-size: 14px; }

.aviso {
  border-left: 3px solid var(--acento); background: var(--paper-warm);
  padding: 16px 18px; margin: 20px 0; font-size: 14.5px;
  color: var(--ink-soft); line-height: 1.65; border-radius: 0 9px 9px 0;
}
.aviso--falla { border-color: #A33; }

.fundamento { font-size: 13.5px; color: var(--gris-1); line-height: 1.7; margin-top: 20px; }
.fundamento strong { color: var(--ink-soft); }

@media (max-width: 640px) {
  .herr-fila { grid-template-columns: 1fr; }
  .resultado__total { padding: 22px; }
}
