/* CaroFit · Propuesta B (chat). Paleta y tipografías de la marca. */
.chat-page{background:#fbf3f1;min-height:100dvh;display:flex;flex-direction:column}
.chat-layout{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,520px);gap:56px;max-width:1240px;width:100%;margin:0 auto;padding:28px 40px 32px;align-items:stretch}
.chat-side{display:flex;flex-direction:column;padding:10px 0}
.chat-side .brand{margin-bottom:auto}
.side-copy{margin:50px 0 30px}
.side-copy h1{font-size:clamp(54px,6vw,86px)}
.side-copy p{max-width:430px;margin:22px 0 26px;font-size:15px}
.side-points{list-style:none;margin:0;padding:0;display:grid;gap:10px;font-size:13px;color:#5b5359}
.side-points li{display:flex;align-items:center;gap:12px}
.side-points span{width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid #f0dde2;display:grid;place-items:center;font-size:15px}
.side-art{position:relative;height:250px;border-radius:200px 200px 16px 16px;background:radial-gradient(ellipse at 50% 55%,#ffe3ea,#f6e6e2 70%);margin-top:auto;max-width:460px}
.side-art img{position:absolute;object-fit:contain;mix-blend-mode:multiply;filter:drop-shadow(0 18px 14px #806b6522)}
.side-art .s1{height:92%;left:4%;bottom:0;transform:rotate(-9deg)}
.side-art .s2{height:80%;right:6%;bottom:2%;transform:rotate(8deg)}
.side-art .s3{height:62%;left:38%;bottom:-2%}
.bubble-deco{position:absolute;background:#fff;border-radius:16px 16px 16px 4px;padding:9px 14px;font-size:12px;box-shadow:0 10px 25px -12px #a9516e66;animation:floaty 5s ease-in-out infinite}
.bubble-deco.d1{left:-18px;top:30px}
.bubble-deco.d2{right:-14px;top:70px;border-radius:16px 16px 4px 16px;background:#a9516e;color:#fff;animation-delay:-2.5s}
@keyframes floaty{50%{transform:translateY(-7px)}}

.chat{display:flex;flex-direction:column;background:#fff;border-radius:28px;box-shadow:0 40px 80px -40px #6e3a4a55,0 0 0 1px #f0e1e4;overflow:hidden;height:calc(100dvh - 34px - 60px);min-height:560px;max-height:860px;position:sticky;top:20px}
.chat-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(180deg,#fff,#fff9fa);border-bottom:1px solid #f3e6e9;z-index:2}
.who{flex:1;display:flex;flex-direction:column;line-height:1.2}
.who b{font-weight:600;font-size:15px}
.who small{font-size:11px;color:#3c9a63}
.icon{width:38px;height:38px;border-radius:50%;border:0;background:#fbf0f2;display:grid;place-items:center;font-size:17px;transition:.2s}
.icon:hover{background:#ffe3ea}
.avatar{width:30px;height:30px;flex-shrink:0;border-radius:50%;background:#ffe9ef;display:grid;place-items:center;position:relative;align-self:flex-end}
.avatar img{width:62%;height:62%}
.avatar.big{width:44px;height:44px;align-self:center}
.online{position:absolute;right:1px;bottom:1px;width:11px;height:11px;border-radius:50%;background:#3fbf73;border:2px solid #fff}

.chat-log{flex:1;overflow-y:auto;padding:18px 14px 10px;display:flex;flex-direction:column;gap:6px;background:#fdf7f6 radial-gradient(#f2dfe3 1px,transparent 1px) 0 0/22px 22px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ead4da transparent}
.day{align-self:center;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#a08f94;background:#fff;border-radius:20px;padding:5px 12px;margin-bottom:8px;box-shadow:0 1px 0 #f0e2e5}
.msg{display:flex;gap:8px;max-width:86%;animation:pop .32s cubic-bezier(.2,.8,.3,1.2) both}
.msg.still{animation:none}
.msg.bot{align-self:flex-start}
.msg.me{align-self:flex-end}
.msg.wide{max-width:100%;width:100%}
.msg.bot+.msg.bot .avatar{visibility:hidden}
.msg.bot+.msg.bot{margin-top:-2px}
.msg.me+.msg.bot,.msg.bot+.msg.me{margin-top:8px}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.bubble{background:#fff;border-radius:18px 18px 18px 6px;padding:11px 15px;font-size:14.5px;line-height:1.5;color:#2d2d33;box-shadow:0 1px 1px #e9d6db,0 6px 18px -14px #a9516e55;min-width:0}
.bubble b{font-weight:600}
.bubble small{display:block;font-size:11.5px;color:#8b7f84;margin-top:6px;line-height:1.45}
.msg.wide .bubble{background:transparent;box-shadow:none;padding:0;flex:1}
.msg.me .bubble{background:#a9516e;color:#fff;border-radius:18px 18px 6px 18px;box-shadow:0 8px 18px -12px #a9516e}
.ticks{font-size:10px;margin-left:8px;opacity:.7;letter-spacing:-2px;vertical-align:-1px}
.typing .bubble{display:flex;gap:4px;padding:14px 16px}
.typing i{width:7px;height:7px;border-radius:50%;background:#d7aab8;animation:blink 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes blink{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.tips{margin:8px 0 0;padding-left:18px;font-size:13px;color:#5b5359;display:grid;gap:6px}

/* tarjetas de producto */
.pcard{background:#fff;border-radius:18px;overflow:hidden;border:1px solid #f0dfe3;box-shadow:0 14px 30px -22px #a9516e88;display:flex;flex-direction:column}
.pcard.main{flex-direction:row}
.pimg{position:relative;background:radial-gradient(ellipse at 50% 50%,#ffe3ea,#f8ece8 72%);display:flex;align-items:center;justify-content:center}
.pcard.main .pimg{width:42%;flex-shrink:0;min-height:200px}
.pimg img{width:100%;height:150px;object-fit:contain;mix-blend-mode:multiply}
.pcard.main .pimg img{height:190px}
.pimg .badge{left:10px;top:10px;font-size:9px;padding:6px 10px;letter-spacing:.08em}
.pbody{padding:14px 15px 15px;display:flex;flex-direction:column;gap:5px;flex:1}
.cat{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:#a9516e;font-weight:600}
.pbody b{font-family:OPTI,Georgia,serif;font-weight:400;font-size:21px;line-height:1.1}
.what{font-size:12.5px;color:#6d666b;line-height:1.45}
.prow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:8px}
.pr{font-family:OPTI,Georgia,serif;font-size:21px}
.btn{display:inline-flex;align-items:center;justify-content:center;background:#2d2d33;color:#fff;border-radius:30px;padding:10px 15px;font-size:12px;white-space:nowrap;transition:.2s}
.btn:hover{background:#a9516e}
.btn.ghost{background:#fbeef1;color:#a9516e}
.btn.ghost:hover{background:#a9516e;color:#fff}
.btn.light{background:#fff;color:#2d2d33;width:100%;margin-top:14px;padding:13px}
.btn.light:hover{background:#ffe3ea}
.carousel{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 8px;scrollbar-width:none}
.carousel::-webkit-scrollbar{display:none}
.carousel .pcard{scroll-snap-align:start}
.total{background:#2d2d33;color:#fff;border-radius:18px;padding:18px 18px 16px;box-shadow:0 18px 30px -20px #2d2d33}
.t-head{font-size:13px;font-weight:600;margin-bottom:8px}
.total ul{list-style:none;margin:0;padding:0}
.total li{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;padding:7px 0;border-bottom:1px solid #ffffff1c;color:#efe5e8}
.t-sum{display:flex;justify-content:space-between;align-items:baseline;margin-top:10px}
.t-sum span{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#cdbfc4}
.t-sum strong{font-family:OPTI,Georgia,serif;font-weight:400;font-size:32px}
.cta-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #f0dfe3;border-radius:18px;padding:14px;flex-wrap:wrap}
.cta-card img{width:34px}
.cta-card div{flex:1;display:flex;flex-direction:column;font-size:12.5px;color:#6d666b;min-width:150px}
.cta-card div b{color:#2d2d33;font-size:14px}

/* composer */
.composer{border-top:1px solid #f3e6e9;background:#fff;padding:0 14px;max-height:0;overflow:hidden;transition:max-height .35s ease,padding .35s ease}
.composer.show{max-height:340px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));overflow-y:auto}
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.chip{display:inline-flex;align-items:center;gap:7px;border:1.5px solid #ecc9d3;background:#fff;border-radius:22px;padding:9px 14px;font-size:13.5px;color:#7d3d53;text-align:left;line-height:1.25;transition:.15s;animation:pop .3s both}
.chip:nth-child(2){animation-delay:.04s}.chip:nth-child(3){animation-delay:.08s}.chip:nth-child(4){animation-delay:.12s}.chip:nth-child(5){animation-delay:.16s}.chip:nth-child(6){animation-delay:.2s}
.chip:hover,.chip:focus-visible{background:#a9516e;border-color:#a9516e;color:#fff;outline:none;transform:translateY(-1px)}
.chip .e{font-size:16px}
.chip.ghost{border-style:dashed;color:#8b7f84;border-color:#e0cfd4}
.undo{display:block;margin:10px 0 0 auto;border:0;background:none;font-size:11.5px;color:#9b8a90;text-decoration:underline;text-underline-offset:3px;padding:2px 0}
.name-form{display:flex;gap:8px;margin-bottom:10px}
.name-form input{flex:1;border:1.5px solid #ecc9d3;border-radius:24px;padding:12px 16px;font-size:16px;outline:none;background:#fffafa;min-width:0}
.name-form input:focus{border-color:#a9516e;background:#fff}
.send{width:46px;height:46px;border-radius:50%;border:0;background:#a9516e;color:#fff;font-size:17px;flex-shrink:0}

@media(max-width:900px){
 .chat-page{height:100dvh;overflow:hidden}
 .chat-layout{display:flex;padding:0;gap:0;min-height:0}
 .chat-side{display:none}
 .chat{border-radius:0;height:auto;max-height:none;min-height:0;flex:1;position:static;box-shadow:none}
}
@media(max-width:400px){.pcard.main{flex-direction:column}.pcard.main .pimg{width:100%;min-height:170px}.pcard.main .pimg img{height:165px}.bubble{font-size:14px}.chip{font-size:13px;padding:8px 12px}}
.chat-head{height:auto;max-width:none;margin:0;border-bottom:1px solid #f3e6e9}

/* v3: selección múltiple, revisión y precauciones */
.multi-note{margin:0 0 8px;text-align:right;font-size:11.5px;color:#8b7f84}
.chip.multi[aria-pressed="true"]{background:#a9516e;border-color:#a9516e;color:#fff}
.chip.multi[aria-pressed="true"]::after{content:"✓";font-weight:700;margin-left:2px}
.done{display:block;margin:12px 0 0 auto;border:0;border-radius:24px;background:#2d2d33;color:#fff;font-size:14px;font-weight:600;padding:12px 26px;min-height:44px}
.done:disabled{opacity:.35}
.precaution{background:#fff8ec;border:1px solid #f1d9ae;border-radius:16px;padding:14px 16px;font-size:13px;color:#5b4a2e}
.precaution b{display:block;font-size:13.5px;color:#7a5414;margin-bottom:4px}
.precaution ul{margin:0;padding-left:18px;display:grid;gap:6px}
.why{font-size:12.5px;color:#4d464b;line-height:1.45;margin-top:2px}
.why strong{font-weight:600;color:#a9516e}
.pend{display:inline-flex;align-items:center;border-radius:30px;padding:9px 13px;font-size:11.5px;font-weight:600;background:#fff3dc;color:#8a5a12;white-space:nowrap}
.pnote{display:block;margin-top:6px;font-size:12.5px;line-height:1.4;color:#8a5a12;background:#fff8ea;border-radius:10px;padding:7px 10px}
.pcard.review{border-color:#f1d9ae}
.btn.wa{background:#1f7a4d}
.btn.wa:hover{background:#17603c}
.legal{display:block;margin-top:10px;font-size:11px;color:#8b7f84;line-height:1.45}
.precaution li b{display:inline;margin:0;font-size:13px}
