/* DatoNoti – Unir y comprimir documentos */
.dnd { --ink: var(--dn-ink, #0f2b3c); --lacre: var(--dn-lacre, #9b2226); --paper: var(--dn-paper, #f6f7f4); --line: var(--dn-line, #d7ddd8); --muted: var(--dn-muted, #5a6b75); max-width: 920px; margin: 0 auto; color: var(--dn-text, #1d2a33); }
.dnd-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.8rem 2rem; margin-bottom: 1.4rem; position: relative; overflow: hidden; }
.dnd-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(#1d6b3a, var(--ink)); }
.dnd-kicker { display: inline-block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #1d6b3a; font-weight: 700; margin-bottom: .4rem; }
.dnd-hero h2 { font-family: "Spectral", Georgia, serif; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); margin: 0 0 .5rem; line-height: 1.2; }
.dnd-hero p { margin: 0; color: var(--muted); line-height: 1.55; }
.dnd-privacy { background: #eef6f0; border: 1px solid #b9dcc4; border-radius: 6px; padding: 1rem 1.1rem; }
.dnd-privacy strong { display: block; color: #1d4d2e; margin-bottom: .25rem; }
.dnd-privacy span { font-size: .9rem; color: #2f5a3d; line-height: 1.45; }
.dnd-drop { position: relative; border: 2px dashed #b9c4ca; border-radius: 10px; background: var(--paper); padding: 2.2rem 1.4rem; text-align: center; transition: border-color .15s, background .15s; cursor: pointer; }
.dnd-drop.is-over, .dnd-drop:focus-visible { border-color: var(--ink); background: #fff; outline: none; }
.dnd-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dnd-drop__icon { width: 48px; height: 48px; margin: 0 auto .6rem; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--lacre); font-size: 1.5rem; font-weight: 700; }
.dnd-drop strong { display: block; color: var(--ink); font-size: 1.05rem; }
.dnd-drop small { color: var(--muted); }
.dnd-list-wrap { margin-top: 1.4rem; }
.dnd-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; }
.dnd-list-head h3 { margin: 0; color: var(--ink); font-family: "Spectral", Georgia, serif; }
.dnd-muted { color: var(--muted); font-size: .9rem; }
.dnd-list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.dnd-list li { display: grid; grid-template-columns: auto auto auto 1fr auto; gap: .7rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .55rem .7rem; }
.dnd-list li.is-drag { opacity: .5; }
.dnd-list li.is-error { border-color: #e7b7b8; background: #fdf4f4; }
.dnd-handle { color: #aab4ba; cursor: grab; letter-spacing: -2px; }
.dnd-n { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.dnd-type { font-size: .68rem; font-weight: 700; padding: .2rem .45rem; border-radius: 3px; background: #e8eef2; color: var(--ink); }
.dnd-type--pdf { background: #fbefef; color: var(--lacre); }
.dnd-type--img { background: #eef6f0; color: #1d6b3a; }
.dnd-name { min-width: 0; word-break: break-word; font-weight: 600; font-size: .93rem; }
.dnd-name small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.dnd-actions { display: flex; gap: .25rem; }
.dnd-actions button { width: 2rem; height: 2rem; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; color: var(--ink); font-size: .95rem; }
.dnd-actions button:hover:not(:disabled) { border-color: var(--ink); }
.dnd-actions button:disabled { opacity: .35; cursor: default; }
.dnd-actions button[data-act="del"]:hover { color: var(--lacre); border-color: var(--lacre); }
.dnd-total { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); text-align: right; }
.dnd-options { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem 1.6rem; }
.dnd-options fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; }
.dnd-options legend { font-weight: 700; color: var(--ink); margin-bottom: .5rem; font-family: "Spectral", Georgia, serif; font-size: 1.1rem; }
.dnd-opt { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: .6rem .75rem; cursor: pointer; }
.dnd-opt:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.dnd-opt input { margin-top: .25rem; }
.dnd-opt strong { display: block; color: var(--ink); font-size: .93rem; }
.dnd-opt em { font-style: normal; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.dnd-extra { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: start; gap: .6rem 1.6rem !important; }
.dnd-extra legend { grid-column: 1 / -1; }
.dnd-extra label { display: flex; align-items: center; gap: .45rem; font-size: .92rem; }
.dnd-extra select, .dnd-extra input[type=text] { font: inherit; padding: .4rem .55rem; border: 1px solid #c9d1d6; border-radius: 4px; }
.dnd-btn { display: inline-block; font: inherit; font-weight: 600; padding: .75rem 1.3rem; border: 1px solid var(--ink); color: var(--ink); background: #fff; border-radius: 4px; cursor: pointer; text-decoration: none; }
.dnd-btn--primary { background: var(--lacre); border-color: var(--lacre); color: #fff; }
.dnd-btn--primary:hover { background: #7f1b1f; color: #fff; }
.dnd-btn:disabled { opacity: .55; cursor: wait; }
#dnd-run { grid-column: 1 / -1; justify-self: start; font-size: 1.02rem; padding: .85rem 1.6rem; }
.dnd-progress { margin-top: 1.2rem; }
.dnd-bar { height: 10px; background: #e6eaec; border-radius: 6px; overflow: hidden; }
.dnd-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ink), #1d6b3a); transition: width .2s; }
.dnd-progress p { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; }
.dnd-result { margin-top: 1.4rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid #1d6b3a; border-radius: 8px; padding: 1.2rem 1.4rem; }
.dnd-result h3 { margin: 0 0 .8rem; color: var(--ink); font-family: "Spectral", Georgia, serif; }
.dnd-out { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.dnd-out:last-of-type { border-bottom: 0; }
.dnd-out small { display: block; color: var(--muted); }
.dnd-out b { color: #1d6b3a; }
.dnd-ok, .dnd-warn { display: block; font-size: .85rem; margin-top: .2rem; }
.dnd-ok { color: #1d6b3a; } .dnd-warn { color: var(--lacre); }
.dnd-formhint { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .7rem; padding: .7rem .9rem; background: #eef6f0; border: 1px solid #b9dcc4; border-radius: 6px; font-size: .92rem; color: #1d4d2e; }
.dnd-btn--sm { padding: .45rem .9rem; font-size: .9rem; background: #1d6b3a; border-color: #1d6b3a; color: #fff; }
.dnd-btn--sm:hover { background: #17552e; color: #fff; }
.dnd-out__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dnd-send { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.dnd-send > span { font-size: .85rem; color: var(--muted); margin-right: .2rem; }
.dnd-send .dnd-btn { padding: .5rem .85rem; font-size: .88rem; }
.dnd-privacy--inline { margin: 0 0 1rem; font-size: .9rem; color: #2f5a3d; }
.dnd-dialog { border: 0; border-radius: 10px; padding: 0; width: min(900px, calc(100vw - 1.5rem)); max-height: 92vh; box-shadow: 0 30px 80px -20px rgba(15,43,60,.55); }
.dnd-dialog::backdrop { background: rgba(15,43,60,.55); }
.dnd-dialog__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; background: #0f2b3c; color: #fff; padding: .9rem 1.3rem; }
.dnd-dialog__head h2 { margin: 0; font-family: "Spectral", Georgia, serif; font-size: 1.25rem; color: #fff; }
.dnd-dialog__x { background: none; border: 0; color: #c7d2d8; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.dnd-dialog__body { padding: 1.2rem 1.4rem 1.6rem; overflow: auto; }
.dnd--modal .dnd-options { padding: 1.1rem 1.2rem; }
.dnd-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 99999; background: #1d6b3a; color: #fff; padding: .8rem 1.2rem; border-radius: 6px; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transition: opacity .3s, transform .3s; max-width: calc(100vw - 2rem); }
.dnd-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
	.dnd-hero, .dnd-options { grid-template-columns: 1fr; padding: 1.3rem; }
	.dnd-extra { grid-template-columns: 1fr; }
	.dnd-list li { grid-template-columns: auto auto 1fr auto; }
	.dnd-handle { display: none; }
}

.dnd-formhint.is-ask { background: #f6f7f4; border-color: #d7ddd8; color: var(--dn-text, #1d2a33); }
.dnd-formhint.is-suggest { background: #fbf6e9; border-color: #e8d39b; }
.dnd-formhint em { font-style: normal; color: #8a5a00; font-weight: 600; }
.dnd-formhint__btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }
.dnd-btn--ghost { background: #fff; border: 1px solid #c9d1d6; color: var(--ink); padding: .45rem .9rem; font-size: .9rem; }
.dnd-btn--lg { font-size: 1.02rem; padding: .85rem 1.4rem; }
.dnd-preloaded { margin: 0 0 1rem; padding: .8rem 1rem; background: #eef3f7; border-left: 4px solid var(--ink); border-radius: 0 6px 6px 0; font-size: .93rem; line-height: 1.5; }
.dnd-replace { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.dnd-replace span { color: var(--muted); font-size: .88rem; }
