/* ================================================================
   DOCE FAVO — site modelo
   2 fontes: Lora (títulos, parecida com a logo) + Jost (textos)
   Paleta da logo: creme, kraft, mel e chocolate
   ================================================================ */
:root {
  --cream: #FBF6EE;
  --paper: #F4EADB;
  --kraft: #E8D1B0;
  --honey: #C98A2E;
  --gold: #DDA94B;
  --cocoa: #5A2E14;
  --choc: #3B1D0E;
  --ink: #2B170B;
  --muted: #7A5A43;
  --berry: #B8323A;
  --wa: #1FAF5A;
  --line: rgba(90, 46, 20, .14);
  --shadow: 0 24px 60px -24px rgba(91, 46, 20, .35);
  --shadow-sm: 0 10px 30px -14px rgba(91, 46, 20, .35);
  --r: 22px;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --top: 104px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .45em; color: var(--choc); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.ilus { display: inline-block; font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #A66B1C; background: rgba(221, 169, 75, .15); border: 1px dashed rgba(166, 107, 28, .45); padding: 0 .55em; border-radius: 99px; vertical-align: middle; line-height: 1.7; }

/* faixa de modelo + aviso da loja */
.ribbon { font-size: .78rem; text-align: center; padding: 6px 12px; color: var(--cream); background: var(--choc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon b { font-weight: 500; color: var(--gold); }
.ribbon a { color: var(--cream); font-weight: 500; margin-left: .4em; text-underline-offset: 3px; }
.ribbon a:hover { color: var(--gold); }
.aviso { text-align: center; padding: 8px 14px; background: var(--gold); color: var(--choc); font-weight: 500; font-size: .92rem; }

/* navegação */
.nav { position: sticky; top: 0; z-index: 50; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(16px, 4vw, 48px); background: rgba(251, 246, 238, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand img { height: 46px; width: auto; }
.brand span { font-size: .52rem; letter-spacing: .5em; text-transform: uppercase; color: var(--cocoa); margin-top: 2px; padding-left: .5em; }
.nav-links { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--cocoa); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--honey); transform: scaleX(0); transition: transform .3s; }
.nav-links a:hover::after { transform: scaleX(1); }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; font: 500 .95rem var(--sans); color: var(--cream); background: var(--choc); border: 0; border-radius: 99px; padding: 10px 16px 10px 14px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s; }
.bag-btn:hover { transform: translateY(-2px); }
.bag-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bag-count { min-width: 22px; height: 22px; border-radius: 99px; background: var(--gold); color: var(--choc); display: grid; place-items: center; font-size: .78rem; font-weight: 600; padding: 0 6px; }
.bag-btn.bump { animation: bump .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { 30% { transform: scale(1.15) rotate(-4deg); } 60% { transform: scale(.96); } }

/* botões */
.btn { --bg: var(--choc); --fg: var(--cream); display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; padding: 13px 24px; border-radius: 99px; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(59, 29, 14, .6); }
.btn-ghost { --bg: transparent; --fg: var(--choc); border-color: rgba(59, 29, 14, .3); }
.btn-ghost:hover { background: var(--choc); color: var(--cream); }
.btn-wa { --bg: var(--wa); width: 100%; font-weight: 600; }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; color: var(--cocoa); display: grid; place-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.link { color: var(--cocoa); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--honey); }

/* apresentação */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 20px; padding: 30px clamp(16px, 5vw, 72px) 40px; min-height: min(78vh, 720px); background: radial-gradient(90% 80% at 90% 20%, #F2DFC2 0%, transparent 60%), var(--cream); overflow: hidden; }
.hero-copy { max-width: 560px; }
.pill { display: inline-flex; align-items: center; gap: .6em; background: #fff; border: 1px solid var(--line); padding: 6px 15px; border-radius: 99px; font-size: .88rem; color: var(--cocoa); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 175, 90, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(31, 175, 90, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin: .4em 0 .35em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 470px; margin-bottom: 1.6em; }
.hero-addr { margin-top: 1.6em; font-size: .9rem; color: var(--muted); }
.hero-addr::before { content: '📍 '; }
.hero h1, .lead, .hero .cta-row, .pill, .hero-addr { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 { animation-delay: .08s; } .lead { animation-delay: .16s; } .hero .cta-row { animation-delay: .24s; } .hero-addr { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* bolhas */
.blob-stage { position: relative; height: min(70vh, 620px); min-height: 420px; touch-action: pan-y; }
.blob { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 20px 26px rgba(91, 46, 20, .26)); user-select: none; -webkit-user-select: none; }
.blob.grabbing { filter: drop-shadow(0 30px 36px rgba(91, 46, 20, .34)); }
.blob-in { pointer-events: auto; cursor: grab; touch-action: none; width: 100%; height: 100%; background-size: cover; background-position: center; will-change: clip-path; }
.blob.grabbing .blob-in { cursor: grabbing; }
.blob-in.logo-blob { background: #FFFDF8; display: grid; place-items: center; }
.blob-in.logo-blob img { width: 56%; pointer-events: none; margin-top: -6%; }
.blob-in.logo-blob span { position: absolute; top: 61%; left: 0; right: 0; text-align: center; font-size: .6rem; letter-spacing: .5em; color: var(--cocoa); }
.blob-in.honey { background: radial-gradient(circle at 35% 30%, #FBE2A6, #DDA94B 45%, #A96615 100%); }
.blob-in.choc { background: radial-gradient(circle at 35% 30%, #8A5232, #4A2614 55%, #2B170B 100%); }
.blob-label { position: absolute; left: 50%; bottom: 10%; background: rgba(251, 246, 238, .94); color: var(--choc); border-radius: 99px; padding: 3px 12px; font-size: .74rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s; transform: translate(-50%, 6px); }
.blob:hover .blob-label { opacity: 1; transform: translate(-50%, 0); }
.blob-hint { position: absolute; right: 4%; bottom: 0; margin: 0; font-size: .8rem; color: var(--muted); pointer-events: none; }

/* seções */
.section { padding: clamp(56px, 8vw, 100px) clamp(16px, 5vw, 72px); }
.section-head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
#pedir { background: var(--paper); border-radius: 40px 40px 0 0; }

/* cardápio */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab { font: 500 .95rem var(--sans); padding: 9px 20px; border-radius: 99px; cursor: pointer; background: #fff; border: 1px solid var(--line); color: var(--cocoa); transition: all .2s; }
.tab[aria-selected="true"] { background: var(--choc); color: var(--cream); border-color: var(--choc); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; }
.card { position: relative; border-radius: var(--r); background: #FFFDF9; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; animation: cardIn .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { overflow: hidden; position: relative; }
.card-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; transition: transform .6s; }
.card:hover .card-img { transform: scale(1.05); }
.card-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--gold); color: var(--choc); font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.card.off { opacity: .6; }
.card.off .card-img { filter: grayscale(.8); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.2rem; margin: 0; }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }
select, input, textarea { font: 400 .95rem var(--sans); color: var(--ink); width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
select:focus, input:focus, textarea:focus { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(221, 169, 75, .25); }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--serif); font-size: 1.3rem; color: var(--choc); font-weight: 600; }
.add-btn { border: 0; cursor: pointer; font: 500 .9rem var(--sans); color: var(--cream); background: var(--choc); padding: 10px 16px; border-radius: 99px; transition: transform .2s, background .2s; }
.add-btn:hover { transform: translateY(-2px); background: var(--cocoa); }
.add-btn.added { background: var(--wa); }
.add-btn:disabled { background: #bfae9d; cursor: not-allowed; transform: none; }
.flyer { position: fixed; z-index: 200; width: 64px; height: 64px; border-radius: 50%; background-size: cover; background-position: center; pointer-events: none; box-shadow: var(--shadow-sm); }

/* monte seu bolo */
.builder-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); max-width: 1200px; margin: 0 auto; align-items: start; }
.cake-stage { position: sticky; top: 90px; aspect-ratio: 1; border-radius: 36px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #FFFAF2 0%, #F3E4CD 60%, #E6CFAC 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cake-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.cake-stage canvas:active { cursor: grabbing; }
.cake-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cake-badge { position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); border-radius: 16px; padding: 8px 14px; line-height: 1.25; }
.cake-badge b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--choc); }
.cake-badge small { color: var(--muted); font-size: .78rem; }
.cake-tools { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; }
.tool { font: 500 .85rem var(--sans); padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .88); color: var(--choc); cursor: pointer; backdrop-filter: blur(6px); }
.tool[aria-pressed="true"] { background: var(--choc); color: var(--cream); }
.cake-loading { position: absolute; inset: auto 0 18px; text-align: center; margin: 0; font-size: .85rem; color: var(--muted); }
.builder-form { display: grid; gap: 20px; }
.builder-form fieldset { border: 0; padding: 0; margin: 0; }
.builder-form legend { font-family: var(--serif); font-size: 1.15rem; color: var(--choc); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 0; }
.builder-form legend span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem var(--sans); background: var(--gold); color: var(--choc); }
.builder-form legend small { font: 400 .8rem var(--sans); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 400 .92rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--cocoa); transition: all .2s; }
.chip:hover { border-color: var(--honey); }
.chip[aria-pressed="true"] { background: var(--choc); color: var(--cream); border-color: var(--choc); }
.chip .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.chip small { opacity: .7; font-size: .76rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.builder-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r); background: #FFFDF9; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.builder-total small { display: block; color: var(--muted); font-size: .8rem; }
.builder-total strong { font-family: var(--serif); font-size: 1.8rem; color: var(--choc); font-weight: 600; }

/* kits */
.kits { background: var(--paper); }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1080px; margin: 0 auto; }
.kit { position: relative; padding: 30px 26px 24px; border-radius: 28px; background: #FFFDF9; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: transform .3s, box-shadow .3s; }
.kit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.kit.featured { background: var(--choc); border-color: var(--choc); color: var(--kraft); }
.kit.featured h3 { color: var(--cream); }
.kit.featured .price { color: var(--gold); }
.kit.featured .add-btn { background: var(--gold); color: var(--choc); }
.kit-badge { position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--choc); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; }
.kit .people { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--honey); margin: 0; }
.kit h3 { font-size: 1.6rem; margin: 0; }
.kit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.kit li::before { content: '•'; color: var(--gold); margin-right: .6em; }

/* rodapé */
.footer { background: var(--choc); color: var(--kraft); padding: 56px clamp(16px, 5vw, 72px) 110px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer h3 { color: var(--cream); font-size: 1.1rem; }
.footer .link { color: var(--gold); }
.footer-logo { width: 170px; background: #FFFDF8; border-radius: 18px; padding: 12px 16px; }
.footer-sub { letter-spacing: .5em; font-size: .66rem; margin-top: 8px; }
.hours { border-collapse: collapse; font-size: .9rem; width: 100%; }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; color: var(--cream); }
.hours tr.today td { color: var(--gold); font-weight: 500; }
.footer-note { max-width: 1200px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(232, 209, 176, .18); font-size: .82rem; color: #BFA588; }
.footer-note a { color: var(--gold); }

/* sacola */
.scrim { position: fixed; inset: 0; background: rgba(43, 23, 11, .4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 100; background: var(--cream); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .45s cubic-bezier(.2, .9, .2, 1); box-shadow: -30px 0 60px -30px rgba(43, 23, 11, .5); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px 22px; overscroll-behavior: contain; }
.bag-items { display: grid; gap: 10px; }
.bag-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: #FFFDF9; border: 1px solid var(--line); }
.bag-item .thumb { width: 58px; height: 58px; border-radius: 12px; background-size: cover; background-position: center; background-color: var(--kraft); }
.bag-item h4 { font-size: .98rem; margin: 0 0 2px; }
.bag-item .det { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.bag-item .lp { font-size: .9rem; color: var(--choc); font-weight: 500; margin-top: 3px; }
.qty { display: flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 99px; padding: 3px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 1rem; color: var(--choc); }
.qty span { min-width: 18px; text-align: center; font-weight: 500; font-size: .9rem; }
.bag-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.bag-empty img { width: 76px; margin: 0 auto 10px; }
.checkout { display: grid; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.checkout h4 { font-size: 1.15rem; margin: 0; }
.checkout textarea { resize: vertical; }
.checkout .invalid { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(184, 50, 58, .15); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper); padding: 4px; border-radius: 14px; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px; border-radius: 11px; cursor: pointer; color: var(--cocoa); font-size: .92rem; }
.seg input:checked + span { background: #fff; color: var(--choc); box-shadow: var(--shadow-sm); font-weight: 500; }
.entrega-box { display: grid; gap: 12px; }
.drawer-foot { padding: 14px 22px 18px; border-top: 1px solid var(--line); background: #FFFDF9; display: grid; gap: 10px; }
.drawer-foot .sum { display: flex; justify-content: space-between; align-items: baseline; }
.drawer-foot strong { font-family: var(--serif); font-size: 1.5rem; color: var(--choc); }
.drawer-foot p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 220%); opacity: 0; z-index: 150; background: var(--choc); color: var(--cream); padding: 11px 20px; border-radius: 99px; font-size: .92rem; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1), opacity .3s; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.success { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; background: rgba(43, 23, 11, .5); padding: 16px; }
.success-card { background: var(--cream); border-radius: 28px; padding: 30px 26px 24px; max-width: 390px; text-align: center; box-shadow: var(--shadow); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.success-card > img { width: 76px; margin: 0 auto 6px; }
.success-card h3 { font-size: 1.8rem; }
.success-card .cta-row { margin-top: 10px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* assistente */
.ai-fab { position: fixed; left: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; padding: 5px 16px 5px 5px; border-radius: 99px; background: #FFFDF9; box-shadow: var(--shadow); font: 500 .9rem var(--sans); color: var(--choc); }
.ai-orb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; background: conic-gradient(#DDA94B, #F6D58E, #C98A2E, #DDA94B); animation: spin 6s linear infinite; }
.ai-orb::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #FFFDF8; }
.ai-orb img { width: 68%; position: relative; animation: spin 6s linear infinite reverse; }
.ai-orb.sm { width: 38px; height: 38px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-panel { position: fixed; left: 18px; bottom: 18px; z-index: 120; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: rgba(251, 246, 238, .97); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(43, 23, 11, .55); animation: pop .35s cubic-bezier(.2, 1.2, .4, 1); transform-origin: bottom left; }
.ai-panel > header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; border-bottom: 1px solid var(--line); }
.ai-panel > header div { flex: 1; line-height: 1.25; }
.ai-panel > header b { font-family: var(--serif); font-size: 1.1rem; color: var(--choc); font-weight: 500; }
.ai-panel > header small { display: block; color: var(--muted); font-size: .74rem; }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.bub { max-width: 88%; padding: 9px 13px; border-radius: 18px; font-size: .9rem; line-height: 1.45; animation: cardIn .3s both; }
.bub.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bub.me { margin-left: auto; background: var(--choc); color: var(--cream); border-bottom-right-radius: 6px; }
.bub.thinking { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .82rem; }
.bub.thinking i { width: 56px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #eadbc4 0%, #DDA94B 40%, #eadbc4 80%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ai-sugg { display: grid; gap: 8px; margin-top: 6px; }
.ai-sugg button.p { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: #FFFDF9; cursor: pointer; font: inherit; color: inherit; }
.ai-sugg .t { width: 42px; height: 42px; border-radius: 10px; background-size: cover; background-position: center; }
.ai-sugg b { font-weight: 500; font-size: .85rem; display: block; }
.ai-sugg small { color: var(--muted); font-size: .76rem; }
.ai-sugg em { font-style: normal; font-size: .78rem; color: var(--cream); background: var(--choc); border-radius: 99px; padding: 4px 10px; }
.ai-sugg .act { padding: 8px 14px; font-size: .85rem; }
.ai-chips { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.ai-chips button { flex: none; font: 400 .82rem var(--sans); padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--cocoa); cursor: pointer; }
.ai-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ai-input input { border-radius: 99px; padding: 10px 16px; }
.ai-input button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--choc); color: var(--cream); font-size: 1.1rem; cursor: pointer; }

/* responsivo */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .blob-stage { height: 400px; min-height: 0; }
  .builder-wrap { grid-template-columns: 1fr; }
  .cake-stage { position: relative; top: 0; max-width: 560px; width: 100%; margin: 0 auto; }
  .kit-grid { grid-template-columns: 1fr; max-width: 460px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --top: 80px; }
  body { font-size: 16px; }
  .ribbon { font-size: .7rem; white-space: normal; line-height: 1.4; }
  .nav { height: 64px; }
  .brand img { height: 38px; }
  .bag-label { display: none; }
  .blob-stage { height: 350px; }
  .blob-hint { left: 0; right: 0; text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .ai-fab-text { display: none; }
  .ai-fab { padding: 5px; }
  .ai-panel { left: 12px; bottom: 12px; }
  #pedir { border-radius: 28px 28px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
