#clasa3d{position:relative;background:linear-gradient(#fff5f8,#1a1014 92%);color:#fff}
#clasa3d .c3-head{max-width:880px;margin:0 auto;padding:48px 20px 8px;text-align:center;color:#2a1a20}
#clasa3d .c3-head h2{font-size:clamp(1.5rem,4vw,2.2rem);margin:0 0 6px}
#clasa3d .c3-head p{margin:0;opacity:.8}
#clasa3d .c3-track{height:320vh;position:relative}
#clasa3d .c3-pin{position:sticky;top:0;height:100vh;overflow:hidden}
#clasa3d canvas.c3-cv{width:100%;height:100%;display:block}
#clasa3d .c3-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#clasa3d .c3-cta{position:absolute;left:50%;bottom:18vh;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:opacity .4s,transform .4s;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:12px 22px;border-radius:999px;background:#25d366;color:#fff;font-weight:700;text-decoration:none;box-shadow:0 0 0 3px #d4a72c,0 10px 30px rgba(0,0,0,.35)}
#clasa3d .c3-cta.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
#clasa3d .c3-cred{position:absolute;left:12px;bottom:10px;font-size:11px;opacity:.7;color:#fff;max-width:60%}
#clasa3d .c3-cred a{color:#f6c9d8}
#clasa3d.static .c3-track{height:auto}#clasa3d.static .c3-pin{position:relative;height:auto;aspect-ratio:1/1;max-height:90vh}
#clasa3d.static .c3-cta{opacity:1;transform:translate(-50%,0);pointer-events:auto}
/* notebook */
.caiet{padding:56px 16px 72px;background:#1a1014;color:#fff;text-align:center}
.caiet h2{margin:0 0 6px;color:#f6c9d8}.caiet p.sub{margin:0 0 22px;opacity:.8}
.caiet .stage{perspective:1600px;max-width:900px;margin:0 auto}
.caiet .book-wrap{transform:rotateX(14deg);transform-style:preserve-3d;padding:14px;border-radius:10px;background:linear-gradient(90deg,#c9a227,#f0d27a 48%,#8a6a12 50%,#f0d27a 52%,#c9a227);box-shadow:0 30px 50px rgba(0,0,0,.55),0 0 0 3px #e48aab inset}
.caiet .book{margin:0 auto}
.caiet .pg{background:#fffaf5;box-shadow:inset -18px 0 30px -18px rgba(0,0,0,.35)}
.caiet .pg img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;user-select:none}
.caiet .cover{background:linear-gradient(135deg,#e8709a,#b83b6a);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;font-weight:800;font-size:1.4rem;border:4px solid #d4a72c}
.caiet .caiet-nav{display:flex;gap:14px;justify-content:center;align-items:center;margin-top:20px}
.caiet .caiet-nav button{min-width:48px;min-height:48px;border-radius:50%;border:2px solid #d4a72c;background:#000;color:#f0d27a;font-size:1.3rem;cursor:pointer}
.caiet .caiet-nav span{min-width:90px}
@media (prefers-reduced-motion:reduce){.caiet .book-wrap{transform:none}}
/* notebook end CTA */
.caiet-end{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;height:100%;padding:18px;text-align:center}
.ce-q{font:700 1.15rem/1.3 var(--serif,Georgia,serif);color:#fff;margin:0}
.ce-wa{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 18px;border-radius:999px;font-weight:700;text-decoration:none;font-size:.95rem}
/* worksheet WhatsApp */
.fisa-item{display:flex;flex-direction:column;gap:8px}
.fisa-item>.bcard{flex:1}
.fisa-wa{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 14px;border-radius:999px;font-weight:700;font-size:.9rem;text-decoration:none;color:#fff}
/* talking bubble */
.c3-bub{position:absolute;z-index:3;pointer-events:none;background:#fff;color:#1a0f14;font-weight:700;padding:6px 12px;border-radius:14px;box-shadow:0 6px 18px #7d134033;transform:translate(-50%,-120%);white-space:nowrap;font-size:1rem}
/* mouth + diploma */
.g3,.d3{max-width:980px;margin:0 auto;padding:48px 16px;text-align:center}
.g3 h2,.d3 h2{margin:0 0 6px}
.g3-sub{margin:0 auto 14px;max-width:60ch;color:#3a2230}
.g3-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:12px}
.g3-btns button{min-width:56px;min-height:48px;border-radius:14px;border:2px solid #e9c46a;background:#fff;color:#7d1340;font:800 1.3rem/1 inherit;cursor:pointer}
.g3-btns button[aria-pressed=true]{background:linear-gradient(135deg,#d6336c,#a3194f 55%,#7d1340);color:#fff}
.g3-stage{position:relative;aspect-ratio:4/3;max-width:600px;margin:0 auto;border-radius:22px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#fff,#fbe3ec 70%);box-shadow:0 10px 30px #7d134022}
.g3-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab;opacity:0;transition:opacity .4s}
.g3-stage .g3-still{width:100%;height:100%;object-fit:cover;display:block}
.ready .g3-stage canvas{opacity:1}.ready .g3-stage .g3-still{visibility:hidden}
.g3-tip{min-height:3.2em;max-width:60ch;margin:14px auto 4px;font-weight:600;color:#1a0f14}
.d3-f{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.d3-f label{font-weight:700}
.d3-f input{min-height:48px;padding:8px 14px;border-radius:12px;border:2px solid #e9c46a;font-size:1rem;width:min(260px,80vw)}
.d3-png{min-height:48px;padding:8px 18px;border-radius:999px;border:2px solid #c99a3b;background:linear-gradient(135deg,#f8e3a0,#e9c46a 55%,#c99a3b);color:#1a0f14;font-weight:800;cursor:pointer}
/* 3D bunny inside mascot button */
.m-bun .m-bun3d{position:absolute;inset:0;width:60px;height:60px;border-radius:50%}
.m-bun.b3d .m-b{visibility:hidden}
html[data-theme=night] .g3-sub,html[data-theme=night] .g3-tip{color:var(--ink,#fbe3ec)}
@media (max-width:560px){.g3-tip,.g3-sub{padding-right:52px;padding-left:8px}.caiet-end .ce-q{font-size:1rem}}
