/* Portada DibujosPDF v4.0: Hero Contained Canvas + Abanico sin solape + Galería móvil 2-col equilibrada (<= 150 líneas) */
.nb-home-wrapper { font-family: 'Quicksand', sans-serif; width: 100%; margin: 0; padding: 0; overflow-x: hidden; background: #fff; color: #0f172a; }
.nb-home-gallery, .nb-home-seo-guide { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 4%; box-sizing: border-box; }

/* Hero Contained Canvas de alto impacto */
.dpdf-hero-wrap { background: #ffffff; padding: 14px 4% 24px; box-sizing: border-box; }
.dpdf-hero-card {
	position: relative; overflow: hidden; max-width: 1260px; margin: 0 auto; border-radius: 26px;
	padding: 34px 36px 28px; color: #ffffff;
	background: radial-gradient(circle at 86% 14%, #38BDF8 0%, #00AEF0 36%, #0369A1 76%, #0F172A 100%);
	box-shadow: 0 26px 64px -26px rgba(2,132,199,.52);
}
.dpdf-hero-rings { position: absolute; right: -24px; top: -16px; width: 420px; height: auto; color: #fff; opacity: .2; pointer-events: none; }
.dpdf-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.dpdf-hero-brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 10px; color: #fff; font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.dpdf-hero-brand img { width: 38px; height: 38px; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 6px 18px rgba(15,23,42,.26); }
.dpdf-hero-brand strong { color: #FDE047; font-weight: 800; }
.dpdf-hero-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 12.5px; font-weight: 800; margin: 0 auto 14px; backdrop-filter: blur(6px); }
.dpdf-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #6EE7B7; box-shadow: 0 0 0 3px rgba(110,231,183,.32); flex-shrink: 0; }
.dpdf-hero-card h1 { color: #fff !important; font-size: clamp(1.9rem, 3.7vw, 3.1rem); line-height: 1.08; margin: 0 auto 12px; max-width: 820px; text-shadow: 0 4px 18px rgba(15,23,42,.18); }
.dpdf-hero-sub { color: rgba(255,255,255,.94); font-size: clamp(.95rem, 1.5vw, 1.1rem); margin: 0 auto 22px; max-width: 680px; line-height: 1.55; font-weight: 600; }

/* Mesa Interactiva incrustada dentro del Hero */
.dpdf-hero-console {
	width: 100%; box-sizing: border-box; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 22px; align-items: center; text-align: left;
	background-color: #ffffff; background-image: radial-gradient(#cbe3f5 1.3px, transparent 1.3px); background-size: 20px 20px;
	border: 2px solid rgba(255,255,255,.55); border-radius: 22px; padding: 24px 26px; color: #0f172a;
	box-shadow: 0 28px 60px -18px rgba(15,23,42,.42);
}
.dpdf-hc-play { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; max-width: 100%; padding-top: 4px; }
.dpdf-hero-fan { position: relative; width: 100%; max-width: 396px; height: 236px; margin: 6px auto 4px; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.dpdf-fan-sheet { position: absolute; width: 144px; background: #fff; border-radius: 14px; padding: 6px 6px 7px; border: 2px solid #e1eff8; box-shadow: 0 16px 32px rgba(15,23,42,.14); text-decoration: none; color: #0f172a; transition: transform .26s ease, z-index .2s; }
.dpdf-fan-sheet img { width: 100%; height: auto !important; aspect-ratio: 3/4; object-fit: contain; background: #fff; border-radius: 9px; display: block; }
.dpdf-fan-sheet span { display: block; text-align: center; font-size: .74rem; font-weight: 900; margin-top: 5px; color: #0284c7; }
.dpdf-fan-0 { left: 10px; z-index: 5; }
.dpdf-fan-1 { z-index: 12; border-color: #00aef0; }
.dpdf-fan-2 { right: 10px; z-index: 6; }
.dpdf-hero-console .dpdf-play-bar { position: relative; z-index: 25; padding: 5px 10px; gap: 5px; max-width: 100%; box-sizing: border-box; }
.dpdf-hero-console .dpdf-play-lbl { font-size: .7rem; }
.dpdf-hero-console .dpdf-swatch { width: 20px; height: 20px; }
.dpdf-hero-console .dpdf-play-magic { padding: 5px 10px; font-size: .74rem; }
.dpdf-hero-console .dpdf-play-swap { padding: 5px 9px; font-size: .74rem; }

.dpdf-hc-desk { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }
.dpdf-hc-kicker { width: fit-content; background: #fff7ed; color: #c2410c; border: 1.5px solid #fed7aa; padding: 5px 12px; border-radius: 99px; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.dpdf-hc-desk h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.18; color: #0f172a; }
.dpdf-hc-desk p { margin: 0; font-size: .94rem; color: #475569; line-height: 1.5; font-weight: 600; }
.dpdf-hc-desk .dpdf-quick-name { margin-top: 4px; width: 100%; max-width: 100%; box-sizing: border-box; }
.dpdf-hc-desk .dpdf-quick-name input { min-width: 0; }
.dpdf-hc-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .8rem; font-weight: 800; color: #64748b; }
.dpdf-hc-chips a { background: #f0f9ff; color: #0369a1; border: 1.5px solid #bae6fd; padding: 3px 11px; border-radius: 99px; text-decoration: none; font-weight: 900; transition: background .15s, color .15s; }
.dpdf-hc-chips a:hover { background: #00aef0; color: #fff; border-color: #00aef0; }
.dpdf-hc-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.nb-hero-cta { display: inline-flex; align-items: center; gap: 8px; background: #ff9800; color: #fff; padding: 12px 22px; border-radius: 99px; font-size: .96rem; font-weight: 800; text-decoration: none; }
.nb-hero-cta:hover { color: #fff; }
.dpdf-hero-cta2 { display: inline-flex; align-items: center; gap: 8px; background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 99px; font-size: .94rem; font-weight: 800; text-decoration: none; }
.dpdf-hero-cta2:hover { background: #0284c7; color: #fff; }

/* Píldoras de acceso rápido al pie del Hero */
.dpdf-hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.dpdf-hero-pills a, .dpdf-hero-pills button {
	display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none;
	padding: 8px 15px; border-radius: 99px; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.14);
	cursor: pointer; font-family: inherit; transition: background .15s, transform .15s;
}
.dpdf-hero-pills a:hover, .dpdf-hero-pills button:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); color: #fff; }
.dpdf-hero-pills a.is-xmas { background: #fff; border-color: #fff; color: #be123c; box-shadow: 0 6px 18px rgba(15,23,42,.18); }

/* Franja de herramientas, galería alineada y guía */
.dpdf-tools-strip { max-width: 1360px; margin: 26px auto 10px; padding: 0 4%; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; box-sizing: border-box; }
.dpdf-tool-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; border: 2px solid #e1eff8; background: #fff; text-decoration: none; color: #0f172a; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s; font-family: inherit; }
.dpdf-tool-card:hover { transform: translateY(-3px); border-color: #00aef0; }
.dpdf-tool-card strong { display: block; font-size: 1.02rem; font-weight: 900; margin-bottom: 3px; }
.dpdf-tool-card > div > span { display: block; font-size: .86rem; color: #475569; font-weight: 600; line-height: 1.4; }
.dpdf-tc-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dpdf-tool-card.is-xmas { background: linear-gradient(135deg,#fff5f5,#fffbeb); border-color: #fecaca; }
.dpdf-tool-card.is-xmas .dpdf-tc-ic { background: #dc2626; color: #fff; }
.dpdf-tool-card.is-sky .dpdf-tc-ic { background: #e0f2fe; color: #0284c7; }
.dpdf-tool-card.is-amber .dpdf-tc-ic { background: #fffbeb; color: #d97706; }

.nb-home-gallery { padding-top: 44px; padding-bottom: 44px; }
.nb-section-header { text-align: center; margin-bottom: 28px; }
.nb-section-header h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); color: #0f172a; margin: 0 0 10px; justify-content: center; width: 100%; }
.nb-section-header p { font-size: 1.04rem; color: #64748b; margin: 0; font-weight: 600; }
.dpdf-age-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dpdf-age-pills button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 99px; border: 2px solid #e1eff8; background: #f4f9fd; color: #334155; font-weight: 800; font-size: .9rem; cursor: pointer; }
.dpdf-age-pills button.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.nb-grid-item { background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 12px 32px -10px rgba(15,23,42,.06); border: 1px solid #e1eff8; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.nb-grid-item:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -12px rgba(15,23,42,.12); border-color: #bae6fd; }
.dpdf-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.nb-grid-img-wrap { position: relative; width: 100%; aspect-ratio: 4/4; border-radius: 14px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 1px solid #f1f5f9; padding: 8px; box-sizing: border-box; }
.dpdf-card-lvl { position: absolute; bottom: 8px; left: 8px; z-index: 4; background: rgba(15,23,42,.82); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-grid-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.nb-grid-item:hover .nb-grid-img-wrap img { transform: scale(1.05); }
.nb-grid-title { font-size: 1.04rem; font-weight: 800; color: #0f172a; margin: 0 0 12px; text-align: center; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dpdf-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.nb-grid-btn { background: #f1f5f9; color: #0f172a; padding: 9px 14px; border-radius: 99px; font-weight: 800; justify-content: center; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.nb-grid-item:hover .nb-grid-btn { background: #00aef0; color: #fff; }
.nb-home-seo-guide { max-width: 100%; padding: 44px 4% 64px; background: #f8fafc; margin-top: 0; }
.nb-home-pillars-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; max-width: 1280px; margin: 0 auto 40px; }
.nb-info-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 20px; padding: 24px; }
.nb-info-card h3 { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.nb-info-card p { font-size: .98rem; line-height: 1.6; color: #334155; margin: 0; }
.nb-home-faq { max-width: 960px; margin: 0 auto; background: #fff; border: 2px solid #e2e8f0; border-radius: 22px; padding: 28px 34px; }
.nb-home-faq h2 { font-size: 1.65rem; margin: 0 0 16px; justify-content: center; width: 100%; }
.nb-home-faq details { border-bottom: 1px solid #e2e8f0; padding: 13px 0; }
.nb-home-faq summary { font-weight: 800; font-size: 1.04rem; color: #0f172a; cursor: pointer; }
.nb-home-faq details p { margin: 9px 0 0; color: #475569; line-height: 1.6; font-size: .96rem; }

@media (max-width: 960px) {
	.dpdf-hero-wrap { padding: 10px 10px 18px; }
	.dpdf-hero-card { padding: 20px 14px 18px; border-radius: 20px; }
	.dpdf-hero-brand { font-size: 19px; margin-bottom: 8px; }
	.dpdf-hero-brand img { width: 32px; height: 32px; }
	.dpdf-hero-live { font-size: 11px; padding: 5px 11px; margin-bottom: 12px; }
	.dpdf-hero-sub { font-size: .92rem; margin-bottom: 18px; }
	.dpdf-hero-console { grid-template-columns: minmax(0, 1fr); padding: 18px 12px 16px; gap: 16px; text-align: center; }
	.dpdf-hc-play { gap: 10px; padding-top: 4px; }
	.dpdf-hero-fan { height: 192px; max-width: 276px; margin: 6px auto 4px; }
	.dpdf-fan-sheet { width: 112px; padding: 5px 5px 6px; }
	.dpdf-fan-0 { left: 4px; }
	.dpdf-fan-2 { right: 4px; }
	.dpdf-hc-desk { align-items: center; }
	.dpdf-hc-desk p { max-width: 100%; overflow-wrap: break-word; }
	.dpdf-hc-desk .dpdf-quick-name { padding: 4px 4px 4px 10px; gap: 5px; }
	.dpdf-hc-desk .dpdf-quick-name input { font-size: .84rem; width: 100%; min-width: 0; }
	.dpdf-hc-desk .dpdf-quick-name button { padding: 8px 11px; font-size: .8rem; flex-shrink: 0; }
	.dpdf-hc-chips, .dpdf-hc-btns { justify-content: center; }
	.dpdf-hero-pills { gap: 8px; }
	.dpdf-hero-pills a, .dpdf-hero-pills button { font-size: 12px; padding: 7px 12px; }
	.nb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.nb-grid-item { padding: 11px; border-radius: 18px; }
	.nb-grid-title { font-size: .92rem; margin-bottom: 8px; }
	.nb-grid-btn { padding: 8px 10px; font-size: .8rem; }
	.dpdf-add-mini { padding: 7px 8px; font-size: .78rem; }
	.nb-home-faq { padding: 22px 18px; }
}
