/* Ahá Herramientas Digitales · Generador de UTM */
.utm .h3 { font-size: 1rem; color: var(--navy); margin: 0; }
.utm .form { gap: 16px; }
.utm .form label > input { margin-top: 2px; }
.utm-lbl { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.utm-lbl code { font-size: .75rem; font-weight: 600; color: var(--blue); background: var(--blue-50); padding: 1px 6px; border-radius: 6px; }
.utm-oblig { font-style: normal; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-600); }
.utm-plantillas { border: 0; margin: 0; padding: 0; min-width: 0; }
.utm-plantillas legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 8px; }
.utm-plantillas .ayuda-campo:empty { display: none; }
.utm-plantillas .ayuda-campo { margin-top: 8px; background: var(--blue-50); color: var(--navy); border-radius: 10px; padding: 8px 10px; font-size: .82rem; }
.utm-limpiar { align-self: flex-start; }

.utm .tool-grid > * { min-width: 0; }
.utm-res { margin-top: 0; }
.utm-avisos b, .utm-avisos small { overflow-wrap: anywhere; }
.utm-link { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; word-break: break-all; margin: 0; border: 1.5px dashed #c9d5ec; }
.utm-param { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; word-break: break-all; margin: 8px 0; }
.utm-acciones { justify-content: flex-start; margin-top: 12px; }
.utm-mas { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.utm-mas summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--blue); }
.utm-mas p.small { margin: 6px 0 0; }
.utm-avisos { margin-top: 10px; }
.utm-avisos:empty { display: none; }

/* Historial */
.utm-historial { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.utm-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.utm-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.utm-hist li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.utm-hist-txt { flex: 1; min-width: 0; }
.utm-hist-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 3px; }
.utm-tag { font-size: .72rem; font-weight: 700; background: var(--bg); color: var(--ink-2); padding: 1px 8px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utm-hist-f { font-size: .72rem; color: var(--muted); margin-left: 2px; }
.utm-hist-link { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utm-hist-btns { display: flex; gap: 6px; flex-shrink: 0; }
.utm-hist .utm-x { font-size: 1rem; line-height: 1; padding: 4px 9px; }
.utm-hist .utm-x:hover { border-color: var(--err); color: var(--err); }

.utm-tabla { margin-top: 18px; padding: 18px; }
.utm-tabla h3 { font-size: 1rem; color: var(--navy); }
.utm-tabla code { font-size: .8rem; color: var(--blue); }

@media (max-width: 640px) {
  .utm-hist li { flex-direction: column; align-items: stretch; }
  .utm-hist-btns { justify-content: flex-end; }
  .utm-acciones .btn { flex: 1 1 auto; }
  .utm-tabla { padding: 14px; }
  .utm-tabla table.t { font-size: .8rem; }
}
