/* Cabecera fija v4.0 (vidrio + logo en scroll + barra progreso), buscador vivo, footer en listas y legales editoriales. */
html { scroll-behavior: smooth; }
body { padding-top: 62px !important; }
[id] { scroll-margin-top: 78px; }
header.wp-block-template-part:has(#dpdf-main-header) { margin: 0 !important; padding: 0 !important; height: 0 !important; min-height: 0 !important; overflow: visible !important; }
.dpdf-hdr p:empty, header.wp-block-template-part:has(#dpdf-main-header) p:empty { display: none !important; margin: 0 !important; }
.dpdf-hdr {
	position: fixed !important; top: 0; left: 0; right: 0; height: 62px; z-index: 9900; width: 100%;
	display: flex; align-items: center; background: #ffffff; border-bottom: 1px solid #e1eff8;
	transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
body.admin-bar .dpdf-hdr { top: 32px; }
.dpdf-hdr.is-scrolled {
	background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom-color: rgba(203,227,245,.82); box-shadow: 0 6px 28px rgba(15,23,42,.08);
}
.dpdf-scroll-prog {
	position: absolute; left: 0; bottom: -1px; height: 3px; width: 0%; pointer-events: none;
	background: linear-gradient(90deg, #00aef0, #38bdf8, #ff9800); border-radius: 0 3px 3px 0; transition: width .08s linear;
}
.dpdf-hdr-in { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 4%; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap; box-sizing: border-box; }
.dpdf-brand {
	display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #0f172a; font-weight: 900;
	font-size: 1.32rem; letter-spacing: -0.02em; white-space: nowrap; flex-shrink: 0;
	transition: opacity .36s ease, max-width .42s cubic-bezier(.22,1,.36,1), margin-right .42s cubic-bezier(.22,1,.36,1), transform .42s cubic-bezier(.22,1,.36,1), visibility .36s ease;
}
.dpdf-brand em { font-style: normal; color: #00aef0; }
.dpdf-brand img { width: 36px; height: 36px; display: block; flex-shrink: 0; border-radius: 50%; }

body.dpdf-has-hero-brand .dpdf-hdr:not(.is-scrolled) .dpdf-brand {
	opacity: 0; max-width: 0; margin-right: -14px; transform: translateX(-10px) scale(.88); overflow: hidden; pointer-events: none; visibility: hidden; gap: 0;
}
body.dpdf-has-hero-brand .dpdf-hdr.is-scrolled .dpdf-brand {
	opacity: 1; max-width: 210px; margin-right: 0; transform: translateX(0) scale(1); pointer-events: auto; visibility: visible;
}
.dpdf-hdr.is-scrolled .dpdf-brand img { animation: dpdfBrandLock .68s cubic-bezier(.22,1,.36,1) .1s both; }
@keyframes dpdfBrandLock {
	0% { transform: scale(.8) rotate(-14deg); box-shadow: 0 0 0 0 rgba(0,174,240,.55); }
	55% { transform: scale(1.08) rotate(5deg); box-shadow: 0 0 0 8px rgba(255,152,0,0); }
	100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 0 rgba(255,152,0,0); }
}

.dpdf-hdr-search { position: relative; flex: 1; min-width: 170px; max-width: 370px; }
.dpdf-hdr-search input { width: 100%; box-sizing: border-box; padding: 8px 34px 8px 36px; border-radius: 99px; border: 2px solid #e1eff8; background: #f4f9fd; color: #0f172a; font-weight: 700; font-size: .9rem; outline: none; transition: border-color .2s, background .2s; }
.dpdf-hdr-search input:focus { border-color: #00aef0; background: #fff; box-shadow: 0 0 0 3px rgba(0,174,240,.14); }
.dpdf-hs-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; display: inline-flex; }
.dpdf-hs-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 800 11px/1 ui-monospace, monospace; color: #64748b; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 3px 6px; pointer-events: none; }
.dpdf-hdr-search input:focus + .dpdf-hs-kbd { opacity: 0; }
.dpdf-hs-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 2px solid #e1eff8; border-radius: 18px; box-shadow: 0 20px 44px rgba(15,23,42,.16); z-index: 120; max-height: 360px; overflow-y: auto; padding: 8px; }
.dpdf-hs-trends { padding: 6px 8px 8px; }
.dpdf-hs-trends small { display: block; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-bottom: 8px; }
.dpdf-hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dpdf-hs-chips a { background: #f0f9ff; color: #0369a1; border: 1.5px solid #bae6fd; padding: 5px 12px; border-radius: 99px; font-size: .82rem; font-weight: 800; text-decoration: none; transition: background .15s, color .15s; }
.dpdf-hs-chips a:hover { background: #00aef0; color: #fff; border-color: #00aef0; }
.dpdf-hs-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; text-decoration: none; color: #0f172a; font-weight: 700; font-size: .9rem; }
.dpdf-hs-item:hover { background: #f0f9ff; }
.dpdf-hs-item img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; flex-shrink: 0; background: #fff; }
.dpdf-hs-item small { display: block; font-size: .74rem; color: #0284c7; font-weight: 800; }
.dpdf-hs-empty { padding: 14px; text-align: center; color: #64748b; font-size: .9rem; font-weight: 700; }

.dpdf-nav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-weight: 800; font-size: .9rem; }
.dpdf-nav a { color: #0f172a; text-decoration: none; white-space: nowrap; transition: color .15s; }
.dpdf-nav a:hover { color: #00aef0; }
.dpdf-nav-xmas { background: #fef2f2; color: #b91c1c !important; border: 1px solid #fecaca; padding: 6px 12px; border-radius: 99px; }
.dpdf-hdr-cart { background: #0f172a; color: #fff; border: none; border-radius: 99px; padding: 7px 13px; font-weight: 800; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.dpdf-hdr-cart:hover { background: #00aef0; }
.dpdf-hdr-cart strong { background: #ff9800; color: #fff; border-radius: 99px; padding: 1px 7px; font-size: .78rem; min-width: 18px; text-align: center; }
.dpdf-lang-sw { display: inline-flex; background: #f1f5f9; border-radius: 99px; padding: 3px; border: 1px solid #e2e8f0; flex-shrink: 0; }
.dpdf-lang-sw a { padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 900; color: #475569; text-decoration: none; }
.dpdf-lang-sw a.is-on { background: #00aef0; color: #fff; }

/* Páginas legales / informativas editoriales centradas (ES y EN) */
.dpdf-legal-shell { max-width: 880px; margin: 28px auto 56px; padding: 0 5%; min-height: 56vh; box-sizing: border-box; font-family: 'Quicksand', sans-serif; color: #1e293b; }
.dpdf-legal-crumb { font-size: .88rem; font-weight: 700; color: #64748b; margin-bottom: 14px; }
.dpdf-legal-crumb a { color: #0284c7; text-decoration: none; }
.dpdf-legal-card { background: #fff; border: 2px solid #e1eff8; border-radius: 24px; padding: 34px 38px; box-shadow: 0 14px 36px rgba(15,23,42,.05); line-height: 1.75; }
.dpdf-legal-card h1 { margin: 0 0 18px; font-size: clamp(1.75rem, 3vw, 2.4rem); color: #0f172a; line-height: 1.15; }
.dpdf-legal-card h2 { margin: 24px 0 10px; font-size: 1.3rem; color: #0f172a; }
.dpdf-legal-card p { margin: 0 0 14px; color: #334155; font-size: 1rem; font-weight: 600; }
.dpdf-legal-card a:not(.nb-hero-cta) { color: #0284c7; font-weight: 800; }
.dpdf-legal-cta { margin-top: 26px; padding-top: 20px; border-top: 1px solid #e2e8f0; }

/* Footer editorial con listas verticales garantizadas (inmune a wpautop) */
.dpdf-ftr { background: #0f172a; color: #cbd5e1; padding: 48px 4% 28px; margin-top: 60px; font-family: 'Quicksand', sans-serif; }
.dpdf-ftr-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.dpdf-ftr-brand { display: flex; align-items: flex-start; gap: 14px; }
.dpdf-ftr-brand img { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 4px; flex-shrink: 0; }
.dpdf-ftr-brand strong { color: #fff; font-size: 1.25rem; font-family: 'Fredoka', sans-serif; }
.dpdf-ftr-brand em { font-style: normal; color: #00aef0; }
.dpdf-ftr-brand p { margin: 6px 0 0; font-size: .92rem; line-height: 1.6; color: #94a3b8; }
.dpdf-ftr-col h4 { margin: 0 0 12px; color: #fff; font-size: .92rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dpdf-ftr-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 9px; }
.dpdf-ftr-list li { margin: 0 !important; padding: 0 !important; }
.dpdf-ftr-list a { display: inline-block; color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: .92rem; transition: color .15s, transform .15s; }
.dpdf-ftr-list a:hover { color: #38bdf8; transform: translateX(3px); }
.dpdf-ftr-bot { max-width: 1320px; margin: 30px auto 0; padding-top: 16px; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #64748b; }
.dpdf-ftr-bot a { color: #38bdf8; text-decoration: none; font-weight: 700; }

/* Botón flotante Volver arriba */
.dpdf-top-btn {
	position: fixed; right: 20px; bottom: 24px; z-index: 9820; width: 42px; height: 42px; border-radius: 50%;
	background: #0f172a; color: #fff; border: 2px solid rgba(255,255,255,.25); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(15,23,42,.26);
	opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .24s, transform .24s, background .18s;
}
.dpdf-top-btn.is-on { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dpdf-top-btn:hover { background: #00aef0; transform: translateY(-2px); }

@media (max-width: 960px) {
	.dpdf-nav > a:not(.dpdf-nav-xmas) { display: none; }
	.dpdf-ftr-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 820px) {
	body { padding-top: 54px !important; }
	.dpdf-hdr { height: 54px; }
	.dpdf-nav > a, .dpdf-hdr-cart, .dpdf-hs-kbd { display: none !important; }
	.dpdf-hdr-in { padding: 0 12px; gap: 8px; flex-wrap: nowrap; }
	.dpdf-hdr-search { min-width: 0; max-width: none; flex: 1; }
	.dpdf-hdr-search input { padding: 7px 10px 7px 32px; font-size: .84rem; }
	.dpdf-hs-ic { left: 10px; }
	.dpdf-brand { font-size: 1.02rem; gap: 7px; }
	.dpdf-brand img { width: 28px; height: 28px; }
	body.dpdf-has-hero-brand .dpdf-hdr:not(.is-scrolled) .dpdf-brand { margin-right: -8px; }
	body.dpdf-has-hero-brand .dpdf-hdr.is-scrolled .dpdf-brand { max-width: 140px; margin-right: 0; }
	.dpdf-lang-sw a { padding: 3px 8px; font-size: .74rem; }
	.dpdf-legal-card { padding: 22px 18px; border-radius: 18px; }
	.dpdf-top-btn { right: 12px; bottom: 82px; width: 38px; height: 38px; }
}
