/* Estilos compartidos v5.0: herramientas creativas (Foto, Carta, Laberintos, Diplomas), audiocuentos, Calco y Mis Obras. */
.dpdf-nt-hero.is-photo { background: radial-gradient(circle at 86% 14%, #14B8A6 0%, #0D9488 42%, #0F766E 76%, #0F172A 100%); }
.dpdf-nt-hero.is-xmas { background: radial-gradient(circle at 86% 14%, #FB7185 0%, #E11D48 40%, #881337 76%, #0F172A 100%); }
.dpdf-nt-hero.is-maze { background: radial-gradient(circle at 86% 14%, #F59E0B 0%, #EA580C 42%, #9A3412 76%, #0F172A 100%); }
.dpdf-nt-hero.is-award { background: radial-gradient(circle at 86% 14%, #A855F7 0%, #7C3AED 42%, #4C1D95 76%, #0F172A 100%); }

/* Zona de subida privada Foto a Dibujo */
.dpdf-dropzone {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
	border: 2.5px dashed #0ea5e9; background: #f0f9ff; border-radius: 16px; padding: 18px 14px; cursor: pointer;
	color: #0369a1; font-weight: 800; font-size: .88rem; transition: background .18s, border-color .18s;
}
.dpdf-dropzone:hover, .dpdf-dropzone.is-drag { background: #e0f2fe; border-color: #0284c7; }
.dpdf-dropzone small { font-size: .74rem; color: #475569; font-weight: 700; }
.dpdf-dropzone input { display: none; }
.dpdf-range-row { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 800; color: #334155; }
.dpdf-nt-field input[type="range"] { padding: 0; border: none; accent-color: #00aef0; cursor: pointer; }
.dpdf-nt-field textarea { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 2px solid #e2e8f0; border-radius: 12px; font: 700 .9rem/1.4 'Quicksand', sans-serif; color: #0f172a; outline: none; resize: vertical; }
.dpdf-nt-field textarea:focus { border-color: #00aef0; }
.dpdf-photo-canvas { width: 100%; height: auto; display: block; background: #fff; }
.dpdf-tab-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f1f5f9; padding: 5px; border-radius: 14px; }
.dpdf-tab-btn { border: none; border-radius: 10px; padding: 9px 10px; font-weight: 900; font-size: .84rem; background: transparent; color: #475569; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; }
.dpdf-tab-btn.is-on { background: #0f172a; color: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.18); }
.dpdf-lb-panel { display: flex; flex-direction: column; gap: 12px; }
.dpdf-lb-panel[hidden] { display: none !important; }
.dpdf-alpha-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dpdf-alpha-btn { border: 1.5px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 9px; padding: 6px 0; font-weight: 900; font-size: .84rem; cursor: pointer; }
.dpdf-alpha-btn.is-on { background: #00aef0; color: #fff; border-color: #00aef0; }

/* Reproductor Audiocuento mientras coloreas (Colecciones + Studio 2.0) */
.dpdf-audio-pill {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 99px;
	background: rgba(15,23,42,.52); border: 1px solid rgba(255,255,255,.32); color: #fff; backdrop-filter: blur(8px);
	max-width: 100%; margin: 4px 0 14px; box-sizing: border-box;
}
.dpdf-audio-play {
	width: 34px; height: 34px; border-radius: 50%; border: none; background: #ff9800; color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .15s, background .15s;
}
.dpdf-audio-play:hover { transform: scale(1.08); background: #f59e0b; }
.dpdf-audio-play.is-playing { background: #10b981; }
.dpdf-audio-meta { display: flex; flex-direction: column; gap: 3px; min-width: 140px; flex: 1; text-align: left; }
.dpdf-audio-meta strong { font-size: .8rem; font-weight: 900; line-height: 1.1; color: #fff; }
.dpdf-audio-track { height: 5px; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden; cursor: pointer; }
.dpdf-audio-fill { height: 100%; width: 0%; background: #fde047; border-radius: 99px; transition: width .15s linear; }
.dpdf-audio-time { font-size: .72rem; font-weight: 800; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.nb-studio-audio {
	display: inline-flex; align-items: center; gap: 6px; background: rgba(255,152,0,.22); border: 1px solid rgba(255,152,0,.55);
	color: #fde68a; border-radius: 99px; padding: 5px 11px; font-size: .78rem; font-weight: 800; cursor: pointer; flex-shrink: 0;
}
.nb-studio-audio.is-playing { background: #10b981; border-color: #34d399; color: #fff; }

/* Modo Mesa de Luz / Calco en Studio 2.0 */
.nb-paint-modal.is-trace { background: #ffffff !important; }
.nb-paint-modal.is-trace .nb-modal-header,
.nb-paint-modal.is-trace .nb-modal-toolbar,
.nb-paint-modal.is-trace .nb-zoom-controls { display: none !important; }
.nb-paint-modal.is-trace .nb-workspace-inner { box-shadow: none !important; border: none !important; }
.nb-paint-modal.is-trace .nb-modal-img { max-height: 94dvh !important; max-width: 96vw !important; filter: contrast(1.45) brightness(1.06); }
.nb-paint-modal.is-trace .nb-modal-canvas { pointer-events: none; opacity: 0; }
.nb-trace-exit {
	display: none; position: fixed; top: 14px; right: 14px; z-index: 2147483630;
	background: rgba(15,23,42,.82); color: #fff; border: none; border-radius: 99px; padding: 9px 15px;
	font-weight: 800; font-size: .82rem; cursor: pointer; box-shadow: 0 8px 22px rgba(15,23,42,.28);
}
.nb-paint-modal.is-trace .nb-trace-exit { display: inline-flex; align-items: center; gap: 6px; }

/* Galería «Mis Obras» + Selector Disposición 1/2/4 en Cuadernillo */
.dpdf-layout-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.dpdf-layout-btn { border: 2px solid #e2e8f0; background: #f8fafc; color: #334155; border-radius: 10px; padding: 7px 6px; font-size: .76rem; font-weight: 800; cursor: pointer; text-align: center; }
.dpdf-layout-btn.is-on { border-color: #00aef0; background: #e0f2fe; color: #0369a1; }
.dpdf-aula-chk { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 800; color: #334155; margin-top: 8px; cursor: pointer; }
.dpdf-obras-sec { margin-top: 14px; padding-top: 14px; border-top: 2px dashed #e1eff8; }
.dpdf-obras-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.dpdf-obras-head h4 { margin: 0; font-size: .96rem; color: #0f172a; }
.dpdf-obras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.dpdf-obra-card { position: relative; border: 2px solid #e1eff8; border-radius: 12px; padding: 6px; background: #fff; text-align: center; }
.dpdf-obra-card img { width: 100%; aspect-ratio: 3/4; object-fit: contain; border-radius: 8px; display: block; margin-bottom: 4px; }
.dpdf-obra-card span { display: block; font-size: .72rem; font-weight: 800; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpdf-tools-grid-v5 { max-width: 1360px; margin: 22px auto 10px; padding: 0 4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; box-sizing: border-box; }
.dpdf-tool-card.is-teal .dpdf-tc-ic { background: #ccfbf1; color: #0f766e; }
.dpdf-tool-card.is-orange .dpdf-tc-ic { background: #ffedd5; color: #c2410c; }
.dpdf-tool-card.is-violet .dpdf-tc-ic { background: #f3e8ff; color: #7e22ce; }
.dpdf-nt-faq details { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; text-align: left; }
.dpdf-nt-faq summary { font-weight: 800; color: #0f172a; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .95rem; }
.dpdf-nt-faq summary::-webkit-details-marker { display: none; }
.dpdf-nt-faq summary::after { content: "+"; font-size: 1.15rem; color: #00aef0; font-weight: 900; flex-shrink: 0; }
.dpdf-nt-faq details[open] summary::after { content: "−"; }
.dpdf-nt-faq details p { margin: 9px 0 2px; color: #475569; font-size: .88rem; line-height: 1.55; }
@media (max-width: 960px) { .dpdf-tools-grid-v5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
	.dpdf-tools-grid-v5 { grid-template-columns: 1fr; }
	.dpdf-alpha-grid { grid-template-columns: repeat(6, 1fr); }
	.nb-studio-audio span { display: none; }
}
