/* HolaPOS — avisos a clientes (correo / WhatsApp) + recuperación de contraseña */

/* ── Público: olvidé / restablecer ── */
.nt-lock { align-items: center; gap: .8rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; padding: .85rem 1rem; max-width: 26rem; }
.nt-lock-ico { width: 2.6rem; height: 2.6rem; flex: none; border-radius: .8rem; display: grid; place-items: center; font-size: 1.2rem; background: rgba(241,138,0,.9); }
.nt-sent { width: 4.5rem; height: 4.5rem; border-radius: 1.4rem; display: grid; place-items: center; font-size: 2rem; background: #eef0fb;
  box-shadow: 0 10px 30px rgba(43,49,138,.15); animation: pop .55s cubic-bezier(.3,1.4,.5,1) both; }
.nt-sent-bad { background: #fff7ed; box-shadow: 0 10px 30px rgba(241,138,0,.18); }

/* ── Ajustes de avisos ── */
.nt-plan { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; border-radius: .9rem; border: 1px solid #e2e8f0; background: #fff; }
.nt-plan .ico { width: 2.3rem; height: 2.3rem; flex: none; border-radius: .7rem; display: grid; place-items: center; font-size: 1.1rem; }
.nt-plan .t { font-size: .85rem; font-weight: 700; color: #1e293b; }
.nt-plan .d { font-size: .74rem; color: #64748b; margin-top: .1rem; }
.nt-plan.off { background: #fafafa; }
.nt-plan.off .t { color: #64748b; }

.nt-grp { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; padding: .9rem 1rem .35rem; background: #fafbfe; border-top: 1px solid #f1f5f9; }
.nt-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: .5rem 1rem; align-items: center; padding: .7rem 1rem; border-top: 1px solid #f1f5f9; }
.nt-row .n { font-size: .85rem; font-weight: 600; color: #1e293b; }
.nt-row .s { font-size: .7rem; color: #94a3b8; }
.nt-ch { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 4.2rem; font-size: .65rem; color: #94a3b8; font-weight: 600; }
.nt-head { display: grid; grid-template-columns: 1fr auto auto auto; gap: 1rem; padding: .55rem 1rem; font-size: .68rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.nt-head span { min-width: 4.2rem; text-align: center; }
@media (max-width: 640px) {
  .nt-row { grid-template-columns: 1fr auto auto; }
  .nt-row .nt-edit { grid-column: 1 / -1; justify-self: start; }
  .nt-head { grid-template-columns: 1fr auto auto; }
  .nt-head .h-edit { display: none; }
}
.nt-custom { display: inline-block; margin-left: .35rem; font-size: .6rem; font-weight: 700; color: #F18A00; background: #fff7ed; border-radius: 9999px; padding: .05rem .4rem; vertical-align: middle; }

/* Editor de plantillas */
.nt-ed { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; }
@media (max-width: 900px) { .nt-ed { grid-template-columns: minmax(0,1fr); } }
.nt-ed textarea.input { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; line-height: 1.5; resize: vertical; }
.nt-ph { display: flex; flex-wrap: wrap; gap: .3rem; }
.nt-ph button { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .68rem; padding: .15rem .45rem; border-radius: .45rem; background: #eef0fb; color: #2B318A; border: 1px solid #dfe2f6; }
.nt-ph button:hover { background: #2B318A; color: #fff; }
.nt-tabs { display: flex; gap: .25rem; background: #f1f5f9; border-radius: .7rem; padding: .2rem; width: max-content; }
.nt-tabs button { padding: .35rem .8rem; border-radius: .55rem; font-size: .76rem; font-weight: 600; color: #64748b; }
.nt-tabs button.on { background: #fff; color: #2B318A; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Vista previa WhatsApp */
.nt-wa { background: #e5ddd5; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; border-radius: .9rem; padding: 1rem; min-height: 9rem; }
.nt-wa .bub { position: relative; max-width: 92%; background: #dcf8c6; color: #111b21; border-radius: .6rem .6rem .1rem .6rem; padding: .5rem .65rem 1.1rem; margin-left: auto;
  font-size: .82rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.nt-wa .bub .tm { position: absolute; right: .5rem; bottom: .2rem; font-size: .62rem; color: #667781; }
.nt-wa .who { font-size: .68rem; color: #54656f; margin-bottom: .4rem; text-align: right; }
.nt-mail { border: 1px solid #e2e8f0; border-radius: .9rem; overflow: hidden; background: #fff; }
.nt-mail .hd { padding: .55rem .8rem; background: #f8fafc; border-bottom: 1px solid #eef2f7; font-size: .74rem; color: #475569; }
.nt-mail .hd b { color: #1e293b; }
.nt-mail iframe { width: 100%; height: 26rem; border: 0; display: block; background: #f1f3f9; }

/* Estados */
.nt-st { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 9999px; }
.nt-st::before { content: ""; width: .4rem; height: .4rem; border-radius: 9999px; background: currentColor; }
.nt-st.sent { background: #ecfdf5; color: #059669; }
.nt-st.failed { background: #fef2f2; color: #dc2626; }
.nt-st.pending, .nt-st.sending { background: #fffbeb; color: #d97706; }
.nt-st.skipped { background: #f1f5f9; color: #64748b; }
.nt-chan { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: .5rem; font-size: .8rem; }
.nt-chan.email { background: #eef0fb; }
.nt-chan.whatsapp { background: #dcfce7; }

/* Plataforma */
.nt-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.nt-kpi { background: #fff; border: 1px solid #eef2f7; border-radius: .9rem; padding: .75rem .9rem; cursor: pointer; transition: border-color .12s; }
.nt-kpi:hover, .nt-kpi.on { border-color: #2B318A; }
.nt-kpi .v { font-size: 1.35rem; font-weight: 800; color: #1e293b; font-family: 'Ubuntu', sans-serif; }
.nt-kpi .l { font-size: .7rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nt-inst { border: 1px solid #eef2f7; border-radius: 1rem; padding: 1rem; background: #fff; display: flex; flex-direction: column; gap: .6rem; }
.nt-inst.off { opacity: .6; }
.nt-inst .ttl { font-weight: 700; color: #1e293b; }
.nt-meter { height: 6px; border-radius: 9999px; background: #f1f5f9; overflow: hidden; }
.nt-meter > span { display: block; height: 100%; background: #25d366; border-radius: 9999px; }
.nt-meter.hot > span { background: #F18A00; }
.nt-dot { width: .55rem; height: .55rem; border-radius: 9999px; display: inline-block; background: #cbd5e1; }
.nt-dot.ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.nt-dot.bad { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
