/* ---------- Cotizador DTF · v2 (mismo lenguaje visual que el banner principal) ---------- */
.cddtf-cot { --ink:#14171D; --muted:#5A6371; --line:#E3E7EC; --soft:#F1F3F6; --mag:#C8006A; --ok:#12813B;
	display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; margin: 8px 0 0; font-family: Rubik, system-ui, sans-serif; color: var(--ink); }

/* Escenario: la película (o la zona para subir) */
.cdq__stage { position: relative; border-radius: 24px; background: #E9EDF1; box-shadow: 0 30px 60px -34px rgba(20,23,29,.35); overflow: hidden; min-height: 460px; }
.cdq__film { max-height: min(72vh, 820px); overflow: auto; overscroll-behavior: auto; padding: 52px 18px 86px; scrollbar-width: thin; }
.cddtf-film { display: block; width: 100% !important; height: auto; border-radius: 6px; box-shadow: 0 1px 0 rgba(20,23,29,.04); }
.cdq__tag { position: absolute; top: 14px; left: 14px; font: 500 12px "IBM Plex Mono", monospace; background: rgba(255,255,255,.85); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 99px; }
.cdq__float { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: baseline; gap: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid rgba(20,23,29,.08); border-radius: 16px; padding: 12px 16px; box-shadow: 0 18px 40px -18px rgba(20,23,29,.35); font-size: 14px; color: var(--muted); }
.cdq__float[hidden] { display: none; }
.cdq__float b { font: 800 22px/1 Rubik, system-ui, sans-serif; color: var(--ink); letter-spacing: -.02em; }
.cddtf-chip.bad { color: #B8322A; font-weight: 500; }

/* Estado vacío: la zona para subir ocupa el escenario */
.cdq__drop { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; cursor: pointer; padding: 24px;
	background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #F3F5F8 60%, #E9EDF1 100%); transition: background .2s; }
.cdq__drop strong { font: 800 clamp(24px, 3vw, 34px)/1.05 Rubik, system-ui, sans-serif; letter-spacing: -.03em; }
.cdq__drop small { color: var(--muted); font-size: 13.5px; }
.cdq__drop-ico { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #FFEAF5; color: var(--mag); }
.cdq__drop-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(200,0,106,.35); animation: cdqring 2.4s infinite; }
@keyframes cdqring { 70% { box-shadow: 0 0 0 16px rgba(200,0,106,0); } 100% { box-shadow: 0 0 0 0 rgba(200,0,106,0); } }
.cdq__pillbtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; background: var(--mag); color: #fff; font: 600 16px Rubik, system-ui, sans-serif; padding: 14px 28px; border-radius: 99px; box-shadow: 0 10px 24px -10px rgba(200,0,106,.6); transition: transform .15s; }
.cdq__drop:hover .cdq__pillbtn { transform: translateY(-1px); }
.cddtf-cot.has-files .cdq__drop { display: none; }
.cddtf-cot:not(.has-files) .cdq__tag, .cddtf-cot:not(.has-files) .cdq__float { display: none; }
.cddtf-cot.over .cdq__stage::after { content: "Suelta aquí"; position: absolute; inset: 10px; z-index: 3; display: grid; place-items: center; border: 2.5px dashed var(--mag); border-radius: 18px; background: rgba(255,234,245,.88); font: 800 22px Rubik, system-ui, sans-serif; color: var(--mag); }

/* Panel */
.cdq__panel { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 8px 20px 20px; counter-reset: cdq; box-shadow: 0 24px 48px -36px rgba(20,23,29,.3); }
.admin-bar .cdq__panel { top: 128px; }
.cdq__step { padding: 16px 0; transition: opacity .25s; }
.cdq__step + .cdq__step { border-top: 1px solid var(--line); }
.cdq__h { counter-increment: cdq; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 12px/1 Rubik, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.cdq__h::before { content: counter(cdq); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11.5px; letter-spacing: 0; }
.cdq__pay .cdq__h::before { content: none; }
.cdq__h2 { margin: 14px 0 8px; font: 600 12px/1 Rubik, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.cddtf-cot:not(.is-ready) .cdq__lock { opacity: .38; pointer-events: none; }

/* Diseños */
.cddtf-files { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow: auto; scrollbar-width: thin; }
.cddtf-files:empty { display: none; }
.cddtf-file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--soft); }
.cddtf-file.is-in { animation: cdqin .3s ease-out; }
@keyframes cdqin { from { opacity: 0; transform: translateY(6px); } }
.cddtf-file.is-new { animation: cdqnew 1.2s ease-out; }
@keyframes cdqnew { from { box-shadow: 0 0 0 3px #00BBFF; } to { box-shadow: 0 0 0 3px transparent; } }
.cddtf-thumb { width: 48px; height: 48px; border-radius: 10px; background: repeating-conic-gradient(#E3E7EC 0 25%, #fff 0 50%) 0 0/8px 8px; display: grid; place-items: center; overflow: hidden; }
.cddtf-thumb img { max-width: 100%; max-height: 100%; }
.cddtf-info { min-width: 0; }
.cddtf-fname { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cddtf-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cddtf-ok { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; }
.cddtf-acts { display: flex; gap: 2px; }
.cddtf-dup, .cddtf-x, .cddtf-rot { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.cddtf-dup:hover, .cddtf-rot:hover { color: var(--mag); background: #FFEAF5; }
.cddtf-x:hover { color: #B8322A; background: #FDE2E0; }
.cddtf-dup:disabled, .cddtf-rot:disabled { opacity: .3; cursor: default; background: transparent; }
.cddtf-chips { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; }
.cddtf-issue { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; color: #8A3A00; background: #FFF4D6; border-radius: 8px; padding: 6px 9px; }
.cddtf-busy { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
@keyframes cdqspin { to { transform: rotate(360deg); } }
.cddtf-ctrls { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cd-num, .cd-step { position: relative; display: flex; align-items: center; height: 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 8px 0 12px; transition: border-color .15s, box-shadow .15s; }
.cd-num:focus-within, .cd-step:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,23,29,.06); }
.cd-k { font-size: 12px; color: var(--muted); margin-right: auto; }
.cd-num input { width: 48px; border: 0; padding: 0 2px; text-align: right; font: 600 15px Rubik, system-ui, sans-serif; background: transparent; outline: none; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.cd-num span:last-child { font-size: 12.5px; color: var(--muted); margin-left: 3px; }
.cd-step { padding-right: 4px; }
.cd-step button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--soft); font-size: 16px; line-height: 1; cursor: pointer; color: var(--ink); }
.cd-step button:hover { background: #E3E7EC; }
.cd-step input { width: 34px; border: 0; text-align: center; font: 600 15px Rubik, system-ui, sans-serif; outline: none; -moz-appearance: textfield; background: transparent; }
.cddtf-cot input[type=number]::-webkit-inner-spin-button, .cddtf-cot input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cdq__add { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; height: 44px; border: 1.5px dashed #C9D0D8; border-radius: 14px; color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.cdq__add:hover { border-color: var(--mag); color: var(--mag); background: #FFF6FA; }

/* Opciones (botones en lugar de listas) */
.cdq__native { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cdq__seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cdq__seg button { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 14px Rubik, system-ui, sans-serif; padding: 9px 14px; border-radius: 99px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cdq__seg button:hover { border-color: var(--ink); }
.cdq__seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cddtf-warn { margin-top: 10px; background: #FFF4D6; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; color: #3D2A00; }

/* Total y compra */
.cddtf-total { display: flex; flex-direction: column; gap: 6px; }
.cddtf-total[hidden] { display: flex; }
.cddtf-total > span { font: 800 44px/1 Rubik, system-ui, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cddtf-total small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--muted); }
.cddtf-total small em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ok); background: #E6F5EC; padding: 4px 9px; border-radius: 99px; }
.cdq__switch { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 14px; cursor: pointer; user-select: none; }
.cdq__switch input { position: absolute; opacity: 0; }
.cdq__switch i { position: relative; flex: none; width: 38px; height: 22px; border-radius: 99px; background: #D5DBE2; transition: background .2s; }
.cdq__switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.cdq__switch input:checked + i { background: var(--mag); }
.cdq__switch input:checked + i::after { transform: translateX(16px); }
.cdq__switch input:focus-visible + i { outline: 2px solid var(--mag); outline-offset: 2px; }
.cdq__switch b { font-weight: 600; }
.cdq__switch .amount, .cdq__switch bdi { font-weight: 600; }
.cd-ws__cta .single_add_to_cart_button { width: 100%; display: flex !important; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 24px !important; font: 600 17px Rubik, system-ui, sans-serif !important; border-radius: 99px !important; margin: 0 !important; background: var(--mag) !important; color: #fff !important; border: 0 !important; box-shadow: 0 12px 26px -12px rgba(200,0,106,.65); transition: transform .15s, box-shadow .15s, opacity .2s; }
.cd-ws__cta .single_add_to_cart_button:not([disabled]):hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(200,0,106,.7); }
.single_add_to_cart_button[disabled] { opacity: .35; cursor: not-allowed; box-shadow: none !important; }
.single_add_to_cart_button.is-busy { opacity: .7; pointer-events: none; }

@media (max-width: 960px) {
	.cddtf-cot { grid-template-columns: 1fr; gap: 16px; }
	.cdq__stage { min-height: 320px; border-radius: 20px; }
	.cdq__film { max-height: 56vh; padding: 48px 12px 80px; }
	.cdq__panel { position: static; border-radius: 20px; padding: 4px 16px 16px; }
	.cddtf-files { max-height: none; }
	.cddtf-total > span { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .cdq__drop-ico::after, .cddtf-file { animation: none; } }
@media (min-width: 961px) {
	.cdq__panel { max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; padding-bottom: 0; }
	.admin-bar .cdq__panel { max-height: calc(100vh - 152px); }
	.cddtf-files { max-height: none; }
	.cdq__pay { position: sticky; bottom: 0; z-index: 2; background: #fff; padding-bottom: 20px; box-shadow: 0 -14px 18px -16px rgba(20,23,29,.25); }
}
.cdq__float .cdq__price { margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); font: 700 16px Rubik, system-ui, sans-serif; color: var(--mag); }

/* Barra fija en celular */
.cdq__bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 99px; background: rgba(20,23,29,.94); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 18px 40px -16px rgba(20,23,29,.6); transform: translateY(140%); transition: transform .3s ease; font-family: Rubik, system-ui, sans-serif; }
.cdq__bar.on { transform: none; }
.cdq__bar div { display: flex; align-items: baseline; gap: 8px; }
.cdq__bar b { font: 800 20px/1 Rubik, system-ui, sans-serif; }
.cdq__bar span { font-size: 13px; color: #A9B1BD; }
.cdq__bar button { border: 0; border-radius: 99px; background: #C8006A; color: #fff; font: 600 15px Rubik, system-ui, sans-serif; padding: 12px 18px; cursor: pointer; }
@media (min-width: 961px) { .cdq__bar { display: none; } }

/* Barra de subida */
.cddtf-busy { display: flex !important; align-items: center; gap: 10px; width: 100%; }
.cddtf-pbar { flex: 1; height: 8px; border-radius: 99px; background: #E3E7EC; overflow: hidden; }
.cddtf-pbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #00BBFF, #FF0088); transition: width .25s ease; }
.cddtf-busy b { flex: none; min-width: 96px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Reintentar subida */
.cddtf-retry { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px dashed #C9D0D8; border-radius: 12px; padding: 8px 8px 8px 12px; font-size: 13px; color: var(--muted); }
.cddtf-retry button { border: 0; border-radius: 99px; background: var(--ink); color: #fff; font: 600 13px Rubik, system-ui, sans-serif; padding: 8px 14px; cursor: pointer; }
.cddtf-retry button:hover { background: var(--mag); }
/* El lienzo no "atrapa" el desplazamiento */
.cdq__film { overscroll-behavior: auto !important; }
@media (max-width: 960px) { .cdq__film { max-height: none !important; overflow: visible !important; } }

.cddtf-pbar.ind i { width: 35% !important; animation: cdqind 1.1s ease-in-out infinite alternate; }
@keyframes cdqind { from { transform: translateX(-20%); } to { transform: translateX(210%); } }
.cddtf-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #12813B; background: #E6F5EC; border-radius: 99px; padding: 5px 10px; width: fit-content; }
.cddtf-note::before { content: "✓"; font-weight: 700; }

/* Aviso: la vista previa es solo referencia */
.cdq__left { min-width: 0; }
.cdq__note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line, #DDE1E7); font-size: 13.5px; line-height: 1.5; color: #5A6371; }
.cdq__note strong { color: var(--ink, #201E1E); font-weight: 600; }
.cdq__note-ico { flex: none; color: #C8006A; margin-top: 1px; display: inline-flex; }
.cdq__note-ok { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #1E9E52; color: #fff; vertical-align: -3px; margin: 0 1px; }
.cddtf-cot:not(.is-ready) .cdq__note { display: none; }
@media (max-width: 781px) { .cdq__note { margin-top: 10px; font-size: 13px; } }

/* Archivo por enlace */
.cdq__lnkt { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 10px 0 0; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; font: 400 13.5px/1.4 Rubik, system-ui, sans-serif; color: #5A6371; text-align: left; cursor: pointer; }
.cdq__lnkt svg { flex: none; margin-top: 2px; color: #C8006A; }
.cdq__lnkt b { color: #C8006A; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cdq__lnkt:hover, .cdq__lnkt.on { background: #FFF0F7; }
.cdq__lnk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 4px; padding: 14px; border-radius: 16px; background: #F4F6F8; }
.cdq__lnk[hidden] { display: none; }
.cdq__lnk label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #5A6371; min-width: 0; }
.cdq__lnk label small { color: #8A93A0; }
.cdq__lnk input { font: inherit; font-size: 15px; color: #201E1E; border: 1px solid #C4CDD6; border-radius: 10px; padding: 9px 10px; background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
.cdq__lnk input:focus { outline: 2px solid #C8006A; outline-offset: 0; border-color: transparent; }
.cdq__lnk .w3 { grid-column: 1 / -1; }
.cdq__lnkn { margin: 0; font-size: 12.5px; line-height: 1.45; color: #5A6371; }
.cdq__lnke { margin: 0; font-size: 13px; color: #B8322A; font-weight: 600; }
.cdq__lnkb { display: flex; gap: 8px; align-items: center; }
.cdq__lnkb .cd-btn { flex: 1; justify-content: center; padding: 11px 14px; }
.cdq__lnkx { border: 0; background: none; font: 600 14px Rubik, system-ui, sans-serif; color: #5A6371; cursor: pointer; padding: 10px; }
.cddtf-lnkc { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; background: #FFEAF5; color: #C8006A; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }

.cdq__lnk .w2 { grid-column: span 2; }
/* Observaciones */
.cdq__obs { padding-top: 4px !important; }
.cdq__obsl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #201E1E; }
.cdq__obsl small { font-weight: 400; color: #8A93A0; }
.cdq__obsl textarea { font: 400 15px/1.45 Rubik, system-ui, sans-serif; color: #201E1E; border: 1px solid #C4CDD6; border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 58px; background: #fff; box-sizing: border-box; width: 100%; }
.cdq__obsl textarea:focus { outline: 2px solid #C8006A; outline-offset: 0; border-color: transparent; }
@media (max-width: 480px) { .cdq__lnk { grid-template-columns: 1fr 1fr; } .cdq__lnk .w2 { grid-column: 1 / -1; } }

/* Solo archivos por enlace: sin vista previa */
.cddtf-cot.only-links .cdq__film, .cddtf-cot.only-links .cdq__tag, .cddtf-cot.only-links ~ * .cdq__note, .cddtf-cot.only-links .cdq__note { display: none !important; }
.cdq__nolnk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 300px; padding: 40px 28px; text-align: center; color: #5A6371; font-size: 15px; line-height: 1.5; }
.cdq__nolnk strong { font-size: 20px; color: #201E1E; }
.cdq__nolnk span { max-width: 44ch; }
.cdq__nolnk b { color: #201E1E; }
.cdq__nolnk-i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #FFEAF5; color: #C8006A; margin-bottom: 4px; }

/* Mensajes de volumen: texto claro, no etiquetas */
.cddtf-total small .cdq-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 13.5px; font-weight: 400; line-height: 1.4; color: #3D4652; background: none; padding: 0; border-radius: 0; }
.cddtf-total small .cdq-hint i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 700; }
.cddtf-total small .cdq-hint.ok i { background: #E3F7EA; color: #1E9E52; }
.cddtf-total small .cdq-hint.up i { background: #FFEAF5; color: #C8006A; }
.cddtf-total small .cdq-hint { flex: 1 1 100%; } .cddtf-total small .cdq-hint:first-of-type { margin-top: 10px; }

/* Quitar fondo (remove.bg) */
.cddtf-rbgrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.cddtf-rbg { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line, #DDE1E7); background: #fff; color: #201E1E; border-radius: 99px; padding: 6px 12px; font: 600 13px inherit; font-family: inherit; cursor: pointer; }
.cddtf-rbg:hover { border-color: #C8006A; color: #C8006A; }
.cddtf-rbg.is-undo { border: 0; padding: 4px 6px; background: none; color: #5A6371; text-decoration: underline; font-weight: 500; }
.cddtf-rbg-on { font-size: 13px; font-weight: 700; color: #1E7A45; }
@keyframes cddtfspin { to { transform: rotate(360deg); } }

/* Quitar fondo: animación de escaneo (la imagen se "lee" de arriba a abajo y se marcan sus contornos) */
/* Quitar fondo en el lienzo + giro */
.cdq__film { position: relative; }
.cdq__fx { position: absolute; z-index: 1; pointer-events: none; }
.cddtf-rbgrow { flex-wrap: wrap; }
.cddtf-rbg-busy { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #C8006A; }
.cddtf-rbg-busy i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #F3C9DF; border-top-color: #C8006A; animation: cddtfspin .8s linear infinite; }
.cddtf-rbg-tip { flex: 1 1 100%; margin: 2px 0 0; padding: 7px 10px; border-radius: 10px; background: #FFF4D6; color: #5A4500; font-size: 12.5px; line-height: 1.4; }
.cddtf-rbg-tip.is-err { background: #FDE2E0; color: #8E1F18; }
/* Mejorar calidad */
.cddtf-free { margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: #E3F6EA; color: #1E7A45; font-size: 11.5px; font-weight: 700; }
.cddtf-rbg-tip.is-ok { background: #EAF6FF; color: #0B4A6F; }
.cddtf-upcmp { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.cddtf-upcmp figure { margin: 0; }
.cddtf-upcmp img { display: block; width: 100%; height: 110px; object-fit: none; object-position: center; border-radius: 10px; background: #F4F6F8; }
.cddtf-upcmp figcaption { margin-top: 3px; font-size: 12px; font-weight: 600; color: #5A6371; text-align: center; }
.cddtf-issue.is-hint { color: #17603A; background: #E6F6EC; }
.cddtf-rbg-tip.is-ok b { font-weight: 700; }
.cdq__note.is-mini { display: block; margin: 8px 2px 0; padding: 0; background: none; box-shadow: none; font-size: 12px; line-height: 1.45; color: #7A8391; }
.cdq__note.is-mini .cdq__note-ok { width: 14px; height: 14px; vertical-align: -2px; }
@media (max-width: 781px) { .cdq__note.is-mini { margin-top: 6px; font-size: 12px; } }
/* ===== Tarjeta de diseño v3 (herramientas unificadas) ===== */
.cddtf-file { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; padding: 12px; }
.cddtf-thumb { width: 52px; height: 52px; border-radius: 12px; }
.cddtf-info { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.cddtf-fname { font-size: 14px; }
.cddtf-meta { font-size: 12.5px; }
.cddtf-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.cddtf-st.is-ok { color: #1E7A45; }
.cddtf-st.is-ok svg { width: 13px; height: 13px; padding: 2px; border-radius: 50%; background: #1E9E52; color: #fff; stroke-width: 4; box-sizing: border-box; }
.cddtf-st.is-tip { color: #A3005A; }
.cddtf-st.is-warn { color: #9A4A00; }
.cddtf-st.is-warn::before { content: "⚠"; }
.cddtf-info .cddtf-busy { margin-top: 2px; }
.cddtf-x { align-self: start; margin: -4px -4px 0 0; }
.cddtf-ctrls { gap: 8px; }
.cd-num { height: 44px; padding-bottom: 5px; }
.cd-step { height: 44px; }
.cddtf-dial { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 9px; margin: 0; border-radius: 0; overflow: visible; box-shadow: none; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cddtf-dial canvas { display: block; width: 100%; height: 100%; }
.cddtf-dial.on { box-shadow: none; }
.cddtf-dial:focus { outline: none; }
.cddtf-dial:focus-visible { outline: 1.5px solid #C8006A; outline-offset: 2px; border-radius: 4px; }
.cddtf-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 -2px; padding: 2px; }
.cddtf-tools::-webkit-scrollbar { display: none; }
.cddtf-tool { position: relative; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border: 1px solid var(--line, #DDE1E7); border-radius: 99px; background: #fff; color: var(--ink, #201E1E); font: 500 12.5px/1 Rubik, system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.cddtf-tool svg { color: var(--muted); flex: none; }
.cddtf-tool:hover:not(:disabled) { border-color: #C8006A; color: #C8006A; }
.cddtf-tool:hover:not(:disabled) svg { color: #C8006A; }
.cddtf-tool:disabled { opacity: .45; cursor: default; }
.cddtf-tool.is-sug { border-color: #F1B3D3; }
.cddtf-tool.is-sug::after { content: ""; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #C8006A; box-shadow: 0 0 0 2px #fff; }
.cddtf-tool.is-on { background: #E8F6EE; border-color: #BFE3CC; color: #17603A; }
.cddtf-tool.is-on svg { color: #1E9E52; }
.cddtf-tool.is-busy { color: #C8006A; border-color: #F1B3D3; opacity: 1; }
.cddtf-undo { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: -5px; border-radius: 50%; background: rgba(23,96,58,.12); }
.cddtf-undo svg { color: #17603A !important; }
.cddtf-tool .cddtf-free { margin-left: 0; }
.cddtf-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #F3C9DF; border-top-color: #C8006A; animation: cddtfspin .8s linear infinite; }
.cddtf-detail { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.cddtf-pn { margin: 0; font-size: 12px; line-height: 1.4; color: #5A6371; }
.cddtf-pn.is-err { color: #8E1F18; }
.cddtf-upcmp { margin: 0; gap: 6px; }
.cddtf-upcmp figure { position: relative; }
.cddtf-upcmp img { height: 84px; }
.cddtf-upcmp figcaption { position: absolute; left: 6px; bottom: 6px; margin: 0; padding: 2px 7px; border-radius: 99px; background: rgba(20,23,29,.7); color: #fff; font-size: 10.5px; }
@media (max-width: 781px) { .cddtf-tool { height: 34px; } }
.cddtf-file > .cddtf-acts { align-self: start; display: flex; gap: 0; margin: -6px -6px 0 0; }
.cddtf-ib { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.cddtf-ib:hover:not(:disabled) { color: #C8006A; background: #FFEAF5; }
.cddtf-ib.cddtf-x:hover { color: #B8322A; background: #FDE2E0; }
.cddtf-ib:disabled { opacity: .3; cursor: default; }
.cddtf-file > .cddtf-acts .cddtf-x { margin: 0; }
/* Semitono: medida fija */
.cd-num.is-lock { background: var(--soft); }
.cd-num.is-lock .cd-k { display: inline-flex; align-items: center; gap: 4px; }
.cd-num.is-lock .cd-k svg { color: var(--muted); }
.cd-num.is-lock input { color: var(--muted); pointer-events: none; }

/* «Nitidez mejorada» fija al quitar el fondo */
.cddtf-tool.is-lock{cursor:default;opacity:1}
.cddtf-tool.is-lock .cddtf-lk{display:inline-flex;margin-left:2px;opacity:.7}

.cddtf-tool.is-link{display:inline;border:0;background:none;padding:0;margin:0;font:inherit;font-weight:600;color:var(--mag,#C8006A);text-decoration:underline;cursor:pointer;min-height:0;box-shadow:none}

/* «Borrar todo» junto a «Tus diseños» */
.cdq__clear { margin-left: auto; border: 0; background: none; padding: 4px 2px; font: 500 13px/1.2 Rubik, system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--mut, #5A6371); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cdq__clear:hover { color: var(--ink, #201E1E); }
.cdq__clear.is-confirm { color: #fff; background: #B8322A; text-decoration: none; border-radius: 99px; padding: 5px 10px; }
.cdq__clear[hidden] { display: none; }

/* Envío por enlace: medidas y cantidad */
.cdq__lszl { display: block; font-weight: 600; font-size: 13px; color: #201E1E; margin-bottom: 6px; }
.cdq__lszg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cdq__lszg button { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; padding: 9px 6px; margin: 0; width: 100%; }
.cdq__lszg button small { font-weight: 400; opacity: .75; font-size: 11.5px; }
.cdq__lszg button.full { grid-column: 1 / -1; }
.cdq__lszg button.on, .cdq__lszg button[aria-checked="true"] { background: var(--ink, #14171D); color: #fff; border-color: var(--ink, #14171D); }
.cdq__lnk .cdq__lszc { margin-top: 10px; }
.cdq__lnk .cdq__lszc.is-off { opacity: .45; }
.cdq__lnk .cdq__lszc input { max-width: 200px; }
.cdq__lqty { display: flex; align-items: center; gap: 12px; }
.cdq__lqty .cdq__lszl { margin: 0; }
.cdq__lqty .cd-step { flex: none; }
.cdq__lqty .cd-step input { border: 0; padding: 0; width: 40px; }
.cdq__lsum { flex: 1; font-size: 13px; line-height: 1.3; color: #5A6371; border-radius: 8px; padding: 6px 10px; background: #fff; }
.cdq__lsum.ok { background: #EEF6EE; color: #1D5F2B; }

/* Archivos sin vista previa (PSD, AI, TIFF…) */
.cddtf-rsz { grid-column: 1 / -1; margin-top: 10px; }
.cddtf-rsz .cdq__lszl { display: block; font-weight: 600; font-size: 13px; color: #201E1E; margin-bottom: 6px; }
.cddtf-rszc { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 12.5px; color: #5A6371; }
.cddtf-rszc small { color: #8A93A0; }
.cddtf-rszc input { font: inherit; font-size: 15px; color: #201E1E; border: 1px solid #C4CDD6; border-radius: 10px; padding: 9px 10px; background: #fff; max-width: 200px; box-sizing: border-box; }
.cddtf-rszc.is-off { opacity: .45; }
.cddtf-st.cddtf-rawok { display: block; white-space: normal; }

/* Subida con internet inestable: plan B */
.cddtf-retry.is-slow { flex-wrap: wrap; }
.cddtf-retry [data-lnkb] { border: 0; background: none; color: #C8006A; font: 600 12.5px Rubik, system-ui, sans-serif; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* ===== Vista de prueba (?probar=nuevo) ===== */
.cdx-beta { grid-column: 1 / -1; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #14171D; color: #fff; font: 500 13px Rubik, system-ui, sans-serif; text-align: center; }
.cdx-beta a { color: #FF8CC6; font-weight: 600; }
.cdx-help { grid-column: 1 / -1; margin-top: 10px; background: #FFF7FB; border-radius: 14px; padding: 4px 12px 2px; }
.cdx-help > p { margin: 8px 0 2px; font: 600 13px Rubik, system-ui, sans-serif; color: #A3005A; }
.cdx-help.is-done { background: #F2FAF5; }
.cdx-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #ECDDE6; }
.cdx-help > p + .cdx-row { border-top: 1px solid #ECDDE6; }
.cdx-help.is-done .cdx-row { border-top: 0; align-items: center; }
.cdx-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #FFE3F1; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.cdx-help.is-done .cdx-ic { background: #DDF3E4; color: #1E7A45; font-weight: 700; font-size: 15px; }
.cdx-row b { display: block; font: 600 14px/1.3 Rubik, system-ui, sans-serif; color: #201E1E; }
.cdx-help.is-done .cdx-row b { color: #1E7A45; }
.cdx-t { display: block; font: 13px/1.35 Rubik, system-ui, sans-serif; color: #5A6371; margin-top: 2px; }
.cdx-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cdx-go { min-height: 44px; border: 0; border-radius: 99px; background: #C8006A; color: #fff; font: 600 14px Rubik, system-ui, sans-serif; padding: 0 18px; cursor: pointer; }
.cdx-alt { min-height: 44px; border: 0; background: none; color: #5A6371; font: 500 13.5px Rubik, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; cursor: pointer; }
@media (max-width: 600px) {
  .is-beta #cddtf-files .cddtf-ib { width: 44px; height: 44px; }
  .is-beta #cddtf-files .cddtf-ib svg { width: 20px; height: 20px; }
  .is-beta #cddtf-files .cddtf-ctrls { gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
  .is-beta #cddtf-files .cd-num, .is-beta #cddtf-files .cd-step { height: 52px; min-width: 0; box-sizing: border-box; }
  .is-beta #cddtf-files .cd-num input { height: 32px; font-size: 20px; }
  .is-beta #cddtf-files .cd-step { padding: 0 4px 0 10px; gap: 2px; }
  .is-beta #cddtf-files .cd-step .cd-k { font-size: 12px; }
  .is-beta #cddtf-files .cd-step button { flex: none; width: 36px; height: 40px; font-size: 20px; }
  .is-beta #cddtf-files .cd-step input { flex: none; }
  .is-beta #cddtf-files .cd-step input { width: 30px; height: 40px; font-size: 18px; }
}

.cdx-revbox { margin: 0 0 14px; }
.cdx-revbox.on { padding: 10px 12px; border-radius: 14px; background: #FFF7FB; box-shadow: inset 0 0 0 1px #F3C6DD; }
.cdx-rev { margin: 6px 0 0 48px; font: 12.5px/1.4 Rubik, system-ui, sans-serif; color: #A3005A; }
.is-beta .cdq__stage + .cdq__note.is-mini { margin: 10px 6px 0; }
/* Vista de prueba: nota a todo lo ancho y regla del ancho más fácil de atinar en celular */
.is-beta .cdq__stage + .cdq__note.is-mini { margin: 10px 2px 0; text-wrap: wrap; }
@media (max-width: 600px) {
  .is-beta #cddtf-files .cd-num, .is-beta #cddtf-files .cd-step { height: 64px; }
  .is-beta #cddtf-files .cd-num { padding-bottom: 20px; }
  .is-beta #cddtf-files .cddtf-dial { height: 14px; bottom: 5px; }
  .is-beta #cddtf-files .cddtf-dial::before { content: ''; position: absolute; left: -6px; right: -6px; top: -6px; bottom: -5px; } /* zona táctil de ~25 px sin tapar el número */
}

/* Vista de prueba (celular): sin el contador repetido bajo el pliego y con «+ Agregar» fijo arriba de la lista */
.cdx-addtop { display: none; }
@media (max-width: 960px) {
  .is-beta .cdq__float { display: none !important; }
  .is-beta .cdq__h.cdx-sticky { position: sticky; top: var(--cdx-top, 0px); z-index: 6; background: #fff; margin: 0 -4px 12px; padding: 8px 4px; }
  .is-beta .cdx-addtop { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: #C8006A; color: #fff; font: 600 13.5px Rubik, system-ui, sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; }
  .is-beta .cdx-addtop span { font-size: 18px; line-height: 1; }
  .is-beta .cdx-addtop[hidden] { display: none; }
  .is-beta .cdx-addtop + .cdq__clear { margin-left: 4px; }
}

/* Vista de prueba (celular): lienzo sin el espacio del contador y nota informativa arriba */
@media (max-width: 960px) {
  .is-beta .cdq__film { padding-bottom: 16px; }
  .is-beta.has-files .cdq__stage { min-height: 0; }
  .is-beta:not(.is-ready) .cdq__note.is-mini.cdx-info { display: none; }
  .is-beta.is-ready .cdq__note.is-mini.cdx-info { display: block; position: relative; margin: 0 0 8px; padding: 8px 12px 8px 36px; border-radius: 12px; background: #EEF4FB; color: #3D4C5F; font-size: 12.5px; line-height: 1.4; text-wrap: wrap; }
  .is-beta.is-ready .cdq__note.is-mini.cdx-info::before { content: "i"; position: absolute; left: 12px; top: 9px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #5B7FA8; color: #fff; font: 700 11px/1 Georgia, serif; }
}
