/* Recursos → Presets gratis. Usa los tokens de dd.css. */
body.dd-preset .dd-main { display: grid; gap: var(--g); }
.ddp-card { background: var(--card); border-radius: var(--r); padding: clamp(20px, 2.6vw, 34px); box-sizing: border-box; }
.ddp-crumbs { display: flex; gap: 8px; font-size: var(--t-xs); color: var(--muted); padding: 2px 4px; }
body.dd .ddp-crumbs a { color: var(--ink); text-decoration: none; font-weight: 600; }
body.dd .ddp-crumbs a:hover { color: var(--accent); }
.ddp-title { margin: 0; font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .95; font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem); overflow-wrap: anywhere; }
.ddp-h2 { margin: 0 0 16px; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: var(--t-h3); }
.ddp-desc { margin: 0; color: var(--muted); line-height: 1.55; max-width: 52ch; }
.ddp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ddp-tags span { background: var(--card-2); border-radius: 999px; padding: 6px 12px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.ddp-small { font-weight: 600; opacity: .7; text-transform: none; letter-spacing: 0; }

/* Ficha */
.ddp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--g); align-items: stretch; }
.ddp-card--media { padding: 10px; display: flex; }
.ddp-info { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.ddp-info > p { margin: 0; }

/* Antes / después */
.ddp-compare { width: 100%; display: grid; gap: 10px; align-content: start; }
.ddp-ba { position: relative; margin: 0; border-radius: calc(var(--r) - 8px); overflow: hidden; background: #000; aspect-ratio: 2 / 3; max-height: 78vh; justify-self: center; width: 100%; user-select: none; touch-action: pan-y; }
.ddp-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ddp-ba__before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ddp-ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.4); pointer-events: none; }
.ddp-ba__line i { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ddp-ba__line i::before, .ddp-ba__line i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.ddp-ba__line i::before { left: 7px; border-right-color: #111; }
.ddp-ba__line i::after { right: 7px; border-left-color: #111; }
.ddp-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ddp-ba__tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.ddp-ba__tag--a { left: 12px; }
.ddp-ba__tag--b { right: 12px; background: rgba(255,126,0,.9); color: #111; }
.ddp-ba:has(.ddp-ba__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.ddp-compare__dots { display: flex; gap: 8px; justify-content: center; }
.ddp-compare__dots button { width: 46px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .55; transition: opacity .2s, border-color .2s; }
.ddp-compare__dots button.is-on { opacity: 1; border-color: var(--accent); }
.ddp-compare__dots img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Formulario */
.ddp-form { display: grid; gap: 12px; margin-top: 4px; }
.ddp-field { display: grid; gap: 6px; font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ddp-field input { font: 500 1rem/1.2 var(--f); color: var(--ink); background: var(--card-2); border: 2px solid var(--card-3); border-radius: 14px; padding: 14px 16px; text-transform: none; letter-spacing: 0; transition: border-color .2s; }
.ddp-field input:focus { outline: none; border-color: var(--accent); }
.ddp-field input[aria-invalid="true"] { border-color: #e5484d; }
.ddp-err { margin: -4px 0 0; color: #ff8a8a; font-size: var(--t-xs); }
.ddp-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-xs); line-height: 1.45; color: var(--muted); cursor: pointer; }
.ddp-check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.ddp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
body.dd .ddp-form .dd-btn, body.dd .ddp-ready .dd-btn { width: 100%; }
.ddp-legal { margin: 0; font-size: .75rem; line-height: 1.45; color: var(--muted); }
body.dd .ddp-legal a { color: var(--ink); }
.ddp-ready { display: grid; gap: 12px; background: var(--card-2); border-radius: 16px; padding: 16px; }
.ddp-ready__ok { margin: 0; font-weight: 800; color: var(--accent); }
body.dd .ddp-link { color: var(--ink); font-size: var(--t-s); font-weight: 600; text-decoration: none; }
body.dd .ddp-link:hover { color: var(--accent); }
.ddp-info .dde-sign { margin-top: 4px !important; display: flex; flex-direction: column; gap: 1px; font-size: var(--t-xs); line-height: 1.35; font-weight: 700; }
.ddp-info .dde-sign::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; margin-bottom: 8px; }
body.dd .ddp-info .dde-sign a { font-weight: 500; color: var(--muted); text-decoration: none; }

/* Instalación */
.ddp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.ddp-steps li { background: var(--card-2); border-radius: 16px; padding: 18px; counter-increment: s; }
.ddp-steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #111; font-weight: 900; font-size: .8rem; margin-bottom: 10px; }
.ddp-steps b { display: block; font-weight: 800; margin-bottom: 4px; }
.ddp-steps p { margin: 0; color: var(--muted); font-size: var(--t-s); line-height: 1.5; }
.ddp-steps em { font-style: normal; color: var(--ink); font-weight: 700; }
.ddp-note { margin: 14px 0 0; color: var(--muted); font-size: var(--t-s); }
body.dd .ddp-note a { color: var(--ink); }

/* Listado */
.ddp-head { display: grid; gap: 12px; }
.ddp-head > p { margin: 0; }
.ddp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--g); }
.ddp-more { display: grid; gap: 4px; }
body.dd a.ddp-item { display: flex; flex-direction: column; padding: 10px; text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), background-color .25s; }
body.dd a.ddp-item:hover { transform: translateY(-3px); background: var(--card-3); }
.ddp-item__pic { display: block; border-radius: calc(var(--r) - 8px); overflow: hidden; aspect-ratio: 1 / 1; background: #000; }
.ddp-item__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ddp-item:hover .ddp-item__pic img { transform: scale(1.03); }
.ddp-item__body { display: grid; gap: 4px; padding: 14px 8px 8px; }
.ddp-item__tag { justify-self: start; background: var(--teal); color: #071514; border-radius: 999px; padding: 4px 10px; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ddp-item__name { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: var(--t-l); line-height: 1.05; margin-top: 4px; }
.ddp-item__sub { color: var(--muted); font-size: var(--t-s); }
.ddp-item__go { font-weight: 700; font-size: var(--t-s); margin-top: 6px; }

@media (max-width: 820px) {
	.ddp-hero { grid-template-columns: minmax(0, 1fr); }
	.ddp-ba { aspect-ratio: 4 / 5; max-height: 64vh; }
	.ddp-steps { grid-template-columns: minmax(0, 1fr); }
	.ddp-card { padding: 16px; border-radius: 18px; }
	.ddp-card--media { padding: 8px; }
}

/* Botones en <button> (dd.css solo da estilo a <a>) */
body.dd button.dd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: 0 24px;
	border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent);
	font: 800 var(--t-s)/1 var(--f); font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em;
	transition: transform .18s var(--ease), background-color .18s;
}
body.dd button.dd-btn:hover { background: var(--accent-2); }
body.dd button.dd-btn:active { transform: scale(.97); }
