/* DonKodigo · app. Misma identidad que el sitio: fondo ciruela profundo, durazno como acento,
   azul de la camisa del Don, Open Sans + JetBrains Mono. Principio: una idea por bloque, mucho aire. */
:root {
  --ciruela: #4B0A2F; --durazno: #FFDFB8; --azul: #1943AA; --verde: #9EE6B8;
  --fondo: #170410; --fondo-2: #1E0616; --panel: #2A0A20; --panel-2: #34102A;
  --linea: rgba(255, 223, 184, .13); --texto: #F7E9EF; --texto-2: #C9AEBC; --texto-3: #8F7282;
  --ok: #9EE6B8; --warn: #FFC977; --bad: #FF8F86;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 18px; --tap: 50px;
  --titulo: #FFFFFF; --barra: rgba(23, 4, 16, .9); --fuente: 'Open Sans'; --link: var(--durazno);
  color-scheme: dark;
}
/* Tema claro (lo elige cada negocio en «Tu marca») */
:root[data-brand-theme="claro"] {
  --fondo: #F6F4F2; --fondo-2: #FFFFFF; --panel: #FFFFFF; --panel-2: #F0ECEE;
  --linea: rgba(30, 20, 26, .12); --texto: #1E1A1D; --texto-2: #5E565B; --texto-3: #958A90;
  --titulo: #1A1418; --barra: rgba(255, 255, 255, .92); --verde: #1F7A4D; --ok: #1F7A4D; --warn: #9A5B00; --bad: #B3261E;
  color-scheme: light;
}
:root[data-brand-theme="claro"] .info { color: #13317E; background: #E8EEFB; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font: 17px/1.45 var(--fuente), 'Open Sans', system-ui, -apple-system, sans-serif; -webkit-text-size-adjust: 100%; }
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; margin: 4px 0 6px; color: var(--titulo); text-wrap: balance; }
h2 { font-size: .78rem; font-family: var(--mono); font-weight: 500; color: var(--verde); letter-spacing: .02em; margin: 30px 4px 10px; }
h2::before { content: "> "; opacity: .7; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; color: var(--titulo); }
.muted { color: var(--texto-2); }
.small { font-size: .88rem; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--durazno); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: var(--barra); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--linea); padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 12px; }
.top .biz { flex: 1; min-width: 0; }
.top .biz b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; color: var(--titulo); }
.top .biz span { font-size: .78rem; color: var(--texto-2); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel); color: var(--link); display: grid; place-items: center; position: relative; cursor: pointer; }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn .dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--durazno); color: var(--ciruela); font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.badge { display: inline-block; font: 600 .72rem/1.6 'Open Sans', sans-serif; padding: 1px 9px; border-radius: 999px; background: var(--panel-2); color: var(--texto-2); vertical-align: middle; white-space: nowrap; }
.badge.demo { background: rgba(255, 223, 184, .14); color: var(--link); }
.badge.ok { background: rgba(158, 230, 184, .14); color: var(--ok); }
.badge.warn { background: rgba(255, 201, 119, .14); color: var(--warn); }
.badge.bad { background: rgba(255, 143, 134, .15); color: var(--bad); }
.badge.plum { background: rgba(255, 223, 184, .1); color: var(--link); }

/* Avatar del Don (isotipo sobre durazno) */
.dk-mark { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--durazno) url(brand/Isotipo_ciruela.svg) center / 70% no-repeat; box-shadow: 3px 3px 0 var(--azul); font-size: 0; color: transparent; }
.dk-mark.sm { width: 38px; height: 38px; box-shadow: 2px 2px 0 var(--azul); }

main { max-width: 860px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
.grid2 { display: grid; gap: 0 16px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } main { padding-top: 28px; } }

/* Tarjetas y listas agrupadas */
.card { background: var(--panel); border-radius: var(--r); padding: 18px; margin-bottom: 12px; border: 1px solid var(--linea); }
.card.plain { background: transparent; }
.list { background: var(--panel); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--linea); }
.row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; min-height: 62px; border-top: 1px solid var(--linea); text-decoration: none; color: inherit; }
.row:first-child { border-top: 0; }
a.row:active, .row a.main:active { background: var(--panel-2); }
.row .main { flex: 1; min-width: 0; }
.row .main b { display: block; font-weight: 600; color: var(--texto); }
.row .main .sub { display: block; font-size: .85rem; color: var(--texto-2); margin-top: 2px; }
.row .amt { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; color: var(--titulo); }
.row.done .main b { text-decoration: line-through; color: var(--texto-3); }
.chev::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--texto-3); border-top: 2px solid var(--texto-3); transform: rotate(45deg); margin-left: 4px; }
.check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--texto-3); background: transparent; flex: none; cursor: pointer; display: grid; place-items: center; font-size: .9rem; color: transparent; padding: 0; }
.check.on { background: var(--verde); border-color: var(--verde); color: var(--ciruela); }
.empty { text-align: center; color: var(--texto-2); padding: 22px 16px; margin: 0; }
.empty-don { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 16px; }
.empty-don img { width: 110px; height: auto; }
.empty-don p { margin: 0; color: var(--texto-2); }

/* Hoy */
.hello { display: flex; gap: 14px; align-items: flex-end; }
.hello .don { width: 92px; flex: none; margin-bottom: -6px; }
.hello .don img { width: 100%; height: auto; display: block; }
.hello h1 { margin: 0; font-size: clamp(1.6rem, 6.4vw, 2.2rem); }
.hello .muted { font-family: var(--mono); font-size: .8rem; color: var(--verde); }
.globo { display: inline-block; background: var(--durazno); color: var(--ciruela); font-weight: 700; padding: 10px 16px; border-radius: 16px 16px 16px 4px; margin-top: 8px; font-size: 1rem; }
.prio { padding: 16px 18px; }
.prio .n { font: 500 .72rem var(--mono); color: var(--verde); }
.prio h3 { font-size: 1.12rem; margin-top: 4px; }
.prio .why { margin: 4px 0 12px; color: var(--texto-2); font-size: .95rem; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--r); padding: 14px 16px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 92px; text-decoration: none; color: var(--texto); }
.tile b { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--titulo); font-variant-numeric: tabular-nums; }
.tile span { font-size: .88rem; color: var(--texto-2); }
.tile.on { background: var(--durazno); border-color: var(--durazno); }
.tile.on b, .tile.on span { color: var(--ciruela); }
.tile.alert b { color: var(--bad); }
.tile.on.alert b { color: var(--ciruela); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--r); padding: 14px; }
.kpi span { font-size: .78rem; color: var(--texto-2); display: block; }
.kpi b { font-size: 1.15rem; font-variant-numeric: tabular-nums; display: block; margin-top: 4px; color: var(--titulo); word-break: break-word; }
@media (min-width: 560px) { .kpi b { font-size: 1.55rem; } }
.ask { display: flex; gap: 8px; margin: 18px 0 4px; }
.ask input { flex: 1; }

/* Botones (píldora, como en el sitio) */
.btn { min-height: var(--tap); padding: 12px 22px; border-radius: 999px; border: 2px solid var(--durazno); background: var(--durazno); color: var(--ciruela); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--azul); }
.btn:active { transform: none; box-shadow: none; }
.btn.sec, .btn.ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn.ghost { border-color: var(--linea); }
.btn.ok { background: var(--verde); border-color: var(--verde); color: var(--ciruela); }
.btn.blue { background: var(--azul); border-color: var(--azul); color: #fff; }
.btn.danger { background: transparent; border-color: rgba(255, 143, 134, .5); color: var(--bad); }
.btn.block { width: 100%; }
.btn.sm { min-height: 42px; padding: 7px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
label { display: block; font-size: .85rem; font-weight: 600; margin: 14px 0 6px; color: var(--texto-2); }
input, select, textarea { width: 100%; min-height: var(--tap); padding: 12px 14px; border: 1px solid var(--linea); border-radius: 14px; background: var(--fondo-2); font-size: 16px; color: var(--texto); }
input::placeholder, textarea::placeholder { color: var(--texto-3); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--durazno); box-shadow: 0 0 0 3px rgba(255, 223, 184, .18); }
select:disabled { opacity: .6; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { background: rgba(255, 143, 134, .12); color: var(--bad); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: .92rem; }
.info { background: rgba(25, 67, 170, .25); color: #DCE5FF; border-radius: 14px; padding: 12px 14px; font-size: .92rem; margin-bottom: 12px; }
.warnbox { background: rgba(255, 201, 119, .12); color: var(--warn); border-radius: 14px; padding: 12px 14px; font-size: .92rem; margin: 10px 0; }
.warnbox ul { margin: 6px 0 0; padding-left: 18px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; margin: 8px 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--linea); background: transparent; text-decoration: none; color: var(--texto-2); font-weight: 600; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; }
.tab.on { background: var(--durazno); color: var(--ciruela); border-color: var(--durazno); }
.head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-decoration: none; font-weight: 600; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
dl.kv dt { color: var(--texto-2); font-size: .88rem; }
dl.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
details summary { cursor: pointer; padding: 8px 4px; }
.item-line { display: grid; grid-template-columns: 1fr 64px 110px 44px; gap: 6px; align-items: end; margin-bottom: 8px; }
.item-line label { margin-top: 4px; }
.total-line { text-align: right; font-size: 1.3rem; font-weight: 800; margin-top: 10px; font-variant-numeric: tabular-nums; color: var(--titulo); }

/* Barra inferior */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--barra); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--linea); display: grid; grid-template-columns: 1fr 1fr 92px 1fr 1fr; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; text-decoration: none; color: var(--texto-3); font-size: .72rem; font-weight: 600; }
.nav a svg { width: 26px; height: 26px; }
.nav a.on { color: var(--link); }
.fab { justify-self: center; align-self: start; margin-top: -26px; width: 74px; height: 74px; border-radius: 50%; background: var(--durazno) url(brand/Isotipo_ciruela.svg) center 44% / 62% no-repeat; border: 4px solid var(--fondo); box-shadow: 4px 4px 0 var(--azul); cursor: pointer; padding: 0; position: relative; }
.fab small { position: absolute; left: 50%; transform: translateX(-50%); bottom: -21px; font-size: .68rem; font-weight: 700; color: var(--link); white-space: nowrap; }

/* Hojas: asistente, avisos, menú */
.sheet-bg { position: fixed; inset: 0; background: rgba(8, 1, 6, .6); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--fondo); width: 100%; max-width: 720px; height: min(92vh, 900px); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--linea); border-bottom: 0; }
@media (min-width: 900px) { .sheet-bg { align-items: stretch; justify-content: flex-end; } .sheet { height: 100vh; max-width: 460px; border-radius: 0; } }
.sheet-h { padding: 14px 16px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--linea); }
.sheet-h .t { flex: 1; min-width: 0; }
.sheet-h .t b { display: block; color: var(--titulo); font-size: 1.05rem; }
.sheet-h .t span { font-size: .8rem; color: var(--texto-2); }
.sheet-b { flex: 1; overflow-y: auto; padding: 16px; }
.sheet-f { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--fondo-2); }
.chat-in { display: flex; gap: 8px; align-items: flex-end; }
.chat-in textarea { min-height: 50px; height: 50px; border-radius: 25px; padding: 13px 18px; }
.chat-in .btn { width: 50px; padding: 0; flex: none; }
.msg { max-width: 90%; margin: 0 0 12px; }
.msg.me { margin-left: auto; background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 20px 20px 6px 20px; width: fit-content; }
.msg.dk .bubble { background: var(--panel); padding: 12px 16px; border-radius: 20px 20px 20px 6px; width: fit-content; max-width: 100%; }
.msg.dk .rcard { background: var(--panel); border: 1px solid var(--linea); border-radius: 18px; padding: 12px 14px; margin-top: 8px; }
.msg.dk .rcard .h { font: 500 .72rem var(--mono); color: var(--verde); margin-bottom: 2px; }
.msg.dk .rcard b { color: var(--titulo); }
.msg.dk .rcard ul { margin: 6px 0 0; padding: 0; list-style: none; }
.msg.dk .rcard li { padding: 8px 0; border-top: 1px solid var(--linea); font-size: .94rem; }
.msg.dk .rcard li:first-child { border-top: 0; }
.msg.dk .rcard li a { font-weight: 600; text-decoration: none; }
.msg.dk .rcard .ln { font-size: .92rem; margin: 3px 0; color: var(--texto-2); }
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.choice { text-align: left; min-height: var(--tap); padding: 10px 16px; border-radius: 16px; border: 1px solid var(--link); background: transparent; color: var(--link); font-weight: 700; cursor: pointer; }
.choice small { display: block; font-weight: 400; color: var(--texto-2); }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { flex: none; border: 1px solid var(--linea); background: var(--panel); border-radius: 999px; padding: 8px 14px; font-size: .86rem; cursor: pointer; min-height: 40px; color: var(--texto); }
.typing { color: var(--texto-2); }
.failed { background: rgba(255, 143, 134, .12); color: var(--bad); padding: 10px 14px; border-radius: 14px; font-size: .9rem; margin-bottom: 10px; }
.chat-hello { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 10px 18px; gap: 10px; }
.chat-hello img { width: 120px; height: auto; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top)); z-index: 60; background: var(--durazno); color: var(--ciruela); font-weight: 600; border-radius: 18px; padding: 12px 16px; width: min(92vw, 480px); box-shadow: 4px 4px 0 var(--azul); display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: .95rem; }
.toast > span { flex: 1; }
.toast a { color: var(--azul); font-weight: 800; }

/* Entrada */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: calc(28px + env(safe-area-inset-top)) 16px 40px; background-image: radial-gradient(rgba(255, 223, 184, .1) 1px, transparent 1px); background-size: 26px 26px; }
.login .card { width: 100%; max-width: 440px; }
.brand { text-align: center; margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brand .logo { background: var(--durazno); border-radius: 18px; padding: 8px 16px; }
.brand .logo img { width: 190px; height: auto; display: block; }
.brand .don { width: 130px; height: auto; }
.brand p { margin: 0; color: var(--texto-2); }
.demo-btn { display: flex; width: 100%; justify-content: space-between; margin-top: 8px; }
.st-borrador { background: rgba(255, 201, 119, .14) !important; color: var(--warn) !important; }
.st-enviado { background: rgba(158, 230, 184, .14) !important; color: var(--ok) !important; }
.st-recibido { background: rgba(25, 67, 170, .35) !important; color: #DCE5FF !important; }
.st-recordatorio { background: rgba(255, 223, 184, .12) !important; color: var(--link) !important; }
.bar { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; margin: 10px 0 0; }
.bar i { display: block; height: 100%; background: var(--verde); border-radius: 4px; }
.modal-bg { position: fixed; inset: 0; z-index: 70; background: rgba(8, 1, 6, .65); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--linea); border-radius: 22px; padding: 22px; width: min(100%, 420px); }
.modal p { margin: 0 0 8px; font-size: 1.05rem; }
.modal .btns .btn { flex: 1; }

/* Logo del negocio en el encabezado */
.biz-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; }
.brand-logo-big { max-width: 160px; max-height: 90px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--linea); cursor: pointer; padding: 0; }
.swatch.on { outline: 3px solid var(--titulo); outline-offset: 2px; }

/* Etiquetas e impresión */
.labels { display: flex; flex-wrap: wrap; gap: 4mm; background: #fff; padding: 6mm; border-radius: 12px; }
.label { width: var(--lw); height: var(--lh); border: 1px dashed #bbb; border-radius: 2mm; padding: 2mm 2.5mm; display: flex; flex-direction: column; justify-content: space-between; color: #000; background: #fff; font-family: var(--fuente), 'Open Sans', sans-serif; overflow: hidden; }
.label .l-top { display: flex; justify-content: space-between; gap: 2mm; align-items: flex-start; }
.label .l-name { font-weight: 700; font-size: var(--lf); line-height: 1.15; }
.label .l-var { font-size: calc(var(--lf) * .8); color: #333; }
.label .l-price { font-weight: 800; font-size: calc(var(--lf) * 1.35); white-space: nowrap; }
.label .l-logo { max-height: calc(var(--lh) * .22); max-width: 30%; object-fit: contain; }
.label .l-bc svg { width: 100%; height: calc(var(--lh) * .32); display: block; }
.label .l-sku { font-family: var(--mono); font-size: calc(var(--lf) * .7); text-align: center; letter-spacing: .05em; }
.doc { background: #fff; color: #1E1A1D; border-radius: 12px; padding: 28px; font-family: var(--fuente), 'Open Sans', sans-serif; }
.doc h1, .doc h3, .doc b { color: #1E1A1D; }
.doc .doc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 4px solid var(--acento-doc, #4B0A2F); padding-bottom: 14px; margin-bottom: 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc th { text-align: left; background: var(--acento-doc, #4B0A2F); color: var(--sobre-acento-doc, #fff); padding: 8px; }
.doc td { padding: 8px; border-bottom: 1px solid #e5e1e3; }
.doc .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc .muted { color: #5E565B; }
@media print {
  @page { margin: 8mm; }
  html, body { background: #fff !important; padding: 0 !important; }
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .labels { padding: 0; border-radius: 0; }
  .label { border-color: #ddd; break-inside: avoid; }
  .doc { border-radius: 0; padding: 0; }
  .no-print { display: none !important; }
}
/* Diseños de anuncio */
.ad-canvas { width: 100%; height: auto; border-radius: 12px; display: block; background: var(--panel-2); }

/* DonKodigo escribiendo */
.msg.dk .dk-row { display: flex; gap: 8px; align-items: flex-end; }
.dk-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--durazno) url(brand/Isotipo_ciruela.svg) center / 70% no-repeat; box-shadow: 2px 2px 0 var(--azul); }
.msg.dk .rcard, .msg.dk .choices, .msg.dk .dk-extra { margin-left: 38px; }
.msg.dk .dk-extra .rcard, .msg.dk .dk-extra .choices { margin-left: 0; }
.typing-dots { display: inline-flex; gap: 5px; align-items: center; padding: 15px 18px !important; }
.typing-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--texto-2); animation: dk-bounce 1.2s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dk-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--link); margin-left: 2px; vertical-align: -.15em; animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.appear { animation: dk-appear .35s ease-out both; }
@keyframes dk-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Animaciones (todas se apagan con «reducir movimiento») ===== */
/* 1. Completar: el círculo se llena, la palomita se dibuja y el texto se tacha */
.check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.check.on svg { stroke-dashoffset: 0; }
.row.completing .check { background: var(--verde); border-color: var(--verde); color: var(--ciruela); transform: scale(1.12); transition: transform .2s ease, background .2s ease; }
.row.completing .check svg { stroke-dashoffset: 0; transition: stroke-dashoffset .3s ease .05s; }
.row .main b { background: linear-gradient(currentColor, currentColor) 0 55% / 0 2px no-repeat; transition: background-size .35s ease, color .35s ease; }
.row.completing .main b { background-size: 100% 2px; color: var(--texto-3); }
.swipe.collapsing { transition: height .25s ease, opacity .25s ease; opacity: 0; }

/* 7. Deslizar: verde a la derecha (hecho), ciruela/durazno a la izquierda (mañana) */
.swipe { position: relative; overflow: hidden; border-top: 1px solid var(--linea); }
.list > .swipe:first-child { border-top: 0; }
.swipe > .row { border-top: 0; background: var(--panel); position: relative; z-index: 1; touch-action: pan-y; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.swipe > .row.dragging { transition: none; user-select: none; -webkit-user-select: none; }
.swipe > .row a { -webkit-user-drag: none; }
.swipe-bg { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-weight: 700; }
.swipe-bg span { opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.swipe.sw-right .swipe-bg { background: var(--verde); color: var(--ciruela); }
.swipe.sw-left .swipe-bg { background: var(--durazno); color: var(--ciruela); }
.swipe.sw-right .sw-done, .swipe.sw-left .sw-later { opacity: .6; }
.swipe.sw-ready .sw-done, .swipe.sw-ready .sw-later { opacity: 1; transform: scale(1.08); }

/* 2 y 4. Celebración: el Don con el micrófono */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
.don-pop { position: fixed; z-index: 81; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; animation: don-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.don-pop img { width: 120px; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
.don-pop .globo { margin: 0; white-space: nowrap; box-shadow: 3px 3px 0 var(--azul); }
.don-pop.out { animation: don-out .4s ease-in both; }
@keyframes don-in { from { opacity: 0; transform: translate(-50%, 60px) scale(.8); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes don-out { to { opacity: 0; transform: translate(-50%, 40px) scale(.9); } }
.don-wave img { transform-origin: 50% 90%; animation: don-wave 1.1s ease-out .2s both; }
@keyframes don-wave { 0% { transform: translateY(14px) rotate(-4deg); opacity: 0; } 40% { opacity: 1; transform: translateY(0) rotate(3deg); } 70% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }

/* 5. La campanita se balancea y el número salta */
.iconbtn.ring svg { animation: ring .9s ease-in-out; transform-origin: 50% 10%; }
.iconbtn.ring .dot { animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes pop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }

/* Entrada suave de cada pantalla */
main.enter { animation: view-in .28s ease-out both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Prioridades: arrastrar para ordenar */
.dlist { min-height: 62px; transition: box-shadow .15s ease; }
.dlist.drop-on { box-shadow: 0 0 0 2px var(--link); }
#prio-list { border-left: 4px solid var(--durazno); }
.drop-hint { margin: 0; padding: 18px 16px; text-align: center; color: var(--texto-2); border: 2px dashed var(--linea); border-radius: 14px; margin: 8px; font-size: .92rem; }
.dlist > .swipe ~ .drop-hint { display: none; }
.grip { flex: none; width: 28px; height: 40px; margin-left: -8px; border: 0; background: transparent; color: var(--texto-3); cursor: grab; touch-action: none; display: grid; place-items: center; padding: 0; }
.grip svg { width: 18px; height: 18px; fill: currentColor; }
.grip:active { cursor: grabbing; }
.star { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--texto-3); font-size: 1.3rem; cursor: pointer; }
.star.on { color: var(--link); }
.swipe.drag-src > .row { opacity: .35; }
.swipe.drag-src .swipe-bg { display: none; }
.drag-ghost { position: fixed; z-index: 90; pointer-events: none; border-radius: var(--r); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transform: scale(1.02) rotate(-.6deg); border: 1px solid var(--linea); }
.drag-ghost .row { background: var(--panel-2); }
body.dragging-list { user-select: none; -webkit-user-select: none; cursor: grabbing; }

/* Meta del mes */
.card.goal { display: block; text-decoration: none; color: inherit; margin-top: 16px; }
.card.goal .n { font: 500 .72rem var(--mono); color: var(--verde); }
.card.goal .head b { font-size: 1.4rem; color: var(--titulo); }
.gbar { position: relative; height: 12px; background: var(--panel-2); border-radius: 6px; margin-top: 10px; overflow: visible; }
.gbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--durazno), var(--verde)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.gbar .be { position: absolute; top: -4px; width: 3px; height: 20px; background: var(--titulo); border-radius: 2px; transform: translateX(-1px); }

/* Meta del mes: tarjeta principal */
.goal-hero { display: block; text-decoration: none; color: var(--texto); margin-top: 18px; padding: 18px; border-radius: 24px; border: 1px solid var(--linea);
  background: radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--durazno) 34%, transparent), transparent 55%), radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--azul) 40%, transparent), transparent 60%), var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.goal-hero .gh-top { display: flex; justify-content: space-between; align-items: center; }
.goal-hero .n { font: 500 .76rem var(--mono); color: var(--verde); }
.goal-hero .chip { background: rgba(255, 159, 67, .18); color: #FFB067; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
:root[data-brand-theme="claro"] .goal-hero .chip { color: #B35A00; }
.gh-main { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .trk { stroke: var(--panel-2); }
.ring .prg { stroke: var(--durazno); stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--durazno) 60%, transparent)); animation: ring-fill 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.goal-hero.win .ring .prg { stroke: var(--verde); }
@keyframes ring-fill { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--off); } }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-c b { font-size: 2rem; font-weight: 800; color: var(--titulo); line-height: 1; }
.ring-c span { font-size: .75rem; color: var(--texto-2); }
.gh-txt { min-width: 0; }
.gh-txt .big { display: block; font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 800; color: var(--titulo); line-height: 1.05; font-variant-numeric: tabular-nums; }
.gh-txt p { margin: 8px 0 0; font-weight: 600; font-size: .95rem; }
.gh-today { margin-top: 14px; background: color-mix(in srgb, var(--fondo) 55%, transparent); border-radius: 14px; padding: 10px 12px; }
.gh-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.gh-row b { color: var(--titulo); font-variant-numeric: tabular-nums; }
.gh-today .bar { margin-top: 8px; }
.gh-today .bar i { transition: width .9s cubic-bezier(.2, .8, .2, 1); animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { width: 0; } }
.miles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mile { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--linea); color: var(--texto-3); }
.mile.on { background: var(--durazno); border-color: var(--durazno); color: var(--ciruela); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.miles .mile.on:nth-child(2) { animation-delay: .1s; } .miles .mile.on:nth-child(3) { animation-delay: .2s; } .miles .mile.on:nth-child(4) { animation-delay: .3s; }
@media (min-width: 640px) { .ring { width: 150px; height: 150px; } }

/* Mi dinero (finanzas personales) en Hoy: tan vistoso como la meta */
.money-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--verde); color: #0d2b18; font-weight: 800; font-size: .85rem; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 3px rgba(158, 230, 184, .22); }
.money-pill svg { width: 20px; height: 20px; }
.money-pill.on { box-shadow: 0 0 0 3px var(--durazno); }
@media (max-width: 480px) { .money-pill span { display: none; } .money-pill { width: 44px; height: 44px; padding: 0; justify-content: center; } .money-pill svg { width: 22px; height: 22px; } }
.money-hero { display: block; position: relative; text-decoration: none; color: #eafff1; margin-top: 14px; padding: 18px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgba(158, 230, 184, .35), transparent 55%), linear-gradient(135deg, #0f3b26, #10251f 60%, #14203f);
  border: 1px solid rgba(158, 230, 184, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.money-hero.ojo { background: radial-gradient(120% 120% at 100% 0%, rgba(255, 176, 103, .35), transparent 55%), linear-gradient(135deg, #3b2a0f, #251c10 60%, #14203f); border-color: rgba(255, 176, 103, .5); color: #fff4e6; }
.money-hero.malo { background: radial-gradient(120% 120% at 100% 0%, rgba(255, 107, 107, .35), transparent 55%), linear-gradient(135deg, #3b0f16, #25101a 60%, #14203f); border-color: rgba(255, 107, 107, .5); color: #ffecec; }
.money-hero .mh-top { display: flex; justify-content: space-between; align-items: center; }
.money-hero .n { font: 500 .76rem var(--mono); color: var(--verde); }
.money-hero.ojo .n { color: #FFB067; } .money-hero.malo .n { color: #FF8A8A; }
.money-hero .mh-lock { font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .12); padding: 4px 10px; border-radius: 999px; }
.money-hero .mh-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 10px; }
.money-hero .mh-lbl { display: block; font-size: .85rem; opacity: .85; }
.money-hero .mh-big { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
.money-hero .mh-msg { font-size: .85rem; opacity: .9; max-width: 48%; text-align: right; }
.money-hero .mh-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); margin-top: 14px; overflow: hidden; }
.money-hero .mh-bar i { display: block; height: 100%; border-radius: 99px; background: var(--verde); }
.money-hero.ojo .mh-bar i { background: #FFB067; } .money-hero.malo .mh-bar i { background: #FF6B6B; }
.money-hero .mh-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .85rem; opacity: .9; }
.money-hero .mh-save { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .22); }
.money-hero .mh-save span { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.money-hero .mh-save .bar { grid-column: 1 / -1; margin: 0; }
.money-hero .mh-add { margin-top: 14px; width: 100%; justify-content: center; background: var(--verde); color: #0d2b18; border-color: var(--verde); }
.money-hero.ojo .mh-add { background: #FFB067; border-color: #FFB067; color: #3b1d00; }
.money-hero.malo .mh-add { background: #FF8A8A; border-color: #FF8A8A; color: #3b0008; }
.money-hero .mh-empty { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.money-hero .mh-empty img { width: 84px; flex: none; }
.money-hero .mh-empty b { font-size: 1.25rem; }
.money-hero .mh-empty p { margin: 4px 0 10px; font-size: .9rem; opacity: .9; }
.money-hero .mh-empty .btn { background: var(--verde); color: #0d2b18; border-color: var(--verde); }
@media (max-width: 420px) { .money-hero .mh-big { font-size: 2.1rem; } }

/* Desafíos del día */
.retos { margin-top: 12px; border-color: rgba(255, 223, 184, .35); }
.retos.win { border-color: var(--verde); box-shadow: 0 0 0 1px rgba(158, 230, 184, .35) inset; }
.retos .rt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.retos .n { font: 500 .76rem var(--mono); color: var(--verde); }
:root[data-brand-theme="claro"] .retos .n { color: #1E7A45; }
.retos .rt-meta { display: flex; align-items: center; gap: 8px; }
.retos .rt-meta b { font-size: 1.1rem; }
.retos .chip { background: rgba(255, 159, 67, .18); color: #FFB067; font-weight: 800; padding: 3px 9px; border-radius: 999px; font-size: .8rem; }
:root[data-brand-theme="claro"] .retos .chip { color: #B35A00; }
.retos .rt-segs { display: grid; grid-auto-flow: column; gap: 6px; margin: 10px 0 4px; }
.retos .rt-segs i { height: 6px; border-radius: 99px; background: var(--linea, rgba(255,255,255,.12)); transition: background .4s; }
.retos .rt-segs i.on { background: var(--verde); }
.retos .list { margin: 6px 0 0; background: none; border: 0; border-radius: 0; }
.retos .rt-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: inherit; border-top: 1px solid var(--linea, rgba(255,255,255,.08)); }
.retos .rt-item:first-child { border-top: 0; }
.retos .rt-item .main { flex: 1; min-width: 0; }
.retos .rt-item .main b { display: block; }
.retos .rt-item .sub { display: block; font-size: .82rem; opacity: .75; margin-top: 2px; }
.retos .rt-item .bar { margin-top: 6px; }
.retos .rt-check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linea, rgba(255,255,255,.25)); display: grid; place-items: center; font-weight: 800; color: #0d2b18; }
.retos .rt-item.done .rt-check { background: var(--verde); border-color: var(--verde); }
.retos .rt-item.done .main b { text-decoration: line-through; opacity: .7; }
.retos .rt-n { flex: none; font: 600 .78rem var(--mono); opacity: .8; white-space: nowrap; }
.retos .rt-foot { margin: 8px 0 0; font-size: .78rem; opacity: .7; }
.retos .rt-foot.win { opacity: 1; font-weight: 700; color: var(--verde); }
:root[data-brand-theme="claro"] .retos .rt-foot.win { color: #1E7A45; }
.retos .rt-item.pop .rt-check { animation: rt-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rt-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .retos .rt-item.pop .rt-check { animation: none; } }

/* Menú «Más»: grupos con cuadritos */
.mgroup + .mgroup { margin-top: 16px; }
.mg-t { font: 500 .76rem var(--mono); color: var(--verde); margin: 0 0 8px; }
:root[data-brand-theme="claro"] .mg-t { color: #1E7A45; }
.mtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .mtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mtile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; min-height: 84px; border-radius: 18px; background: var(--panel); border: 1px solid var(--linea); color: var(--titulo, var(--texto)); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.mtile:hover, .mtile:focus-visible { border-color: var(--durazno); transform: translateY(-1px); }
.mtile:active { transform: scale(.97); }
.mt-e { font-size: 1.6rem; line-height: 1; }
.mt-l { font-weight: 700; font-size: .95rem; }
.mfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--linea); }
.mfoot a, .mfoot button { background: none; border: 0; color: var(--texto-2, var(--texto)); font: 600 .9rem inherit; font-family: inherit; text-decoration: none; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.mfoot button { color: var(--bad, #ff8a8a); }
@media (prefers-reduced-motion: reduce) { .mtile { transition: none; } }

/* Nivel dentro de la tarjeta de desafíos */
.retos .rt-level { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 223, 184, .08); text-decoration: none; color: inherit; font-size: .82rem; font-weight: 700; }
.retos .rt-lbar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.retos .rt-lbar i { display: block; height: 100%; background: linear-gradient(90deg, #FFB067, var(--durazno)); border-radius: 99px; }
.retos .rt-lnext { font: 500 .72rem var(--mono); opacity: .75; }

/* Entrega de trofeo */
.trophy-bg { position: fixed; inset: 0; z-index: 200; background: rgba(10, 2, 8, .78); display: grid; place-items: center; padding: 20px; animation: tb-in .25s ease; }
.trophy-box { position: relative; overflow: hidden; width: min(380px, 100%); text-align: center; padding: 30px 22px 22px; border-radius: 28px; background: linear-gradient(160deg, #3a1230, #170410); border: 1px solid rgba(255, 223, 184, .4); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: tb-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.tb-rays { position: absolute; left: 50%; top: 70px; width: 420px; height: 420px; margin: -210px 0 0 -210px; background: repeating-conic-gradient(rgba(255, 223, 184, .14) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: tb-spin 14s linear infinite; pointer-events: none; }
.tb-emoji { position: relative; font-size: 88px; line-height: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); animation: tb-bounce 1.6s ease-in-out infinite; }
.tb-kicker { position: relative; display: inline-block; margin-top: 14px; font: 700 .78rem var(--mono); color: var(--verde); }
.tb-name { position: relative; margin: 6px 0 4px; font-size: 1.7rem; font-weight: 800; color: var(--durazno); font-family: inherit; letter-spacing: 0; }
.tb-name::before { content: none; }
.trophy-box p { position: relative; margin: 0 0 12px; opacity: .9; }
.tb-don { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 12px; font-weight: 700; font-size: .9rem; }
.tb-don img { width: 54px; }
.trophy-box .btns { position: relative; }
@keyframes tb-in { from { opacity: 0; } }
@keyframes tb-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes tb-spin { to { transform: rotate(360deg); } }
@keyframes tb-bounce { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .trophy-bg, .trophy-box, .tb-rays, .tb-emoji { animation: none; } }

/* Vitrina de trofeos */
.level-hero { margin-top: 16px; padding: 18px; border-radius: 24px; background: radial-gradient(120% 120% at 100% 0%, rgba(255, 176, 103, .3), transparent 55%), linear-gradient(135deg, #3a1230, #1c0716); border: 1px solid rgba(255, 223, 184, .35); }
.level-hero .lh-top { display: flex; align-items: baseline; gap: 10px; }
.level-hero .lh-n { font: 700 .8rem var(--mono); color: var(--verde); }
.level-hero .lh-top b { font-size: 1.8rem; color: var(--durazno); }
.level-hero .lh-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); margin-top: 10px; overflow: hidden; }
.level-hero .lh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFB067, var(--durazno)); border-radius: 99px; }
.trophies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .trophies { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trophy { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--linea); }
.trophy .tr-e { font-size: 2.4rem; line-height: 1.1; filter: grayscale(1); opacity: .35; }
.trophy b { font-size: .98rem; }
.trophy .tr-d { font-size: .78rem; opacity: .75; }
.trophy .bar { margin-top: 6px; }
.trophy .tr-p { font: 500 .72rem var(--mono); opacity: .7; }
.trophy.on { border-color: rgba(255, 223, 184, .55); background: linear-gradient(160deg, rgba(255, 223, 184, .12), var(--panel)); }
.trophy.on .tr-e { filter: none; opacity: 1; }
.trophy .tr-ok { font: 700 .72rem var(--mono); color: var(--verde); margin-top: 4px; }
:root[data-brand-theme="claro"] .trophy .tr-ok { color: #1E7A45; }

/* Plan Emprende: funciones con candado */
.mtile.locked { cursor: pointer; font: inherit; text-align: left; opacity: .62; border-style: dashed; }
.mtile.locked:hover { opacity: .9; }
.mt-lock { font: 600 .68rem var(--mono); color: var(--durazno); }
.upgrade { text-align: center; padding: 26px 18px; margin-top: 10px; border-radius: 24px; background: radial-gradient(120% 120% at 50% 0%, rgba(255, 223, 184, .16), transparent 60%), var(--panel); border: 1px solid rgba(255, 223, 184, .35); }
.upgrade .up-e { display: block; font-size: 3.2rem; line-height: 1; }
.upgrade .up-k { display: inline-block; margin-top: 12px; font: 700 .76rem var(--mono); color: var(--durazno); background: rgba(255, 223, 184, .1); padding: 4px 10px; border-radius: 999px; }
.upgrade .up-t { font-family: inherit; font-size: 1.5rem; font-weight: 800; color: var(--titulo, #fff); margin: 10px 0 6px; letter-spacing: 0; }
.upgrade .up-t::before { content: none; }

/* Suscripción: aviso de prueba, opciones de pago */
.acc-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; border-radius: 16px; text-decoration: none; color: var(--texto); background: rgba(158, 230, 184, .1); border: 1px solid rgba(158, 230, 184, .4); font-size: .9rem; }
.acc-banner.urg { background: rgba(255, 176, 103, .12); border-color: rgba(255, 176, 103, .55); }
.acc-banner .ab-go { font-weight: 800; color: var(--link, var(--durazno)); white-space: nowrap; }
.pay-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pay-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--linea); }
.pay-opt.best { border: 2px solid var(--durazno); }
.pay-opt .po-p { font-size: 1.4rem; font-weight: 800; }
.pay-opt .po-p small { font-size: .7rem; font-weight: 600; opacity: .7; }
.pay-opt .po-tag { position: absolute; top: -11px; right: 12px; background: var(--verde); color: #0d2b18; font: 700 .7rem var(--mono); padding: 3px 8px; border-radius: 999px; }
.pay-how { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
@media (max-width: 420px) { .pay-opts { grid-template-columns: 1fr; } }

/* Registro: aceptar términos */
.check-legal { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; font-size: .85rem; line-height: 1.45; }
.check-legal input { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* Asistente de bienvenida */
.ob-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: var(--texto);
  background: linear-gradient(135deg, rgba(25, 67, 170, .35), rgba(255, 223, 184, .08)); border: 1px solid rgba(255, 223, 184, .4); }
.ob-card .ob-e { font-size: 1.9rem; }
.ob-card .ob-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-card .ob-t span { font-size: .8rem; opacity: .8; }
.ob-card .bar { margin-top: 6px; }
.ob-card .ob-go { font-weight: 800; color: var(--link, var(--durazno)); white-space: nowrap; }
.ob-wrap { max-width: 640px; margin: 0 auto; }
.ob-top { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ob-step { font: 600 .75rem var(--mono); color: var(--verde); white-space: nowrap; }
.ob-dots { display: flex; gap: 6px; flex: 1; }
.ob-dots i { flex: 1; height: 6px; border-radius: 99px; background: var(--linea, rgba(255,255,255,.15)); }
.ob-dots i.on { background: var(--verde); }
.ob-dots i.cur { background: var(--durazno); }
.ob-later { background: none; border: 0; color: var(--texto-2, var(--texto)); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; min-height: 44px; }
.ob-head { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; }
.ob-head .ob-e { font-size: 2.2rem; }
.ob-head h1 { margin: 0; }
.ob-nav { margin-top: 18px; }
.ob-colors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 10px; }
.ob-color { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; }
.ob-color.on { border-color: #fff; transform: scale(1.08); }
#obcolor { width: 44px; height: 40px; padding: 0; border-radius: 10px; }
.ob-logo-prev img { max-height: 70px; margin-top: 10px; border-radius: 10px; background: #fff; padding: 6px; }
.ob-items, .ob-costs { display: grid; gap: 8px; margin-top: 8px; }
.ob-item { display: grid; grid-template-columns: auto 1fr 120px; gap: 10px; align-items: center; }
.ob-item input[type=checkbox] { width: 22px; height: 22px; }
.ob-cost { display: grid; grid-template-columns: 1fr 140px; gap: 10px; align-items: center; }
.ob-price { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.ob-price input { width: 100%; }
.ob-price.big { font-size: 1.4rem; max-width: 260px; }
.ob-price.big input { font-size: 1.3rem; font-weight: 700; }
.ob-goal { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(158, 230, 184, .1); border: 1px solid rgba(158, 230, 184, .4); }
.ob-goal b { font-size: 2rem; color: var(--verde); }
:root[data-brand-theme="claro"] .ob-goal b { color: #1E7A45; }
.ob-goal small { opacity: .75; }
.ob-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.ob-day input { position: absolute; opacity: 0; pointer-events: none; }
.ob-day span { display: inline-block; padding: 8px 12px; min-width: 48px; text-align: center; border-radius: 999px; border: 1px solid var(--linea); cursor: pointer; font-weight: 700; font-size: .85rem; }
.ob-day input:checked + span { background: var(--durazno); color: var(--ciruela); border-color: var(--durazno); }
.ob-day input:focus-visible + span { outline: 2px solid var(--durazno); outline-offset: 2px; }
.ob-fin { text-align: center; padding-top: 20px; }
.ob-fin .ob-don { width: 130px; }
.ob-next { display: flex; flex-direction: column; gap: 6px; text-align: left; max-width: 380px; margin: 18px auto; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--linea); }
@media (max-width: 420px) { .ob-item { grid-template-columns: auto 1fr 96px; } .ob-cost { grid-template-columns: 1fr 110px; } }

/* Entrada: crear negocio visible bajo «Entrar» */
.login-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-size: .85rem; color: var(--texto-2, var(--texto)); }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.login-new { font-weight: 800; }

/* Marca de la app: el Don a un lado de «Sidekick by DonKodigo» */
.sk-lockup { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 8px; font: inherit; letter-spacing: 0; }
.sk-lockup::before { content: none; }
.sk-don { width: 120px; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.sk-words { display: flex; flex-direction: column; gap: 6px; line-height: 1; text-align: left; }
.sk-name { font: 800 52px var(--fuente, 'Open Sans'), sans-serif; letter-spacing: -2px; color: var(--durazno); }
.sk-by { font: 600 13px var(--mono); color: var(--verde); padding-left: 3px; }
.sk-lockup.sm .sk-don { width: 76px; }
.sk-lockup.sm .sk-name { font-size: 38px; letter-spacing: -1.5px; }
:root[data-brand-theme="claro"] .sk-name { color: var(--ciruela, #4B0A2F); }
:root[data-brand-theme="claro"] .sk-by { color: #1E7A45; }
@media (max-width: 360px) { .sk-don { width: 92px; } .sk-name { font-size: 42px; } }

/* WhatsApp: atención automática y simulador */
.bot-card { margin-top: 14px; padding: 18px; border-radius: 22px; background: var(--panel); border: 1px solid rgba(158, 230, 184, .4); }
.bot-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.bot-head b { font-size: 1.15rem; }
.bot-head .sub { display: block; margin-top: 4px; font-size: .85rem; opacity: .8; }
.switch { position: relative; flex: none; width: 56px; height: 32px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--linea, rgba(255,255,255,.2)); transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--verde); }
.switch input:checked + span::after { transform: translateX(24px); }
.switch input:focus-visible + span { outline: 2px solid var(--durazno); outline-offset: 2px; }
.wa-phone { margin-top: 10px; border-radius: 22px; overflow: hidden; border: 1px solid var(--linea); background: #0b141a; max-width: 460px; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #1f2c34; color: #e9edef; }
.wa-top b { display: block; font-size: .95rem; }
.wa-top small { opacity: .7; font-size: .75rem; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--durazno); color: var(--ciruela); font-weight: 800; }
.wa-body { height: 340px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: #0b141a radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 16px 16px; }
.wa-hint { margin: auto; text-align: center; color: #8696a0; font-size: .85rem; }
.wa-msg { max-width: 82%; padding: 7px 10px 5px; border-radius: 10px; font-size: .9rem; line-height: 1.35; color: #e9edef; }
.wa-msg.in { align-self: flex-start; background: #202c33; border-top-left-radius: 2px; }
.wa-msg.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; }
.wa-msg.draft { background: transparent; border: 1px dashed #8696a0; }
.wa-msg small { display: block; text-align: right; font-size: .68rem; opacity: .65; margin-top: 2px; }
.wa-note { align-self: center; margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: #182229; color: #ffd279; font-size: .78rem; text-align: center; }
.wa-typing { align-self: flex-end; display: flex; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #005c4b; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #e9edef; opacity: .5; animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 50% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .wa-typing i { animation: none; } }
.wa-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 0; background: #0b141a; scrollbar-width: none; }
.wa-chip { flex: none; padding: 6px 10px; border-radius: 99px; border: 1px solid #2a3942; background: #1f2c34; color: #e9edef; font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.wa-input { display: flex; gap: 8px; padding: 10px; background: #0b141a; }
.wa-input input { flex: 1; border-radius: 99px; background: #2a3942; border: 0; color: #e9edef; }
.wa-input .btn { width: 46px; padding: 0; border-radius: 50%; }
.wa-input .btn svg { width: 20px; height: 20px; }
.faq-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 10px; }
.faq-row textarea { grid-column: 1; }
.faq-row [data-delfaq] { grid-row: 1 / span 2; grid-column: 2; align-self: start; }

/* WhatsApp simple: estado, «Te necesitan», conversaciones y chat */
.wa-status { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--panel); border: 1px solid rgba(158, 230, 184, .4); }
.ws-top { display: flex; gap: 12px; align-items: center; }
.ws-icon { font-size: 1.8rem; }
.ws-top b { display: block; font-size: 1.1rem; }
.ws-top span { font-size: .9rem; opacity: .9; }
.ws-bot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linea); }
.ws-bot small { display: block; font-size: .8rem; opacity: .75; margin-top: 2px; }
.ws-stats { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(158, 230, 184, .1); font-size: .88rem; }
.push-card { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 223, 184, .07); border: 1px solid rgba(255, 223, 184, .3); }
.push-card > span { font-size: 1.5rem; }
.push-card > div { flex: 1; }
.push-card b { display: block; }
.push-card small { display: block; font-size: .8rem; opacity: .8; margin-top: 2px; }
.wa-row { gap: 12px; }
.wa-row.need { background: rgba(255, 176, 103, .08); }
.wa-av.sm { width: 38px; height: 38px; flex: none; font-size: .95rem; }
.wa-auto { cursor: pointer; }
.wa-foot { margin-top: 22px; }
.wa-drafts .card { margin-bottom: 8px; }
.wa-drafts .wa-msg { max-width: 100%; margin-top: 8px; color: var(--texto); }
.wa-phone.full { max-width: none; }
.wa-phone.full .wa-body { height: min(56vh, 520px); }
.wa-top .wa-ficha { margin-left: auto; color: #8de0c4; font-size: .85rem; text-decoration: none; font-weight: 700; }
.wa-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 14px; font-size: .85rem; background: #182229; color: #d1d7db; }
.wa-mode.human { background: #3a2a12; color: #ffd8a8; }
.wa-msg em { display: block; font-style: normal; font-size: .7rem; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.wa-msg.err { background: #5c1f24; }

.wa-needs { margin-top: 14px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 176, 103, .12); border: 1px solid rgba(255, 176, 103, .55); }
.wa-needs b { display: block; margin-bottom: 6px; }
.wa-needs a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--texto); text-decoration: none; border-top: 1px solid rgba(255, 176, 103, .25); }
.wa-needs a span:nth-child(2) { flex: 1; font-weight: 700; }
.wa-needs .wn-go { font-weight: 800; color: var(--link, var(--durazno)); font-size: .85rem; }
