/* DibujosPDF v3.0 Studio Visual: Fredoka display, page-curl, ondas SVG, Quick-Look A4, portada 3D y shimmers. */
h1, h2, .nb-h1, .kc-main-seo-h1, .dpdf-brand, .dpdf-bm-head h3 { font-family: 'Fredoka', 'Quicksand', sans-serif !important; font-weight: 700 !important; letter-spacing: -0.015em; }

/* Separadores ondulados organicos SVG entre secciones */
.dpdf-wave-sep { width: 100%; overflow: hidden; line-height: 0; margin-top: -2px; pointer-events: none; }
.dpdf-wave-sep svg { display: block; width: 100%; height: 42px; }

/* Canvas pintable real sobre el Hero Jugable */
.dpdf-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; cursor: crosshair; z-index: 4; border-radius: 10px; }
.dpdf-fan-sheet:not(.dpdf-fan-1) .dpdf-hero-canvas { pointer-events: none; }
.dpdf-play-magic {
	background: linear-gradient(135deg,#8b5cf6,#ec4899); color: #fff; border: none; border-radius: 99px;
	padding: 6px 12px; font-weight: 800; font-size: .78rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
	box-shadow: 0 3px 0 #6d28d9; transition: transform .14s;
}
.dpdf-play-magic:hover { transform: translateY(-2px); }
.dpdf-play-magic:active { transform: translateY(2px); }
.dpdf-tap-hint {
	font-size: .76rem; font-weight: 800; color: #0284c7; background: #e0f2fe; border: 1px solid #bae6fd;
	padding: 4px 12px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px;
}

/* Efecto esquina de papel levantada (Page-Curl) en tarjetas */
.nb-grid-item, .dpdf-dibujo-item, .dpdf-fcard { position: relative; overflow: hidden; }
.nb-grid-item::before, .dpdf-dibujo-item::before, .dpdf-fcard::before {
	content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; z-index: 6; pointer-events: none;
	border-style: solid; border-width: 0; border-color: #f4f9fd #f4f9fd #bae6fd #bae6fd;
	box-shadow: -3px 3px 8px rgba(15,23,42,.08); transition: border-width .24s cubic-bezier(.34,1.56,.64,1);
	border-bottom-left-radius: 10px;
}
.nb-grid-item:hover::before, .dpdf-dibujo-item:hover::before, .dpdf-fcard:hover::before { border-width: 0 24px 24px 0; }

/* Boton Quick-Look (ojo) en tarjetas + Modal Hoja A4 Realista */
.dpdf-ql-btn {
	position: absolute; top: 8px; right: 8px; z-index: 8; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,.94); border: 2px solid #e1eff8; color: #0f172a; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(15,23,42,.12);
	transition: transform .18s, background .18s, color .18s;
}
.dpdf-ql-btn:hover { background: #00aef0; color: #fff; border-color: #00aef0; transform: scale(1.12); }
.dpdf-ql-modal {
	position: fixed; inset: 0; z-index: 10080; background: rgba(15,23,42,.76); backdrop-filter: blur(8px);
	display: flex; align-items: center; justify-content: center; padding: 18px;
}
.dpdf-ql-modal[hidden] { display: none !important; }
.dpdf-ql-shell {
	display: grid; grid-template-columns: minmax(260px, 380px) minmax(240px, 300px); gap: 24px; align-items: center;
	background: #f4f9fd; border-radius: 26px; padding: 24px; max-width: 760px; width: 100%; position: relative;
	box-shadow: 0 32px 72px rgba(15,23,42,.42); border: 2px solid #e1eff8;
}
.dpdf-ql-paper {
	background: #fff; aspect-ratio: 210 / 297; border-radius: 6px; padding: 14px 14px 12px; display: flex; flex-direction: column;
	box-shadow: 0 18px 40px rgba(15,23,42,.18), 4px 4px 0 #e2e8f0, 8px 8px 0 #cbd5e1; border: 1px solid #e2e8f0;
}
.dpdf-ql-paper-top { display: flex; justify-content: space-between; font-size: .64rem; font-weight: 800; color: #64748b; border-bottom: 1.5px dashed #cbd5e1; padding-bottom: 5px; margin-bottom: 8px; }
.dpdf-ql-paper-box { flex: 1; display: flex; align-items: center; justify-content: center; border: 1.5px solid #0f172a; border-radius: 8px; padding: 8px; overflow: hidden; }
.dpdf-ql-paper-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.dpdf-ql-paper-foot { font-size: .64rem; font-weight: 700; color: #64748b; text-align: center; padding-top: 6px; }
.dpdf-ql-side { display: flex; flex-direction: column; gap: 10px; }
.dpdf-ql-side h3 { margin: 0; font-size: 1.35rem; color: #0f172a; line-height: 1.2; }
.dpdf-ql-side p { margin: 0 0 6px; font-size: .9rem; color: #475569; font-weight: 600; }
.dpdf-ql-print {
	width: 100%; justify-content: center; background: linear-gradient(135deg, #00aef0, #0284c7); color: #fff;
	border: none; border-radius: 99px; padding: 12px 18px; font-weight: 900; font-size: .95rem; cursor: pointer;
	box-shadow: 0 4px 0 #0369a1, 0 12px 24px rgba(2,132,199,.28); transition: transform .14s;
}
.dpdf-ql-print:hover { transform: translateY(-2px); }
.dpdf-ql-print:active { transform: translateY(2px); }

/* Vista previa 3D viva de Portada en el modal de Mi Cuadernillo PDF */
.dpdf-bm-topgrid { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: start; margin-bottom: 16px; }
.dpdf-cover-3d {
	aspect-ratio: 210 / 297; background: #fff; border-radius: 6px 14px 14px 6px; padding: 12px 10px; text-align: center;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative;
	border: 2px solid #0f172a; border-left: 7px solid #00aef0;
	box-shadow: 8px 12px 24px rgba(15,23,42,.16), 3px 3px 0 #e2e8f0; transform: perspective(600px) rotateY(-8deg); transition: transform .3s;
}
.dpdf-cover-3d:hover { transform: perspective(600px) rotateY(0deg); }
.dpdf-cover-3d.is-christmas { border-left-color: #e11d48; background: linear-gradient(180deg,#fff5f5,#fff); }
.dpdf-cover-3d.is-adventure { border-left-color: #ff9800; background: linear-gradient(180deg,#fffbeb,#fff); }
.dpdf-cover-3d img { width: 42px; height: 42px; }
.dpdf-cover-3d strong { font-family: 'Fredoka', sans-serif; font-size: .86rem; line-height: 1.15; color: #0f172a; word-break: break-word; }
.dpdf-cover-3d span { font-size: .64rem; font-weight: 800; color: #64748b; }
.dpdf-cover-themes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dpdf-ct-btn { background: #f1f5f9; border: 2px solid #e2e8f0; color: #334155; border-radius: 99px; padding: 5px 11px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.dpdf-ct-btn.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }

/* Hoja volando hacia el carrito + Esqueletos shimmer + Pestaña activa en dock movil */
.dpdf-fly-sheet {
	position: fixed; z-index: 100050; width: 58px; height: 74px; border-radius: 8px; border: 2px solid #00aef0;
	background: #fff; box-shadow: 0 12px 28px rgba(0,174,240,.35); object-fit: contain; pointer-events: none;
}
@keyframes dpdfShimmer { 0% { background-position: -220% 0; } 100% { background-position: 220% 0; } }
.dpdf-skel-card {
	border-radius: 18px; height: 240px; border: 1px solid #e2e8f0;
	background: linear-gradient(90deg,#f1f5f9 25%,#e0f2fe 50%,#f1f5f9 75%); background-size: 220% 100%;
	animation: dpdfShimmer 1.3s ease-in-out infinite;
}
.dpdf-md-item.is-active { color: #00aef0 !important; background: #f0f9ff; border-radius: 12px; }
.m-btn.m-magic { background: linear-gradient(135deg,#8b5cf6,#ec4899); color: #fff; }
.nb-paint-modal.active { background: #0b0f19 !important; z-index: 2147483600 !important; margin: 0 !important; top: 0 !important; }
@media (max-width: 720px) {
	.dpdf-ql-shell { grid-template-columns: 1fr; padding: 50px 18px 18px; max-height: 92vh; overflow-y: auto; }
	.dpdf-ql-paper { max-width: 230px; margin: 0 auto; }
	.dpdf-bm-topgrid { grid-template-columns: 1fr; }
	.dpdf-cover-3d { max-width: 145px; margin: 0 auto; }
}
