/* Taller Vivo v4.0: botones 3D globales (Home, Colecciones y Legales), 13 paletas, chispas y dock móvil. */
.nb-hero-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #ff9800; color: #fff !important; border: none; padding: 12px 22px; border-radius: 99px; font-size: .96rem; font-weight: 800; text-decoration: none !important; cursor: pointer; font-family: inherit; }
.dpdf-hero-cta2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #0f172a; color: #fff !important; border: none; padding: 12px 20px; border-radius: 99px; font-size: .94rem; font-weight: 800; text-decoration: none !important; cursor: pointer; font-family: inherit; }
.dpdf-hero-cta2:hover { background: #0284c7; color: #fff !important; }
.nb-hero-cta, .dpdf-nt-btn-main, .dpdf-bbar-btn {
	box-shadow: 0 5px 0 #c26d00, 0 12px 24px rgba(255,152,0,.28) !important;
	position: relative; overflow: hidden; transition: transform .14s ease, box-shadow .14s ease, background .2s !important;
}
.nb-hero-cta:hover, .dpdf-nt-btn-main:hover, .dpdf-bbar-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 7px 0 #c26d00, 0 16px 30px rgba(255,152,0,.36) !important; }
.nb-hero-cta:active, .dpdf-nt-btn-main:active, .dpdf-bbar-btn:active { transform: translateY(3px) !important; box-shadow: 0 2px 0 #c26d00 !important; }
.nb-hero-cta::after, .nb-btn-print-booklet::after, .dpdf-bm-go::after {
	content: ""; position: absolute; top: 0; left: -120%; width: 65%; height: 100%;
	background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
	animation: dpdfSheen 4.4s ease-in-out infinite; pointer-events: none;
}
@keyframes dpdfSheen { 0%, 62% { left: -120%; } 100% { left: 160%; } }
.dpdf-hero-cta2, .nb-btn-paint { box-shadow: 0 5px 0 #020617, 0 10px 22px rgba(15,23,42,.22) !important; transition: transform .14s, box-shadow .14s, background .2s !important; }
.dpdf-hero-cta2:hover, .nb-btn-paint:hover { transform: translateY(-2px) !important; box-shadow: 0 7px 0 #020617, 0 14px 26px rgba(0,174,240,.28) !important; }
.dpdf-hero-cta2:active, .nb-btn-paint:active { transform: translateY(3px) !important; box-shadow: 0 2px 0 #020617 !important; }
.nb-btn-print-booklet, .dpdf-bm-go { position: relative; overflow: hidden; box-shadow: 0 5px 0 #0369a1, 0 12px 26px rgba(2,132,199,.3) !important; transition: transform .14s, box-shadow .14s !important; }
.nb-btn-print-booklet:active, .dpdf-bm-go:active { transform: translateY(3px) !important; box-shadow: 0 2px 0 #0369a1 !important; }
.dpdf-add-booklet { box-shadow: 0 3px 0 #7dd3fc; transition: transform .14s, box-shadow .14s, background .2s !important; }
.dpdf-add-booklet:active { transform: translateY(2px) !important; box-shadow: 0 1px 0 #7dd3fc; }
.dpdf-add-booklet.is-added { box-shadow: 0 3px 0 #34d399; }

/* Rebote elastico del carrito y chispas dopaminicas */
@keyframes dpdfBounce { 0% { transform: scale(1); } 35% { transform: scale(1.32) rotate(-6deg); } 65% { transform: scale(.92) rotate(4deg); } 100% { transform: scale(1); } }
.dpdf-pop { animation: dpdfBounce .45s cubic-bezier(.34,1.56,.64,1); }
.dpdf-spark {
	position: fixed; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; z-index: 100020;
	animation: dpdfSparkFly .68s cubic-bezier(.16,1,.3,1) forwards;
}
.dpdf-spark.is-sq { border-radius: 3px; width: 9px; height: 9px; }
@keyframes dpdfSparkFly {
	0% { transform: translate(0,0) scale(1) rotate(0deg); opacity: 1; }
	100% { transform: translate(var(--dx), var(--dy)) scale(.15) rotate(190deg); opacity: 0; }
}

/* Barra de progreso gamificada del modal Cuadernillo PDF */
.dpdf-bm-prog { background: #f4f9fd; border: 2px solid #e1eff8; border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; }
.dpdf-bm-prog-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .86rem; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.dpdf-bm-prog-track { height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.dpdf-bm-prog-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#00aef0,#10b981,#ff9800); border-radius: 99px; transition: width .4s cubic-bezier(.34,1.56,.64,1); }

/* Paleta coleccionable pastel para las 13 colecciones */
.nb-sp-card { box-shadow: 0 4px 0 #cbd5e1, 0 8px 18px rgba(15,23,42,.05) !important; border-width: 2px !important; }
.nb-sp-card:hover { transform: translateY(-4px) scale(1.015) !important; }
.nb-sp-card:active { transform: translateY(2px) !important; }
.dpdf-col-navidad, .dpdf-col-christmas { background: linear-gradient(135deg,#fff1f2,#fffbeb) !important; border-color: #fda4af !important; box-shadow: 0 4px 0 #f43f5e !important; }
.dpdf-col-navidad .nb-sp-ic, .dpdf-col-christmas .nb-sp-ic { background: #e11d48 !important; color: #fff !important; }
.dpdf-col-dinosaurios, .dpdf-col-dinosaurs { background: #ecfdf5 !important; border-color: #6ee7b7 !important; box-shadow: 0 4px 0 #10b981 !important; }
.dpdf-col-dinosaurios .nb-sp-ic, .dpdf-col-dinosaurs .nb-sp-ic { background: #10b981 !important; color: #fff !important; }
.dpdf-col-animales-de-la-granja, .dpdf-col-farm-animals { background: #fefce8 !important; border-color: #fde047 !important; box-shadow: 0 4px 0 #eab308 !important; }
.dpdf-col-animales-de-la-granja .nb-sp-ic, .dpdf-col-farm-animals .nb-sp-ic { background: #eab308 !important; color: #fff !important; }
.dpdf-col-animales-de-la-selva, .dpdf-col-jungle-animals { background: #f7fee7 !important; border-color: #bef264 !important; box-shadow: 0 4px 0 #65a30d !important; }
.dpdf-col-animales-de-la-selva .nb-sp-ic, .dpdf-col-jungle-animals .nb-sp-ic { background: #65a30d !important; color: #fff !important; }
.dpdf-col-animales-marinos, .dpdf-col-sea-animals { background: #ecfeff !important; border-color: #67e8f9 !important; box-shadow: 0 4px 0 #06b6d4 !important; }
.dpdf-col-animales-marinos .nb-sp-ic, .dpdf-col-sea-animals .nb-sp-ic { background: #06b6d4 !important; color: #fff !important; }
.dpdf-col-animales-del-bosque, .dpdf-col-forest-animals { background: #f0fdf4 !important; border-color: #86efac !important; box-shadow: 0 4px 0 #16a34a !important; }
.dpdf-col-animales-del-bosque .nb-sp-ic, .dpdf-col-forest-animals .nb-sp-ic { background: #16a34a !important; color: #fff !important; }
.dpdf-col-aves, .dpdf-col-birds { background: #f0f9ff !important; border-color: #7dd3fc !important; box-shadow: 0 4px 0 #00aef0 !important; }
.dpdf-col-aves .nb-sp-ic, .dpdf-col-birds .nb-sp-ic { background: #00aef0 !important; color: #fff !important; }
.dpdf-col-perros-y-cachorros, .dpdf-col-dogs-and-puppies { background: #fff7ed !important; border-color: #fdba74 !important; box-shadow: 0 4px 0 #f97316 !important; }
.dpdf-col-perros-y-cachorros .nb-sp-ic, .dpdf-col-dogs-and-puppies .nb-sp-ic { background: #f97316 !important; color: #fff !important; }
.dpdf-col-gatos-y-felinos, .dpdf-col-cats-and-kittens { background: #f5f3ff !important; border-color: #c4b5fd !important; box-shadow: 0 4px 0 #8b5cf6 !important; }
.dpdf-col-gatos-y-felinos .nb-sp-ic, .dpdf-col-cats-and-kittens .nb-sp-ic { background: #8b5cf6 !important; color: #fff !important; }
.dpdf-col-insectos-y-bichos, .dpdf-col-insects-and-bugs { background: #fdf2f8 !important; border-color: #f9a8d4 !important; box-shadow: 0 4px 0 #ec4899 !important; }
.dpdf-col-insectos-y-bichos .nb-sp-ic, .dpdf-col-insects-and-bugs .nb-sp-ic { background: #ec4899 !important; color: #fff !important; }
.dpdf-col-reptiles-y-anfibios, .dpdf-col-reptiles-and-amphibians { background: #f0fdfa !important; border-color: #5eead4 !important; box-shadow: 0 4px 0 #14b8a6 !important; }
.dpdf-col-reptiles-y-anfibios .nb-sp-ic, .dpdf-col-reptiles-and-amphibians .nb-sp-ic { background: #14b8a6 !important; color: #fff !important; }
.dpdf-col-animales-polares-y-exoticos, .dpdf-col-polar-and-exotic-animals { background: #eef2ff !important; border-color: #a5b4fc !important; box-shadow: 0 4px 0 #6366f1 !important; }
.dpdf-col-animales-polares-y-exoticos .nb-sp-ic, .dpdf-col-polar-and-exotic-animals .nb-sp-ic { background: #6366f1 !important; color: #fff !important; }
.dpdf-col-animales, .dpdf-col-animals { background: #faf5ff !important; border-color: #d8b4fe !important; box-shadow: 0 4px 0 #9333ea !important; }
.dpdf-col-animales .nb-sp-ic, .dpdf-col-animals .nb-sp-ic { background: #9333ea !important; color: #fff !important; }

/* Tarjetas de galeria con entrada elastica */
@keyframes dpdfCardPop { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.dpdf-card-in { animation: dpdfCardPop .34s cubic-bezier(.34,1.56,.64,1) both; }

/* Barra inferior fija tipo App nativa en movil */
.dpdf-mob-dock { display: none; }
@media (max-width: 820px) {
	body { padding-bottom: 74px !important; }
	.dpdf-bbar { bottom: 78px !important; }
	.dpdf-mob-dock {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 9850;
		background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 2px solid #e1eff8;
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(15,23,42,.08);
	}
	.dpdf-md-item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		text-decoration: none; color: #475569; font-weight: 800; font-size: .7rem; background: none; border: none; cursor: pointer; position: relative; padding: 4px 2px;
	}
	.dpdf-md-item.is-xmas { color: #e11d48; }
	.dpdf-md-item.is-cart { color: #0284c7; }
	.dpdf-md-badge { position: absolute; top: 0; right: 16%; background: #ff9800; color: #fff; font-size: .66rem; font-weight: 900; min-width: 17px; height: 17px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
