/* Calendario, ajustes, Inicio, encuestas, instalar y otros ajustes de la app */
/* ---------- colores de respuesta (toda la app) ---------- */
:root { --maybe: #E8890C; }
html[data-theme="dark"] { --maybe: #FFA94D; }
.chip.maybe { background: color-mix(in srgb, var(--maybe) 17%, transparent); color: var(--maybe); }
.seg.resp button[data-s], .quick .btn[data-s] { background: color-mix(in srgb, var(--rc) 13%, transparent); color: var(--rc); font-weight: 800; box-shadow: none; }
[data-s=accepted] { --rc: var(--ok); } [data-s=maybe] { --rc: var(--maybe); } [data-s=declined] { --rc: var(--bad); }
.seg.resp button.on[data-s] { background: var(--rc); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--rc) 30%, transparent); }
@media (hover: hover) { .seg.resp button[data-s]:not(.on):hover, .quick .btn[data-s]:hover { background: color-mix(in srgb, var(--rc) 24%, transparent); filter: none; } }

/* ---------- calendario por semanas con barras continuas ---------- */
.cf-grid { display: flex; flex-direction: column; gap: var(--rg, 2px); }
.cf-week { position: relative; --bt: 36px; --lh: 16px; }
.cf-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--cg, 0px); }
.cf-week .cf-cell { aspect-ratio: auto; min-height: max(46px, calc(var(--bt) + var(--lanes, 0) * (var(--lh) + 2px) + 6px)); border: 0; }
.cf-bars { position: absolute; left: 0; right: 0; top: var(--bt); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--cg, 0px); grid-auto-rows: var(--lh); row-gap: 2px; pointer-events: none; z-index: 1; }
.cf-bar { grid-column: var(--c) / span var(--n); grid-row: var(--l); margin: 0 2px; padding: 0 6px; font-size: 10px; font-weight: 800; line-height: var(--lh); border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; transform-origin: left center; animation: bar-in .5s var(--spring) backwards; animation-delay: calc(var(--i) * 35ms); }
@keyframes bar-in { from { scale: 0 1; opacity: 0; } }
.cf-bar.away { background: color-mix(in srgb, var(--mc) 20%, transparent); color: color-mix(in srgb, var(--mc) 72%, var(--ink)); box-shadow: inset 3px 0 0 var(--mc); }
.cf-bar.plan { background: var(--grad); color: #fff; }
.cf-bar.cl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: none; }
.cf-bar.cl::before { content: '‹ '; }
.cf-bar.cr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cf-cell .more { position: absolute; right: 4px; bottom: 3px; min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 10px; line-height: 15px; font-weight: 800; font-style: normal; text-align: center; background: var(--primary-soft); color: var(--primary); }
/* color por tipo: plan = violeta, solo muchachos = azul, cumpleaños = rosa, ausencias = color de cada persona */
.cf-bar.plan.muchos { background: linear-gradient(135deg, var(--muchos), var(--muchos-2)); }
.cf-cell.bday { background: var(--bday-soft); }
.cf-cell.bday .n { color: var(--bday); }
.d.bday { background: var(--bday); }
@media (min-width: 760px) {
  .cf-grid { --cg: 4px; --rg: 4px; }
  .cf-week { --bt: 38px; --lh: 20px; }
  .cf-week .cf-cell { min-height: max(96px, calc(var(--bt) + var(--lanes, 0) * (var(--lh) + 2px) + 8px)); border: 1px solid var(--line); }
  .cf-bar { font-size: 12px; padding: 0 8px; border-radius: 7px; }
}
.os-cal .cf-grid { --cg: 0px; --rg: 2px; }
.os-cal .cf-week { --bt: 28px; --lh: 15px; }
.os-cal .cf-week .cf-cell { border: 0; min-height: max(40px, calc(var(--bt) + var(--lanes, 0) * 17px + 4px)); pointer-events: none; font-size: 13px; padding-top: 3px; }
.os-cal .cf-bar { font-size: 9.5px; padding: 0 5px; border-radius: 5px; }
.os-cal .cf-bar.cl { border-radius: 0 5px 5px 0; }

/* ---------- foto o avatar: grupo centrado y proporcionado ---------- */
.ob-avgroup { margin-block: auto; display: flex; flex-direction: column; gap: clamp(22px, 4.5vh, 40px); padding-block: 20px; }
.ob-avgroup .ob-avwrap { margin: 0 auto; }
.ob-avgroup .ob-foot { margin-top: 0; padding-top: 0; }

/* ---------- crear o unirse a un grupo ---------- */
.gate-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.gate-card { display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .22s var(--spring), box-shadow .2s, border-color .2s; }
button.gate-card { flex-direction: row; align-items: center; gap: 14px; width: 100%; }
.gate-card.join { display: grid; grid-template-columns: 48px 1fr; gap: 12px 14px; align-items: center; }
.gate-card.join > .field, .gate-card.join > .err, .gate-card.join > .btn { grid-column: 1 / -1; }
.gate-ic { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); font-size: 22px; }
.gate-card b { display: block; font-size: 17px; } .gate-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ob-gate .ob-link { margin-top: 22px; }
.auth-head h1 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.auth-head p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (hover: hover) { button.gate-card:hover, .gate-card.join:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-lg); } }

/* legal, ranking, perfil de miembro, celebración */
.auth-legal { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-legal button { background: none; border: 0; padding: 4px; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover:hover) { .auth-legal button:hover { color: var(--primary); } }
.legal h3 { margin: 18px 0 4px; font-size: 15px; }
.legal p { margin: 0; line-height: 1.5; color: var(--muted); font-size: 14px; }
.legal .seg { margin-bottom: 4px; }
.rank-tabs { margin-bottom: 8px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(128,128,128,.18)); }
.rank-row:last-child { border-bottom: 0; }
.rank-pos { width: 26px; text-align: center; font-weight: 800; }
.rank-n { font-weight: 900; font-size: 20px; }
.att-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.att-row .seg { margin-left: auto; width: auto; }
.mem-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.mem-head b { font-size: 20px; }
.mem-sec { margin: 16px 0 6px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mem-it { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.rec-code { font: 800 26px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-align: center; padding: 18px; border-radius: 16px; background: var(--card, rgba(128,128,128,.1)); user-select: all; word-break: break-all; }
.sw-row { display: flex; align-items: center; gap: 12px; }
.sw-row > div { flex: 1; }
.bd-main .avatar { border: 1.1cqw solid #fff; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.35); font-size: 52px; }
.person-row[data-act] { cursor: pointer; border-radius: 12px; }
@media (hover:hover) { .person-row[data-act]:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); } }
.sc-default .bd-main { top: 15cqw; } .bd-main .avatar { font-size: 68px; }
.att-row .seg { flex: none; } .att-row .seg button { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.att-row > span { flex: 1; min-width: 0; }
.rank-row .grow { flex: 1; min-width: 0; }
.att-row .avatar, .rank-row .avatar, .mem-head .avatar { flex: none; }
.legal h3 { margin: 14px 0 0 !important; } .legal h3 + p { margin: 2px 0 0 !important; }

/* calendario: semana, swipe y sin zoom */
.cf-cal { touch-action: pan-y; }
.slide-next .cf-grid, .slide-next .wk-list { animation: slide-next .32s var(--spring, ease-out) both; }
.slide-prev .cf-grid, .slide-prev .wk-list { animation: slide-prev .32s var(--spring, ease-out) both; }
@keyframes slide-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes slide-prev { from { opacity: 0; transform: translateX(-28px); } }
.cal-mode { width: auto; flex: none; } .cal-mode button { padding: 6px 12px; font-size: 13px; }
.cf-legend { flex-wrap: wrap; align-items: center; row-gap: 8px; }
.wk-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.wk-day { display: flex; gap: 12px; align-items: stretch; text-align: left; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--primary) 5%, transparent); color: inherit; font: inherit; cursor: pointer; transition: transform .2s var(--spring, ease), background .2s; }
.wk-day.today { background: color-mix(in srgb, var(--primary) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 45%, transparent); }
.wk-d { flex: none; width: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wk-d small { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); } .wk-d b { font-size: 20px; line-height: 1.1; }
.wk-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.wk-it { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 5px 9px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.wk-it.plan { background: var(--grad); color: #fff; } .wk-it.plan small { opacity: .85; font-weight: 600; } .wk-it .tt { font-weight: 800; }
.wk-it.away { background: color-mix(in srgb, var(--mc) 18%, transparent); color: color-mix(in srgb, var(--mc) 72%, var(--ink)); box-shadow: inset 3px 0 0 var(--mc); }
.wk-it.bd { background: color-mix(in srgb, #F472B6 18%, transparent); }
.wk-empty { color: var(--muted); opacity: .5; padding-left: 4px; }
@media (hover:hover) { .wk-day:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--primary) 10%, transparent); } }
.wk-day:has(.wk-empty) { padding-top: 6px; padding-bottom: 6px; } .wk-day:has(.wk-empty) .wk-d { flex-direction: row; gap: 6px; width: 70px; } .wk-day:has(.wk-empty) .wk-d b { font-size: 16px; }

/* ---------- asistente ---------- */
.asst { display: flex; flex-direction: column; min-height: calc(100dvh - 250px); }
.asst-scroll { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; }
.asst-hero { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 6px; max-width: 460px; }
.asst-orb { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 40%, transparent); animation: bob 3.2s ease-in-out infinite; }
.asst-orb .i, .asst-av .i { width: 60%; height: 60%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.asst-hero h2 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.02em; } .asst-hero p { margin: 0; color: var(--muted); line-height: 1.5; }
.asst-sugs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.asst-sug { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 10px 14px; font: 700 14px/1.2 inherit; cursor: pointer; transition: transform .2s var(--spring, ease), box-shadow .2s, border-color .2s; }
@media (hover:hover) { .asst-sug:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 18%, transparent); } }
.asst-msg { display: flex; gap: 10px; align-items: flex-start; animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
.asst-msg.me { justify-content: flex-end; }
.asst-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; margin-top: 2px; }
.asst-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: min(86%, 560px); }
.asst-b { padding: 11px 15px; border-radius: 20px; line-height: 1.5; font-size: 15.5px; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 6px; }
.asst-msg.me .asst-b { background: var(--grad); color: #fff; border: 0; border-radius: 20px 20px 6px 20px; max-width: min(86%, 560px); }
.asst-b.err { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.asst-b.typing { display: flex; gap: 5px; padding: 15px 16px; } .asst-b.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.1s ease-in-out infinite; } .asst-b.typing i:nth-child(2) { animation-delay: .15s; } .asst-b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.asst-card { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); color: inherit; font: inherit; }
button.asst-card { cursor: pointer; transition: transform .2s var(--spring, ease); } @media (hover:hover) { button.asst-card:hover { transform: translateY(-1px); } }
.ac-ic { font-size: 20px; } .ac-t { display: flex; flex-direction: column; min-width: 0; } .ac-t small { color: var(--muted); font-weight: 600; }
.asst-confirm { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.asst-confirm small { display: block; color: var(--muted); font-weight: 600; } .asst-confirm .btn-row { margin: 0; }
.asst-composer { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px); display: flex; gap: 8px; padding: 8px; border-radius: 26px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.asst-composer input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font-size: 16px; color: inherit; outline: none; height: 46px; }
.asst-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--spring, ease), opacity .2s; }
.asst-send .i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .asst-send:disabled { opacity: .5; } @media (hover:hover) { .asst-send:not(:disabled):hover { transform: scale(1.08); } }
.asst-note { text-align: center; margin: 10px 0 0; font-size: 12px; color: var(--muted); } .linklike { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .asst-composer { bottom: 16px; } .asst { min-height: calc(100dvh - 190px); } .asst-scroll { max-width: 760px; width: 100%; margin: 0 auto; } .asst-composer, .asst-note { max-width: 760px; width: 100%; margin-left: auto; margin-right: auto; } }

/* ---- ajustes al estilo Friends: tarjetas con filas e íconos de línea ---- */
.st-body { display: flex; flex-direction: column; gap: 14px; }
.st-hero { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.st-hero .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.st-hero b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.st-badge { margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: var(--primary-ink); font-size: 12.5px; font-weight: 800; }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 6px 8px; box-shadow: var(--shadow); }
.st-card h3 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 6px; }
.st-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 10px; border-radius: 16px; text-align: left; transition: background-color .15s; }
.st-row:active { background: var(--primary-soft); }
.st-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.st-tx b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.st-tx span { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.st-val { font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.st-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.st-ic svg.i, .st-go svg.i { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; width: 22px; height: 22px; }
.st-go { color: var(--muted); display: grid; place-items: center; flex: none; }
.st-go svg.i { width: 18px; height: 18px; }
.st-row.bad .st-tx b { color: var(--bad); } .st-row.bad .st-ic { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.st-logout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--bad) 11%, transparent); color: var(--bad); font-weight: 800; font-size: 16px; }
.st-logout svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 20px; height: 20px; }
.seg button svg.i { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- botón + flotante ---- */
.fab { position: fixed; z-index: 19; right: 18px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--primary-ink); box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 45%, transparent); transition: transform .2s var(--spring); }
.fab:active { transform: scale(.92); }
.fab svg.i { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (min-width: 1024px) { .fab { right: 36px; bottom: 32px; } }
html.chat-lock .fab { display: none; }

/* ---- iconos de la barra superior ---- */
.icon-btn svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.side-toggle svg.i { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---- clima ---- */
.wx-chip { height: 44px; padding: 0 13px 0 11px; border-radius: 15px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-weight: 800; font-size: 15px; }
.wx-chip svg.i { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wx-now { display: flex; align-items: center; gap: 16px; }
.wx-now svg.i { width: 56px; height: 56px; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wx-now b { display: block; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.wx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--surface-2); font-size: 13px; font-weight: 700; text-transform: capitalize; }
.wx-day svg.i { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- instalar ---- */
.inst-card { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.inst-card .grow { flex: 1; min-width: 0; }
.inst-card > svg.i { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.inst-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.inst-steps li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.inst-steps .n { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--grad); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; }

/* ---- volver atrás en hojas y pantallas ---- */
.sheet-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 14px; transition: background-color .15s, transform .2s var(--spring); }
.sheet-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--spring); }
.sheet-back:active { transform: scale(.95); }
@media (hover: hover) { .sheet-back:hover { background: var(--primary-soft); color: var(--primary); } .sheet-back:hover svg { transform: translateX(-3px); } }

/* ---- ajustes: hero con "Editar" ---- */
.st-edit { font-size: 13.5px; font-weight: 800; color: var(--primary); }

/* ---- instalar junto al clima ---- */
.inst-chip { display: inline-flex; align-items: center; height: 44px; border-radius: 15px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); color: var(--primary); animation: chip-in .5s var(--spring) backwards; overflow: hidden; }
.inst-go { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 6px 0 12px; font-weight: 800; font-size: 14px; color: inherit; }
.inst-go svg.i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.inst-x { width: 30px; height: 100%; display: grid; place-items: center; font-size: 12px; color: color-mix(in srgb, var(--primary) 70%, var(--muted)); }
@keyframes chip-in { from { opacity: 0; transform: translateY(-6px) scale(.9); } }


/* ---- clima con vida ---- */
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -2px); } }
@keyframes wx-rain { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@keyframes wx-flash { 0%, 86%, 100% { opacity: 1; } 90% { opacity: .35; } 94% { opacity: 1; } 97% { opacity: .5; } }
[data-k="sun"] > svg.i { animation: wx-spin 22s linear infinite; }
[data-k="partly"] > svg.i, [data-k="cloud"] > svg.i, [data-k="fog"] > svg.i, [data-k="snow"] > svg.i { animation: wx-float 4.5s ease-in-out infinite; }
[data-k="rain"] > svg.i { animation: wx-rain 1.4s ease-in-out infinite; }
[data-k="storm"] > svg.i { animation: wx-flash 3.5s ease-in-out infinite; }
.wx-chip { animation: chip-in .5s var(--spring) backwards; transition: transform .2s var(--spring), box-shadow .2s; }
.wx-day { transition: transform .2s var(--spring), background-color .15s; }
@media (hover: hover) {
  .wx-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .wx-chip:hover svg.i { animation-duration: 1.2s; }
  .wx-day:hover { transform: translateY(-4px); background: var(--primary-soft); }
  .inst-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .inst-chip { transition: transform .2s var(--spring), box-shadow .2s; }
  .inst-x:hover { color: var(--bad); }
  .st-row:hover { background: var(--primary-soft); }
  .st-row:hover .st-ic { transform: scale(1.1) rotate(-5deg); }
  .st-row:hover .st-go { transform: translateX(3px); color: var(--primary); }
  .st-hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .st-hero:hover .st-go { transform: translateX(3px); color: var(--primary); }
  .st-logout:hover { background: color-mix(in srgb, var(--bad) 20%, transparent); transform: translateY(-1px); }
  .fab:hover { transform: translateY(-3px) rotate(90deg) scale(1.05); }
  .icon-btn:hover svg.i { transform: rotate(18deg); }
}
.st-ic, .st-go, .st-hero, .st-logout { transition: transform .22s var(--spring), background-color .15s, box-shadow .2s, color .15s; }
.icon-btn svg.i { transition: transform .3s var(--spring); }
@media (prefers-reduced-motion: reduce) { [data-k] > svg.i, .inst-chip, .wx-chip { animation: none !important; } }

/* ---- asistente: acciones rápidas ---- */
.asst-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 10px; }
.asst-tile { display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 800; font-size: 14.5px; line-height: 1.2; letter-spacing: -.01em; animation: tile-in .5s var(--spring) backwards; animation-delay: calc(var(--i) * 70ms); transition: transform .22s var(--spring), box-shadow .2s, border-color .15s; }
.asst-tile-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); transition: transform .25s var(--spring); }
.asst-tile-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.asst-tile:active { transform: scale(.96); }
@keyframes tile-in { from { opacity: 0; transform: translateY(12px) scale(.94); } }
@media (hover: hover) { .asst-tile:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 22%, transparent); } .asst-tile:hover .asst-tile-ic { transform: scale(1.12) rotate(-6deg); } }
@media (max-width: 380px) { .asst-acts { grid-template-columns: 1fr; } }
.asst-sugs { margin-top: 4px; }

/* ---- hojas de tamaño fijo (Ajustes y sus pantallas) ---- */
.sheet.tall { height: auto; min-height: min(60dvh, 420px); }
@media (min-width: 560px) { .sheet.tall { height: auto; min-height: 380px; max-height: min(86vh, 760px); } }

/* ---- interruptor ---- */
.sw { width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background-color .25s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.sw.on { background: var(--primary); } .sw.on i { transform: translateX(20px); }

/* ---- lista de opciones (idioma) ---- */
.lang-list { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 14px; border-radius: 16px; text-align: left; font-size: 16px; transition: background-color .15s, transform .2s var(--spring); }
.pick-row b { font-weight: 700; }
.pick-row.on { background: var(--primary-soft); color: var(--primary); } .pick-row.on b { font-weight: 800; }
.pick-ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--spring); }
.pick-row.on .pick-ck { opacity: 1; transform: none; }
.pick-ck svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .pick-row:hover { background: var(--primary-soft); transform: translateX(3px); } }

/* ---- perfil: avatar clicable y selector ---- */
.av-edit-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.av-edit { position: relative; border-radius: 50%; transition: transform .25s var(--spring); }
.av-edit:active { transform: scale(.95); }
.av-badge { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--primary-ink); border: 3px solid var(--surface); box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent); }
.av-badge svg.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .av-edit:hover { transform: scale(1.05); } .av-edit:hover .av-badge { transform: rotate(-12deg) scale(1.1); } .av-badge { transition: transform .25s var(--spring); } }
.av-upload { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; text-align: left; border-radius: 20px; background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--primary) 55%, transparent); transition: transform .2s var(--spring), background-color .15s; }
.av-upload:hover { background: var(--primary-soft); transform: translateY(-2px); }
.av-or { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.av-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; }
.av2 { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); border: 2.5px solid transparent; transition: transform .2s var(--spring), border-color .15s; }
.av2:active { transform: scale(.9); }
.av2.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
@media (hover: hover) { .av2:hover { transform: translateY(-3px) scale(1.08); } .av2 span { display: block; transition: transform .25s var(--spring); } .av2:hover span { transform: rotate(-8deg) scale(1.1); } }

/* ---- Inicio: carteles y próximos cumpleaños ---- */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alerts:empty { display: none; }
.cartel { --c: var(--primary); display: flex; align-items: center; gap: 12px; padding: 11px 8px 11px 12px; border-radius: 18px; background: color-mix(in srgb, var(--c) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); animation: tile-in .5s var(--spring) backwards; animation-delay: calc(var(--i) * 80ms); }
.cartel.k-storm { --c: #7C5CFF; } .cartel.k-frost, .cartel.k-snow { --c: #2F9BE8; } .cartel.k-heat { --c: #F08A24; } .cartel.k-rain { --c: #3B82F6; } .cartel.k-wind { --c: #14A39A; }
.cartel-ic { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.cartel-ic svg.i { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; animation: wx-float 3.5s ease-in-out infinite; }
.cartel.k-storm .cartel-ic svg.i { animation: wx-flash 3s ease-in-out infinite; }
.cartel-tx { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.cartel-x { width: 30px; height: 30px; border-radius: 50%; flex: none; color: var(--muted); font-size: 12px; display: grid; place-items: center; }
.cartel-x:hover { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--ink); }
.bd-list { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.bd-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; transition: background-color .15s, transform .2s var(--spring); }
.bd-row .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; } .bd-row .grow b { font-weight: 800; } .bd-row .grow .muted { font-size: 13px; }
.bd-left { font-size: 12.5px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
@media (hover: hover) { .bd-row:hover { background: var(--surface-2); transform: translateX(3px); } }

/* ---- encuestas, mensajes, Tu grupo ---- */
.notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.note { display: flex; align-items: center; gap: 6px; background: var(--grad); color: #fff; border-radius: 18px; padding: 4px 6px 4px 4px; animation: rise .35s ease both; transition: transform .15s; }
.note:hover { transform: translateY(-1px); }
.note-b { flex: 1; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; text-align: left; padding: 6px; cursor: pointer; font: inherit; }
.note-t { font-size: 14px; line-height: 1.3; word-break: break-word; }
.note-x { background: none; border: 0; color: #fff; opacity: .8; cursor: pointer; padding: 6px; }
.note-more { align-self: flex-start; }
.link { background: none; border: 0; color: var(--accent, #7c5cff); font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.link.danger { color: #e5484d; }
.poll-card { display: flex; flex-direction: column; gap: 8px; animation: rise .35s ease both; }
.poll-h, .poll-f { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.poll-k { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.poll-q { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.poll-opt { position: relative; overflow: hidden; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 0; cursor: pointer; font: inherit; color: inherit; transition: transform .15s, border-color .15s; }
.poll-opt:not([disabled]):hover { transform: translateY(-1px); border-color: var(--accent, #7c5cff); }
.poll-opt.mine { border-color: var(--accent, #7c5cff); }
.poll-opt.winner { border-color: #2fb36d; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent, #7c5cff) 18%, transparent); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.poll-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 11px 14px; }
.poll-t { flex: 1; font-weight: 600; }
.poll-av { display: inline-flex; }
.poll-av > * { margin-left: -6px; }
.pl-optrow { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.pl-optrow input { flex: 1; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-weight: 600; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent, #7c5cff); }
.grp-fold summary { cursor: pointer; font-weight: 800; list-style: none; padding: 2px 0 8px; }
.grp-fold summary::-webkit-details-marker { display: none; }
.grp-fold summary::after { content: '▾'; float: right; transition: transform .2s; }
.grp-fold[open] summary::after { transform: rotate(180deg); }
@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.asst-mic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text, inherit); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .2s; }
.asst-mic .i { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.asst-mic:hover { transform: scale(1.06); }
.asst-mic.busy { opacity: .6; pointer-events: none; }
.asst-mic.on { background: #e5484d; border-color: #e5484d; color: #fff; animation: micpulse 1.1s ease-in-out infinite; }
@keyframes micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 50% { box-shadow: 0 0 0 10px rgba(229,72,77,0); } }
/* semana = misma grilla que el mes, una fila más alta */
.cf-wk .cf-week { --lh: 30px; --bt: 38px; }
.cf-wk .cf-week .cf-cell { min-height: max(260px, calc(var(--bt) + var(--lanes, 0) * 32px + 10px)); border: 1px solid var(--line); border-radius: 12px; }
.cf-wk .cf-bar { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 13px; padding-top: 2px; padding-bottom: 2px; font-size: 10.5px; }
@media (min-width: 560px) { .cf-wk .cf-week { --lh: 34px; } .cf-wk .cf-bar { font-size: 12px; line-height: 15px; } }
.ob-brand, .side-brand { cursor: pointer; }
.ob-brand img, .side-brand img { transition: transform .2s; }
.ob-brand:hover img, .side-brand:hover img { transform: rotate(-8deg) scale(1.08); }
.boing { animation: boing .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes boing { 0% { transform: scale(1); } 25% { transform: scale(.78) rotate(-12deg); } 55% { transform: scale(1.22) rotate(10deg); } 80% { transform: scale(.95) rotate(-3deg); } 100% { transform: none; } }

/* Inicio en dos columnas (como Friends) */
.hm-cols, .hm-col { display: contents; }
@media (min-width: 900px) {
  .hm-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .hm-col { display: flex; flex-direction: column; gap: 12px; }
  .hm-col > * { flex-shrink: 0; }
}
.wx-card { display: none; align-items: center; gap: 14px; padding: 16px 20px; text-align: left; }
.wx-card .wx-big svg.i { width: 40px; height: 40px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wx-card .wx-t { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.wx-card .wx-c { font-size: 20px; font-weight: 700; }
@media (min-width: 900px) { .wx-card { display: flex; } }
.mini-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0 6px; }
.mini-h:not(:first-child) { margin-top: 12px; }
/* nota del grupo: no heredar el .note de las animaciones de cumpleaños */
.notes .note { position: relative; font-size: 14px; z-index: auto; }
.notes .note-x svg, .notes .note-x .i { width: 18px; height: 18px; }

/* bienvenida: plan de ejemplo y motivo de ausencia */
.osc-line { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.osc-line span { width: 22px; text-align: center; }
.osc-who-row { display: flex; align-items: center; margin-top: 10px; }
.osc-who-row .avatar { margin-right: -8px; border: 2px solid #fff; }
.osc-who-row .avatar.me { font-size: 11px; }
.osc-who-row small { margin-left: 18px; font-weight: 600; }
.os-plan.went .osc-join .p-off { display: none; }
.os-plan.went .osc-join .p-on { display: inline; }
.os-plan.went .osc-join { background: #DDF6EE; color: #0B7A5C; }
.osc-who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.osc-who em { font-style: normal; font-size: 12px; color: #A9ACC8; }
.inst-link { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.inst-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }

.actions-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.actions-col .inst-chip { height: 38px; }

/* bienvenida tranquila: una tarjeta protagonista y otra de apoyo */
.ob-hero .ob-copy p { opacity: .8; }

/* sin franja blanca arriba en la bienvenida, historias y entrada */
body:has(.ob-hero, .ob-story, .auth-hero) .status-fill { display: none; }
/* «Ya tengo cuenta» como texto tranquilo */
.ob-hero .ob-btn.ghost { background: none; min-height: 40px; margin-top: 6px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .78); box-shadow: none; }
.ob-hero .ob-btn.ghost:hover { background: none; color: #fff; text-decoration: underline; }
/* asistente */
.os-asst { gap: 14px; padding: 18px; }
.oa-me { align-self: flex-end; max-width: 82%; background: #ECECFF; color: #3B3BC9; border-radius: 18px 18px 6px 18px; padding: 11px 14px; font-weight: 600; font-size: 15px; animation: oc-in .5s var(--spring) backwards; }
.oa-bot { display: flex; gap: 10px; align-items: flex-start; animation: oc-in .5s var(--spring) .35s backwards; }
.oa-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad, linear-gradient(135deg, #5B5BF5, #9B5BF5)); color: #fff; }
.oa-av svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oa-bot p { background: #F4F5FB; border-radius: 6px 18px 18px 18px; padding: 11px 14px; font-size: 15px; line-height: 1.4; margin: 0; }
.oa-go { margin-top: 10px; width: 100%; }
.os-asst.done .oa-go .p-off { display: none; } .os-asst.done .oa-go .p-on { display: inline; } .os-asst.done .oa-go { background: #DDF6EE; color: #0B7A5C; }

/* ---------- calma: texto más chico, centrado y con aire ---------- */
.ob { padding: calc(env(safe-area-inset-top) + 26px) 30px calc(env(safe-area-inset-bottom) + 34px); }
.ob h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.5px; text-align: center; }
.ob .sub { margin: 14px auto 0; font-size: 15px; max-width: 30ch; text-align: center; }
.ob-bar { margin-bottom: 18px; }
/* historias: título + visual centrados en el espacio libre */
.ob-story > h1 { margin-top: auto; }
.ob-story .ob-visual { margin: 34px 0 0; }
.ob-story .ob-foot { margin-top: auto; padding-top: 34px; }
/* bienvenida */
.ob-copy { padding-top: 26px; text-align: center; }
.ob-copy h1 { font-size: 25px; line-height: 1.22; letter-spacing: -.5px; }
.ob-copy h1 .hl { font-size: 1.14em; }
.ob-copy p { margin: 12px auto 0; max-width: 30ch; }
.ob-cta { margin-top: 32px; }
.ob-collage { margin-top: 14px; }
.ob-hero .ob-top { justify-content: space-between; }
/* pasos del perfil */
.ob-body > h1 { margin-top: 8vh; }
.ob-input { margin-top: 36px; text-align: center; }
.ob-bd { margin-top: 36px; }
.ob-avwrap { margin-top: 40px; }
@media (min-width: 900px) {
  .ob-hero .ob-copy { text-align: left; }
  .ob-hero .ob-copy h1 { font-size: clamp(30px, 3vw, 44px); text-align: left; }
  .ob-hero .ob-copy p { margin: 18px 0 0; text-align: left; }
  .ob-hero .ob-cta { margin-top: 36px; }
}

/* tarjetas de la bienvenida en escritorio (posiciones editadas a mano con ?edit) */
@media (min-width: 900px) {
  .ob-hero .oc-d { left: 13.2%; top: 62.3%; right: auto; bottom: auto; width: 13.9em; --r: -4deg !important; }
  .ob-hero .oc-c { left: 57.6%; top: 36.4%; right: auto; bottom: auto; width: 11.5em; --r: 7deg !important; }
  .ob-hero .oc-a { left: -19%; top: 26.5%; right: auto; bottom: auto; width: 11.5em; --r: -8deg !important; }
  .ob-hero .oc-b { left: 15.2%; top: 4.3%; right: auto; bottom: auto; width: 15em; --r: 2deg !important; }
  .ob-hero .oc-q { left: 61.9%; top: 76.6%; right: auto; bottom: auto; width: 4.6em; --r: 12deg !important; }
}

/* tarjetas de la bienvenida en móvil: solapadas pero legibles, entran volando una a una */
@media (max-width: 899px) {
  .ob-hero .oc-c { left: 11%; top: 59%; right: auto; bottom: auto; width: 10em; --r: 5deg !important; }
  .ob-hero .oc-b { left: 43%; top: 24%; right: auto; bottom: auto; width: 14.5em; --r: -6deg !important; }
  .ob-hero .oc-d { left: 52%; top: 67%; right: auto; bottom: auto; width: 11em; --r: -5deg !important; }
  .ob-hero .oc-q { left: 3%; top: 0%; right: auto; bottom: auto; width: 2em; --r: 12deg !important; }
  .ob-hero .oc-a { left: -1%; top: 32%; right: auto; bottom: auto; width: 11.5em; --r: -8deg !important; }
}
/* eslogan más pequeño */
.ob-copy h1 { font-size: 21px; }
@media (min-width: 900px) { .ob-hero .ob-copy h1 { font-size: clamp(24px, 2.4vw, 34px); } }

/* Al estirar la pantalla (arriba y abajo) se ve el color de la pantalla, nunca blanco.
   Safari de iPhone usa el background-color del html (ignora los degradados), por eso va color sólido + sin rebote. */
html:has(.ob-hero), html:has(.ob-story.grad) { background-color: #7C5CF6; background-image: linear-gradient(#4B4BE8 50%, #B06AF0 50%); overscroll-behavior: none; }
html:has(.ob-story.dark) { background-color: #14152B; overscroll-behavior: none; }
html:has(.ob-story.soft) { background-color: #ECECFF; background-image: linear-gradient(var(--primary-soft), var(--primary-soft)); overscroll-behavior: none; }
html:has(.auth-hero) { background-color: #4B4BE8; background-image: linear-gradient(#4B4BE8 50%, var(--bg) 50%); overscroll-behavior: none; }
html:has(.ob-hero) body, html:has(.ob-story) body, html:has(.auth-hero) body { overscroll-behavior: none; }

html:has(.ob-hero) body, html:has(.ob-story) body, html:has(.auth-hero) body, html.fx:has(.ob-hero) body, html.fx:has(.ob-story) body, html.fx:has(.auth-hero) body { background: transparent; } /* con las transiciones nuevas (html.fx) el body volvía a pintar el fondo claro y tapaba el color de las historias en pantallas grandes */

/* Móvil: el onboarding queda fijo, no se estira ni arriba ni abajo (si algo no cabe, scrollea por dentro sin rebote) */
@media (max-width: 699px) {
  html:has(.ob), html:has(.ob) body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
  html:has(.ob) #app { height: 100%; min-height: 0; overflow: hidden; }
  html:has(.ob) .ob { height: 100dvh; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 699px) { .ob-story .ob-visual { margin-top: 24px; } .ob-story .ob-foot { padding-top: 16px; } .ob-bar { margin-bottom: 8px; } }

/* Móvil y tablet: toda la app queda fija (sin estirar arriba/abajo); la pantalla scrollea por dentro, sin rebote */
@media (max-width: 899px) {
  html, body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
  #app { height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; -webkit-overflow-scrolling: touch; }
}

/* ---------- alternativas de portada ---------- */
.oh { position: relative; flex: 1; margin-top: 14px; display: flex; flex-direction: column; justify-content: center; font-size: 15px; }
/* A: un plan grande y dos etiquetas */
.oh-a { align-items: center; padding: 0 4px; }
.oh-main { width: 100%; background: #fff; color: var(--ink); border-radius: 1.8em; padding: 1.3em 1.4em; box-shadow: 0 24px 56px rgba(20, 21, 43, .32); display: flex; flex-direction: column; gap: .35em; rotate: -2deg; animation: oc-in .7s var(--spring) backwards; position: relative; z-index: 2; }
.oh-main::before, .oh-main::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .55); z-index: -1; translate: 0 .55em; scale: .93; }
.oh-main::after { background: rgba(255, 255, 255, .3); translate: 0 1.1em; scale: .86; }
.oh-main small { font-size: .86em; font-weight: 600; color: #6B6F8A; }
.oh-main strong { font-size: 1.55em; line-height: 1.2; font-weight: 800; letter-spacing: -.3px; }
.oh-when { align-self: flex-start; margin-top: .2em; padding: .4em .8em; border-radius: .8em; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .9em; }
.oh-who { display: flex; align-items: center; margin-top: .7em; }
.oh-who i { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 .85em/1 inherit; font-style: normal; margin-right: -.55em; box-shadow: 0 0 0 .18em #fff; }
.oh-who em { margin-left: 1.1em; font-style: normal; font-weight: 700; font-size: .9em; color: #6B6F8A; }
.oh-pill { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .55em; padding: .65em 1em; border-radius: 999px; background: #14152B; color: #fff; font-weight: 700; font-size: .9em; box-shadow: 0 14px 30px rgba(20, 21, 43, .35); animation: oc-in .7s var(--spring) backwards, bob 6s ease-in-out infinite; white-space: nowrap; }
.oh-pill i { font-style: normal; }
.oh-p1 { top: 22%; left: -1%; rotate: -4deg; animation-delay: .25s, 0s; }
.oh-p2 { bottom: 22%; right: -1%; rotate: 3deg; background: #fff; color: var(--ink); animation-delay: .4s, 1s; }
/* B: tres filas, una por cosa */
.oh-b { gap: 14px; padding: 0 2px; }
.oh-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 22px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); animation: oc-in .6s var(--spring) var(--d) backwards; }
.oh-row span { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 18px rgba(20, 21, 43, .2); }
.oh-row b { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }

/* ---------- portada: eventos que van apareciendo ---------- */
.of { position: relative; flex: 1; margin-top: 14px; display: flex; flex-direction: column; justify-content: center; gap: 16px; font-size: 15px; padding: 10px 0 8px; }
.of-card { display: flex; align-items: center; gap: 14px; width: 86%; padding: 14px 18px 14px 14px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 16px 36px rgba(20, 21, 43, .26); animation: of-in .65s var(--spring) var(--d) backwards; }
.of-card.l { align-self: flex-start; } .of-card.r { align-self: flex-end; }
.of-card span { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 25px; }
.of-card div { display: flex; flex-direction: column; min-width: 0; }
.of-card b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.of-card small { font-size: 12.5px; font-weight: 600; color: #6B6F8A; margin-top: 1px; }
@keyframes of-in { from { opacity: 0; translate: 0 28px; scale: .92; } }
@media (prefers-reduced-motion: reduce) { .of-card { animation: none; } }
@media (min-width: 900px) { .ob-hero .of { grid-column: 2; grid-row: 2; align-self: center; width: 100%; max-width: 460px; justify-self: center; margin: 0; font-size: 17px; } }

/* ---------- portada alternativa: la app real asomando ---------- */
.oa { flex: 1; width: 88%; max-width: 340px; margin: 18px auto 0; border: 6px solid #14152B; border-bottom: 0; border-radius: 40px 40px 0 0; background: var(--bg); overflow: hidden; padding: 18px 14px 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; box-shadow: 0 -10px 50px rgba(20, 21, 43, .3); -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); animation: oa-rise .8s var(--spring) backwards; }
@keyframes oa-rise { from { translate: 0 60px; opacity: 0; } }
.oa > * { animation: of-in .6s var(--spring) var(--d) backwards; }
.oa-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; } .oa-head b { font-size: 20px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.oa-plan { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 22px rgba(20, 21, 43, .1); border: 1px solid var(--line); }
.oa-plan small { font-size: 12px; font-weight: 600; color: var(--muted); } .oa-plan strong { font-size: 18px; font-weight: 800; line-height: 1.2; }
.oa-when { align-self: flex-start; padding: 4px 10px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 12.5px; }
.oa-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.oa-who { display: flex; } .oa-who i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 12px/1 inherit; font-style: normal; margin-right: -8px; box-shadow: 0 0 0 2px var(--surface); }
.oa-btn { position: relative; display: grid; place-items: center; min-width: 104px; height: 36px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; animation: oa-ok .01s linear 2.6s forwards; }
.oa-btn em { font-style: normal; grid-area: 1 / 1; }
.oa-btn .y { opacity: 0; animation: oa-y .3s ease 2.6s forwards; } .oa-btn .j { animation: oa-j .3s ease 2.6s forwards; }
@keyframes oa-ok { to { background: #12A66B; color: #fff; box-shadow: 0 6px 14px rgba(18, 166, 107, .35); } }
@keyframes oa-y { to { opacity: 1; } } @keyframes oa-j { to { opacity: 0; } }
.oa-cal { display: contents; } .oa-cal .os-card { background: var(--surface); box-shadow: 0 8px 22px rgba(20, 21, 43, .1); border: 1px solid var(--line); border-radius: 22px; padding: 12px 10px; animation: of-in .6s var(--spring) 1s backwards; }
@media (prefers-reduced-motion: reduce) { .oa, .oa > *, .oa-cal .os-card { animation: none; } .oa-btn { background: #12A66B; color: #fff; } .oa-btn .j { opacity: 0; } .oa-btn .y { opacity: 1; } }
@media (min-width: 900px) { .ob-hero .oa { grid-column: 2; grid-row: 2; align-self: end; justify-self: center; width: 100%; max-width: 420px; margin: 0; height: min(78vh, 640px); flex: none; font-size: 15px; } }

/* entrada de las tarjetas de la portada: cada una vuela desde su lado y después flota */
@keyframes oc-fly { from { opacity: 0; translate: var(--fx, 0) var(--fy, 40px); scale: .6; } 60% { opacity: 1; } }
@keyframes oc-float { 50% { transform: translateY(-9px); } }
.ob-hero .oc { animation: oc-fly .95s var(--spring) var(--i, 0s) backwards, oc-float 6s ease-in-out calc(var(--i, 0s) + var(--w, 0s) + .9s) infinite; }
.ob-hero .oc-a { --i: .2s; --fx: -140px; --fy: 20px; } .ob-hero .oc-b { --i: .9s; --fy: -130px; } .ob-hero .oc-c { --i: 1.6s; --fx: 40px; --fy: 130px; }
.ob-hero .oc-d { --i: 2.3s; --fx: 120px; --fy: 90px; } .ob-hero .oc-q { --i: 3.1s; --fx: 0px; --fy: 90px; }
@media (prefers-reduced-motion: reduce) { .ob-hero .oc { animation: none; } }

/* tarjeta del plan en el collage */
.oc-a { gap: .3em; padding: .9em 1em; }
.oc-a strong { font-size: 1.12em; line-height: 1.2; font-weight: 800; letter-spacing: -.2px; }
.oc-when { align-self: flex-start; margin-top: .15em; padding: .3em .7em; border-radius: .7em; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .84em; }
.oc-who { display: flex; align-items: center; margin-top: .5em; }
.oc-who i { width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 .78em/1 inherit; font-style: normal; margin-right: -.45em; box-shadow: 0 0 0 .16em #fff; }
.oc-who em { margin-left: .9em; font-style: normal; font-weight: 700; font-size: .84em; color: #6B6F8A; }
.oc-d { z-index: 4; }
@media (max-width: 899px) { .ob-hero .oc-a { width: 12.5em; top: 29%; } }
.oc-q { z-index: 5; }

/* asistente: efecto escribiendo */
.os-asst .oa-me, .os-asst .oa-bot, .os-asst .oa-go { opacity: 0; translate: 0 10px; animation: none; transition: opacity .3s ease, translate .45s var(--spring), background-color .25s, color .25s, transform .2s var(--spring); }
.os-asst .in { opacity: 1; translate: 0 0; }
.os-asst .oa-go:not(.in) { pointer-events: none; }
.oa-me.caret::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: oa-caret .7s steps(1) infinite; }
.oa-bot > div { position: relative; flex: 1; min-width: 0; }
.oa-dots { position: absolute; top: 0; left: 0; display: flex; gap: 5px; padding: 15px 16px; background: #F4F5FB; border-radius: 6px 18px 18px 18px; }
.oa-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9AA0BC; animation: oa-dot 1s ease-in-out infinite; }
.oa-dots i:nth-child(2) { animation-delay: .15s; } .oa-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes oa-caret { 50% { opacity: 0; } }
@keyframes oa-dot { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -5px; opacity: 1; } }

/* cartelitos de Inicio, X de encuestas/mensajes y organizador */
.aviso { display: flex; align-items: center; gap: 6px; background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 16px; padding: 4px 4px 4px 14px; margin: 0 0 10px; animation: avIn .35s ease both; }
.aviso-b { flex: 1; text-align: left; background: none; border: 0; font: inherit; font-size: 14px; color: inherit; padding: 8px 0; cursor: pointer; }
.aviso-x, .x-btn, .notes .note-x { background: none; border: 0; color: inherit; opacity: .55; cursor: pointer; padding: 8px 10px; font-size: 14px; transition: opacity .2s, transform .2s; }
.aviso-x:hover, .x-btn:hover, .notes .note-x:hover { opacity: 1; transform: scale(1.15); }
.notes .note-b { display: flex; align-items: center; gap: 10px; flex: 1; }
.note-all { display: block; font-size: 12px; opacity: .8; margin-top: 2px; color: inherit; text-decoration: underline; }
.poll-h { align-items: center; }
.ev-org { font-size: 12.5px; opacity: .7; margin: 1px 0 2px; }
@keyframes avIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bal-pill { display: inline-flex; gap: 6px; align-items: baseline; font: inherit; font-size: 13px; background: none; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 999px; padding: 4px 12px; margin: 0 0 10px; color: var(--muted, #667); cursor: pointer; transition: transform .2s; }
.bal-pill:hover { transform: translateY(-1px); }
.bal-pill b { color: var(--text, inherit); }
.bal-pill.pos b { color: #1f9d6b; } .bal-pill.neg b { color: #d4574a; }
.cf-ev.unanswered { border-left: 4px solid #f5a524; background-image: linear-gradient(90deg, rgba(245,165,36,.10), transparent 40%); }
.bal-card { display: flex; justify-content: space-between; align-items: center; width: 100%; font: inherit; font-size: 14px; text-align: left; background: none; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; color: inherit; cursor: pointer; transition: transform .2s; }
.bal-card:hover { transform: translateY(-1px); }
.bal-card.pos b { color: #1f9d6b; } .bal-card.neg b { color: #d4574a; }
.bal-card .go { color: var(--muted, #667); font-size: 13px; }
/* onboarding: tras apuntarse, el plan se añade solo al calendario */
.os-plan .osc-cal { display: grid; margin-top: 8px; height: 54px; border-radius: 14px; overflow: hidden; background: rgba(91,91,245,.1); color: #4b4bd8; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .4s, background .4s; }
.os-plan .osc-cal > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .35s, transform .35s; }
.os-plan .osc-cal .oc-ev { opacity: 0; transform: translateY(14px); justify-content: flex-start; padding: 0 12px; gap: 10px; text-align: left; color: #1b1b2f; }
.os-plan .osc-cal .oc-ev i { width: 4px; align-self: stretch; margin: 9px 0; border-radius: 4px; background: #5B5BF5; }
.os-plan .osc-cal .oc-ev span { display: grid; flex: 1; min-width: 0; } .os-plan .osc-cal .oc-ev small { font-weight: 600; opacity: .65; }
.os-plan .osc-cal .oc-ev b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-plan .osc-cal .oc-ev em { font-style: normal; font-size: 12px; color: #0e8a58; white-space: nowrap; }
.os-plan.cal-add .osc-cal { opacity: 1; }
.os-plan.cal-add .osc-cal .oc-add { animation: oc-press .6s .5s both; }
.os-plan.cal-ev .osc-cal { background: #fff; box-shadow: 0 0 0 1.5px rgba(91,91,245,.25) inset; }
.os-plan.cal-ev .osc-cal .oc-add { opacity: 0; transform: translateY(-14px); animation: none; }
.os-plan.cal-ev .osc-cal .oc-ev { opacity: 1; transform: none; }
@keyframes oc-press { 40% { transform: scale(.94); background: rgba(91,91,245,.0); } 100% { transform: none; } }
.ob-story .ob-visual button, .ob-story .ob-visual input, .ob-story .ob-visual .dp-btn { pointer-events: none; }
/* eslogan: «Tus planes.» y debajo la palabra que va cambiando */
.ob-copy h1 .hl.rot { display: inline-grid; }
.ob-copy h1 .hl.rot > span { grid-area: 1 / 1; opacity: 0; animation: wordcycle 16s calc(1.2s + var(--i) * 3.2s) infinite backwards; }
@keyframes wordcycle { 0% { opacity: 0; transform: translateY(8px); } 4% { opacity: 1; transform: none; } 17% { opacity: 1; transform: none; } 20%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ob-copy h1 .hl.rot > span { animation: none; } .ob-copy h1 .hl.rot > span:first-child { opacity: 1; } }
/* invitados: se ve claro quién está elegido */
.pick-chip.on::before { content: '✓'; font-weight: 800; margin-right: 2px; }
.inv-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary, #5B5BF5); color: #fff; font-size: 12px; text-align: center; margin: 0 4px; }
.asst-card-acts { display: flex; gap: 8px; margin: -2px 0 8px; flex-wrap: wrap; }
.asst-card-acts button { font: inherit; font-size: 13px; font-weight: 600; background: none; border: 1px solid var(--line, rgba(0,0,0,.12)); color: var(--primary, #5B5BF5); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: transform .2s, background .2s; }
.asst-card-acts button:hover { transform: translateY(-1px); background: rgba(91,91,245,.08); }

/* Onboarding: idea de pádel con pelota que rebota */
.osc-ball { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.14em; margin-right: 6px; transform-origin: 50% 90%; animation: ball-bounce 1.6s cubic-bezier(.3,.1,.3,1) infinite; }
@keyframes ball-bounce { 0%,100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-6px) rotate(40deg); } 60% { transform: translateY(0) rotate(60deg) scale(1.06,.94); } }
@media (prefers-reduced-motion: reduce) { .osc-ball { animation: none; } }

/* Entrar / Crear cuenta: el color de arriba y la tarjeta cambian para notar el paso */
.auth-hero { transition: filter .4s ease; }
.login.auth.signup .auth-hero { background: linear-gradient(165deg, #5B3FE0 0%, #A24BE6 55%, #F0709A 100%); }
.login.auth[data-anim] .auth-hero { animation: auth-hue .55s ease both; }
.login.auth[data-anim=r] .auth-card { animation: auth-in-r .38s var(--spring) both; }
.login.auth[data-anim=l] .auth-card { animation: auth-in-l .38s var(--spring) both; }
@keyframes auth-hue { from { filter: hue-rotate(var(--hue-from, -35deg)) saturate(1.2); } to { filter: none; } }
@keyframes auth-in-r { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes auth-in-l { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.login.auth[data-anim=l] { --hue-from: 35deg; }
@media (prefers-reduced-motion: reduce) { .login.auth[data-anim] .auth-hero, .login.auth[data-anim] .auth-card { animation: none; } }

/* el eslogan de la pantalla de entrar también rota */
.auth-copy h2 .hl.rot { display: inline-grid; }
.auth-copy h2 .hl.rot > span { grid-area: 1 / 1; opacity: 0; animation: wordcycle 16s calc(.4s + var(--i) * 3.2s) infinite backwards; }
@media (prefers-reduced-motion: reduce) { .auth-copy h2 .hl.rot > span { animation: none; } .auth-copy h2 .hl.rot > span:first-child { opacity: 1; } }
html:has(.login.auth.signup) { background-color: #5B3FE0; background-image: linear-gradient(#5B3FE0 50%, var(--bg) 50%); }

/* historias en pantallas grandes: el color llena toda la pantalla, sin franjas ni tarjeta flotante */
@media (min-width: 900px) {
  html:has(.ob-story.grad) { background: var(--ob-grad) fixed; }
  html:has(.ob-story.soft) { background: var(--primary-soft); }
  .ob-story { background: transparent !important; box-shadow: none; border-radius: 0; min-height: 100dvh; }
}

/* ---------- instalar: pasos con dibujos de Safari ---------- */
.ig-wrap { display: flex; flex-direction: column; gap: 18px; }
.ig-step { animation: ig-in .5s var(--spring) both; animation-delay: calc(var(--i) * .12s + .1s); }
@keyframes ig-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ig-cap { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; margin: 0 0 8px; }
.ig-cap .n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 13px; }
.ig-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.ig { position: relative; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.ig svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ig .hit { position: relative; color: var(--primary); }
.ig-tap { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 2px solid var(--primary); animation: ig-pulse 1.5s ease-out infinite; pointer-events: none; }
.ig-tap::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--primary); opacity: .35; }
@keyframes ig-pulse { 0% { transform: scale(.55); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.ig-1 .ig-page { height: 84px; padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.ig-1 .ig-page i { display: block; height: 9px; border-radius: 5px; background: var(--line); } .ig-1 .ig-page i:nth-child(2) { width: 70%; } .ig-1 .ig-page i:nth-child(3) { width: 45%; }
.ig-1 .ig-bar { display: flex; justify-content: space-around; align-items: center; padding: 12px 8px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.ig-1 .ig-bar > span { position: relative; width: 38px; height: 30px; display: grid; place-items: center; }
.ig-1 .ig-bar .hit { color: var(--primary); }
.ig-2 { padding: 4px 0; background: var(--surface); }
.ig-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.ig-row:last-child { border-bottom: 0; } .ig-row.dim { color: var(--muted); }
.ig-row.hit { background: color-mix(in srgb, var(--primary) 10%, transparent); font-weight: 800; color: var(--ink); }
.ig-row.hit svg { color: var(--primary); } .ig-row.hit .ig-tap { left: auto; right: 22px; margin-left: 0; }
.ig-3 { background: var(--surface); } .ig-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.ig-head b { color: var(--ink); font-size: 13px; text-align: center; flex: 1; } .ig-head .hit { font-weight: 800; padding: 6px 10px; }
.ig-head .hit .ig-tap { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.ig-app { display: flex; align-items: center; gap: 12px; padding: 16px; } .ig-app img { width: 52px; height: 52px; border-radius: 13px; } .ig-app b { display: block; } .ig-app small { color: var(--muted); }
.ig-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface); }
.ig-url { flex: 1; text-align: center; padding: 8px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.ig-top .hit { width: 40px; height: 34px; display: grid; place-items: center; }
/* aviso para navegadores internos */
#inapp-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding-top: env(safe-area-inset-top); background: #14152B; color: #fff; }
.inapp-bar { display: flex; align-items: center; min-height: 44px; }
.inapp-go { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; color: inherit; text-align: left; font-size: 13px; }
.inapp-go b { flex: none; padding: 5px 12px; border-radius: 999px; background: #fff; color: #3B3BC9; font-size: 12.5px; }
.inapp-x { width: 40px; align-self: stretch; color: rgba(255, 255, 255, .7); font-size: 13px; }
body.has-inapp #app { padding-top: calc(48px + env(safe-area-inset-top)); }
/* tarjeta de instalar en Inicio */
.inst-promo { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; border-radius: 20px; background: linear-gradient(135deg, #5B5BF5, #9A5CF0); color: #fff; box-shadow: 0 14px 30px rgba(91, 91, 245, .28); animation: ig-in .5s var(--spring) both; }
.inst-promo .grow { flex: 1; min-width: 0; } .inst-promo b { display: block; font-size: 15px; } .inst-promo small { display: block; opacity: .88; font-size: 12.5px; margin-top: 1px; }
.ip-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.ip-ic svg.i { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.inst-promo .btn { background: #fff; color: #3B3BC9; box-shadow: none; }
.ip-x { width: 28px; align-self: flex-start; color: rgba(255, 255, 255, .7); font-size: 12px; padding: 2px; }
@media (prefers-reduced-motion: reduce) { .ig-tap, .ig-step, .inst-promo { animation: none; } }
/* instalar iPhone: Safari real (iOS 26) */
.ig-bar26 { display: flex; align-items: center; gap: 10px; padding: 14px 12px; background: var(--surface-2); }
.ig-bar26 .rb { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 2px 8px rgba(20, 21, 43, .1); color: var(--ink); }
.ig-bar26 .rb.hit { color: var(--primary); }
.ig-bar26 .pill { flex: 1; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 2px 8px rgba(20, 21, 43, .1); font-weight: 700; font-size: 14px; }
.ig-row .l { display: flex; align-items: center; gap: 12px; }
.ig-row.hit .ig-tap { right: 18px; }
.ig-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 16px 8px; background: #3B3C43; color: #fff; border-color: transparent; }
.ig-acts .ia { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ig-acts .ia b { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.ig-acts .ia small { font-size: 10.5px; line-height: 1.15; }
.ig-acts .ia.hit b { background: color-mix(in srgb, var(--primary) 60%, #3B3C43); }
.ig-acts .ia.hit { color: #fff; } .ig-acts .ig-tap { border-color: #fff; } .ig-acts .ig-tap::after { background: #fff; }
.ig-head span:first-child svg { width: 18px; height: 18px; }
/* saludo de Vale y modo exploración */
.vale { display: grid; align-items: center; min-height: 100dvh; }
.vale-in { text-align: center; display: grid; gap: 22px; justify-items: center; animation: ig-in .6s var(--spring) both; }
.vale-in h1 { font-size: 26px; line-height: 1.2; max-width: 14em; }
.vale-h { font-size: 64px; animation: vale-beat 1.4s ease-in-out infinite; }
@keyframes vale-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
a.inapp-bar { text-decoration: none; color: #fff; }
@media (prefers-reduced-motion: reduce) { .vale-h { animation: none; } }
/* Inicio: tarjeta del grupo al final */
.hm-group { display: flex; align-items: center; gap: 12px; padding: 14px; }
.hg-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; color: inherit; }
.hg-main .grow { min-width: 0; } .hg-main b { display: block; } .hg-main small { color: var(--muted); }
.push-first { text-align: center; } .pf-ic { font-size: 54px; animation: vale-beat 1.4s ease-in-out infinite; margin: 6px 0 2px; }
.push-first .body { display: grid; gap: 10px; margin-top: 16px; }

/* ---------- Inicio personal (tarjetas por grupo) ---------- */
.hub { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 22px) 16px 40px; }
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hub-top h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.hub-h { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 4px 10px; }
.hub-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hub-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: transform .18s var(--spring), box-shadow .18s; animation: hubIn .45s var(--spring) both; }
.hub-card:nth-child(2) { animation-delay: .05s; } .hub-card:nth-child(3) { animation-delay: .1s; } .hub-card:nth-child(n+4) { animation-delay: .15s; }
@media (hover: hover) { .hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } }
.hub-card.pressed { transform: scale(.985); }
.hub-card.is-muted { opacity: .8; }
.hub-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) + 40) 80% 62%)); }
.hub-tx { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hub-tx b { font-size: 17px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-tx small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hub-next { font-size: 13px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.hub-lines i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.hub-lines.muted i { background: var(--surface-2); color: var(--muted); }
.hub-badge { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; animation: hubPop .5s var(--spring) both .2s; }
.hub-badge.muted { width: 10px; min-width: 10px; height: 10px; padding: 0; background: var(--muted); opacity: .6; }
.hub-bell { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); background: transparent; transition: background .15s, color .15s; }
.hub-bell:hover { background: var(--surface-2); color: var(--ink); }
.hub-bell.on { color: var(--primary); }
.hub-bell .i { width: 20px; height: 20px; }
.hub-more { display: grid; gap: 10px; margin-top: 18px; }
@keyframes hubIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hubPop { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hub-card, .hub-badge { animation: none; } }
@media (min-width: 900px) { .hub { padding-top: 48px; } }

/* disponibilidad entre grupos */
.g-dot { width: 22px; height: 22px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6c4cf0, #b24be6); }
.pick-chip.rem { margin-top: 12px; padding: 8px 14px; transition: transform .15s ease, border-color .15s ease; }
.pick-chip.rem:active, .pick-chip[data-act=abs-share]:active, .pick-chip[data-act=busy-toggle]:active { transform: scale(.96); }
.pick-chip[data-act=abs-share], .pick-chip[data-act=busy-toggle] { padding-left: 6px; }

/* Personas sin cuenta en los gastos */
.ghost-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 2px; }
.ghost-add .link { font-weight: 700; color: var(--accent, #5b4cf0); background: none; border: 0; padding: 4px 0; }
.ghost-add .ghost-form { display: flex; gap: 8px; flex: 1 1 100%; }
.ghost-add .ghost-form input { flex: 1; min-width: 0; }
.ghost-add .ghost-form.hidden { display: none; }
.ghost-add small { flex: 1 1 100%; }

/* Línea que ofrece el asistente arriba de los formularios de crear */
.ask-ai { display: block; margin: -4px 0 12px; padding: 8px 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--primary) 9%, transparent); color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.actions-col .wx-chip { height: 38px; }
.hub-new { margin-top: 18px; display: grid; gap: 8px; }
.hub-new .menu-item small { display: block; font-weight: 600; }
.hub-more-l { display: block; margin: 10px auto 0; font-weight: 800; }
/* Inicio: una sola fila discreta debajo de los 3 planes */
.hx-all { display: flex; align-items: center; width: 100%; margin-top: 6px; padding: 12px 6px; background: none; border: 0; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--primary); cursor: pointer; text-align: left; }
.hx-all i { margin-left: auto; font-style: normal; font-size: 20px; line-height: 1; }
/* «Ver todos los planes»: Próximos | Pasados, por mes */
.pl-seg { margin-bottom: 4px; }
.pl-mon { margin: 16px 4px 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hx-pl.is-past .ag-tile { background: var(--line); color: var(--muted); }
.hx-pl.is-past .ag-tx b { color: color-mix(in srgb, var(--ink) 80%, var(--muted)); }
/* «Ver todos» de planes con invitados: la hoja no cambia de tamaño al cambiar de pestaña, aunque una esté vacía */
.sheet:has(.loose-sheet) { height: min(86dvh, 760px); }
.loose-sheet .ag-empty { padding: 28px 0; }
.pl-loose { padding-right: 84px !important; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 16px; border: 1.5px dashed color-mix(in srgb, var(--primary) 40%, var(--line)); border-radius: 18px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.pl-loose .ic { font-size: 22px; }
.pl-loose b { display: block; font-size: 15px; }
.pl-loose small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---- Inicio nuevo: tarjeta grande, grupos en fila, próximos compactos ---- */
.hx { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.hx .fab { bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 19; }
.hx-sub { margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: 14px; text-align: left; }
button.hx-sub { display: block; padding: 0; background: none; border: 0; color: var(--primary); font-family: inherit; }
.hx-hero { position: relative; display: grid; gap: 4px; margin-top: 4px; padding: 20px; border-radius: 28px; color: #fff; background: var(--grad); box-shadow: 0 14px 30px rgba(91,91,245,.32); overflow: hidden; cursor: pointer; text-align: left; }
.hx-hero::after { content: ""; position: absolute; right: -44px; top: -44px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.13); pointer-events: none; }
.hx-hero > * { position: relative; z-index: 1; }
.hx-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hx-hero h2 { margin: 2px 0 0; font-size: 25px; line-height: 1.12; letter-spacing: -.02em; padding-right: 74px; overflow-wrap: anywhere; }
.hx-hero.is-empty h2 { padding-right: 0; }
.hx-w { font-weight: 600; font-size: 14px; opacity: .93; }
.hx-cd { position: absolute !important; right: 14px; top: 14px; min-width: 58px; padding: 8px 10px; border-radius: 16px; background: rgba(255,255,255,.22); text-align: center; line-height: 1; display: grid; gap: 3px; }
.hx-cd b { font-size: 26px; } .hx-cd b.w { font-size: 15px; } .hx-cd small { font-size: 11px; font-weight: 700; opacity: .9; }
.hx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hx-g { font-size: 13px; font-weight: 700; opacity: .95; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hx-acts { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.hx-acts button { padding: 10px 15px; border-radius: 14px; font-weight: 800; font-size: 14px; background: rgba(255,255,255,.2); color: #fff; border: 0; font-family: inherit; }
.hx-acts button.y { background: #fff; color: #4b3fd6; }
.hx-acts button.n { background: transparent; padding-inline: 8px; opacity: .85; }
.hx-acts .ag-cal { background: rgba(255,255,255,.2); padding: 8px 12px; }
.hx-hero .hx-pill { background: rgba(255,255,255,.22); color: #fff; }
.hx-pill { flex: none; padding: 6px 11px; border-radius: 999px; font-weight: 800; font-size: 12px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.hx-pill.ask { background: #FFF3D6; color: #B7700A; }
.hx-pill.ok { background: #E3F6EC; color: #0C8A56; }
.hx-pill.mine { background: var(--primary-soft); color: var(--primary); }
.hx-gs { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 8px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.hx-gs::-webkit-scrollbar { display: none; }
.hx-gp { flex: none; width: 70px; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; font-family: inherit; color: var(--ink); cursor: pointer; }
.hx-gc { position: relative; width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 4px 12px rgba(30,30,80,.12); font-size: 26px; }
.hx-gc img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.hx-gp.is-muted .hx-gc { opacity: .6; }
.hx-gp.pressed .hx-gc { transform: scale(.94); }
.hx-b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bday, #E5489B); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.hx-m { position: absolute; bottom: -4px; right: -4px; font-style: normal; font-size: 13px; }
.hx-gn { font-size: 12px; font-weight: 700; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-gp.add .hx-gc { background: transparent; border: 2px dashed #b9b9ee; box-shadow: none; color: var(--primary); font-size: 26px; }
.hx-pl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.hx-pl .ag-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hx-pl .ag-tx b { font-size: 15.5px; } .hx-pl .ag-tx small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hx-hh { display: flex; justify-content: space-between; align-items: center; }
.hx-hh .link { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 800; }
.hx-os { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.hx-os::-webkit-scrollbar { display: none; }
.hx-o { flex: none; width: 150px; display: grid; gap: 4px; justify-items: start; text-align: left; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); border: 0; font-family: inherit; color: var(--ink); cursor: pointer; }
.hx-oi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: hsl(var(--h, 250) 70% 92%); overflow: hidden; }
.hx-oi img { width: 100%; height: 100%; object-fit: cover; }
.hx-o b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-o small { color: var(--muted); font-size: 12px; font-weight: 600; }
.hx-o.add { background: transparent; box-shadow: none; border: 2px dashed #b9b9ee; color: var(--primary); }
.hx-o.add .hx-oi { background: var(--primary-soft); color: var(--primary); }
.hx .hub-top .actions-col { gap: 8px; }
.hx-gp { width: 78px; }
.hx-gn { max-width: 78px; white-space: normal; text-align: center; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-o.add b { white-space: normal; line-height: 1.2; }
.hx-gp, .hx-gp * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.hx-gc img { pointer-events: none; -webkit-user-drag: none; }
.hx-gn { line-height: 1.3; padding-bottom: 0; max-height: 2.6em; } /* el corte en 2 líneas va justo al borde: con relleno abajo, iPhone dejaba asomar la 3.ª línea («(prueba)» como dos puntitos) */
.hx-acts .ag-cal { width: auto; min-width: 38px; height: 38px; padding: 0 10px; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; line-height: 1; }
/* respuesta pendiente: mismo amarillo en Inicio y en las tarjetas de plan del grupo */
.chip.ask { background: #FFF3D6; color: #B7700A; font-weight: 800; }
.chip.mine { background: var(--primary-soft); color: var(--primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.ask, :root:not([data-theme="light"]) .hx-pill.ask { background: rgba(245,185,66,.18); color: #F5B942; } :root:not([data-theme="light"]) .hx-pill.ok { background: rgba(18,166,107,.2); color: #4ADE9B; } }
:root[data-theme="dark"] .chip.ask, :root[data-theme="dark"] .hx-pill.ask { background: rgba(245,185,66,.18); color: #F5B942; }
:root[data-theme="dark"] .hx-pill.ok { background: rgba(18,166,107,.2); color: #4ADE9B; }

/* ---- Recordarles / ¿Hubo gastos? / Primeros pasos / ¿Cuándo podemos? ---- */
.pn-nudge { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pn-nudge-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pn-nudge-tx b { font-size: 15px; } .pn-nudge-tx small { color: var(--muted); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-nudge-ok { flex: none; font-weight: 800; font-size: 13px; color: var(--ok); }
.pn-gxask { position: relative; display: grid; gap: 4px; justify-items: start; padding: 16px 44px 16px 16px; background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.pn-gxask b { font-size: 15.5px; } .pn-gxask small { color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.pn-gx-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.fs-card { position: relative; padding: 16px; display: grid; gap: 8px; }
.fs-x { position: absolute; top: 10px; right: 10px; }
.fs-h { display: flex; align-items: baseline; gap: 8px; padding-right: 30px; } .fs-h b { font-size: 16px; } .fs-h small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.fs-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; } .fs-bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .4s; }
.fs-step { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; background: none; text-align: left; color: var(--ink); font-family: inherit; border-radius: 12px; cursor: pointer; }
.fs-step:not(.done):hover { background: var(--surface-2); }
.fs-step .grow { display: grid; gap: 1px; } .fs-step b { font-size: 14.5px; } .fs-step small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fs-ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; }
.fs-step.done .fs-ck { background: var(--ok); border-color: var(--ok); }
.fs-step.done b { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.fs-go { color: var(--primary); font-weight: 800; font-size: 18px; }
.dp-when { margin-top: 8px; display: grid; gap: 6px; }
.dp-when-h { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.dp-when-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-chip.dp-sug { display: grid; gap: 1px; text-align: left; height: auto; padding: 7px 12px; line-height: 1.15; }
.dp-chip.dp-sug b { font-size: 13.5px; } .dp-chip.dp-sug small { font-size: 11.5px; font-weight: 700; opacity: .8; }

/* Inicio del grupo: como mucho 2 carteles a la vista */
.av-stack { display: grid; gap: 10px; }
.av-stack:not(.open) > .aviso:nth-of-type(n+3) { display: none; }
.av-more { justify-self: start; margin: -2px 4px 4px; padding: 4px 2px; border: 0; background: none; color: var(--primary); font-weight: 800; font-size: 13.5px; font-family: inherit; cursor: pointer; }
/* página del plan: «Voy» y calendario en una sola fila */
.resp-done b { flex: 1; }
.resp-done .pn-cal { flex: none; width: auto; min-width: 40px; height: 34px; padding: 0 10px; margin: 0 10px 0 0; border-radius: 12px; background: rgba(255,255,255,.7); display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 15px; }
.pn-roomhint { margin-top: 6px; }
/* Nuevo plan: lo secundario, plegado */
.ev-more-t { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: inherit; text-align: left; cursor: pointer; }
.ev-more-t > span:first-child { flex: 1; min-width: 0; display: grid; gap: 1px; } .ev-more-t b { font-size: 14.5px; } .ev-more-t small { color: var(--muted); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-more-t .chev { color: var(--muted); font-size: 20px; transition: transform .2s; } .ev-more-t.open .chev { transform: rotate(90deg); }
.rep-seg button { font-size: 12.5px; padding-inline: 4px; }
.pn-ih { display: inline-flex; align-items: center; gap: 8px; } .pn-ih.c { justify-content: center; }
.pn-ih svg, .pn-ih .i { width: 18px; height: 18px; flex: none; color: var(--primary); }
.ev-more-b .field > .hint { display: block; margin-bottom: 6px; }
/* página del plan: «Voy» destacado mientras no respondiste; menú ⋯ */
.seg.resp:not(:has(.on)) button[data-s=accepted] { background: var(--ok); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--ok) 30%, transparent); }
.pn-menu { font-size: 20px; line-height: 1; font-weight: 900; letter-spacing: 1px; }
.menu-item.danger b { color: var(--bad); }
/* tareas dentro del plan */
.pn-tk { padding: 14px 14px 10px; display: grid; gap: 8px; }
.pn-tk-h { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 15.5px; } .pn-tk-h small { color: var(--muted); font-weight: 700; }
.pn-tk .tk-add { box-shadow: none; border: 1px solid var(--line); margin: 0; }
.pn-tk .tk-prog { display: none; }
.pn-tk .card.empty { box-shadow: none; padding: 6px 0; }
.pn-tk { grid-template-columns: minmax(0, 1fr); }
.pn-tk .tk-g { background: transparent; border: 0; box-shadow: none; padding: 2px 0 0; }
.pn-tk .tk-add { padding: 6px 6px 6px 4px; }
.nav-panel .nav-in { grid-template-columns: repeat(2, 1fr) !important; }

/* Inicio del grupo: carteles en carrusel (uno a la vez) */
.av-car { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; scroll-padding: 0 16px; }
.av-car::-webkit-scrollbar { display: none; }
.av-car > .aviso { flex: 0 0 100%; scroll-snap-align: start; margin: 0; min-width: 0; }
.av-dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.av-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s, background .2s; }
.av-dots i.on { width: 16px; background: var(--primary); }
.pl-loose-l { align-self: flex-start; margin: 2px 4px 0; font-weight: 800; font-size: 14px; }
.av-car > .cartel { flex: 0 0 100%; scroll-snap-align: start; margin: 0; min-width: 0; }

/* Asistentes: las caras van pegadas a la flecha, a la derecha */
.pn-who .pn-stk + .chev { margin-left: 0; }

/* Mensaje del grupo: tarjeta blanca con etiqueta «📌 Mensaje del grupo»; el texto manda, el autor va debajo en gris */
.notes .note { position: relative; flex-direction: column; align-items: stretch; gap: 6px; background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20,20,60,.06); border-radius: 18px; padding: 12px 40px 12px 14px; }
.notes .note-h { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.notes .note-b { padding: 0; gap: 10px; align-items: flex-start; }
.notes .note-t { display: flex; flex-direction: column; gap: 2px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.notes .note-t b { order: -1; font-size: 13px; font-weight: 600; color: var(--muted); }
.notes .note-t .note-all { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.notes .note-x { position: absolute; top: 6px; right: 4px; color: var(--muted); }
/* Saldo: tarjeta, no una barra suelta */
.bal-pill { display: flex; width: 100%; align-items: center; gap: 10px; background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.06)); border-radius: 18px; padding: 12px 16px; margin: 0; font-size: 15px; color: var(--ink, inherit); box-shadow: 0 1px 3px rgba(20,20,60,.06); text-align: left; }
.bal-pill .bp-ic { font-size: 20px; }
.bal-pill .bp-l { flex: 1; font-weight: 600; color: var(--muted); }
.bal-pill b { font-size: 17px; font-weight: 800; }
.bal-pill .chev { font-size: 20px; color: var(--muted); margin-left: 2px; }
/* Calendario en el móvil: etiqueta corta en la barra */
.cf-bar .ls { display: none; }
@media (max-width: 1023px) { .cf-bar { padding: 0 3px; text-overflow: clip; } .cf-bar .lf { display: none; } .cf-bar .ls { display: inline; } }
/* En la vista de semana hay sitio: la barra muestra el texto completo */
.cf-wk .cf-bar .lf { display: inline !important; } .cf-wk .cf-bar .ls { display: none !important; }
/* Mientras cambia Mes ↔ Semana, la grilla se desliza por debajo de la cabecera y la leyenda */
.cf-cal.morphing { overflow: hidden; }
.cf-cal.morphing .cf-cal-head, .cf-cal.morphing .cf-dows, .cf-cal.morphing .cf-legend { position: relative; z-index: 2; background: var(--surface, #fff); }

/* Coherencia 22/10 */
.ev-date span { order: -1; text-transform: uppercase; font-size: 10px; letter-spacing: .04em; line-height: 1; margin-bottom: 1px; }
.bal-pill .bp-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, #1f9d6b 12%, var(--surface)); color: #1f9d6b; font-size: 0; }
.bal-pill.neg .bp-ic { background: color-mix(in srgb, #d4574a 12%, var(--surface)); color: #d4574a; }
.bal-pill .bp-ic svg, .bal-pill .bp-ic .i { width: 18px; height: 18px; }
.notes .note-h { display: inline-flex; align-items: center; gap: 6px; }
.notes .note-h svg, .notes .note-h .i { width: 14px; height: 14px; }
/* Semana en el móvil: agenda por día */
.cf-ag { display: flex; flex-direction: column; margin: 4px -4px 6px; }
.ag-day { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 10px 6px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: inherit; cursor: pointer; }
.ag-day:first-child { border-top: 0; }
.ag-d { flex: 0 0 42px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ag-d small { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.ag-d b { font-size: 19px; font-weight: 800; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; margin-top: 2px; }
.ag-day.today .ag-d b { background: var(--grad); color: #fff; }
.ag-items { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; min-height: 30px; align-items: center; }
.ag-none { color: var(--muted); opacity: .5; font-style: normal; }
.ag-chip { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 10px; line-height: 1.25; max-width: 100%; }
.ag-chip.plan { background: var(--grad); color: #fff; }
.ag-chip.plan.muchos { background: linear-gradient(135deg, var(--muchos), var(--muchos-2)); }
.ag-chip.away { background: color-mix(in srgb, var(--mc) 18%, var(--surface)); color: color-mix(in srgb, var(--mc) 78%, var(--ink)); }
.ag-chip.bd { background: color-mix(in srgb, #ec4899 14%, var(--surface)); color: color-mix(in srgb, #ec4899 75%, var(--ink)); }
.ag-chip.sp { background: color-mix(in srgb, #F59E0B 18%, var(--surface)); color: color-mix(in srgb, #B45309 85%, var(--ink)); }
.cf-agenda { display: flex; flex-direction: column; }
.cf-agenda .cf-ag { flex: 1; min-height: 0; overflow-y: auto; } .cf-agenda .ag-day { flex: 1 0 auto; align-items: center; padding: 6px; }
.hx-hero .hx-pill.mine { background: #fff; color: #5B5BF5; }

/* Hoy, fácil de encontrar: marco morado sobre la casilla (por encima de las barras) y su letra de la semana resaltada. */
.cf-cell.today { z-index: 3; background: color-mix(in srgb, var(--primary) 10%, transparent); box-shadow: inset 0 0 0 2px var(--primary); }
.cf-cell.today .n { box-shadow: 0 4px 10px rgba(91, 91, 245, .35); }
.cf-dows span.hoy { color: #fff; background: var(--grad); border-radius: 8px; margin: 0 6px; }

/* Mes | Semana arriba, antes del mes; abajo solo la leyenda, repartida a lo ancho. */
.cf-top { display: flex; justify-content: center; margin: 0 0 12px; }
.cf-top .cal-mode { margin: 0; }
.cf-cal .cf-legend { justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; padding: 10px 6px 0; }
.cf-cal .cf-legend span { white-space: nowrap; }
.cf-cal.morphing .cf-top { position: relative; z-index: 2; background: var(--surface, #fff); }

/* Mientras llegan los datos de un grupo que nunca se abrió: tarjetas grises que brillan, no un texto «Cargando…». */
.skel-w { display: grid; gap: 14px; padding-top: 6px; }
.skel { display: block; height: 96px; border-radius: 22px; background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, transparent) 50%, var(--line) 100%) 0 0 / 200% 100%; animation: skel 1.2s linear infinite; }
.skel.s { height: 56px; }
@keyframes skel { to { background-position: -200% 0; } }

/* Repintar la misma pantalla no vuelve a animar las tarjetas (antes el cartel del clima «titilaba» al entrar). */
#app.settled .aviso, #app.settled .cartel, #app.settled .note, #app.settled .poll-card, #app.settled .hub-card, #app.settled .wx-chip, #app.settled .asst-msg { animation: none; }

/* Respuesta inmediata al tocar: lo que se toca se aclara al instante (antes no pasaba nada hasta que cambiaba la pantalla). */
/* el que se toca de verdad (no el que está bajo el dedo al hacer scroll): lo marca la app con .pressed */
.pressed:not(:disabled) { opacity: .6; transition: opacity 0s; }
/* Cambiar de pestaña o de pantalla es instantáneo: sin la entrada escalonada de las tarjetas. */
.view.enter > * { animation: none; }
.st-ver { text-align: center; font-size: 11px; color: var(--muted); margin: 14px 0 0; opacity: .7; }

/* ===== Transiciones nuevas (Ajustes → «Transiciones nuevas») ===== */
/* la pantalla anterior, apartada mientras se mueve (es la de verdad, no una foto) */
.fx-old { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); will-change: transform; }
.fx-old.top { z-index: 60; box-shadow: -12px 0 32px rgba(10, 12, 30, .14); }
.fx-old .fx-in { position: absolute; }
html.fx #app { will-change: auto; }
html.fx body { background: var(--bg); }
/* tocar: lo que tocas se hunde un poco y rebota al soltar */
html.fx [data-act]:not(input):not(select):not(textarea), html.fx .nav button { transition: transform .38s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
html.fx .pressed:not(:disabled) { opacity: 1; transform: scale(.965); transition: transform .08s ease-out; }
html.fx .hx-hero.pressed, html.fx .card.pressed, html.fx .hub-card.pressed { transform: scale(.985) !important; }
.fx-old * { animation: none !important; }

/* ===== Página del plan y Editar plan (revisión) ===== */
/* tu respuesta va suelta, sin tarjeta alrededor (antes quedaba un hueco blanco encima) */
.panel .pn-card:not(:has(.who-group, .warn, .quorum, .hint)) { background: none; box-shadow: none; border: 0; padding: 0; }
.panel .pn-card:not(:has(.who-group, .warn, .quorum, .hint)) .resp-done { margin: 0; padding: 14px 14px 14px 18px; border-radius: 18px; }
/* iconos de línea en vez de emojis */
.pn-time { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pn-time svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pn-where .pin svg.i { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; display: block; }
.resp-done .pn-cal { gap: 6px; font: inherit; font-size: 13px; font-weight: 800; color: inherit; }
.resp-done .pn-cal svg.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* organiza, con su foto */
.pn-org { display: flex; align-items: center; gap: 8px; }
.pn-adddesc { align-self: flex-start; border: 1.5px dashed var(--line); background: none; border-radius: 12px; padding: 9px 12px; color: var(--primary); font: inherit; font-weight: 700; font-size: 14px; margin-top: 2px; }
/* adelanto del chat */
.pn-chat { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 16px; font: inherit; color: inherit; border: 0; width: 100%; }
.pn-chat-h { display: flex; align-items: center; justify-content: space-between; }
.pn-chat-h .ch-badge { position: static; }
.pn-chm { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.35; }
.pn-chm b { font-weight: 800; }
.pn-chm span { min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn-chat-empty { font-size: 14px; color: var(--muted); }
.pn-chat-in { display: block; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 14px; }
/* Plan | Gastos arriba, como Mes | Semana; sin barra de abajo en el móvil */
.pn-seg { margin: 4px 16px 6px; }
.pn-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pn-seg svg.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1023px) {
  #app[data-tab=plan] .nav-panel { display: none; }
  #app[data-tab=plan] .view { padding-bottom: calc(env(safe-area-inset-bottom) + 110px); }
  #app[data-tab=plan] .fab, #app[data-tab=plan] .ch-fab:not(.hd) { bottom: calc(env(safe-area-inset-bottom) + 24px); }
}
@media (min-width: 1024px) { .pn-seg { display: none; } }
/* Editar / nuevo plan: «Guardar» siempre a la vista, y cómo lo va a buscar Maps */

.maps-hint { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.maps-hint:empty { display: none; }
.maps-hint svg.i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.pn-chat-h .pn-ih { font-weight: 800; font-size: 16px; }

/* ===== Gastos dentro del plan (revisión) ===== */
.gx-empty2 { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 32px 22px; }
.gx-empty2 .gx-e-ic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.gx-empty2 .gx-e-ic svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gx-empty2 b { font-size: 18px; font-weight: 800; }
.gx-empty2 p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 280px; }
.gx-sum { display: grid; gap: 4px; padding: 20px 20px 18px; color: #fff; background: var(--grad); border: 0; }
.gx-sum.pos { background: linear-gradient(135deg, #1f9d6a, #34c38f); }
.gx-sum.neg { background: linear-gradient(135deg, #e5484d, #f2777a); }
.gx-sum-l { font-size: 13px; font-weight: 700; opacity: .85; }
.gx-sum-v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.gx-sum-s { font-size: 14px; font-weight: 600; opacity: .9; }
.gx-settle { padding: 6px 16px; }
.gx-settle .pay-row + .pay-row { border-top: 1px solid var(--line); }
.panel.pn-gastos { padding-bottom: calc(env(safe-area-inset-bottom) + 120px); }
/* el chat de arriba, como los demás botones de la cabecera (blanco), no un círculo morado */
.ch-fab.hd { background: var(--surface); color: var(--primary); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; width: 44px; height: 44px; }
/* Editar plan: «Guardar» fijo abajo sobre una franja con el fondo de la hoja (no tapa ni se mezcla con lo de detrás) */
.ev-save { position: sticky; bottom: calc(-1 * (env(safe-area-inset-bottom) + 24px)); z-index: 3; margin: 6px 0 calc(-1 * (env(safe-area-inset-bottom) + 24px)); padding: 18px 0 calc(env(safe-area-inset-bottom) + 24px); background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 26%); }
.ev-save .btn { box-shadow: 0 10px 24px rgba(91, 91, 245, .28); }
textarea.autogrow { resize: none; overflow-y: auto; }
.gx-empty2 .gx-e-ic svg.i { width: 30px; height: 30px; }
/* Inicio sin grupos: el plan va primero y destacado; el grupo, al lado; unirse con código, más discreto. */
.gate-card .gate-go { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--muted); }
.gate-card.hero { background: linear-gradient(135deg, #4B4BE8, #9B5FF0); color: #fff; border: 0; box-shadow: 0 14px 30px rgba(75, 75, 232, .32); padding: 20px 18px; }
.gate-card.hero small { color: rgba(255, 255, 255, .86); }
.gate-card.hero .gate-ic { background: rgba(255, 255, 255, .18); }
.gate-card.hero .gate-go { color: #FFD66B; }
.split-row[hidden] { display: none; }

/* carrusel de carteles: sin asomar el cartel de al lado; en la compu, flechas junto a los puntos (no tapan la X del cartel) */
.av-car { gap: 16px; }
.av-nav { display: none; }
.av-dots { align-items: center; }
.av-dots i { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .av-car { margin: 0; padding: 0; scroll-padding: 0; }
  .av-dots { gap: 8px; margin-top: 2px; }
  .av-nav { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; }
  .av-nav:hover { border-color: var(--primary); color: var(--primary); }
}

/* ---------- Inicio general: «Tu semana» (franja de arriba), «Te invitan» y, en la compu, dos columnas ---------- */
.tw { position: relative; margin-top: 18px; background: var(--grad); border-radius: 26px; padding: 14px 12px; color: #fff; box-shadow: 0 16px 34px rgba(91, 91, 245, .26); }
.tw-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.tw-h h2 { margin: 0; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .88); text-transform: none; letter-spacing: 0; }
.tw-tools { display: flex; align-items: center; gap: 6px; }
.tw-cd { font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 11px; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.tw-nav { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font: 700 16px/1 inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tw-nav:disabled { opacity: .35; cursor: default; }
.tw-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.tw-d { border-radius: 16px; background: rgba(255, 255, 255, .13); padding: 7px 0 8px; min-height: 76px; display: flex; flex-direction: column; align-items: center; cursor: pointer; color: #fff; -webkit-tap-highlight-color: transparent; }
.tw-wd { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.tw-n { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.tw-dots { margin-top: auto; display: flex; gap: 3px; min-height: 6px; }
.tw-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tw-dots i.q { background: var(--sun); }
.tw-dots i.f { background: rgba(255, 255, 255, .5); }
.tw-d.today { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 3px var(--sun); }
.tw-d.today .tw-wd { color: var(--muted); }
.tw-d.today .tw-dots i { background: var(--primary); }
.tw-d.today .tw-dots i.q { background: var(--sun); }
.tw-d.sel:not(.today) { background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 2px #fff; }
.tw-d.past { opacity: .5; }
.tw-hoy { display: none; }
.tw-evs { display: none; }
.tw-sel { margin-top: 12px; display: grid; gap: 7px; }
.tw-sel-h { margin: 0 4px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.tw-row { width: 100%; border: 0; text-align: left; font: inherit; background: var(--surface); color: var(--ink); border-radius: 15px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tw-rt { min-width: 0; }
.tw-rt b { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-rt small { display: block; font-size: 12px; color: var(--muted); }
.tw-st { margin-left: auto; flex: none; font-style: normal; font-size: 11.5px; font-weight: 700; border-radius: 9px; padding: 3px 9px; white-space: nowrap; border: 0; font-family: inherit; }
.tw-st.ok { background: #E5F7EE; color: #12804B; }
.tw-st.ask { background: var(--sun-soft, #FFF3D6); color: #9A6A00; cursor: pointer; }
.tw-st.soft { background: var(--surface-2); color: var(--ink); }
.tw-st.mine { background: var(--primary-soft); color: var(--primary); }
.tw-row.is-free, .tw-row.is-mark { background: rgba(255, 255, 255, .18); color: #fff; }
.tw-row.is-free .tw-rt small, .tw-row.is-mark .tw-rt small { color: rgba(255, 255, 255, .85); }
.tw-free { margin-top: 12px; display: grid; place-items: center; }
.tw-free > div { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 16px 18px; text-align: center; width: 100%; box-shadow: 0 10px 26px rgba(20, 21, 43, .16); }
.tw-free b { display: block; font-size: 17px; font-weight: 800; }
.tw-free span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.tw-free .btn { margin-top: 12px; }
.hx-main { display: block; }
.hx-inv { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; cursor: pointer; }
.hx-inv > b { display: block; font-size: 16px; font-weight: 700; }
.hx-inv > small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.hx-inv-b { display: flex; gap: 8px; margin-top: 12px; }
.hx-inv-b button { flex: 1; border: 0; border-radius: 13px; padding: 10px 0; font: 700 14px/1 inherit; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.hx-inv-b button.y { background: var(--grad); color: #fff; }
.hx-mi img { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; }
@media (min-width: 1024px) {
  #app[data-view="hub"] { max-width: none; }
  .hub.hx { max-width: 1200px; padding: 44px 48px 80px; }
  .hub.hx .hub-top h1 { font-size: clamp(44px, 4.2vw, 60px); }
  .hub.hx .hub-top h1 br { display: none; }
  .tw { margin-top: 26px; padding: 20px 22px 22px; border-radius: 30px; }
  .tw-days { gap: 10px; margin-top: 14px; }
  .tw-d { min-height: 216px; padding: 12px 10px 10px; align-items: stretch; cursor: default; }
  .tw-wd { font-size: 13.5px; }
  .tw-hoy { display: inline; }
  .tw-n { font-size: 40px; }
  .tw-dots { display: none; }
  .tw-d.sel:not(.today) { background: rgba(255, 255, 255, .13); box-shadow: none; }
  .tw-evs { display: grid; gap: 6px; margin-top: auto; }
  .tw-ev { border: 0; text-align: left; font: inherit; background: var(--surface); color: var(--ink); border-radius: 13px; padding: 7px 9px; cursor: pointer; }
  .tw-d.today .tw-ev { background: var(--surface-2); }
  .tw-ev b { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tw-ev small { display: block; font-size: 11.5px; color: var(--muted); }
  .tw-ev .tw-st { display: inline-block; margin: 5px 0 0; font-size: 11px; padding: 2px 7px; }
  .tw-mark { display: block; border-radius: 13px; padding: 7px 9px; background: rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 700; line-height: 1.25; }
  .tw-mark small { display: block; font-weight: 500; opacity: .85; }
  .tw-d.today .tw-mark { background: var(--surface-2); }
  .tw-more { border: 0; background: none; color: #fff; font: 700 12px inherit; text-align: left; padding: 2px 4px; cursor: pointer; }
  .tw-d.today .tw-more { color: var(--primary); }
  .tw-add { display: none; border: 0; border-radius: 12px; padding: 8px 6px; background: var(--surface); color: var(--primary); font: 700 12.5px inherit; cursor: pointer; }
  .tw-d:hover .tw-add { display: block; }
  .tw-d.today .tw-add { background: var(--primary-soft); }
  .tw-sel { display: none; }
  .tw-free { position: absolute; inset: 64px 22px 22px; margin: 0; pointer-events: none; }
  .tw-free > div { pointer-events: auto; width: auto; max-width: 380px; padding: 18px 26px; }
  .tw.is-empty .tw-d:not(.today) .tw-n, .tw.is-empty .tw-d:not(.today) .tw-wd { opacity: .55; }
  .tw.is-empty .tw-add { display: none !important; }
  .hub.hx .hx-ask { margin-top: 16px; }
  .hx-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "inv list" "groups list" "sg list"; column-gap: 40px; align-items: start; margin-top: 8px; }
  .hx-s-groups { grid-area: groups; } .hx-s-inv { grid-area: inv; } .hx-s-list { grid-area: list; } .hx-s-loose { grid-area: loose; }
  .hx-main:not(:has(.hx-s-inv)) { grid-template-areas: "groups list" "sg list" "sg list"; }
}

.tw small, .tw-wd, .tw-sel-h { text-transform: none; letter-spacing: 0; }
.tw-h h2 { white-space: nowrap; }
.tw-cd { max-width: 150px; }
.hx-main > .hx-sec { margin-top: 26px; }
@media (min-width: 1024px) {
  .tw-cd { max-width: 340px; }
  .hx-main { margin-top: 30px; row-gap: 30px; }
  .hx-main > .hx-sec { margin-top: 0; }
}
@media (max-width: 1023px) { .hx-pl .ag-cal { display: none; } }

/* ---------- Link de un plan abierto en Safari (iPhone, sin sesión) ---------- */
.sf { min-height: 100dvh; padding-bottom: 40px; }
.sf-hero { background: var(--grad); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 26px) 22px 72px; border-radius: 0 0 34px 34px; }
.sf-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.sf-brand img { width: 38px; height: 38px; border-radius: 11px; }
.sf-hero p { margin: 14px 0 0; font-size: 15px; color: rgba(255, 255, 255, .92); }
.sf-card { margin: -50px 16px 0; background: var(--surface); border-radius: 26px; padding: 20px; box-shadow: 0 16px 36px rgba(20, 21, 43, .14); position: relative; display: grid; gap: 10px; }
.sf-pv { display: flex; gap: 14px; align-items: center; }
.sf-ic { width: 58px; height: 58px; border-radius: 18px; background: var(--sun-soft, #FFF3D6); display: grid; place-items: center; font-size: 30px; flex: none; overflow: hidden; }
.sf-ic img { width: 58px; height: 58px; }
.sf-pv small { display: block; color: var(--muted); font-size: 12.5px; }
.sf-pv b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.sf-meta { display: grid; gap: 5px; font-size: 14px; margin-bottom: 4px; }
.sf-card .btn + .btn { margin-top: 0; }
.sf-inst { justify-self: center; margin-top: 4px; font-weight: 600; }
.sf-note { margin: 18px 24px 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.sf-steps { margin: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.sf-steps h3 { margin: 0 0 8px; font-size: 17px; }
.sf-st { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 14.5px; }
.sf-st i { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-style: normal; font-weight: 800; display: grid; place-items: center; flex: none; }
.sf-home { display: flex; gap: 16px; padding: 6px 0 6px 40px; align-items: flex-start; }
.sf-app { display: grid; justify-items: center; gap: 4px; font-size: 11px; }
.sf-app i, .sf-app img { width: 50px; height: 50px; border-radius: 13px; display: block; }
.sf-app.on img { box-shadow: 0 0 0 3px var(--sun); }
.sf-steps .btn { margin-top: 10px; }
.jp-app { margin: 12px 4px 0; font-size: 13px; color: var(--muted); text-align: center; }
/* mensaje nuevo con la app abierta: cartelito arriba, se toca y abre el chat */
#live-msg { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 300; display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; padding: 12px 14px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(20,21,43,.18); text-align: left; font-size: 14px; transform: translateY(-140%); opacity: 0; transition: transform .35s var(--spring, ease), opacity .25s; }
#live-msg.on { transform: none; opacity: 1; }
#live-msg .lm-av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad, var(--primary)); color: #fff; font-weight: 800; font-size: 17px; }
#live-msg .lm-tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
#live-msg .lm-w { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#live-msg .lm-n { font-size: 14.5px; } #live-msg .lm-m { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---- Formulario de plan, limpio: invitados en una fila, lugar sin sugerencias a la vista, varios días como interruptor ---- */
.ev-invrow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 11px 12px; font-family: inherit; color: var(--ink); cursor: pointer; }
.ev-invrow.is-loading { cursor: default; }
.ev-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--primary-soft); display: grid; place-items: center; font-size: 16px; }
.ev-invtx { flex: 1; min-width: 0; display: grid; gap: 1px; } .ev-invtx b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-invtx small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-invrow .stack { flex: none; } .ev-invrow .stack .avatar { --s: 24px !important; }
.ev-go { flex: none; color: var(--primary); font-weight: 800; font-size: 13px; }
.ev-invlist { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 12px; max-height: 300px; overflow-y: auto; }
.ev-invh { padding: 6px 0 8px; font-size: 13px; border-bottom: 1px solid var(--line); }
.ev-pr { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.ev-pr:last-child { border-bottom: 0; } .ev-pr span { flex: 1; } .ev-pr:disabled { opacity: .55; }
.ev-pr .ck { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: #fff; }
.ev-pr.on .ck { background: var(--primary); border-color: var(--primary); }
.ev-multi { display: flex; align-items: center; gap: 10px; width: 100%; margin: -4px 0 14px; padding: 8px 2px; background: none; border: 0; font-family: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ev-multi span { flex: 1; font-size: 13.5px; } .ev-multi small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.ev-multi .tg { width: 40px; height: 24px; flex: none; border-radius: 12px; background: var(--line); position: relative; transition: background .2s; }
.ev-multi .tg::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.ev-multi.on .tg { background: var(--primary); } .ev-multi.on .tg::after { left: 19px; }
.ev-pin { position: relative; display: flex; align-items: center; }
/* Etiqueta adentro del campo («Qué hacemos», «Cuándo», «Dónde»): sin títulos sueltos encima. */
.field.fl { position: relative; }
.field.fl > label { position: absolute; left: 15px; top: 8px; z-index: 2; font-size: 11.5px; line-height: 1.2; pointer-events: none; }
.field.fl:focus-within > label, .field.fl.dp.open > label { color: var(--primary); }
.field.fl > input, .field.fl .ev-pin input { min-height: 58px; padding-top: 25px; padding-bottom: 8px; font-size: 16px; font-weight: 600; }
.field.fl > input::placeholder, .field.fl .ev-pin input::placeholder { font-weight: 500; }
.field.fl.dp > label { left: 46px; }
.field.fl .dp-btn { min-height: 58px; padding-top: 17px; padding-bottom: 5px; }
.field.fl .dp-btn svg:first-child { margin-top: -12px; }
.field.fl .dp-btn .dd-chev { margin-top: -12px; }
.field.fl .ev-vcb { margin-top: 0; }
.ev-pin input { flex: 1; padding-right: 44px; }
.ev-px { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--mist); color: var(--muted); font-size: 13px; cursor: pointer; }
.ev-wh { display: flex; flex-direction: column; gap: 8px; }
.ev-wl { font-size: 13px; font-weight: 700; color: var(--muted); }
.ev-px[hidden] { display: none; }
.ev-where { margin: 0; }
.ev-tz { margin: 8px 0 0; background: #FFF7E8; color: #7A5200; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.ev-tz[hidden] { display: none; }
.pn-tz { font-size: 12px; font-weight: 600; color: var(--muted); }
.pn-tzo { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; } .ev-where button { font-size: 13.5px; }
.ev-vcb { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--primary-soft); color: var(--primary); font: 700 12.5px/1 inherit; border-radius: 10px; padding: 8px 10px; cursor: pointer; white-space: nowrap; }
.ev-sugs[hidden] { display: none !important; }
.ev-sugs .place-chips { margin-top: 8px; }
.ev-vc { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--primary); border-radius: 16px; padding: 11px 12px; }
.ev-vc > span:nth-child(2) { flex: 1; display: grid; } .ev-vc b { font-size: 14.5px; } .ev-vc small { color: var(--muted); font-size: 12px; }
.ev-x { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 0; background: var(--mist, #F4F5FB); color: var(--muted); font-size: 14px; cursor: pointer; }
.ev-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 12px; }
.ev-links .link-btn { font-weight: 700; font-size: 14px; }
.ev-links .ev-more-t { display: inline; background: none; border: 0; padding: 0; box-shadow: none; width: auto; color: var(--primary); }
.ev-links .ev-more-t small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.ev-pr .avatar { flex: none !important; width: var(--s, 32px) !important; height: var(--s, 32px) !important; }
/* Invitar: los grupos como etiquetas (se ven enteras, pasan a otra línea si no entran) */
.ct-gs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.ct-g { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 7px 11px; font: 700 13px/1.1 inherit; cursor: pointer; }
.ct-g.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.ct-gh { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ct-gh .link-btn { font-weight: 800; }
/* Quién lo ve, a la vista */
.ev-who2 { margin: -4px 0 14px; display: grid; gap: 6px; }
.ev-who2 .seg { margin: 0; } .ev-who2 .hint { margin: 0 2px; }
.ev-mu { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 2px; }
.ev-mu input { width: 18px; height: 18px; accent-color: var(--primary); }
/* ¿Cuándo podemos?: chips chicos en una línea */
form[data-form="event"] .dp-when { margin-top: 8px; }
form[data-form="event"] .dp-when-row { display: flex; flex-wrap: wrap; gap: 6px; }
form[data-form="event"] .dp-when .dp-sug { padding: 6px 10px; border-radius: 12px; display: inline-flex; align-items: baseline; gap: 5px; }
form[data-form="event"] .dp-when .dp-sug b { font-size: 13px; } form[data-form="event"] .dp-when .dp-sug small { font-size: 11.5px; }
/* plan a medio armar */
.pn-empty { text-align: center; padding: 28px 20px; display: grid; gap: 10px; justify-items: center; }
.pn-empty-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--primary-soft); display: grid; place-items: center; font-size: 26px; }
.pn-empty h2 { font-size: 19px; margin: 0; } .pn-empty p { margin: 0 0 6px; }
.pn-empty .btn { width: 100%; }
.pn-empty h2 { letter-spacing: -.01em !important; text-transform: none !important; color: var(--ink) !important; font-weight: 800; line-height: 1.2; }
/* hora y varios días: dos botones chicos debajo de la fecha */
.ev-mini { display: flex; gap: 8px; margin: -4px 0 14px; }
.ev-mb { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 11px 8px; font: 700 13.5px/1.1 inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-mb.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.ev-mb i { font-style: normal; margin-left: 4px; opacity: .7; }
.ev-times { margin-top: -6px; }
/* Más opciones: una fila */
.ev-morerow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 11px 12px; font-family: inherit; color: var(--ink); cursor: pointer; margin: 2px 0 12px; }
.ev-morerow.open { border-color: var(--primary); }
.ev-morerow .chev { margin-left: auto; color: var(--muted); font-size: 16px; }
.ev-vis button { white-space: nowrap; }

/* Monedas: banderita + código + nombre; buscador en «Tu moneda» */
.cur-q { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); font: inherit; font-size: 16px; margin-bottom: 10px; }
.cur-row { gap: 10px; } .cur-row .flag, .dd-opt .flag, .dd-val .flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.flag-none { display: inline-block; background: var(--line); }
.cur-row .muted { flex: 1; font-weight: 500; } .cur-row[hidden] { display: none !important; }
.cur-none { padding: 14px; }
.cur-list { min-height: 58vh; } /* al buscar, la hoja no salta de tamaño */

.tw-dots.tw-emo { font-size: 11px; line-height: 1; height: 12px; } /* día especial (🎃, 🎉): el emoji chiquito */
.st-row:has(.st-tx > span) { padding-block: 13px; }

/* ---------- onboarding en pantallas grandes: ocupa toda la pantalla, texto a la izquierda y lo que se ve a la derecha ---------- */
@media (min-width: 900px) {
  .ob.ob-story { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 540px); grid-template-areas: "t v" "s v" "f v"; column-gap: clamp(56px, 7vw, 120px); justify-content: center; align-content: center; align-items: center; margin: 0; max-width: none; width: 100%; min-height: 100dvh; padding: 104px clamp(32px, 6vw, 120px) 40px; border-radius: 0; box-shadow: none; }
  .ob-story > .ob-bar { position: absolute; top: 34px; left: clamp(32px, 6vw, 120px); right: clamp(32px, 6vw, 120px); max-width: 1100px; margin: 0 auto; }
  .ob-story > h1 { grid-area: t; align-self: end; margin: 0; text-align: left; font-size: clamp(40px, 3.6vw, 58px); line-height: 1.06; letter-spacing: -1.2px; }
  .ob-story > .sub { grid-area: s; align-self: start; margin: 18px 0 0; text-align: left; font-size: 20px; line-height: 1.45; max-width: 30ch; }
  .ob-story > .ob-visual { grid-area: v; margin: 0; zoom: 1; align-self: center; }
  .ob-story > .ob-foot { grid-area: f; align-self: start; margin: 34px 0 0; padding: 0; }
  .ob-story > .ob-foot .ob-btn { max-width: 320px; }
  .ob.ob-form, .ob.ob-gate { margin: 0; max-width: none; width: 100%; min-height: 100dvh; border-radius: 0; box-shadow: none; padding-left: max(24px, calc((100vw - 520px) / 2)); padding-right: max(24px, calc((100vw - 520px) / 2)); padding-top: 48px; }
  .ob.ob-form h1 { font-size: 40px; }
}
@media (min-width: 900px) {
  #app:has(> .ob-story), #app:has(> .ob-form), #app:has(> .ob-gate) { max-width: none; width: 100%; }
}

/* escritorio: la pantalla de entrar/crear cuenta no deja franjas de otro color detrás */
@media (min-width: 900px) { html:has(.auth-hero) { background-image: none; background-color: var(--bg); } }

/* «Cómo pagarle»: dato de cobro con botón de copiar */
.pay-how { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 14px; border-radius: 18px; background: var(--primary-soft, #eceaff); border: 1px solid var(--line); }
.pay-how-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-how-tx small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pay-how-tx b { font-size: 17px; letter-spacing: .01em; overflow-wrap: anywhere; }
.tc-in { flex: 1; min-width: 0; text-align: right; border: 0; background: transparent; font: inherit; color: inherit; outline: none; }

.pay-how-tx em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.pay-how-tx b { font-size: 19px; font-weight: 800; }
.tc-pay { display: block; padding: 14px 0; }
.pay-form { display: block; }
.pay-h { font-weight: 700; margin-bottom: 10px; } .pay-h small { color: var(--muted); font-weight: 500; }
.pay-kseg { margin-bottom: 10px; }
.pay-in { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); font: inherit; font-size: 17px; font-weight: 600; text-align: left; }
.pay-sv { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); }

/* Cobro en una línea (opción A) */
.pay-line { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--line); }
.pay-line em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary, #5b5bf0); }
.pay-line b { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pay-line .btn { flex: none; border-radius: 999px; }
.pay-line b { color: var(--text, #14142b); }
.rec-user { font: 800 22px/1.3 ui-monospace, Menlo, monospace; text-align: center; padding: 12px; margin-bottom: 12px; border-radius: 16px; background: var(--card, rgba(128,128,128,.1)); user-select: all; word-break: break-all; }
.hito-av { display: inline-flex; } .hito-av > * + * { margin-left: -8px; }
.split-row input.w.auto { color: var(--muted, #8a8aa6); font-style: italic; }
