/* Difusión por WhatsApp (difusion.js): mismas paletas y botones que el resto del personal */
.btn-dif { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: 8px; padding: 0 16px; border: 2px solid #12a150; border-radius: 99px; background: #effaf3; color: #047857; font: 700 .85rem inherit; cursor: pointer; }
.df-velo { position: fixed; inset: 0; z-index: 400; background: rgba(10,42,94,.55); display: flex; align-items: stretch; justify-content: center; }
.df { display: flex; flex-direction: column; width: 100%; max-width: 560px; background: #fffaf0; font-family: Poppins, system-ui, sans-serif; color: #1c2a44; }
@media (min-width: 700px) { .df-velo { align-items: center; padding: 20px; } .df { height: min(92vh, 860px); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); } }
.df-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0a2a5e; color: #fff; } .df-top b { flex: 1; font-size: 1rem; } .df-n { font-size: .8rem; opacity: .85; }
.df-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; cursor: pointer; }
.df-cuerpo { flex: 1; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
.df-ayuda { margin: 0 0 12px; font-size: .84rem; line-height: 1.45; color: #4a5568; }
.df-q { width: 100%; min-height: 46px; padding: 0 14px; border: 2px solid #e2d2b2; border-radius: 12px; background: #fff; font: 500 .95rem inherit; box-sizing: border-box; } .df-q:focus { outline: none; border-color: #0a4aa0; }
.df-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.df-ch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid #e2d2b2; border-radius: 99px; background: #fff; color: #1c2a44; font: 700 .84rem inherit; cursor: pointer; } .df-ch.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; } .df-ch em { font-style: normal; background: #d81e8f; color: #fff; border-radius: 99px; padding: 1px 7px; font-size: .72rem; }
.df-ch input[type=date] { border: 0; background: transparent; color: inherit; font: inherit; width: 118px; min-height: 40px; }
.df-barra { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: .86rem; }
.df-lk { border: 0; background: none; color: #0a4aa0; font: 700 .84rem inherit; min-height: 44px; padding: 0 6px; cursor: pointer; text-decoration: underline; }
.df-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } @media (min-width: 520px) { .df-grid { grid-template-columns: repeat(3, 1fr); } }
.df-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 6px 6px 10px; border: 2px solid #e2d2b2; border-radius: 14px; background: #fff; font: inherit; cursor: pointer; } .df-card.on { border-color: #12a150; background: #effaf3; box-shadow: 0 0 0 2px rgba(18,161,80,.25); }
.df-card b { font-size: .8rem; line-height: 1.25; padding: 0 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .df-m { font-size: .74rem; color: #6f6a5c; padding: 0 4px; }
.df-img { position: relative; display: block; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: #f3e8d3; } .df-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .df-img i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; font-style: normal; }
.df-img small { position: absolute; left: 6px; bottom: 6px; background: rgba(10,42,94,.85); color: #fff; font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; } .df-img small.falta { background: #d62828; }
.df-ck { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; } .df-card.on .df-ck { background: #12a150; }
.df-vacio { text-align: center; padding: 30px 10px; } .df-vacio p { color: #6f6a5c; font-size: .86rem; }
.df-pie { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e2d2b2; display: flex; flex-direction: column; gap: 8px; } .df-pie.dos { flex-direction: row; } .df-pie.dos .df-b { flex: 1; }
.df-sec { display: flex; gap: 8px; } .df-sec .df-b { flex: 1; padding: 0 6px; font-size: .8rem; }
.df-b { min-height: 48px; padding: 0 16px; border: 2px solid #e2d2b2; border-radius: 14px; background: #fff; color: #1c2a44; font: 700 .9rem inherit; cursor: pointer; } .df-b:disabled { opacity: .5; cursor: default; }
.df-b.ok { background: #12a150; border-color: #12a150; color: #fff; } .df-b.grande { min-height: 54px; font-size: 1rem; }
.df-tira { display: flex; gap: 4px; padding: 8px 14px 0; background: #fffaf0; } .df-tira i { flex: 1; height: 5px; border-radius: 9px; background: #e2d2b2; } .df-tira i.hecho { background: #12a150; } .df-tira i.on { background: #0a4aa0; }
.df-prev { position: relative; margin: 0 auto 12px; max-width: 280px; border-radius: 14px; overflow: hidden; background: #f3e8d3; } .df-prev img { display: block; width: 100%; max-height: 38vh; object-fit: contain; background: #f3e8d3; } .df-prev small { position: absolute; left: 8px; bottom: 8px; background: rgba(10,42,94,.85); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.df-sinf { padding: 26px 14px; text-align: center; font-size: .84rem; color: #6f6a5c; }
.df-lb { display: block; font-size: .76rem; font-weight: 700; color: #6f6a5c; margin-bottom: 6px; }
.df-txt { width: 100%; box-sizing: border-box; padding: 12px; border: 2px solid #e2d2b2; border-radius: 12px; background: #fff; font: 500 .9rem/1.45 inherit; resize: vertical; } .df-txt:focus { outline: none; border-color: #0a4aa0; }
.df-hecho { color: #047857; font-size: .82rem; font-weight: 700; } .df-av { background: #fff5d6; border-radius: 10px; padding: 10px 12px; font-size: .82rem; }
.df-fin { flex: 1; display: grid; place-content: center; text-align: center; padding: 20px; } .df-ok { font-size: 3rem; } .df-sub { color: #6f6a5c; font-size: .84rem; }
@media (prefers-reduced-motion: no-preference) { .df-card { transition: border-color .15s, box-shadow .15s; } }
.df-lk.centro { align-self: center; }
/* vista previa tipo WhatsApp */
.df-sec1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; } .df-sec1 h3 { margin: 0; font-size: .95rem; color: #0a2a5e; } .df-uno { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: #6f6a5c; }
.df-bub { position: relative; max-width: 92%; margin: 0 0 10px auto; padding: 4px 4px 6px; border-radius: 12px 12px 2px 12px; background: #d9fdd3; box-shadow: 0 1px 2px rgba(0,0,0,.18); font-size: .88rem; line-height: 1.4; color: #1c2a44; }
.df-bub::after { content: ""; position: absolute; right: -6px; bottom: 0; border: 6px solid transparent; border-left-color: #d9fdd3; border-bottom-color: #d9fdd3; border-right: 0; }
.df-mos { display: grid; gap: 2px; border-radius: 9px; overflow: hidden; margin-bottom: 4px; max-height: 340px; } .df-mos span { position: relative; display: block; background: #f3e8d3; overflow: hidden; } .df-mos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.df-mos.m1 { grid-template-columns: 1fr; } .df-mos.m1 span { aspect-ratio: 4/5; } .df-mos.m2, .df-mos.m3, .df-mos.m4 { grid-template-columns: 1fr 1fr; } .df-mos span { aspect-ratio: 1; } .df-mos.m3 span:first-child { grid-column: 1 / -1; aspect-ratio: 2/1; }
.df-mos em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-style: normal; font-weight: 800; font-size: 1.4rem; }
.df-tx { padding: 2px 8px; word-break: break-word; } .df-tx b { font-weight: 700; } .df-vac { color: #6f6a5c; font-style: italic; }
.df-bub small { display: block; text-align: right; padding: 0 8px; font-size: .64rem; color: #6a7f66; }
.df-herr { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.df-txt { margin-bottom: 10px; }
/* una sola pantalla: vista previa (mensajes) y prendas, cada una con su propio desplazamiento */
.df-cuerpo { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.df-prevp { flex: 0 0 48%; min-height: 150px; overflow-y: auto; padding: 12px 14px; background: #efe7dc; border-bottom: 1px solid #e2d2b2; -webkit-overflow-scrolling: touch; }
.df-selp { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 12px 14px; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .df { max-width: 1000px; } .df-cuerpo { flex-direction: row; } .df-prevp { flex: 0 0 46%; border-bottom: 0; border-right: 1px solid #e2d2b2; } .df-selp { flex: 1; } }
.df-msg { margin-bottom: 14px; } .df-mh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 4px; font-size: .72rem; font-weight: 700; color: #6f6a5c; } .df-mh em { font-style: normal; color: #047857; }
.df-msg .df-bub { margin: 0 0 6px; max-width: 100%; padding: 4px 4px 6px; } .df-msg.hecho .df-bub { opacity: .75; }
.df-ph { position: relative; border-radius: 9px; overflow: hidden; margin-bottom: 4px; background: #f3e8d3; } .df-ph img { display: block; width: 100%; max-height: 320px; object-fit: cover; } .df-ph small { position: absolute; left: 8px; bottom: 8px; background: rgba(10,42,94,.85); color: #fff; font-size: .64rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; text-align: left; padding-right: 9px; }
.df-ph.sin { padding: 22px 10px; text-align: center; font-size: .78rem; color: #6f6a5c; }
.df-msg .df-bub .df-h { display: block; text-align: right; padding: 0 8px; font-size: .64rem; color: #6a7f66; }
.df-ma { display: flex; flex-wrap: wrap; gap: 6px; } .df-mb { min-height: 40px; padding: 0 12px; border: 1.5px solid #e2d2b2; border-radius: 99px; background: #fff; color: #1c2a44; font: 700 .76rem inherit; cursor: pointer; } .df-mb.env { background: #effaf3; border-color: #12a150; color: #047857; } .df-mb.quitar { margin-left: auto; min-width: 40px; padding: 0; color: #b0156f; border-color: #f2b6d9; }
.df-vacio.chico { padding: 18px 6px; } .df-nota { font-size: .72rem; color: #6f6a5c; text-align: center; line-height: 1.35; }
.df-sec1 .df-ch { min-height: 40px; padding: 0 12px; font-size: .78rem; }
.df-prevp .df-txt { margin: 0 0 6px; }
