/* DP Herramientas — centro de herramientas y páginas de herramienta.
   Estilo claro, alineado con la home (home-nueva.css): crema, tarjetas blancas, dorado de marca.
   Usa landing-home.min.css solo para el nav y el footer compartidos; todo lo propio va bajo .dpt-* */
/* Bricolage Grotesque (títulos, igual que la home), alojada en el sitio: el pipeline reemplaza los links a Google Fonts. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin-700-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.dpt-page {
  --bg: #fbf8f3;
  --bg-2: #f4efe6;
  --card: #ffffff;
  --ink: #17151c;
  --ink-2: #4a4652;
  --muted: #77727f;
  --line: #e7e0d4;
  --line-2: #d9d0c1;
  --brand: #d4a017;
  --brand-2: #e6b422;
  --brand-ink: #8a6100;
  --brand-soft: #fbefd0;
  --hl: #f4d486;
  --ok: #059669;
  --err: #dc2626;
  --c-pdf: #ef4444;
  --c-img: #0ea5e9;
  --c-ventas: #d4a017;
  --c-docs: #10b981;
  --c-marca: #8b5cf6;
  --c-envios: #f97316;
  --c: var(--brand);
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(23, 21, 28, .04), 0 12px 32px rgba(23, 21, 28, .07);
  --shadow-lg: 0 2px 4px rgba(23, 21, 28, .04), 0 30px 70px rgba(23, 21, 28, .14);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--body);
}
.dpt-page main { display: block; }
.dpt-page h1, .dpt-page h2, .dpt-page h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.dpt-page p { text-wrap: pretty; }
.dpt-page main a { color: inherit; }
.dpt-page :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.dpt-ico-svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; }
.dpt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dpt-noselect { user-select: none; -webkit-user-select: none; }

/* Nav compartido: en páginas claras va como barra negra sólida, igual que la home. */
.dpt-page .navbar, .dpt-page .navbar.scrolled { background: #17151c; border-bottom: 0; box-shadow: 0 10px 30px -18px rgba(23, 21, 28, .6); }
.dpt-page .navbar::before, .dpt-page .navbar::after { display: none; }
@media (min-width: 1200px) { .dpt-page .navbar.scrolled .nav-container { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Footer compartido: oscuro como en la home. */
.dpt-page .footer { background: #17151c; color: #d6d3d1; margin-top: 24px; }
.dpt-page .footer-bottom p { color: #a8a29e; }

/* ---------- Tiles por categoría ---------- */
[data-cat="pdf"], .is-pdf { --c: var(--c-pdf); }
[data-cat="img"], .is-img { --c: var(--c-img); }
[data-cat="ventas"], .is-ventas { --c: var(--c-ventas); }
[data-cat="docs"], .is-docs { --c: var(--c-docs); }
[data-cat="marca"], .is-marca { --c: var(--c-marca); }
[data-cat="envios"], .is-envios { --c: var(--c-envios); }
.dpt-tile {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; flex: none; font-size: 1.3rem;
  color: color-mix(in srgb, var(--c) 82%, #17151c); background: color-mix(in srgb, var(--c) 13%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
}

/* ---------- Hero ---------- */
.dpt-hero { position: relative; padding: 132px 0 64px; overflow: hidden; isolation: isolate; }
.dpt-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: radial-gradient(rgba(23, 21, 28, .09) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 10%, transparent 70%);
}
.dpt-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); margin: 0 0 22px; padding: 0; list-style: none; }
.dpt-crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.dpt-crumbs a { color: var(--ink-2); text-decoration: none; }
.dpt-crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }
.dpt-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 700; }
.dpt-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(212, 160, 23, .22); }
.dpt-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.02; margin: 0 0 20px; }
.dpt-hl { position: relative; white-space: nowrap; z-index: 0; }
.dpt-hl::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .06em; height: .36em; border-radius: 6px; background: var(--hl); }
.dpt-lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 58ch; margin: 0 0 28px; line-height: 1.55; }
.dpt-lead strong { color: var(--ink); }

.dpt-search { position: relative; max-width: 640px; margin: 0 0 22px; }
.dpt-search .dpt-ico-svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--muted); pointer-events: none; }
.dpt-search input {
  width: 100%; height: 64px; padding: 0 64px 0 58px; border-radius: 999px; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); font: 500 1.05rem var(--body); box-shadow: 5px 6px 0 var(--ink); transition: box-shadow .2s, transform .2s;
}
.dpt-search input::placeholder { color: #9b95a1; }
.dpt-search input:focus { outline: none; transform: translate(-1px, -1px); box-shadow: 7px 8px 0 var(--brand); }
.dpt-search kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); font: 600 .8rem var(--body); background: var(--bg); }

.dpt-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.dpt-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.dpt-trust .dpt-ico-svg { font-size: 1.1rem; color: var(--brand-ink); }

.dpt-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.dpt-stage { position: relative; height: 420px; }
.dpt-stage::before { content: ""; position: absolute; width: 360px; height: 360px; right: 30px; top: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d36b, #e6b422 60%, #d4a017); }
.dpt-float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; min-width: 250px;
  background: #fff; box-shadow: var(--shadow-lg); animation: dpt-float 7s ease-in-out infinite;
}
.dpt-float strong { display: block; font-family: var(--display); font-size: 1rem; color: var(--ink); }
.dpt-float small { display: block; color: var(--muted); font-size: .8rem; }
.dpt-float__val { margin-left: auto; padding-left: 10px; font: 700 1rem var(--display); color: color-mix(in srgb, var(--c) 82%, #17151c); white-space: nowrap; }
.dpt-float:nth-child(1) { top: 10px; left: 4%; }
.dpt-float:nth-child(2) { top: 120px; right: 0; animation-delay: -2.3s; }
.dpt-float:nth-child(3) { top: 236px; left: 0; animation-delay: -4.1s; }
.dpt-float:nth-child(4) { top: 336px; right: 8%; animation-delay: -1.2s; }
@keyframes dpt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dpt-mini-bar { display: block; width: 120px; height: 6px; margin-top: 7px; border-radius: 9px; background: var(--bg-2); overflow: hidden; }
.dpt-mini-bar i { display: block; height: 100%; width: 72%; background: var(--c); border-radius: inherit; }

/* ---------- Secciones ---------- */
.dpt-section { padding: 72px 0; }
.dpt-section--tight { padding: 8px 0 40px; }
.dpt-section--alt { background: var(--bg-2); }
.dpt-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dpt-section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0; line-height: 1.08; }
.dpt-section__head p { margin: 10px 0 0; color: var(--ink-2); font-size: 1.05rem; }
.dpt-kicker { display: block; font: 700 .76rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px; }
.dpt-link { color: var(--ink) !important; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.dpt-link:hover { color: var(--brand-ink) !important; }

/* ---------- Botones ---------- */
.dpt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 2px solid transparent; border-radius: 999px; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.dpt-btn--primary { background: var(--brand); color: var(--ink) !important; box-shadow: 0 10px 24px -10px rgba(212, 160, 23, .8); }
.dpt-btn--primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.dpt-btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.dpt-btn--ghost:hover { border-color: #fff; }

/* ---------- Más usadas ---------- */
.dpt-popular { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dpt-pop {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; min-height: 150px; border-radius: var(--r);
  background: #fff; box-shadow: var(--shadow); text-decoration: none; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
a.dpt-pop:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.dpt-pop .dpt-tile { width: 48px; height: 48px; font-size: 1.45rem; }
.dpt-pop strong { font-family: var(--display); font-size: 1.08rem; line-height: 1.2; color: var(--ink); }
.dpt-pop small { color: var(--muted); font-size: .8rem; margin-top: auto; font-weight: 600; }
.dpt-pop.is-soon { background: rgba(255, 255, 255, .55); box-shadow: none; border: 1px dashed var(--line-2); }

/* ---------- Catálogo ---------- */
.dpt-tabs-wrap { position: sticky; top: 62px; z-index: 20; padding: 14px 0; margin-bottom: 4px; background: linear-gradient(180deg, var(--bg) 75%, rgba(251, 248, 243, 0)); }
.dpt-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.dpt-tabs::-webkit-scrollbar { display: none; }
.dpt-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: 600 .92rem var(--body); transition: background .2s, color .2s, border-color .2s;
}
.dpt-tab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.dpt-tab[data-cat="all"]::before { display: none; }
.dpt-tab:hover { border-color: var(--ink); color: var(--ink); }
.dpt-tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dpt-tab span { opacity: .55; font-weight: 500; }

.dpt-group { padding: 30px 0 10px; scroll-margin-top: 140px; }
.dpt-group[hidden], .dpt-grid[hidden], .dpt-sub[hidden] { display: none; }
.dpt-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dpt-group__head .dpt-tile { width: 52px; height: 52px; font-size: 1.55rem; border-radius: 15px; }
.dpt-group__head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.dpt-group__head p { margin: 2px 0 0; color: var(--muted); font-size: .97rem; }
.dpt-sub { font: 700 .74rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.dpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.dpt-card {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 16px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
a.dpt-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.dpt-card[hidden] { display: none; }
.dpt-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dpt-card strong { font-family: var(--display); font-size: 1.04rem; font-weight: 700; color: var(--ink); }
.dpt-card__body > span { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.dpt-card.is-soon { background: rgba(255, 255, 255, .5); border-style: dashed; }
.dpt-card.is-soon .dpt-tile { filter: grayscale(.5); opacity: .75; }
.dpt-card.is-soon strong { color: var(--ink-2); }
.dpt-badge { position: absolute; top: 12px; right: 12px; font: 700 .64rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.dpt-badge--new { background: var(--ink); color: var(--hl); }
.dpt-badge--soon { background: var(--bg-2); color: var(--muted); }
.dpt-card:has(.dpt-badge) strong { padding-right: 58px; }

.dpt-empty { display: none; text-align: center; padding: 48px 20px; border: 2px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); background: #fff; }
.dpt-empty.is-on { display: block; }
.dpt-empty strong { display: block; font-family: var(--display); font-size: 1.3rem; margin-bottom: 6px; color: var(--ink); }

/* ---------- Cómo funciona ---------- */
.dpt-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dpt-why__item { padding: 28px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.dpt-why__item > .dpt-ico-svg { font-size: 1.6rem; color: var(--brand-ink); margin-bottom: 16px; padding: 10px; box-sizing: content-box; border-radius: 14px; background: var(--brand-soft); }
.dpt-why__item h3 { font-size: 1.25rem; margin: 0 0 8px; }
.dpt-why__item p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.dpt-flow { display: flex; align-items: center; margin-top: 18px; padding: 22px 26px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); flex-wrap: wrap; row-gap: 14px; }
.dpt-flow__step { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.dpt-flow__step .dpt-tile { width: 38px; height: 38px; font-size: 1.1rem; }
.dpt-flow__arrow { flex: 1; min-width: 24px; height: 2px; margin: 0 14px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
.dpt-flow__step--no { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--err); }

/* ---------- Guías ---------- */
.dpt-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dpt-guide { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.dpt-guide:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dpt-guide small { color: var(--brand-ink); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.dpt-guide strong { font-family: var(--display); font-size: 1.18rem; line-height: 1.25; color: var(--ink); }
.dpt-guide span { color: var(--ink-2); font-size: .93rem; }

/* ---------- CTA tienda ---------- */
.dpt-cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 48px; border-radius: var(--r-lg);
  background: var(--ink); color: #fff;
}
.dpt-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 260px at 100% 0%, rgba(230, 180, 34, .28), transparent 70%); pointer-events: none; }
.dpt-cta > * { position: relative; z-index: 1; }
.dpt-cta .dpt-kicker { color: var(--hl); }
.dpt-cta h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; }
.dpt-cta p { margin: 0; color: #d6d3d1; font-size: 1.05rem; }
.dpt-cta__actions { display: flex; flex-direction: column; gap: 10px; }
.dpt-cta__note { text-align: center; color: #a8a29e; font-size: .84rem; }

/* ---------- FAQ ---------- */
.dpt-faq { display: grid; gap: 10px; max-width: 860px; }
.dpt-faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.dpt-faq details[open] { box-shadow: var(--shadow); }
.dpt-faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; color: var(--ink); }
.dpt-faq summary::-webkit-details-marker { display: none; }
.dpt-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.2rem; transition: transform .2s; }
.dpt-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.dpt-faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }

/* =====================================================================
   PÁGINA DE HERRAMIENTA
   ===================================================================== */
.dpt-hero--tool { padding: 120px 0 30px; text-align: center; }
.dpt-hero--tool .dpt-crumbs { justify-content: center; }
.dpt-tool-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.dpt-tool-head .dpt-tile { width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; }
.dpt-tool-head h1 { margin: 0; }
.dpt-hero--tool .dpt-lead { margin: 0 auto 18px; }
.dpt-hero--tool .dpt-trust { justify-content: center; }

/* Área de trabajo */
.dpt-work { --c: var(--c-pdf); position: relative; max-width: 1080px; margin: 0 auto; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); }
.dpt-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  min-height: 340px; margin: 12px; padding: 40px 20px; border-radius: 20px; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--c) 40%, #fff); background: color-mix(in srgb, var(--c) 4%, #fff); transition: border-color .2s, background .2s;
}
.dpt-drop:hover, .dpt-drop:focus-within { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.dpt-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.dpt-drop__art { position: relative; width: 124px; height: 96px; margin-bottom: 6px; }
.dpt-drop__art i { position: absolute; width: 60px; height: 76px; border-radius: 9px; background: #fff; box-shadow: 0 6px 18px rgba(23, 21, 28, .12); border: 1px solid var(--line); }
.dpt-drop__art i::before { content: ""; position: absolute; left: 10px; right: 10px; top: 14px; height: 30px; background: repeating-linear-gradient(180deg, var(--bg-2) 0 4px, transparent 4px 9px); }
.dpt-drop__art i:nth-child(1) { left: 4px; top: 14px; transform: rotate(-12deg); }
.dpt-drop__art i:nth-child(2) { right: 4px; top: 14px; transform: rotate(12deg); }
.dpt-drop__art i:nth-child(3) { left: 32px; top: 0; }
.dpt-drop__art i:nth-child(3)::after { content: "PDF"; position: absolute; left: 8px; bottom: 8px; font: 800 .6rem var(--body); padding: 2px 5px; border-radius: 4px; background: var(--c); color: #fff; }
.dpt-drop__art b { position: absolute; right: 14px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.dpt-drop h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.dpt-drop p { margin: 0; color: var(--muted); }
.dpt-btn-big {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 34px; margin-top: 6px; border-radius: 999px;
  background: var(--c); color: #fff; font: 700 1.1rem var(--body); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--c) 80%, transparent);
  transition: transform .15s, filter .15s; pointer-events: none;
}
.dpt-drop:hover .dpt-btn-big { filter: brightness(1.05); transform: translateY(-1px); }
.dpt-btn-big .dpt-ico-svg { font-size: 1.3rem; }
.dpt-drop__hint { font-size: .85rem; color: var(--muted); }
.dpt-drop__hint kbd { font: 600 .78rem var(--body); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: #fff; }

.dpt-dragover-veil { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; background: rgba(251, 248, 243, .9); backdrop-filter: blur(4px); }
.dpt-dragover-veil.is-on { display: grid; }
.dpt-dragover-veil div { padding: 48px 64px; border-radius: 28px; border: 3px dashed #ef4444; background: #fff; text-align: center; font: 700 1.6rem "Bricolage Grotesque", Inter, sans-serif; color: #17151c; box-shadow: 0 30px 70px rgba(23, 21, 28, .14); }
.dpt-dragover-veil small { display: block; font: 500 1rem Inter, sans-serif; color: #77727f; margin-top: 6px; }

.dpt-files { display: none; }
.dpt-work[data-state="files"] .dpt-drop, .dpt-work[data-state="working"] .dpt-drop, .dpt-work[data-state="done"] .dpt-drop { display: none; }
.dpt-work[data-state="files"] .dpt-files, .dpt-work[data-state="working"] .dpt-files { display: block; }

.dpt-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dpt-toolbar__sum { margin: 0 auto 0 0; color: var(--ink-2); font-size: .94rem; }
.dpt-toolbar__sum strong { color: var(--ink); }
.dpt-chip-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer; position: relative;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 .88rem var(--body); transition: border-color .15s, background .15s;
}
.dpt-chip-btn:hover { border-color: var(--ink); }
.dpt-chip-btn .dpt-ico-svg { font-size: 1.05rem; }
.dpt-chip-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dpt-chip-btn--danger:hover { border-color: var(--err); color: var(--err); }

.dpt-filegrid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; padding: 20px 18px 24px; min-height: 120px; background: var(--bg); }
.dpt-file { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23, 21, 28, .04); transition: border-color .15s, box-shadow .2s; }
.dpt-file:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.dpt-file.is-dragging { z-index: 5; pointer-events: none; box-shadow: var(--shadow-lg); border-color: var(--ink); cursor: grabbing; }
.dpt-file.is-error { border-color: color-mix(in srgb, var(--err) 50%, #fff); background: #fff7f7; }
.dpt-file__num { position: absolute; top: -9px; left: -9px; z-index: 3; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #fff; border: 3px solid var(--bg); font: 700 .78rem var(--body); display: grid; place-items: center; }
.dpt-file__thumb { position: relative; aspect-ratio: 3 / 4; margin: 8px 8px 0; border-radius: 11px; background: var(--bg-2); overflow: hidden; display: grid; place-items: center; cursor: grab; padding: 10px; }
.dpt-file__thumb img, .dpt-file__thumb canvas { max-width: 100%; max-height: 100%; display: block; transition: transform .25s var(--ease); box-shadow: 0 2px 8px rgba(23, 21, 28, .18); background: #fff; }
.dpt-file__thumb.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #efe9de 30%, #f7f3ec 50%, #efe9de 70%); background-size: 200% 100%; animation: dpt-shimmer 1.1s linear infinite; }
@keyframes dpt-shimmer { to { background-position: -200% 0; } }
.dpt-file__type { position: absolute; bottom: 8px; left: 8px; z-index: 1; font: 800 .6rem var(--body); padding: 2px 6px; border-radius: 4px; background: var(--c-pdf); color: #fff; }
.dpt-file__type.is-img { background: var(--c-img); }
.dpt-file__actions { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.dpt-file:hover .dpt-file__actions, .dpt-file:focus-within .dpt-file__actions { opacity: 1; }
.dpt-icon-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 0; background: #fff; color: var(--ink); cursor: pointer; font-size: 1rem; box-shadow: 0 2px 8px rgba(23, 21, 28, .2); }
.dpt-icon-btn:hover { background: var(--ink); color: #fff; }
.dpt-icon-btn--x:hover { background: var(--err); }
.dpt-file__meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dpt-file__name { font-size: .86rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpt-file__info { font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.dpt-file__err { font-size: .78rem; color: var(--err); line-height: 1.35; }
.dpt-file__range { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.dpt-file__range label { font-size: .74rem; color: var(--muted); flex: none; }
.dpt-file__range input { width: 100%; min-width: 0; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: 500 .8rem var(--body); }
.dpt-file__range input:focus { outline: none; border-color: var(--ink); background: #fff; }
.dpt-file__range input.is-invalid { border-color: var(--err); background: #fff7f7; }
.dpt-grip { position: absolute; bottom: 10px; right: 8px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 1px solid transparent; cursor: grab; touch-action: none; font-size: 1.1rem; }
.dpt-grip:hover, .dpt-grip:focus-visible { color: var(--ink); border-color: var(--line-2); background: var(--bg); outline: none; }
.dpt-file:has(.dpt-grip) .dpt-file__meta { padding-right: 40px; }

.dpt-addtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 230px; border-radius: 16px; border: 2px dashed var(--line-2); color: var(--muted); cursor: pointer; position: relative; font-weight: 700; font-size: .9rem; background: rgba(255, 255, 255, .6); transition: border-color .15s, color .15s; }
.dpt-addtile:hover { border-color: var(--c); color: var(--ink); }
.dpt-addtile .dpt-ico-svg { font-size: 1.8rem; }
.dpt-addtile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.dpt-actionbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.dpt-field { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; }
.dpt-field label { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.dpt-field__input { display: flex; align-items: center; flex: 1; min-width: 0; height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); padding-right: 16px; }
.dpt-field__input:focus-within { border-color: var(--ink); background: #fff; }
.dpt-field__input input { flex: 1; min-width: 0; height: 100%; padding: 0 0 0 18px; border: 0; background: transparent; color: var(--ink); font: 600 .95rem var(--body); }
.dpt-field__input input:focus { outline: none; }
.dpt-field__input span { color: var(--muted); font-size: .95rem; }
.dpt-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer; margin-left: auto;
  background: var(--c); color: #fff; font: 700 1.05rem var(--body); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--c) 85%, transparent); transition: filter .15s, transform .15s, opacity .15s;
}
.dpt-go:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.dpt-go:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.dpt-go .dpt-ico-svg { font-size: 1.25rem; }
.dpt-actionbar__hint { flex-basis: 100%; margin: -4px 0 0; font-size: .84rem; color: var(--muted); text-align: right; }
.dpt-actionbar__hint.is-err { color: var(--err); font-weight: 600; }

.dpt-progress { display: none; padding: 18px; }
.dpt-work[data-state="working"] .dpt-progress { display: block; }
.dpt-work[data-state="working"] .dpt-actionbar, .dpt-work[data-state="working"] .dpt-toolbar { pointer-events: none; opacity: .5; }
.dpt-work[data-state="working"] .dpt-filegrid { pointer-events: none; }
.dpt-progress__bar { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.dpt-progress__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c), var(--brand)); transition: width .25s; }
.dpt-progress p { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); }

.dpt-done { display: none; padding: 44px 24px 30px; text-align: center; }
.dpt-work[data-state="done"] .dpt-done { display: block; }
.dpt-done:focus { outline: none; }
.dpt-done__ok { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2.3rem; color: #fff; background: var(--ok); box-shadow: 0 0 0 12px rgba(5, 150, 105, .12); animation: dpt-pop .45s var(--ease); }
.dpt-done__ok .dpt-ico-svg { stroke-width: 2.6; }
@keyframes dpt-pop { from { transform: scale(.6); opacity: 0; } }
.dpt-done h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.dpt-done__meta { color: var(--muted); margin: 0 0 24px; }
.dpt-done__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dpt-dl { display: inline-flex; align-items: center; gap: 10px; height: 62px; padding: 0 38px; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none; font: 700 1.12rem var(--body); box-shadow: 6px 7px 0 var(--brand); transition: transform .15s, box-shadow .15s; }
.dpt-dl:hover { transform: translate(-1px, -1px); box-shadow: 8px 9px 0 var(--brand); }
.dpt-dl .dpt-ico-svg { font-size: 1.35rem; }
.dpt-done__secondary { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.dpt-next { margin: 30px auto 0; max-width: 720px; padding-top: 24px; border-top: 1px solid var(--line); }
.dpt-next p { margin: 0 0 12px; color: var(--ink); font-weight: 700; }
.dpt-next__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dpt-next__list a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink); }
.dpt-next__list a:hover { border-color: var(--ink); }
.dpt-next__list .dpt-ico-svg { color: color-mix(in srgb, var(--c) 82%, #17151c); font-size: 1.1rem; }

.dpt-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 14px 16px; font-size: .85rem; color: var(--muted); }
.dpt-privacy .dpt-ico-svg { color: var(--ok); font-size: 1.05rem; }
.dpt-privacy b { color: var(--ok); font-weight: 800; font-variant-numeric: tabular-nums; }

.dpt-toast { position: fixed; left: 50%; bottom: 24px; z-index: 3000; transform: translate(-50%, 160%); padding: 13px 20px; border-radius: 999px; background: #17151c; color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.2, .7, .2, 1); max-width: calc(100vw - 32px); text-align: center; }
.dpt-toast.is-on { transform: translate(-50%, 0); }

/* Pasos */
.dpt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.dpt-step { position: relative; padding: 26px 24px 24px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.dpt-step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; font: 800 1.15rem var(--display); background: var(--hl); color: var(--ink); }
.dpt-step h3 { margin: 0 0 6px; font-size: 1.2rem; }
.dpt-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Video */
.dpt-video { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.dpt-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.dpt-video__frame::before { content: ""; position: absolute; height: 82%; aspect-ratio: 9 / 16; border-radius: 18px; background: linear-gradient(180deg, #2a2730, #1f1c25); border: 6px solid #2f2c35; }
.dpt-video__frame::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d36b, #d4a017); opacity: .85; }
.dpt-video__play { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 1.9rem; box-shadow: 0 0 0 12px rgba(255, 255, 255, .15); }
.dpt-video__tag { position: absolute; z-index: 1; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .8rem; font-weight: 600; color: var(--ink); }
.dpt-video h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.dpt-video p { color: var(--ink-2); margin: 0 0 16px; font-size: 1.05rem; }

/* Artículo SEO */
.dpt-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.dpt-prose { max-width: 740px; color: var(--ink-2); font-size: 1.06rem; line-height: 1.75; }
.dpt-prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 48px 0 14px; line-height: 1.15; scroll-margin-top: 90px; }
.dpt-prose h2:first-child { margin-top: 0; }
.dpt-prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.dpt-prose p { margin: 0 0 16px; }
.dpt-prose ul, .dpt-prose ol { margin: 0 0 20px; padding-left: 22px; }
.dpt-prose li { margin-bottom: 8px; }
.dpt-prose li::marker { color: var(--brand); font-weight: 700; }
.dpt-prose strong { color: var(--ink); }
.dpt-prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dpt-prose code { font-size: .9em; padding: 2px 7px; border-radius: 6px; background: var(--bg-2); color: var(--ink); }
.dpt-prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 24px; font-size: .95rem; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.dpt-prose th, .dpt-prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dpt-prose tr:last-child td { border-bottom: 0; }
.dpt-prose thead th { background: var(--ink); color: #fff; font-weight: 700; }
.dpt-prose td:first-child { color: var(--ink); font-weight: 600; }
.dpt-prose td.yes { color: var(--ok); font-weight: 700; }
.dpt-prose td.no { color: var(--muted); }
.dpt-callout { padding: 18px 20px; border-radius: 16px; background: var(--brand-soft); color: var(--ink); margin: 0 0 22px; }
.dpt-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.dpt-aside__box { padding: 22px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.dpt-aside__box h3 { margin: 0 0 12px; font-size: 1.05rem; }
.dpt-aside__box ol { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .93rem; }
.dpt-aside__box ol a { color: var(--ink-2); text-decoration: none; }
.dpt-aside__box ol a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); }
.dpt-aside__box li { margin-bottom: 7px; }
.dpt-aside__cta { background: var(--ink); color: #fff; }
.dpt-aside__cta h3 { color: #fff; }
.dpt-aside__cta p { margin: 0 0 16px; color: #d6d3d1; font-size: .93rem; }
.dpt-aside__cta .dpt-btn { width: 100%; min-height: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dpt-hero__grid { grid-template-columns: 1fr; }
  .dpt-stage { display: none; }
  .dpt-popular { grid-template-columns: repeat(3, 1fr); }
  .dpt-article { grid-template-columns: 1fr; }
  .dpt-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .dpt-why, .dpt-guides, .dpt-steps { grid-template-columns: 1fr; }
  .dpt-cta, .dpt-video { grid-template-columns: 1fr; }
  .dpt-cta { padding: 32px 24px; }
  .dpt-flow { flex-direction: column; align-items: flex-start; }
  .dpt-flow__arrow { width: 2px; height: 18px; min-width: 0; flex: none; margin: 2px 0 2px 18px; background: repeating-linear-gradient(180deg, var(--line-2) 0 4px, transparent 4px 8px); }
}
@media (max-width: 640px) {
  .dpt-hero { padding: 96px 0 36px; }
  .dpt-hero--tool { padding: 92px 0 20px; }
  .dpt-hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .dpt-tool-head { gap: 12px; }
  .dpt-tool-head .dpt-tile { width: 50px; height: 50px; font-size: 1.5rem; border-radius: 14px; }
  .dpt-search input { height: 58px; font-size: 1rem; padding-right: 18px; box-shadow: 4px 5px 0 var(--ink); }
  .dpt-search kbd { display: none; }
  .dpt-trust { gap: 8px 16px; }
  .dpt-trust li { font-size: .86rem; }
  .dpt-popular { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dpt-pop { min-height: 130px; padding: 14px; }
  .dpt-tabs-wrap { top: 56px; }
  .dpt-grid { grid-template-columns: 1fr; gap: 8px; }
  .dpt-card { padding: 14px; }
  .dpt-section { padding: 48px 0; }
  .dpt-aside { grid-template-columns: 1fr; }
  .dpt-work { border-radius: 22px; margin: 0 -4px; }
  .dpt-drop { min-height: 290px; margin: 8px; padding: 28px 14px; }
  .dpt-btn-big { width: 100%; max-width: 320px; }
  .dpt-filegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .dpt-file__actions { opacity: 1; top: 12px; right: 12px; gap: 4px; }
  .dpt-icon-btn { width: 30px; height: 30px; }
  .dpt-toolbar { padding: 12px; gap: 6px; }
  .dpt-toolbar__sum { flex-basis: 100%; margin-bottom: 4px; }
  .dpt-chip-btn { height: 36px; padding: 0 12px; font-size: .84rem; }
  .dpt-addtile { min-height: 190px; }
  /* Barra de acción compacta y fija abajo: nombre + botón en una fila. */
  .dpt-actionbar { position: sticky; bottom: 0; z-index: 30; padding: 10px; gap: 8px; box-shadow: 0 -10px 24px -16px rgba(23, 21, 28, .35); border-radius: 0 0 22px 22px; }
  .dpt-field { flex: 1 1 0; }
  .dpt-field label { display: none; }
  .dpt-field__input input { padding-left: 14px; font-size: .9rem; }
  .dpt-go { height: 48px; padding: 0 18px; margin-left: 0; font-size: .95rem; }
  .dpt-actionbar__hint { text-align: center; font-size: .78rem; margin: 0; }
  .dpt-dl { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .dpt-page *, .dpt-page *::before, .dpt-page *::after { transition: none !important; animation: none !important; }
}
