@font-face { font-family: "Montserrat"; src: url("assets/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --navy: #223445; --navy-2: #3d4d5c; --pink: #DE8B95; --wine: #A14D60; --wine-d: #95515E; --blush: #D8C4C4;
  --ocre: #E5B86E; --mint: #A9CEC8; --white: #fff; --ink: #1b2a38; --r: 26px;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font-family: "Montserrat", system-ui, sans-serif; background: #131d27; color: var(--white); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Escenario: en escritorio, la app dentro de un móvil; en móvil, a pantalla completa */
.stage { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 24px; }
.stage__note { max-width: 400px; }
.stage__note p { max-width: 300px; }
.stage__note h1 { font-size: 34px; font-weight: 500; color: var(--pink); }
.stage__note p { margin-top: 14px; font-size: 18px; line-height: 1.4; }
.stage__small { font-size: 14px !important; opacity: .7; }
.phone { position: relative; width: 390px; height: min(844px, calc(100vh - 48px)); background: var(--navy); border-radius: 46px; border: 10px solid #05090f; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.statusbar { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 4px; font-size: 14px; font-weight: 600; position: relative; z-index: 3; background: transparent; }
.statusbar__icons { display: flex; gap: 5px; align-items: center; }
.statusbar__icons i { display: block; background: currentColor; border-radius: 2px; }
.statusbar__icons i:nth-child(1) { width: 16px; height: 10px; clip-path: polygon(0 100%,0 70%,20% 70%,20% 100%,27% 100%,27% 45%,47% 45%,47% 100%,54% 100%,54% 20%,74% 20%,74% 100%,81% 100%,81% 0,100% 0,100% 100%); }
.statusbar__icons i:nth-child(2) { width: 13px; height: 10px; border-radius: 50% 50% 0 0; clip-path: polygon(50% 100%, 0 30%, 20% 0, 80% 0, 100% 30%); }
.statusbar__icons i:nth-child(3) { width: 22px; height: 10px; border-radius: 3px; }
@media (max-width: 760px) {
  .stage { padding: 0; display: block; height: 100%; }
  .stage__note { display: none; }
  .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .statusbar { display: none; }
}
@media (min-width: 761px) and (max-width: 900px) { .stage__note { display: none; } }

.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 14px 12px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.bg-pink { background: var(--pink); } .bg-wine { background: var(--wine); } .bg-mint { background: var(--mint); color: var(--ink); } .bg-navy { background: var(--navy); }
.phone[data-bg="pink"] { background: var(--pink); } .phone[data-bg="wine"] { background: var(--wine); } .phone[data-bg="mint"] { background: var(--mint); color: var(--ink); } .phone[data-bg="ocre"] { background: var(--ocre); }
.phone[data-bg="mint"] .statusbar, .phone[data-bg="ocre"] .statusbar { color: var(--ink); }

/* Barra superior y barra inferior */
.topbar { flex: none; display: flex; gap: 8px; padding: 8px 14px; }
.search { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px 0 22px; border-radius: 12px; background: var(--navy-2); font-size: 18px; color: #e6ebef; }
.search svg { width: 24px; height: 24px; }
.iconbtn { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-2); display: grid; place-items: center; }
.iconbtn svg { width: 24px; height: 24px; }
.tabbar { flex: none; margin: 0 14px 12px; height: 54px; border-radius: 12px; background: var(--navy-2); display: flex; align-items: center; justify-content: space-around; }
.phone[data-bg="wine"] .tabbar { background: rgba(255,255,255,.16); }
.tabbar button { width: 52px; height: 46px; display: grid; place-items: center; border-radius: 10px; opacity: .92; }
.tabbar button[aria-current="page"] { background: rgba(255,255,255,.16); opacity: 1; }
.tabbar svg { width: 30px; height: 30px; }

/* Inicio */
.hello { padding: 6px 8px 0; }
.hello h1 { font-size: 28px; line-height: 1.12; font-weight: 500; color: var(--pink); }
.hello p { margin-top: 10px; font-size: 20px; line-height: 1.22; font-weight: 500; }
.bigs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.big { aspect-ratio: 1 / .98; border-radius: var(--r); display: grid; place-items: center; }
.big--ocre { background: var(--ocre); } .big--mint { background: var(--mint); }
.big span { width: 74px; height: 74px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.big svg { width: 38px; height: 38px; }
.stack { margin-top: 14px; border-radius: var(--r); background: var(--pink); color: var(--ink); overflow: hidden; }
.stack__next { display: block; width: 100%; padding: 20px 64px 34px 28px; position: relative; }
.stack__last { display: block; width: 100%; margin-top: -18px; padding: 26px 28px 20px; border-radius: var(--r); background: var(--wine); color: #fff; }
.qtitle { font-size: 16px; font-weight: 600; line-height: 1.2; }
.meta { margin-top: 8px; font-size: 13px; } .meta b { font-weight: 700; }
.plus-sm { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--ink); display: grid; place-items: center; }
.plus-sm svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.chip--add { width: 32px; padding: 0; justify-content: center; }
.chip--add svg { width: 16px; height: 16px; }

/* Mosaico */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border-radius: var(--r); padding: 20px 20px 16px; min-height: 142px; display: flex; flex-direction: column; text-align: left; position: relative; }
.tile--wide { grid-column: 1 / -1; min-height: 0; padding: 22px 26px 18px; }
.tile .qtitle { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tile .meta { margin-top: auto; padding-top: 8px; }
.c-wine { background: var(--wine); color: #fff; } .c-pink { background: var(--pink); color: #fff; } .c-blush { background: var(--blush); color: var(--ink); }
.c-ocre { background: var(--ocre); color: var(--ink); } .c-mint { background: var(--mint); color: var(--ink); }
.tile__row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.trash { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.trash svg { width: 17px; height: 17px; }
.tile--add { display: grid; place-items: center; background: var(--mint); }
.tile--add span { width: 74px; height: 74px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.tile--add svg { width: 38px; height: 38px; }
.section-h { font-size: 15px; font-weight: 600; opacity: .8; margin: 4px 8px 10px; }

/* Tarjeta a pantalla completa */
.card { flex: 1; min-height: 0; margin: 4px 14px 12px; border-radius: var(--r); position: relative; display: flex; flex-direction: column; overflow: hidden; animation: grow .32s cubic-bezier(.2,.7,.2,1) both; transform-origin: 50% 70%; }
@keyframes grow { from { opacity: 0; transform: scale(.94) translateY(24px); } to { opacity: 1; transform: none; } }
.card__body { flex: 1; min-height: 0; overflow-y: auto; padding: 44px 74px 12px 30px; scrollbar-width: none; }
.card__body::-webkit-scrollbar { display: none; }
.card h1 { font-size: 22px; line-height: 1.14; font-weight: 600; }
.card .meta { font-size: 12.5px; margin-top: 12px; }
.card__sub { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 13.5px; font-weight: 700; }
.card__sub button { text-decoration: underline; font-weight: 700; }
.card__text p { margin-top: 12px; font-size: 15px; line-height: 1.32; }
.card__note { margin-top: 14px; font-size: 12.5px; opacity: .8; }
.rail { position: absolute; top: 40px; right: 20px; display: flex; flex-direction: column; gap: 9px; z-index: 2; }
.rail button { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; }
.rail button svg { width: 22px; height: 22px; }
.rail .gap { margin-bottom: 26px; }
.rail button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.rail .heart { color: var(--wine); } .rail .heart[aria-pressed="true"] { background: #fff; color: var(--wine); }
.rail .heart[aria-pressed="false"] svg path { fill: none; stroke: currentColor; stroke-width: 2; }
.wave { flex: none; height: 92px; width: 100%; display: block; }
.wave path { fill: none; stroke-width: 3; stroke-linecap: round; }
.wave.is-playing .w1 { animation: wv 1.6s ease-in-out infinite alternate; } .wave.is-playing .w2 { animation: wv 1.2s ease-in-out infinite alternate-reverse; }
@keyframes wv { from { transform: scaleY(.35); } to { transform: scaleY(1.15); } }
.wave path { transform-origin: 50% 50%; transform-box: fill-box; }
.card__foot { flex: none; padding: 0 26px 22px; }
.card__foot .chips { margin-top: 4px; }
.progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); margin: 0 30px 10px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: #fff; }
.c-blush .progress, .c-ocre .progress, .c-mint .progress { background: rgba(0,0,0,.15); } .c-blush .progress i, .c-ocre .progress i, .c-mint .progress i { background: var(--ink); }
.confirm { margin-top: 26px; } .confirm h2 { font-size: 22px; font-weight: 600; line-height: 1.15; }
.confirm div { display: flex; gap: 28px; margin-top: 16px; } .confirm button { font-size: 24px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Formularios */
.field { display: block; padding: 12px 6px 10px; border-bottom: 1px solid rgba(255,255,255,.45); }
.field span { display: block; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; margin-top: 4px; background: transparent; border: 0; font-size: 16px; padding: 2px 0; outline: none; }
.field textarea { resize: none; min-height: 84px; line-height: 1.3; }
.field input::placeholder, .field textarea::placeholder { color: currentColor; opacity: .55; }
.field small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.3; opacity: .85; }
.ink .field { border-color: rgba(27,42,56,.4); }
select option { color: #111; }

/* Alta */
.ob { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ob__top { flex: 0 0 34%; background: var(--pink); display: grid; place-items: center; margin-top: calc(-1 * var(--sb)); padding-top: var(--sb); }
.ob__top img { width: 150px; height: auto; }
.ob__body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 28px 8px; scrollbar-width: none; }
.ob__body h1 { font-size: 25px; font-weight: 500; line-height: 1.12; margin-bottom: 10px; }
.ob__lead { color: var(--pink); font-size: 18px; font-weight: 500; line-height: 1.25; }
.ob__foot { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 28px 22px; }
.dots { display: flex; gap: 8px; } .dots i { width: 13px; height: 13px; border-radius: 50%; background: #fff; } .dots i.on { background: var(--pink); }
.next { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.next i { width: 26px; height: 26px; border-radius: 6px; background: #fff; color: var(--ink); display: grid; place-items: center; }
.next svg { width: 15px; height: 15px; }
.planrow { display: flex; justify-content: space-between; width: 100%; padding: 13px 6px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 15px; font-weight: 700; }
.planrow[aria-pressed="true"] { color: var(--pink); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 14.5px; font-weight: 600; }
.checks { margin-top: 14px; display: grid; gap: 8px; color: var(--pink); font-size: 14px; font-weight: 600; }
.checks label { display: flex; align-items: center; gap: 10px; } .checks input { width: 20px; height: 20px; accent-color: var(--pink); }
.social { margin-top: 12px; font-size: 13.5px; font-weight: 700; } .social span { color: var(--pink); font-weight: 500; margin-left: 6px; }

/* Entrar */
.signin { flex: 1; display: flex; flex-direction: column; margin-top: calc(-1 * var(--sb)); padding-top: var(--sb); background: var(--mint); color: var(--ink); }
.signin__body { flex: 1; padding: 18px 30px; }
.signin__head { display: flex; justify-content: space-between; align-items: flex-start; }
.signin__head img { width: 100px; height: auto; }
.signin h1 { font-size: 34px; font-weight: 500; margin-top: 44px; }
.signin p { font-size: 13px; font-weight: 600; max-width: 180px; margin: 4px 0 22px; line-height: 1.2; }
.signin .go { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 26px; font-size: 18px; font-weight: 700; }
.signin .go i { width: 36px; height: 36px; border-radius: 8px; background: #fff; display: grid; place-items: center; } .signin .go svg { width: 20px; height: 20px; }
.signin__foot { flex: none; background: var(--ocre); padding: 26px 30px 30px; font-size: 14px; font-weight: 700; }
.signin__foot button { font-weight: 500; margin-left: 8px; }
.demo-pill { display: inline-block; margin-top: 18px; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .8; }

/* Menú y ajustes (granate) */
.sheet { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet__head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 22px 0 30px; }
.sheet__head img { width: 68px; height: auto; }
.upbtn { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.28); display: grid; place-items: center; } .upbtn svg { width: 22px; height: 22px; }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 30px 14px; scrollbar-width: none; }
.sheet h1 { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 500; margin-bottom: 20px; } .sheet h1 svg { width: 26px; height: 26px; }
.mrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8.5px 0; font-size: 14.5px; font-weight: 600; }
.mrow svg { width: 18px; height: 18px; flex: none; } .mrow em { margin-left: auto; font-style: normal; font-weight: 500; }
.mrow--pink { color: #f6c0c7; } .msep { height: 30px; }
.toggle { margin: 18px 0 0 auto; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px 0 22px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; width: max-content; }
.toggle i { width: 28px; height: 28px; border-radius: 50%; background: #000; } .toggle[aria-pressed="false"] { flex-direction: row-reverse; padding: 0 22px 0 8px; } .toggle[aria-pressed="false"] i { background: #bbb; }
.h2 { display: flex; justify-content: space-between; align-items: center; font-size: 15.5px; font-weight: 600; margin: 18px 0 10px; }
.days { display: flex; gap: 7px; } .days button { width: 38px; height: 38px; border-radius: 50%; background: var(--pink); font-weight: 700; font-size: 17px; text-align: center; } .days button[aria-pressed="true"] { background: var(--navy); }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .opts--2 { grid-template-columns: 1fr 1fr; }
.opt { height: 38px; border-radius: 4px; background: var(--pink); font-size: 16px; font-weight: 600; text-align: center; } .opts--2 .opt { text-align: left; padding: 0 12px; }
.opt[aria-pressed="true"] { background: var(--navy); }
.save { display: block; margin: 20px 0 0 auto; height: 40px; padding: 0 26px; border-radius: 4px; background: var(--navy); font-size: 17px; font-weight: 600; }
.sheet .field { border-color: rgba(255,255,255,.5); }
.sheet p.txt { font-size: 14.5px; line-height: 1.35; margin-bottom: 12px; } .sheet h2.t { font-size: 15px; font-weight: 700; margin: 16px 0 6px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .stat { border-radius: 18px; background: rgba(255,255,255,.14); padding: 16px; } .stat b { display: block; font-size: 32px; font-weight: 600; } .stat span { font-size: 13.5px; font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; } .cal i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.16); } .cal i.on { background: #fff; }
.switchplan { display: flex; justify-content: space-between; margin-top: 22px; font-size: 17px; font-weight: 500; }
.switchplan button { display: inline-flex; align-items: center; gap: 10px; } .switchplan i { width: 26px; height: 26px; border-radius: 6px; background: #fff; color: var(--ink); display: grid; place-items: center; } .switchplan svg { width: 15px; height: 15px; }

/* Biografía */
.book { margin: 4px auto 18px; width: 170px; aspect-ratio: 3 / 4.1; border-radius: 4px 12px 12px 4px; background: linear-gradient(90deg, #7d3b4a 0 9px, #f3e7df 9px); color: var(--ink); padding: 26px 18px 16px 28px; display: flex; flex-direction: column; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.book small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wine); } .book b { font-family: Georgia, serif; font-size: 23px; line-height: 1.05; margin-top: 10px; font-weight: 700; } .book span { margin-top: auto; font-size: 10px; font-weight: 600; }
.chap { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.4); } .chap small { font-size: 12px; font-weight: 700; opacity: .85; } .chap b { display: block; font-size: 17px; font-weight: 600; margin: 2px 0 3px; } .chap span { font-size: 13.5px; line-height: 1.3; display: block; }
.quote { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.14); font-family: Georgia, serif; font-size: 16px; line-height: 1.32; } .quote button { display: block; margin-top: 8px; font-family: "Montserrat", sans-serif; font-size: 12.5px; font-weight: 700; text-decoration: underline; }
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; } .buy button { border-radius: 14px; background: #fff; color: var(--ink); padding: 12px; text-align: center; font-size: 13.5px; font-weight: 600; } .buy b { display: block; font-size: 19px; }

/* A.I. */
.ai-head { flex: none; background: var(--ocre); color: #fff; margin-top: calc(-1 * var(--sb)); padding: calc(var(--sb) + 12px) 22px 16px 26px; display: flex; align-items: center; gap: 14px; }
.ai-head img { width: 64px; height: auto; } .ai-head span { flex: 1; font-size: 19px; font-weight: 500; }
.ai-head .upbtn { background: rgba(255,255,255,.5); color: var(--ink); }
.ai-mode { align-self: flex-end; margin: 14px 22px 0 0; width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; } .ai-mode svg { width: 24px; height: 24px; }
.ai-voice { flex: 1; min-height: 0; display: flex; flex-direction: column; text-align: center; padding: 30px 30px 0; }
.ai-voice h1 { font-size: 23px; font-weight: 500; line-height: 1.16; } .ai-voice p { margin-top: 18px; font-size: 20px; font-weight: 500; color: var(--pink); line-height: 1.25; }
.ai-voice .chips { justify-content: center; margin-top: 22px; } .ai-voice .chip { background: var(--navy-2); color: #fff; height: auto; padding: 8px 14px; text-align: left; border-radius: 16px; font-weight: 500; }
.ai-voice .wave { margin-top: auto; }
.ai-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.bub { max-width: 84%; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.32; color: var(--ink); background: #fff; align-self: flex-start; }
.bub--me { align-self: flex-end; background: #d9d9d9; } .bub q { font-family: Georgia, serif; font-style: italic; } .bub button { display: block; margin-top: 8px; font-weight: 700; text-decoration: underline; font-size: 13px; }
.ai-input { flex: none; display: flex; margin: 0 14px 10px; border-radius: 10px; overflow: hidden; background: #8e96a0; } .ai-input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; height: 48px; font-size: 14.5px; color: #111; outline: none; } .ai-input input::placeholder { color: #222; opacity: .7; }
.ai-input button { width: 52px; background: #a9b0b8; color: var(--ink); display: grid; place-items: center; } .ai-input svg { width: 24px; height: 24px; }
.ai-suggest { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; } .ai-suggest .chip { flex: none; background: var(--navy-2); color: #fff; font-weight: 500; }

.empty { text-align: center; padding: 60px 30px; font-size: 16px; line-height: 1.35; opacity: .85; }
.help details { border-bottom: 1px solid rgba(255,255,255,.3); padding: 12px 4px; } .help summary { font-size: 15.5px; font-weight: 600; cursor: pointer; } .help p { margin-top: 8px; font-size: 14.5px; line-height: 1.35; }
.toast { position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 20px); max-width: 82%; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: .25s; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .card, .wave path { animation: none !important; } .toast { transition: none; } }

.bub q { quotes: none; }
.ai-head img, .sheet__head img, .ob__top img { height: auto; }

/* ---------- Fluidez: cajas que crecen hasta ser la pantalla ---------- */
.card, .sheet { view-transition-name: hero; }
.topbar { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }
::view-transition-group(hero) { animation-duration: .46s; animation-timing-function: cubic-bezier(.22, .8, .2, 1); overflow: clip; border-radius: 26px; }
::view-transition-old(hero), ::view-transition-new(hero) { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
::view-transition-old(hero) { animation: vt-out .18s ease both; }
::view-transition-new(hero) { animation: vt-in .3s .1s ease both; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .28s ease both; }
::view-transition-group(topbar), ::view-transition-group(tabbar) { animation-duration: .3s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@supports (view-transition-name: none) { .card { animation: none; } }
.tile, .big, .stack__next, .stack__last, .rail button, .iconbtn, .tabbar button, .opt, .days button, .chap, .mrow, .next i, .plus-sm { transition: transform .18s cubic-bezier(.2,.8,.2,1), background-color .2s, opacity .2s; }
.tile:active, .big:active, .stack__next:active, .stack__last:active, .chap:active { transform: scale(.975); }
.rail button:active, .iconbtn:active, .tabbar button:active, .opt:active, .days button:active { transform: scale(.9); }
.card__text, .confirm { animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.card__body > h1, .card__body > .meta { animation: rise .4s .08s cubic-bezier(.2,.8,.2,1) both; }
.rail button { animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.rail button:nth-child(2) { animation-delay: .04s; } .rail button:nth-child(3) { animation-delay: .07s; } .rail button:nth-child(4) { animation-delay: .1s; } .rail button:nth-child(5) { animation-delay: .13s; } .rail button:nth-child(6) { animation-delay: .16s; } .rail button:nth-child(7) { animation-delay: .19s; } .rail button:nth-child(8) { animation-delay: .22s; }
.bub { animation: rise .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .card__text, .confirm, .card__body > h1, .card__body > .meta, .rail button, .bub { animation: none; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- Propuestas autogeneradas ---------- */
.props { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(27,42,56,.25); }
.autogen { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; }
.autogen svg { width: 20px; height: 20px; }
.props__hint { margin: 14px 0 4px; font-size: 13px; font-weight: 500; opacity: .8; }
.prop { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 10px 12px 8px; border-radius: 16px; background: rgba(255,255,255,.6); color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.25; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; animation: rise .35s cubic-bezier(.2,.8,.2,1) both; transition: opacity .2s, transform .2s; }
.prop__grip { flex: none; width: 10px; height: 18px; background: radial-gradient(circle, rgba(27,42,56,.45) 1.5px, transparent 2px) 0 0 / 5px 6px; }
.prop__t { flex: 1; }
.prop button { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; }
.prop.is-lifted { opacity: .25; }
.prop--ghost { position: fixed; z-index: 50; margin: 0; pointer-events: none; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.3); animation: none; transition: none; cursor: grabbing; }
.field--drop { border-radius: 14px; border-bottom: 0; transition: background-color .2s, box-shadow .2s; }
.field--drop.is-target { box-shadow: inset 0 0 0 2px rgba(27,42,56,.35); background: rgba(255,255,255,.25); }
.field--drop.is-over { box-shadow: inset 0 0 0 2.5px var(--navy); background: rgba(255,255,255,.55); }
.field--drop.flash { animation: flash .7s ease; }
@keyframes flash { 0% { background: rgba(255,255,255,.9); } 100% { background: transparent; } }

/* Ayuda: desplegable minimalista con «+» */
.help summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .3s cubic-bezier(.2,.8,.2,1); opacity: .9; }
.help details[open] summary::after { transform: rotate(45deg); }
.help details { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.18); }
.help details p { animation: rise .3s cubic-bezier(.2,.8,.2,1) both; opacity: .9; }
.big span svg { display: block; }

/* Filtro temporal de recuerdos */
.filter { display: flex; gap: 8px; margin: 2px 0 14px; }
.filter label { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--navy-2); font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.filter label:first-child { flex: 0 0 auto; }
.filter span { opacity: .7; font-weight: 500; }
.filter select { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-weight: 600; font-size: 14px; outline: none; appearance: none; -webkit-appearance: none; padding-right: 14px; background: linear-gradient(45deg, transparent 50%, #fff 50%) right 6px center / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, #fff 50%) right 1px center / 5px 5px no-repeat; }
.iconbtn--plus { background: var(--mint); color: var(--ink); }
.rail .rail__new { margin-top: 18px; background: var(--mint); }
.c-mint .rail .rail__new { background: #fff; }
.more { text-align: center; padding: 18px 0 8px; font-size: 13px; opacity: .6; }
.schedgrid .tile { animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }

/* Transcripción y resumen: lectura cómoda en móvil (tamaño de las etiquetas, sin negrita) */
.card__text p { font-size: 16px; line-height: 1.55; font-weight: 400; letter-spacing: 0; opacity: 1; margin-top: 14px; }
.card__text .card__note { font-size: 12.5px; opacity: .7; }

/* Llamada grabada */
.callq { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.55); }
.callq span { display: block; font-size: 12.5px; font-weight: 600; opacity: .7; margin-bottom: 4px; }
.callq b { font-size: 17px; line-height: 1.25; font-weight: 600; }
.callfacts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.35; }
.callfacts li { display: flex; gap: 10px; align-items: flex-start; }
.callfacts svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.callbtn { margin-top: 22px; width: 100%; height: 54px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .2s; }
.callbtn:active { transform: scale(.97); }
.callbtn svg { width: 20px; height: 20px; }
.callbtn--end { background: var(--wine); }
.callnote { margin-top: 10px; text-align: center; font-size: 13px; opacity: .7; }
.callstage { display: grid; justify-items: center; gap: 14px; padding: 34px 0 6px; text-align: center; animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.callstate { font-size: 15px; font-weight: 500; }
.calltime { font-size: 46px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pulse { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; animation: pulse 1.4s ease-out infinite; }
.pulse svg { width: 36px; height: 36px; }
.pulse--off { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } }
.recdot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.6); }
.recdot i { width: 9px; height: 9px; border-radius: 50%; background: #C0392B; animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.callbars { display: flex; align-items: center; gap: 4px; height: 40px; }
.callbars i { width: 3px; border-radius: 2px; background: var(--navy); height: 30%; animation: wave 1s ease-in-out infinite; }
.callbars i:nth-child(3n) { animation-delay: -.3s; } .callbars i:nth-child(3n+1) { animation-delay: -.6s; } .callbars i:nth-child(4n) { animation-duration: .7s; }
@keyframes wave { 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .pulse, .recdot i, .callbars i { animation: none; } }

/* Pregunta programada: editar, regenerar y fechar sin salir de la tarjeta */
.h1--edit { cursor: text; transition: opacity .3s, filter .3s; }
.h1--edit.is-regen { opacity: .35; filter: blur(3px); animation: blink 0.9s ease-in-out infinite; }
.qedit { width: 100%; resize: none; border: 0; border-radius: 14px; padding: 12px 14px; margin: -12px 0 0 -14px; width: calc(100% + 14px); background: rgba(255,255,255,.6); color: var(--ink); font: inherit; font-size: 22px; line-height: 1.14; font-weight: 600; outline: 2px solid transparent; }
.qedit:focus { outline-color: var(--navy); }
.inline-actions { display: flex; gap: 8px; margin-top: 12px; }
.inline-actions button { height: 40px; padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; }
.inline-actions .ghost { background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }
.datepick { margin-top: 20px; animation: rise .3s cubic-bezier(.2,.8,.2,1) both; }
.datepick p { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.datepick__row { display: flex; gap: 8px; }
.datepick input { height: 46px; border: 0; border-radius: 12px; padding: 0 12px; background: rgba(255,255,255,.6); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; min-width: 0; }
.datepick input[type=date] { flex: 1; }
.rail button[aria-pressed=true] { background: var(--navy); color: #fff; }

.card__foot--new { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-right: 20px; }
.footnew { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .2s; }
.footnew:active { transform: scale(.9); }
.footnew svg { width: 20px; height: 20px; }

/* Vista previa en escritorio: el móvil mantiene siempre 390 × 844 y se escala entero para caber en la ventana */
@media (min-width: 761px) {
  .stage { height: 100vh; min-height: 0; padding: 0 24px; overflow: hidden; }
  .phone { flex: none; height: 844px; zoom: var(--fit, 1); }
}

/* Línea de progreso sobre las etiquetas: fina y de extremos rectos, con el mismo grosor que el subrayado de «Resumen» */
.progress { height: 1.5px; border-radius: 0; }
.progress i { border-radius: 0; }
.card__sub button { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Hoja de etiquetas */
.tagsheet { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgba(13, 20, 28, .45); animation: xfade .2s ease both; }
@keyframes xfade { from { opacity: 0; } to { opacity: 1; } }
.tagsheet__panel { width: 100%; max-height: 78%; display: flex; flex-direction: column; padding: 20px 20px 22px; border-radius: 26px 26px 0 0; background: #fff; color: var(--ink); animation: sheetup .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sheetup { from { transform: translateY(24px); } to { transform: none; } }
.tagsheet__head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.tagsheet__head button { width: 36px; height: 36px; border-radius: 10px; background: #EEF1F3; display: grid; place-items: center; }
.tagsheet__head svg { width: 18px; height: 18px; }
.tagsheet__cur { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip--rm { background: #EEF1F3; padding-right: 6px; gap: 6px; }
.chip--rm button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.08); }
.chip--rm svg { width: 11px; height: 11px; }
.tagsheet__search { display: flex; align-items: center; gap: 10px; height: 48px; margin-top: 14px; padding: 0 14px; border-radius: 14px; background: #EEF1F3; }
.tagsheet__search svg { width: 18px; height: 18px; flex: none; opacity: .6; }
.tagsheet__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.tagsheet__search:focus-within { outline: 2px solid var(--navy); }
.tagsheet__list { margin-top: 10px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; min-height: 44px; }
.tagopt { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #D5DBE0; font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tagopt:active { transform: scale(.96); }
.tagopt--new { border-color: var(--navy); background: var(--navy); color: #fff; }
.tagopt--new svg { width: 14px; height: 14px; }
.tagsheet__empty { font-size: 14px; opacity: .65; padding: 6px 2px; }
@media (prefers-reduced-motion: reduce) { .tagsheet, .tagsheet__panel { animation: none; } }

.stage__cta { display: inline-flex; align-items: center; height: 48px; margin-top: 22px; padding: 0 20px; border-radius: 14px; background: var(--mint); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.stage__cta:hover { filter: brightness(1.06); }

/* Inicio: carrusel de las últimas preguntas respondidas */
.lastwrap { margin-top: -18px; border-radius: var(--r); background: var(--wine); color: #fff; overflow: hidden; }
.lasts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.lasts::-webkit-scrollbar { display: none; }
.lasts.is-drag { scroll-snap-type: none; cursor: grabbing; }
.lasts .stack__last { flex: 0 0 100%; margin-top: 0; border-radius: 0; background: transparent; scroll-snap-align: start; text-align: left; padding-bottom: 14px; }
.lasts .stack__last .qtitle { min-height: 2.3em; display: block; }
.dots { display: flex; justify-content: center; gap: 7px; padding: 0 0 16px; }
.dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .38); transition: width .25s, background .25s; }
.dots button.on { width: 20px; border-radius: 4px; background: #fff; }

.sub-t { display: inline-flex; align-items: center; gap: 6px; }
.sub-t svg { width: 15px; height: 15px; flex: none; }
/* «Resumen» va justo al lado del teléfono, no en el extremo derecho */
.card__sub { justify-content: flex-start; gap: 12px; }

/* Transición de caja a pantalla: el contenido no se escala (evita el efecto en diagonal); la caja solo crece en vertical */
::view-transition-old(hero), ::view-transition-new(hero) { object-fit: none; object-position: top left; }
::view-transition-group(hero) { animation-timing-function: cubic-bezier(.3, .7, .2, 1); }

/* Modo lectura: sin la columna de botones, el texto ocupa todo el ancho */
.card.is-read .card__body { padding-right: 30px; }
.card.is-read .card__body h1 { padding-right: 52px; }
.card.is-read .rail button { animation: none; }

/* ===== Botones y etiquetas como en el Figma: contorno, sin relleno =====
   Sobre vino y rosa, contorno blanco; sobre ocre, menta y rosa empolvado, contorno oscuro. */
.chip, .trash, .rail button, .footnew, .plus-sm { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.chip { font-weight: 500; }
.c-wine .chip, .c-pink .chip, .lastwrap .chip, .c-wine .rail button, .c-pink .rail button { color: #fff; }
.c-blush .chip, .c-ocre .chip, .c-mint .chip, .c-blush .trash, .c-ocre .trash, .c-mint .trash,
.c-blush .rail button, .c-ocre .rail button, .c-mint .rail button, .c-ocre .footnew, .c-mint .footnew, .stack__next .plus-sm { color: var(--ink); }
/* Pulsado: se rellena con el color del contorno */
.c-wine .rail button[aria-pressed="true"], .c-pink .rail button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--wine); }
.c-blush .rail button[aria-pressed="true"], .c-ocre .rail button[aria-pressed="true"], .c-mint .rail button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Corazón: contorno como el resto; relleno cuando es favorito */
.rail .heart, .rail .heart[aria-pressed="true"] { background: transparent; }
.c-wine .rail .heart, .c-pink .rail .heart { color: #fff; }
.c-blush .rail .heart, .c-ocre .rail .heart, .c-mint .rail .heart { color: var(--ink); }
.rail .heart[aria-pressed="true"] { border-color: currentColor; }
.c-mint .rail .rail__new { background: transparent; }
/* La hoja de etiquetas conserva sus propios estilos */
.tagsheet .chip--rm { border: 0; background: #EEF1F3; color: var(--ink); }
.ai-voice .chip, .ai-suggest .chip { border: 0; }

/* ===== Cambio de pantalla: solo fundido (de transparente a visible), sin desplazamientos ni cajas que crecen ===== */
.card, .sheet, .topbar, .tabbar { view-transition-name: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { opacity: 0; } to { opacity: 1; } }
#app.fade > :not(.topbar):not(.tabbar) { animation: fadeIn .2s ease both; }
.card { animation: none; }
.rail button, .rail button:nth-child(n) { animation-delay: 0s; animation-duration: .2s; }
.schedgrid .tile { animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) { #app.fade > * { animation: none; } }

/* Volver a la web desde la demo */
.stage__actions { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 22px; }
.stage__actions .stage__cta { margin-top: 0; }
.stage__back { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.55); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.stage__back:hover { background: rgba(255,255,255,.1); }
.stage__back svg { width: 18px; height: 18px; }
a.mrow--link { text-decoration: none; color: inherit; }

/* La columna de botones sube 20 px: queda más cerca de la X */
.rail .gap { margin-bottom: 6px; }

/* ===== Transición entre pantallas: tranquila y fluida ===== */
::view-transition-old(root) { animation: calmOut .32s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: calmIn .62s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes calmOut { to { opacity: 0; } }
@keyframes calmIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#app.fade > :not(.topbar):not(.tabbar) { animation: settle .7s cubic-bezier(.22, 1, .36, 1) both; }
/* El contenido de la tarjeta llega escalonado, muy despacio */
.card__body > h1 { animation: rise .7s .08s cubic-bezier(.22, 1, .36, 1) both; }
.card__body > .meta { animation: rise .7s .14s cubic-bezier(.22, 1, .36, 1) both; }
.card__sub, .card__text, .datepick, .confirm { animation: rise .7s .2s cubic-bezier(.22, 1, .36, 1) both; }
.card__foot { animation: rise .7s .26s cubic-bezier(.22, 1, .36, 1) both; }
.rail button, .rail button:nth-child(n) { animation: rise .6s cubic-bezier(.22, 1, .36, 1) both; }
.rail button:nth-child(1) { animation-delay: .10s; } .rail button:nth-child(2) { animation-delay: .14s; } .rail button:nth-child(3) { animation-delay: .18s; }
.rail button:nth-child(4) { animation-delay: .22s; } .rail button:nth-child(5) { animation-delay: .26s; } .rail button:nth-child(6) { animation-delay: .30s; }
.rail button:nth-child(7) { animation-delay: .34s; } .rail button:nth-child(8) { animation-delay: .38s; }
.card.is-read .rail button { animation: rise .5s cubic-bezier(.22, 1, .36, 1) both; }
/* Pulsaciones más suaves */
.tile, .big, .stack__next, .stack__last, .rail button, .chip, .tagopt { transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .35s ease, border-color .35s ease, color .35s ease; }
@media (prefers-reduced-motion: reduce) { #app.fade > *, .card__body > *, .card__foot, .rail button { animation: none !important; } }

/* Tarjeta que conserva el rosa de Inicio al abrirse (texto oscuro) */
.c-pinkink { background: var(--pink); color: var(--ink); }
.c-pinkink .chip, .c-pinkink .trash, .c-pinkink .rail button, .c-pinkink .footnew { color: var(--ink); }
.c-pinkink .rail button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.c-pinkink .progress { background: rgba(0,0,0,.15); }
.c-pinkink .qedit, .c-pinkink .datepick input { background: rgba(255,255,255,.5); }

/* ===== Minimalista: un único fundido cruzado, sin elementos que se mueven ni entran por turnos ===== */
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
#app.fade > :not(.topbar):not(.tabbar) { animation: none; }
.card__body > h1, .card__body > .meta, .card__sub, .card__text, .card__foot, .datepick, .confirm,
.rail button, .rail button:nth-child(n), .card.is-read .rail button, .schedgrid .tile, .bub { animation: none; }
::view-transition-old(root) { animation: calmOut .4s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: calmIn .5s .05s cubic-bezier(.4, 0, .2, 1) both; }
/* Lo que cambia dentro de una misma pantalla (texto, resumen, paneles) aparece con un fundido corto */
.card__text, .datepick, .confirm, .tagsheet__panel { animation: calmIn .35s ease both; }
.tile:active, .big:active, .stack__next:active, .stack__last:active { transform: none; opacity: .85; }

/* ===== Zona segura: muesca / isla del iPhone y barra inferior ===== */
:root { --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --sb: 50px; }
/* Maqueta de escritorio: barra de estado más alta, con la isla dibujada */
.statusbar { height: var(--sb); padding: 0 30px; align-items: center; }
.statusbar::after { content: ""; position: absolute; left: 50%; top: 11px; width: 104px; height: 29px; margin-left: -52px; border-radius: 16px; background: #05090f; }
@media (max-width: 760px) {
  :root { --sb: var(--safe-t); }
  /* En un teléfono real la barra falsa no se dibuja: queda como hueco del alto de la muesca */
  .statusbar { display: block; height: var(--safe-t); padding: 0; }
  .statusbar > *, .statusbar::after { display: none; }
  .phone { padding-bottom: var(--safe-b); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
}

/* Palabra de seguridad destacada: caja propia, letra grande y lápiz que indica que se puede cambiar */
.field--safe input { margin-top: 8px; padding: 10px 44px 10px 14px; border-radius: 12px; background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='m13.500 6.500 4 4'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; border: 1.5px solid rgba(255,255,255,.35); font-size: 22px; font-weight: 600; letter-spacing: .02em; color: inherit; transition: border-color .3s ease, background-color .3s ease; }
.field--safe input:focus { border-color: #fff; background-color: rgba(255,255,255,.2); }
.field--safe input::selection { background: var(--mint); color: var(--ink); }
.ink .field--safe input, .phone[data-bg="mint"] .field--safe input { background-color: rgba(255,255,255,.55); border-color: rgba(27,42,56,.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A38' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='m13.500 6.500 4 4'/%3E%3C/svg%3E"); }
.ink .field--safe input:focus, .phone[data-bg="mint"] .field--safe input:focus { border-color: var(--ink); }
.ink .field--safe input::selection, .phone[data-bg="mint"] .field--safe input::selection { background: var(--navy); color: #fff; }
.field--safe { border-bottom: 0; }

/* Sin línea divisoria: el texto se desvanece al llegar abajo */
.card__body { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); padding-bottom: 40px; }

/* Cabecera del biógrafo: el título en una sola línea */
.ai-head { gap: 12px; }
.ai-head img { width: 52px; }
.ai-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; min-width: 0; }
@media (max-width: 350px) { .ai-head span { font-size: 16px; } .ai-head img { width: 44px; } }

/* Onda del biógrafo: de lado a lado de la pantalla y 20 px más arriba */
.ai-voice .wave { width: calc(100% + 60px); margin: auto -30px 20px; }
.card { touch-action: pan-y; }

/* Favorito marcado: botón transparente con contorno; solo el corazón se rellena */
.card .rail button.heart[aria-pressed="true"] { background: transparent; border-color: currentColor; }
.card.c-wine .rail .heart, .card.c-pink .rail .heart { color: #fff; }
.card.c-blush .rail .heart, .card.c-ocre .rail .heart, .card.c-mint .rail .heart, .card.c-pinkink .rail .heart { color: var(--ink); }
.card .rail .heart[aria-pressed="true"] svg path { fill: currentColor; stroke: none; }

/* El resumen del saludo abre la última llamada */
.hello__last { display: block; width: 100%; margin-top: 10px; padding: 0; text-align: left; font: inherit; font-size: 20px; font-weight: 500; line-height: 1.22; color: #fff; background: none; border: 0; cursor: pointer; }
.hello__last:active { opacity: .75; }

/* Botón para volver a mostrar la columna: transparente, icono en el color del texto */
.card.is-read .rail button[data-act="read"] { background: transparent; border-color: currentColor; color: inherit; }

/* Búsqueda */
.search--on { cursor: text; padding-right: 14px; }
.search--on input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: #fff; font: inherit; font-size: 17px; outline: none; }
.search--on input::placeholder { color: rgba(230, 235, 239, .55); }
.search--on input::-webkit-search-cancel-button { display: none; }
.search--on:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.snip { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; opacity: .9; }
.tile mark, .snip mark { background: rgba(255, 255, 255, .28); color: inherit; border-radius: 3px; padding: 0 2px; }
.c-ocre mark { background: rgba(27, 42, 56, .14); }

/* Las tarjetas nunca se salen del ancho: columnas que pueden encoger y etiquetas que se recortan */
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { min-width: 0; overflow: hidden; }
.tile__row { min-width: 0; }
.tile__row .chip { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 29px; }
.tile__row .trash { flex: none; }
.tile .chips { flex-wrap: wrap; min-width: 0; }
.scroll { overflow-x: hidden; }
/* Tarjetas en pareja: etiqueta y papelera algo más compactas para que quepan palabras como «Aprendizaje» */
.schedgrid .tile:not(.tile--wide) { padding-left: 18px; padding-right: 18px; }
.schedgrid .tile:not(.tile--wide) .tile__row { gap: 6px; }
.schedgrid .tile:not(.tile--wide) .tile__row .chip { padding: 0 12px; font-size: 13px; }
.schedgrid .tile:not(.tile--wide) .trash { width: 29px; height: 29px; }
.schedgrid .tile:not(.tile--wide) .trash svg { width: 15px; height: 15px; }
@media (max-width: 389px) {
  .schedgrid .tile:not(.tile--wide) { padding-left: 15px; padding-right: 15px; }
  .schedgrid .tile:not(.tile--wide) .tile__row .chip { padding: 0 9px; font-size: 12.5px; }
  .schedgrid .tile:not(.tile--wide) .tile__row { gap: 5px; }
}

/* ===== Panel de control: botón Ayuda junto a cerrar; interruptor dentro de la fila Estado ===== */
.sheet__btns { display: flex; gap: 8px; align-items: center; }
.helpbtn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.6); color: #fff; font-weight: 600; font-size: 14.5px; }
.helpbtn svg { width: 18px; height: 18px; }
.mrow--state { cursor: default; }
.toggle--sm { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 4px 0 12px; width: auto; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 13.5px; font-weight: 600; position: static; }
.toggle--sm i { position: static; width: 22px; height: 22px; border-radius: 50%; background: #fff; transform: none; transition: background-color .3s ease; }
.toggle--sm[aria-pressed="false"] { background: rgba(0,0,0,.2); }
.toggle--sm[aria-pressed="false"] i { background: rgba(255,255,255,.45); }

/* ===== Ayuda: asistente con anillo de líneas + preguntas frecuentes ===== */
.help2 { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.help2__ai { flex: none; display: grid; justify-items: center; text-align: center; padding: 6px 24px 10px; }
.ring { width: 168px; height: 168px; color: #fff; transition: width .5s ease, height .5s ease; }
.ring line { stroke: currentColor; stroke-width: .7; stroke-linecap: round; }
.ring__a { opacity: .9; transform-origin: 100px 100px; animation: ringA 14s linear infinite; }
.ring__b { opacity: .35; transform-origin: 100px 100px; animation: ringB 9s ease-in-out infinite; }
@keyframes ringA { to { transform: rotate(360deg); } }
@keyframes ringB { 0%, 100% { transform: rotate(0deg) scale(1.02, .96); } 50% { transform: rotate(-24deg) scale(.95, 1.06); } }
.ring.is-on .ring__b { animation-duration: 4s; opacity: .5; }
.help2__t { margin-top: 4px; font-size: 21px; font-weight: 500; }
.help2__s { margin-top: 4px; font-size: 15px; color: var(--pink); }
.help2.is-talk .ring { width: 92px; height: 92px; }
.help2.is-talk .help2__t { font-size: 16px; }
.help2 .scroll { padding-top: 4px; }
.help__chat { padding-top: 4px; }
@media (prefers-reduced-motion: reduce) { .ring__a, .ring__b { animation: none; } }

/* Barra superior: «Biografo.io» abre el biógrafo; la lupa abre la búsqueda */
.search { padding: 0 6px 0 0; }
.search__brand { flex: 1; height: 100%; padding-left: 22px; text-align: left; font: inherit; font-size: 18px; color: #e6ebef; }
.search__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: inherit; transition: background-color .3s ease; }
.search__icon:hover { background: rgba(255,255,255,.08); }
.search__icon svg { width: 24px; height: 24px; }
.search--on { padding: 0 14px 0 22px; }

/* Menú, primer nivel: secciones con su explicación, Ajustes y Ayuda */
.msec { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 13px 0; text-align: left; color: inherit; }
.msec svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.msec b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.msec small { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; line-height: 1.35; opacity: .78; }
.msep--line { height: 1px; margin: 12px 0; background: rgba(255,255,255,.22); }

/* Ayuda: campo como línea, sin caja */
.helpform { background: transparent; border-radius: 0; margin: 4px 14px 12px; border-bottom: 1px solid rgba(255,255,255,.45); }
.helpform input { padding: 0 0 0 16px; color: #fff; font-size: 16px; }
.helpform input::placeholder { color: #fff; opacity: .6; }
.helpform button { width: 40px; background: transparent; color: #fff; }
.helpform button svg { width: 22px; height: 22px; }

/* Barra inferior: el recuadro de la sección activa deja el mismo margen arriba, abajo y a los lados */
.tabbar { height: 56px; padding: 5px; justify-content: space-between; }
.tabbar button { width: 46px; height: 46px; border-radius: 8px; }
/* +35 % de margen alrededor de la sección activa (5 → 7 px) */
.tabbar { padding: 7px; }
.tabbar button { width: 42px; height: 42px; border-radius: 7px; }
.tabbar svg { width: 28px; height: 28px; }
/* Tarjeta de las últimas llamadas en Inicio: +20 % de alto (169 → 203 px) */
.lasts .stack__last { padding-bottom: 48px; }

/* Al pasar de un recuerdo a otro solo se mueve la tarjeta entera: sin fundidos internos */
#app.is-sliding .card, #app.is-sliding .card * { animation: none !important; }

/* El contenido pasa por detrás de la barra inferior */
#app > .scroll:has(+ .tabbar) { margin-bottom: -44px; padding-bottom: 64px; }
#app > .tabbar { position: relative; z-index: 2; box-shadow: none; }
/* Programar / Guardar ocupa todo el ancho del formulario */
[data-act="saveq"].save { display: block; width: 100%; text-align: center; padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
.signin__lead { white-space: nowrap; }
.autogen { white-space: nowrap; }
/* Las tarjetas abiertas también pasan por detrás de la barra inferior:
   se alargan por debajo de ella y su contenido sigue terminando encima */
/* termina por detrás de la barra, sin asomar por debajo de ella */
#app > .card:has(~ .tabbar) { margin-bottom: -44px; padding-bottom: 56px; }

/* Iconos de Google y Telegram junto a «Entrar con» */
.signin__foot button, .social span { display: inline-flex; align-items: center; gap: 7px; }
.brand { width: 20px; height: 20px; flex: none; }
.social .brand { width: 16px; height: 16px; }

/* Transición entre pantallas: el contenido se desliza hacia arriba, sin transparencias */
#app.fade > :not(.topbar):not(.tabbar) { animation: slideUp .62s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes slideUp { from { transform: translateY(26px); } to { transform: none; } }
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
@keyframes fadeIn { from { transform: translateY(26px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { #app.fade > * { animation: none; } }
.signin__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; } .signin__foot button { line-height: 1; }
@keyframes calmIn { from { transform: translateY(6px); } to { transform: none; } }

/* Capas de la transición de abrir y cerrar */
#app > .ghost { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#app > .ghost--top { z-index: 1; }
#app.is-moving > :not(.ghost) { position: relative; z-index: 1; }
#app.is-moving > .tabbar { z-index: 3; }
#app.is-moving > .topbar { z-index: 3; }
#app.is-moving { overflow: hidden; }
/* Cambio de pestaña: sube un poco, más despacio y con aceleración y frenada */
#app.fade > :not(.topbar):not(.tabbar) { animation: slideUp .9s cubic-bezier(.65, 0, .35, 1) both; }
/* Caja «Pregunta» de la llamada: 30 px más ancha hacia la derecha */
.callq { margin-right: -30px; }

/* Entre secciones no hay animación de entrada ni de salida */
#app > .scroll, #app > .screen, #app > .help2 { animation: none; }
/* «Entrar con»: centrado en el ancho y con más aire entre elementos */
.signin__foot { justify-content: center; gap: 10px 22px; }
.signin__foot button { gap: 10px; }
/* Propuestas: ocupan hasta el borde derecho, con el mismo margen que a la izquierda (30 px) */
.props__hint, .props .prop { margin-right: -44px; }
/* «Entrar con» siempre en una línea */
.signin__foot { flex-wrap: nowrap; white-space: nowrap; gap: 0 16px; }
.signin__foot button { gap: 8px; }
/* Flecha de Entrar: fondo transparente, borde oscuro y flecha blanca */
.signin .go i { background: transparent; border: 1.5px solid var(--ink); color: #fff; }
/* Textos legales que piden App Store y Google Play */
.signin__legal { flex: none; display: flex; justify-content: center; gap: 22px; background: var(--ocre); padding: 0 30px calc(22px + var(--safe-b, 0px)); margin-top: -12px; font-size: 13px; font-weight: 500; color: var(--ink); }
.signin__legal a, .signin__legal button { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-note { font-size: 13px; opacity: .85; margin-top: 18px; }
.legal-btns { margin-top: 8px; }
.legal-links { margin-top: 18px; font-size: 14px; }
.legal-links a, .legal-links button { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.save--danger { background: #fff; color: #8e2b3b; }
/* Flecha de Entrar: fondo azul oscuro (el de los filtros), flecha blanca, sin borde */
.signin .go i { background: rgb(61, 77, 92); border: 0; color: #fff; }
/* Tarjeta rosa: X, +, etiquetas y el + de abajo en blanco; el borde sigue oscuro */
.c-pinkink .chip, .c-pinkink .chip--add, .c-pinkink .footnew, .c-pinkink .plus-sm { color: var(--ink); border-color: var(--ink); }
.c-pinkink .rail [data-act="back"] { color: var(--ink); border-color: var(--ink); }
.msec--out { margin-top: auto; padding-top: 22px; align-items: center; }
/* Guardar tras regenerar la pregunta: botón grande blanco encima de las etiquetas */
.regensave { flex: none; display: block; margin: 0 30px 16px; height: 54px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 18px; font-weight: 700; animation: calmIn .35s ease both; }
.regensave { text-align: center; width: auto; }
/* Sin cambio visual al pulsar las cajas: así no hay salto al abrir la tarjeta */
.tile:active, .big:active, .stack__next:active, .stack__last:active, .chap:active, .hello__last:active { transform: none; opacity: 1; }
/* + de la próxima pregunta en Inicio: icono blanco, borde oscuro */
.stack__next .plus-sm { color: var(--ink); border-color: var(--ink); }
/* Círculo blanco + al lado de las etiquetas de cada recuerdo: abre el panel de etiquetas */
.tileadd { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.tileadd svg { width: 18px; height: 18px; }
.c-wine .tileadd { color: var(--wine); } .c-pink .tileadd { color: var(--pink); }
.chips:has(.tileadd) { align-items: center; }
/* Chat del biógrafo: preguntas sugeridas arriba del todo, alineadas con el logo */
.ai-suggest--top { padding: 16px 14px 4px 26px; scroll-padding-left: 26px; }
.ai-suggest--top + .ai-mode { margin-top: 10px; }
/* Acceso: primero los botones de Google y Telegram, luego el email */
.sso { display: grid; gap: 12px; margin-top: 22px; }
.sso__btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 54px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 600; }
.sso__btn .brand { width: 22px; height: 22px; }
.sso__or { display: flex; align-items: center; gap: 14px; margin: 24px 0 2px; font-size: 14px; font-weight: 500; color: var(--ink); opacity: .75; }
.sso__or::before, .sso__or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }
.signin__legal { margin-top: 0; padding-top: 22px; }
/* Botones de Google y Telegram abajo, justo encima de los enlaces legales */
.signin__body { display: flex; flex-direction: column; }
.sso-wrap { margin-top: auto; padding-top: 18px; padding-bottom: 18px; }
.sso-wrap .sso__or { margin: 0 0 14px; }
.sso-wrap .sso { margin-top: 0; }
.signin__body .demo-pill { align-self: flex-start; }
/* Paneles (menú y ajustes): cubren también la zona del notch y la barra de abajo es igual que en el resto de la app */
.sheet { margin-top: calc(-1 * var(--sb)); padding-top: var(--sb); background: var(--wine); }
.phone[data-bg="wine"] .tabbar { background: var(--navy-2); }
#app > .ghost--bar { z-index: 4; }
/* Botón de volver a mostrar los botones (modo lectura): relleno del color de la tarjeta para que el texto no se vea detrás */
.card > .rail { background: inherit; }
.card > .rail button[data-act="read"] { background: inherit !important; }
/* Capas fijas siempre (no solo durante la animación): así el navegador no recoloca nada al empezar a moverse */
#app > :not(.ghost) { position: relative; z-index: 1; }
#app > .tabbar, #app > .topbar { z-index: 3; }
/* Dentro de una tarjeta ya abierta no hay animaciones: el contenido cambia en el sitio */
.card__text, .card__body > h1, .card__body > .meta, .card .rail button, .confirm, .datepick, .regensave, .card__sub, .props .prop { animation: none !important; }
/* Titulares de las cajas un poco más pequeños para una maquetación más cuadrada */
.tile .qtitle { font-size: 14.5px; line-height: 1.22; }
.schedgrid .tile:not(.tile--wide) .qtitle, .grid .tile:not(.tile--wide) .qtitle { font-size: 14px; }
.tile:not(.tile--wide) .meta { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Nueva pregunta: el + de arriba gira hasta ser una X y cierra la tarjeta; la tarjeta no lleva X propia */
.iconbtn--x svg { transform: rotate(45deg); animation: plusToX .6s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes plusToX { from { transform: rotate(0deg); } to { transform: rotate(45deg); } }
.card--norail .card__body { padding-right: 30px; }
.card--norail .props__hint, .card--norail .props .prop { margin-right: 0; }
/* Filtro de fechas: los tres campos con el mismo ancho */
.filter label, .filter label:first-child { flex: 1 1 0; min-width: 0; }
/* Biógrafo: la barra de arriba es la misma que en el resto; el nombre del biógrafo va debajo como cabecera de sección */
.ai-head--sub { margin: 4px 14px 0; padding: 12px 18px; border-radius: 16px; }
.ai-head--sub img { width: 44px; }

/* Dentro del móvil de la web (?embed=1): ocupa toda la pantalla y dibuja su propia barra de estado */
html.embed, html.embed body { height: 100%; overflow: hidden; }
.embed .stage { padding: 0; display: block; height: 100%; }
.embed .stage__note { display: none; }
.embed .phone { width: 100%; height: 100vh; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.embed { --sb: 50px; --safe-t: 0px; --safe-b: 0px; }
.embed .statusbar { display: flex; height: var(--sb); padding: 0 30px; align-items: center; }
.embed .statusbar > * { display: flex; }
.embed .statusbar::after { display: block; }
/* Sin recorte durante la animación: el panel sube y baja como una sola pieza, incluida la zona del notch */
#app.is-moving { overflow: visible; }
/* Recuerdo en rosa claro: etiquetas y X de cerrar en negro */
#app > .card.c-pink .chip:not(.chip--add) { color: #fff; border-color: #fff; }
#app > .card.c-pink .rail [data-act="back"] { color: #fff; border-color: #fff; }
/* Pregunta favorita: el botón no se rellena; solo la estrella se pone blanca */
.card .rail button.prio[aria-pressed="true"] { background: transparent; border-color: var(--ink); color: var(--ink); }
.card .rail button.prio[aria-pressed="true"] svg { color: #fff; }
.card .rail button.prio[aria-pressed="true"] svg path { fill: #fff; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
/* Pregunta programada en ocre: todo en negro salvo el + de abajo a la derecha, en blanco */
.card--sched.c-ocre .footnew svg { color: #fff; }

/* Escritorio: el mismo móvil dibujado que en la portada de la web (marco metálico, bisel negro y botones laterales) */
.mock { position: relative; flex: none; }
@media (min-width: 761px) {
  .mock { --u: .625px; filter: drop-shadow(0 24px 40px rgba(10, 20, 30, .35)); }
  .mock__body { padding: calc(8 * var(--u)); border-radius: calc(112 * var(--u)); background: linear-gradient(160deg, #8a9097 0%, #444a51 18%, #32373d 55%, #6a7077 100%); }
  .mock__bezel { padding: calc(20 * var(--u)); border-radius: calc(104 * var(--u)); background: #0b0d0f; box-shadow: inset 0 0 0 calc(6 * var(--u)) #262a2f; }
  .mock { zoom: var(--fit, 1); }
  .mock .phone { border: 0; border-radius: calc(86 * var(--u)); box-shadow: none; height: 844px; zoom: 1; }
  .mock__key { position: absolute; z-index: -1; width: calc(6 * var(--u)); border-radius: calc(3 * var(--u)); background: #2c3036; }
  .mock__key--a { left: calc(-3 * var(--u)); top: calc(205 * var(--u)); height: calc(50 * var(--u)); }
  .mock__key--b { left: calc(-3 * var(--u)); top: calc(300 * var(--u)); height: calc(90 * var(--u)); }
  .mock__key--c { left: calc(-3 * var(--u)); top: calc(410 * var(--u)); height: calc(90 * var(--u)); }
  .mock__key--d { right: calc(-3 * var(--u)); top: calc(340 * var(--u)); height: calc(140 * var(--u)); }
}
@media (max-width: 760px) { .mock, .mock__body, .mock__bezel { display: contents; } .mock__key { display: none; } }
.embed .mock, .embed .mock__body, .embed .mock__bezel { display: contents; filter: none; }
.embed .mock__key { display: none; }

/* Llamar personalmente: la idea para empezar se puede cambiar por otra */
.callq--idea { display: flex; align-items: flex-start; gap: 12px; }
.callq--idea > div { flex: 1; min-width: 0; }
.callq__regen { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--ink); color: var(--ink); display: grid; place-items: center; }
.callq__regen svg { width: 20px; height: 20px; }
.callq__regen:active { transform: rotate(-90deg); transition: transform .3s; }
/* Dentro del móvil dibujado (demo de escritorio y portada de la web) la barra de abajo sigue la curva
   de la pantalla: sus esquinas inferiores son concéntricas con las de la pantalla (54 px − 13 px de margen) */
@media (min-width: 761px) { .mock .tabbar { border-radius: 12px 12px 41px 41px; } }
.embed .tabbar { border-radius: 12px 12px 41px 41px; }

/* Demo de escritorio: botones de las tiendas debajo de los botones */
.stage__stores { display: flex; gap: 10px; margin-top: 16px; }
.stage__stores a { display: block; }
.stage__stores img { display: block; height: 48px; width: auto; }

/* En un recuerdo, el dedo en horizontal es para pasar de recuerdo (el vertical sigue desplazando el texto) */
#app > .card, #app > .card * { touch-action: pan-y; overscroll-behavior-y: contain; }

/* Biógrafo por voz: botón de micrófono, lo que escucha y lo que responde */
.ai-mic { align-self: center; margin-top: 22px; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; border: 0; }
.ai-mic svg { width: 28px; height: 28px; }
.ai-mic.is-on { background: var(--pink); color: #fff; animation: aiPulse 1.6s ease-in-out infinite; }
@keyframes aiPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(222, 139, 149, .55); } 50% { box-shadow: 0 0 0 14px rgba(222, 139, 149, 0); } }
.ai-heard { min-height: 3em; }
.ai-said { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; text-align: left; font-size: 16px; line-height: 1.4; max-height: 38vh; overflow: auto; }
.ai-said b { font-weight: 600; }
.ai-said .chip { align-self: flex-start; }
.ai-voice:not(.is-speaking) .wave * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ai-mic.is-on { animation: none; } }

/* Chat escrito: el botón para pasar a voz va en la esquina, justo encima del botón de enviar */
.ai-mode--corner { align-self: flex-end; margin: 8px 19px 8px 0; }

/* Biógrafo: el botón de voz/chat va en la cabecera, al lado de la X; el título algo más pequeño para que quepan los dos */
.ai-head span { font-size: 16px; }
.ai-head .ai-switch { background: #fff; color: var(--ink); }
.ai-voice { padding-top: 22px; }

/* Recuerdo: el título, la fecha y las pestañas se quedan fijos; solo se desplaza el texto, en una capa
   enmascarada que se desvanece arriba y abajo */
.card--fixed .card__body { display: flex; flex-direction: column; overflow: hidden; -webkit-mask-image: none; mask-image: none; padding-bottom: 0; }
.card--fixed .card__body > h1, .card--fixed .card__body > .meta, .card--fixed .card__sub { flex: none; }
.card--fixed .card__text { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  margin-top: 8px; padding: 0 0 44px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 56px), transparent); }
.card--fixed .card__text::-webkit-scrollbar { display: none; }

/* Barra de abajo: iconos más juntos y centrados, para que no toquen las esquinas redondeadas del marco */
.tabbar { justify-content: center; gap: 14px; }
