/* Mi día especial: una experiencia horizontal para la PDI */
.bd-page { min-width: 0; }
.bd-page button, .bd-page select, .bd-page input { touch-action: manipulation; }
.bd-shell { padding: clamp(12px,2vw,24px); min-height: min(780px,calc(100dvh - 210px)); }
.bd-header h1 { text-transform: uppercase; }
.bd-top, .bd-home-actions, .bd-next, .bd-final-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.bd-top { min-height:48px; justify-content:space-between; }
.bd-home-actions { justify-content:center; margin:12px 0 25px; }
.bd-birthday-hero { position:relative; display:flex; justify-content:space-around; align-items:center; flex-wrap:wrap; gap:15px; margin:8px 0 20px; padding:18px 24px; overflow:hidden; border:4px solid #f3bd6b; border-radius:28px; background:linear-gradient(110deg,#ffe6ad,#fff1d9 42%,#f9d7eb); color:#793759; text-align:center; box-shadow:0 10px 24px #9d54672c; }
.bd-birthday-hero:before,.bd-birthday-hero:after { content:'🎈'; position:absolute; top:8px; font-size:3rem; }
.bd-birthday-hero:before { left:15px; }.bd-birthday-hero:after { right:15px; transform:scaleX(-1); }
.bd-birthday-hero small { display:block; font-weight:900; letter-spacing:.14em; }
.bd-birthday-hero h2 { margin:5px 0; font-size:clamp(1.8rem,3.3vw,3.3rem); }
.bd-birthday-hero strong { font-size:clamp(1.3rem,2vw,2rem); }
.bd-birthday-hero button { position:relative; z-index:1; min-height:64px; padding:10px 20px; border-radius:18px; background:#a3356c; color:white; font-size:1.1rem; font-weight:900; }
.bd-hero-confetti { position:absolute; inset:10px auto auto 50%; color:#e18f51; letter-spacing:2rem; opacity:.4; pointer-events:none; }
.bd-calendar { padding:clamp(10px,2vw,22px); border:3px solid #f0cfdb; border-radius:28px; background:linear-gradient(145deg,#fff5e5,#fff8fc); box-shadow:0 12px 30px #9b436120; }
.bd-calendar-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.bd-calendar-head h2 { margin:0; color:#913759; }
.bd-calendar-head button { min-width:58px; min-height:52px; padding:0; border-radius:16px; font-size:2rem; font-weight:900; }
.bd-calendar > p { margin:8px 0 14px; text-align:center; color:#745365; font-weight:800; }
.bd-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; }
.bd-weekday { text-align:center; color:#8f365b; font-size:clamp(.7rem,1.3vw,1rem); }
.bd-calendar-day, .bd-calendar-blank { min-height:clamp(75px,10vh,125px); padding:6px; border:1px solid #ead4db; border-radius:15px; background:#fff; }
.bd-calendar-day.has-birthday { position:relative; border:4px solid #eea448; background:linear-gradient(140deg,#fff7cc,#ffe1ab); box-shadow:0 6px 0 #e8b779,0 0 15px #f1b84c85; transform:scale(1.03); z-index:1; }
.bd-calendar-day.has-birthday .bd-day-number { color:#a04c25; font-size:1.2rem; }
.bd-calendar-day.has-birthday button { display:grid; justify-items:center; gap:0; background:#fff7ec; border:2px solid #f4c779; border-radius:13px; color:#8e345b; }
.bd-calendar-cake { font-size:clamp(2rem,3.1vw,3.5rem)!important; line-height:1; }
.bd-calendar-day.has-birthday small { font-size:.78rem; font-weight:900; }
.bd-calendar-day.is-today { outline:3px solid #b25378; }
.bd-day-number { display:block; color:#634054; font-weight:900; }
.bd-calendar-day button { display:flex; width:100%; min-height:42px; align-items:center; justify-content:center; gap:3px; padding:3px; border:0; border-radius:11px; background:#fff; color:#74334d; font-size:clamp(.65rem,1.15vw,.95rem); overflow-wrap:anywhere; }
.bd-calendar-day button span { flex:none; font-size:1.2rem; }
.bd-undated { margin-top:12px; padding:12px; border-radius:15px; background:#fff8ec; }
.bd-undated summary { cursor:pointer; font-weight:900; }
.bd-home-actions button, .bd-next button, .bd-final-actions button { min-height:52px; font-weight:900; }
.bd-content h2 { text-align:center; font-size:clamp(1.4rem,2.4vw,2.3rem); }
.bd-roster { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:14px; margin:18px 0; }
.bd-child { display:grid; justify-items:center; align-content:center; gap:5px; min-height:145px; padding:12px; border:2px solid #ead1dd; border-radius:20px; background:#fff; color:#54233c; text-align:center; }
.bd-child:hover, .bd-child:focus-visible, .bd-child.this-month { border-color:#bb5d87; background:#fff7f9; }
.bd-child.today { border:3px solid #e9a03d; background:#fff5da; }
.bd-child strong { font-size:1.2rem; }
.bd-child small { font-size:.76rem; font-weight:800; }
.bd-child em { font-style:normal; color:#9a4c10; font-weight:900; }
.bd-child-icon { font-size:2.3rem; }
.bd-editor { margin-top:26px; padding:14px; border:1px solid #e5c9d5; border-radius:16px; background:#fff8fb; }
.bd-editor summary { font-weight:900; cursor:pointer; min-height:42px; }
.bd-editor-fields, .bd-extra { display:flex; flex-wrap:wrap; gap:10px; align-items:end; padding-top:12px; }
.bd-editor label, .bd-wishes label { display:grid; gap:5px; font-weight:850; font-size:.85rem; }
.bd-editor input, .bd-editor select, .bd-wishes input { min-height:45px; padding:8px; border:2px solid #d8adbf; border-radius:10px; background:#fff; color:#3e2331; font:inherit; }
.bd-editor input[type=number] { width:85px; }
.bd-editor p { margin-bottom:0; color:#715462; }
.bd-steps { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin:5px 0 18px; }
.bd-steps button { min-height:40px; padding:6px 10px; border-radius:12px; background:#fff; border:2px solid #e4cbd6; color:#6d3a51; font-weight:850; font-size:.78rem; }
.bd-steps button.active { background:#a6295d; color:#fff; border-color:#a6295d; }
.bd-avatar-layout { display:grid; grid-template-columns:minmax(280px,.9fr) minmax(300px,1fr); gap:18px; }
.bd-workshop { display:grid; justify-items:center; gap:18px; min-height:430px; align-content:center; border-radius:24px; background:#fff5e8; text-align:center; }
.bd-workshop p { margin:0; }
.bd-workshop > div { display:flex; flex-wrap:wrap; justify-content:center; gap:15px; }
.bd-workshop button { min-height:105px; min-width:180px; border-radius:18px; font-size:1.15rem; font-weight:900; }
.bd-avatar-controls { display:grid; gap:9px; max-height:65dvh; overflow:auto; padding:12px; border-radius:16px; background:#fff7fb; }
.bd-control strong { display:block; margin-bottom:6px; font-size:.9rem; }
.bd-control > div { display:flex; flex-wrap:wrap; gap:6px; }
.bd-control button { min-height:43px; padding:6px 11px; border:2px solid #e0becd; border-radius:11px; background:white; color:#50263c; font-size:.85rem; font-weight:850; }
.bd-control button.active { border-color:#a6295d; background:#f9e3ec; }
.bd-avatar-focus { display:grid; justify-items:center; align-content:center; gap:10px; border:2px solid #ecd4df; border-radius:22px; background:radial-gradient(circle at 50% 30%,#fff 10%,#fff1f7 100%); }
.bd-avatar-focus .bd-avatar { height:min(52dvh,440px); width:100%; }
.bd-avatar-focus strong { margin-bottom:10px; font-size:1.2rem; }
.bd-next { justify-content:center; margin-top:18px; }
.bd-workspace { display:grid; grid-template-columns:minmax(210px,250px) minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto auto; height:clamp(320px,calc(100dvh - 425px),640px); gap:9px; overflow:hidden; }
.bd-palette { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:7px; grid-row:1; min-height:0; max-height:none; padding:8px; overflow-y:auto; border:2px solid #f1dce4; border-radius:18px; background:#fffaf8; }
.bd-palette button { display:grid; justify-items:center; gap:2px; min-height:78px; padding:5px 2px; border-radius:14px; border:2px solid #e1c5d0; background:#fff; color:#714258; box-shadow:0 3px 0 #ecd7df; }
.bd-palette button svg { width:48px; height:48px; filter:drop-shadow(0 2px 1px #8b5e7040); }
.bd-palette button small { font-size:.62rem; font-weight:900; line-height:1.1; }
.bd-palette button.active { border-color:#a6295d; background:#fff0d8; }
.bd-sticker-tools { display:flex; grid-column:1; grid-row:2; flex-wrap:wrap; gap:5px; align-self:start; }
.bd-sticker-tools button { min-height:42px; padding:6px 9px; font-size:.74rem; }
.bd-hint { grid-column:1; grid-row:3; margin:0; font-size:.72rem; line-height:1.25; color:#684457; }
.bd-stage { position:relative; grid-column:2; grid-row:1/4; height:100%; min-height:0; overflow:hidden; border:7px solid #f4d6c5; border-radius:28px; background:radial-gradient(ellipse at 50% 35%,#fff 8%,#fff9ef 75%),repeating-linear-gradient(90deg,transparent 0 31px,#ffe9d8 32px); box-shadow:inset 0 0 0 3px #fff,0 12px 28px #71425518; touch-action:none; }
.bd-stage:before { content:''; position:absolute; inset:17px; border:2px dashed #f1d7ce; border-radius:18px; pointer-events:none; }
.bd-stage-decor { position:absolute; top:16px; font-size:2rem; color:#e8b85b; pointer-events:none; }
.bd-stage-decor-left { left:22px; }.bd-stage-decor-right { right:22px; }
.bd-art-title { margin:0 0 12px; color:#9e315d; }
.bd-stage-person { position:absolute; z-index:2; width:min(54%,340px); height:90%; left:50%; top:52%; transform:translate(-50%,-50%); cursor:grab; touch-action:none; }
.bd-stage-person:active { cursor:grabbing; }
.bd-stage-person svg { display:block; width:100%; height:100%; overflow:visible; pointer-events:none; }
.bd-sticker { position:absolute; z-index:4; min-width:32px; min-height:32px; padding:0; border:2px solid transparent; border-radius:16px; background:transparent; line-height:1; cursor:grab; touch-action:none; }
.bd-sticker-art { display:block; width:100%; height:100%; pointer-events:none; filter:drop-shadow(0 3px 2px #704d6638); }
.bd-legacy-sticker { font-size:inherit; }
.bd-sticker.selected { border-color:#a6295d; background:#fff8; }
.bd-ink { position:absolute; inset:0; z-index:3; width:100%; height:100%; pointer-events:none; touch-action:none; }
.bd-stage.is-drawing .bd-ink { pointer-events:auto; cursor:crosshair; }
.bd-turn { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px; min-height:58px; margin-bottom:10px; border-radius:15px; background:#fff1df; text-align:center; font-size:clamp(1rem,2vw,1.5rem); font-weight:900; }
.bd-challenge { display:grid; justify-items:center; align-content:start; gap:14px; min-height:520px; padding:clamp(15px,2vw,25px); border:4px solid #e9c7d3; border-radius:28px; background:linear-gradient(130deg,#fffdf7,#fff0e0 65%,#fff5f9); box-shadow:0 12px 25px #91556d20; text-align:center; }
.bd-challenge h2,.bd-challenge p { margin:0; }
.bd-challenge p { font-size:clamp(1rem,2vw,1.4rem); font-weight:800; }
.bd-challenge h2 { color:#9a365b; }
.bd-challenge-ribbon { padding:9px 22px; border-radius:30px; background:#9e4d76; color:white; font-weight:900; letter-spacing:.04em; }
.bd-balloon-game { display:grid; grid-template-columns:1fr minmax(220px,.8fr); gap:16px; width:100%; max-width:1100px; }
.bd-balloon-tray,.bd-class-door { display:grid; align-content:center; justify-items:center; gap:12px; min-height:245px; padding:15px; border:3px dashed #d8b7c9; border-radius:22px; background:#fff; }
.bd-balloon-tray > div { display:flex; flex-wrap:wrap; justify-content:center; gap:5px; }
.bd-balloon-tray button { width:72px; height:92px; padding:0; border:0; background:transparent; touch-action:manipulation; }
.bd-challenge-balloon { display:block; width:72px; height:88px; animation:bd-balloon-in .38s both; animation-delay:calc(var(--order) * 50ms); }
.bd-challenge-balloon svg { width:100%; height:100%; }
.bd-balloon-empty { display:block; width:72px; height:88px; border:2px dashed #ead8dd; border-radius:50%; }
.bd-balloon-tray small { color:#7a5470; font-weight:900; }
.bd-class-door { position:relative; align-content:space-between; border:9px solid #c9a17d; border-bottom-width:4px; border-radius:25px 25px 3px 3px; background:linear-gradient(120deg,#eed2ad,#f9e7c9); }
.bd-door-top { font-weight:900; color:#804b4a; }
.bd-door-balloons { display:flex; justify-content:center; flex-wrap:wrap; width:100%; min-height:85px; }
.bd-door-balloons .bd-challenge-balloon { width:54px; height:70px; margin-right:-6px; }
.bd-door-window { display:grid; place-items:center; width:75px; height:64px; border-radius:12px; background:#fff8e8; font-size:2.3rem; }
.bd-class-door > strong { padding:4px 15px; border-radius:20px; background:white; color:#8c4061; }
.bd-answer { display:grid; justify-items:center; gap:8px; }
.bd-answer > div { display:flex; gap:14px; }
.bd-answer button { width:65px; height:65px; padding:0; border:3px solid #daaac1; border-radius:18px; background:white; color:#873957; font-size:2rem; font-weight:900; }
.bd-answer button.picked { border-color:#7eaf9b; background:#d5f1df; }
.bd-answer p,.bd-game-hint { color:#745168; }
.bd-challenge-buttons { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.bd-challenge-buttons button { min-height:48px; }
.bd-mini-cake { position:relative; display:grid; justify-items:center; align-content:end; width:min(520px,95%); min-height:240px; margin-top:18px; }
.bd-mini-candles { display:flex; justify-content:center; align-items:end; gap:21px; height:95px; }
.bd-mini-candle { position:relative; display:block; width:17px; height:65px; border:2px solid #77506a; border-radius:5px 5px 1px 1px; background:repeating-linear-gradient(45deg,#8ac4c0 0 10px,#fff 10px 16px); }
.bd-mini-candle:before { content:'✦'; position:absolute; bottom:54px; left:-7px; color:#f0a93c; font-size:34px; }
.bd-new-candle { animation:bd-balloon-in .5s both; }
.bd-empty-candle { display:grid; justify-items:center; align-content:center; width:81px; height:87px; border:3px dashed #a6587f; border-radius:16px; background:#fff8f9; color:#a6587f; font-size:2rem; font-weight:900; }
.bd-empty-candle small { font-size:.55rem; line-height:1.1; }
.bd-mini-frosting { width:80%; height:24px; border:3px solid #bd6890; border-radius:50%; background:#fff8ef; }
.bd-mini-body { display:grid; place-items:center; width:78%; height:77px; border-radius:10px 10px 22px 22px; background:#e9a1b8; color:#79405b; font-weight:900; }
.bd-mini-plate { width:90%; height:12px; border-radius:50%; background:#a87aa0; }
.bd-correct { color:#378168; }
@keyframes bd-balloon-in { from { transform:translateY(25px) scale(.75); opacity:.2 } to { transform:translateY(0) scale(1); opacity:1 } }
.bd-gift-people { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; width:100%; }
.bd-gift-person { display:grid; justify-items:center; gap:5px; min-width:100px; padding:12px; border:2px solid #efd4ae; border-radius:18px; background:white; }
.bd-gift-person span { font-size:clamp(2.5rem,5vw,4rem); }
.bd-gift-person strong { font-size:2rem; }
.bd-gift-count { font-size:clamp(1.3rem,2.7vw,2rem); font-weight:900; color:#883558; }
.bd-gift-count strong { display:inline-grid; place-items:center; width:1.7em; height:1.7em; border-radius:50%; background:#f6c94e; }
.bd-challenge .bd-give-gift { min-width:230px; min-height:70px; font-size:1.35rem; font-weight:900; }
.bd-challenge .bd-gift-done { color:#258052; font-size:1.6rem; }
.bd-cake-page { position:relative; display:grid; justify-items:center; gap:12px; min-height:490px; padding:12px; overflow:hidden; border-radius:22px; background:linear-gradient(#fff9e9,#fff0f6); }
.bd-cake-page h2, .bd-cake-page p { margin:0; }
.bd-cake-page > div:last-of-type:not(.bd-confetti) { display:flex; gap:12px; }
.bd-cake-art { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; width:min(600px,95%); height:290px; }
.bd-candles { display:flex; flex:none; align-items:end; justify-content:center; gap:clamp(4px,1vw,15px); width:78%; height:112px; margin:0 auto -2px; }
.bd-candles button { display:grid; justify-items:center; align-content:end; width:36px; height:112px; padding:0; border:0; background:transparent; }
.bd-flame { visibility:hidden; height:37px; font-size:1.7rem; }
.bd-flame.lit { visibility:visible; }
.bd-candle-stick { display:block; width:12px; height:66px; border-radius:4px 4px 0 0; background:repeating-linear-gradient(45deg,#f493b4 0 8px,#fff 8px 14px); }
.bd-cake-top { width:80%; height:25px; border-radius:50%; background:#fff; border:3px solid #e783a6; }
.bd-cake-body { display:grid; place-items:center; width:78%; height:98px; border-radius:10px 10px 25px 25px; background:linear-gradient(#fdd2df,#ed94b8); color:#7c2f50; font-size:clamp(1rem,2.2vw,1.7rem); font-weight:900; }
.bd-cake-plate { width:90%; height:16px; border-radius:50%; background:#ba80a4; }
.bd-confetti { position:absolute; inset:5% 0 auto; text-align:center; font-size:3rem; pointer-events:none; animation:bd-pop 1.7s ease-out; }
@keyframes bd-pop { from { transform:translateY(-90px) scale(.5); opacity:0; } 40% { opacity:1; } to { transform:translateY(150px) scale(1.2); opacity:0; } }
.bd-wishes { display:grid; justify-items:center; gap:18px; min-height:400px; padding:22px; border-radius:20px; background:#fff8ed; }
.bd-wish-picks, .bd-wish-list { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.bd-wish-picks button { min-height:62px; border-radius:16px; background:#fff; font-weight:900; }
.bd-wishes label { width:min(100%,560px); }
.bd-wish-list span, .bd-final-foot span { display:inline-flex; align-items:center; padding:9px 14px; border-radius:14px; background:#fbe3ee; color:#693249; font-weight:850; }
.bd-wish-list button { margin-left:5px; border:0; background:transparent; font-size:1.2rem; }
.bd-final { display:grid; justify-items:center; gap:12px; }
.bd-final h2, .bd-final p { margin:0; text-align:center; }
.bd-empty-greeting { display:grid; align-content:center; justify-items:center; gap:12px; width:100%; min-height:clamp(390px,55dvh,650px); padding:28px; border:4px solid #eccad7; border-radius:25px; background:#fff; color:#963c5b; text-align:center; font-weight:900; }
.bd-empty-greeting span { font-size:clamp(1.4rem,3.2vw,2.5rem); }
.bd-empty-greeting strong { margin:20px 0 5px; font-size:clamp(2rem,4vw,3.5rem); }
.bd-empty-greeting h2 { font-size:clamp(2.7rem,5vw,4.5rem); }
.bd-final > .bd-stage { grid-column:auto; grid-row:auto; width:100%; height:clamp(390px,54dvh,580px); min-height:0; }
.bd-final-cake { position:absolute; right:7%; bottom:12%; display:grid; justify-items:center; font-size:4rem; line-height:1; pointer-events:none; }
.bd-final-cake strong { font-size:1.5rem; color:#823650; }
.bd-final-foot { display:grid; justify-items:center; gap:8px; }
.bd-final-foot > div { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.bd-book { min-height:400px; }
.bd-book-navigation { display:flex; justify-content:center; align-items:center; gap:16px; margin:16px 0; }
.bd-book-page { position:relative; display:grid; justify-items:center; gap:8px; width:min(650px,100%); min-height:470px; margin:auto; padding:18px; border:3px solid #edccda; border-radius:24px; background:linear-gradient(140deg,#fff,#fff1dd); text-align:center; }
.bd-book-page h3 { margin:5px; font-size:clamp(1.6rem,3vw,2.5rem); color:#8a3157; }
.bd-book-page .bd-avatar { width:min(260px,50%); height:250px; }
.bd-book-stickers { position:absolute; inset:20% 5% auto; display:flex; justify-content:space-between; flex-wrap:wrap; pointer-events:none; font-size:2rem; }
.bd-book-stickers svg { width:45px; height:45px; }
.bd-book-page p { font-weight:850; }
.bd-empty { padding:30px; text-align:center; }
.bd-notice { min-height:25px; text-align:center; color:#7b2b50; font-weight:900; }
@media(max-width:850px) { .bd-avatar-layout, .bd-workspace { grid-template-columns:1fr; } .bd-workspace { height:auto; overflow:visible; grid-template-rows:auto; } .bd-stage, .bd-final > .bd-stage { grid-column:1; grid-row:auto; height:450px; min-height:0; } .bd-palette { grid-row:auto; grid-template-columns:repeat(7,minmax(55px,1fr)); height:210px; max-height:210px; } .bd-sticker-tools, .bd-hint { grid-column:1; grid-row:auto; } .bd-avatar-controls { max-height:none; } }
@media(max-width:540px) { .bd-roster { grid-template-columns:repeat(2,minmax(0,1fr)); } .bd-palette { grid-template-columns:repeat(3,minmax(72px,1fr)); max-height:250px; } .bd-stage { min-height:390px; } .bd-balloon-game { grid-template-columns:1fr; } .bd-calendar-grid { gap:3px; } .bd-calendar-day,.bd-calendar-blank { min-height:65px; padding:3px; border-radius:8px; } .bd-calendar-day button { display:grid; font-size:.62rem; } .bd-weekday { font-size:.6rem; } }
@media print { body:has(.bd-page) .sidebar, body:has(.bd-page) .topbar, body:has(.bd-page) .footer, .bd-top, .bd-steps, .bd-final-actions, .pdi-section-nav { display:none!important; } .bd-final > .bd-stage { height:170mm; } }
