/* India · diseño: base blanca y negra, color solo para distinguir secciones. Letra del iPhone. */
:root {
  --bg: #f4f4f2; --card: #ffffff; --ink: #0b0b0c; --ink2: #3a3a3c; --muted: #8a8a8e; --line: #e6e6e3; --soft: #f0f0ee;
  --ok: #16a34a; --bad: #e11d48; --radius: 20px; --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
  --floor: #e7e5e4; --bed: #93c5fd;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
h1, h2 { letter-spacing: -.025em; }
.ic { flex: none; display: block; }
main { padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 100px); max-width: 640px; margin: 0 auto; }
.bar + main { padding-top: 12px; }
main.enter { animation: entrar .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* cabeceras */
.big { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.big h1 { font-size: 32px; line-height: 1.1; margin: 0; font-weight: 800; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 14px; font-weight: 600; }
.eyebrow::first-letter { text-transform: uppercase; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: rgba(244, 244, 242, .86); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.bar h1 { font-size: 17px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.back:active { background: rgba(0, 0, 0, .06); }
.dog-av { border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, .08); object-fit: cover; }
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; box-shadow: 0 0 0 2px #fff; }

/* semana */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.week a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.week small { font-size: 11px; font-weight: 700; color: var(--muted); }
.week b { font-size: 17px; font-weight: 700; }
.week i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.week i.on { background: var(--ok); }
.week a.today b { color: var(--bad); }
.week a.sel { background: var(--ink); color: #fff; } .week a.sel small { color: rgba(255, 255, 255, .6); } .week a.sel b { color: #fff; }
.week a.sel i.on { background: #4ade80; }

/* tarjeta principal (negra, elegante) */
.hero { background: radial-gradient(120% 140% at 0% 0%, #2a2a2e 0%, #0b0b0c 60%); color: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-top > div { flex: 1; min-width: 0; }
.hero-top strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.hero-top span { color: rgba(255, 255, 255, .65); font-size: 14px; }
.hero .dog-av { box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .6s; }
.ring text { fill: #fff; font: 700 15px Inter, system-ui, sans-serif; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.hero-stats > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 12px; }
.hero-stats .ic { grid-row: span 2; color: #fbbf24; } .hero-stats > div + div .ic { color: #4ade80; }
.hero-stats b { font-size: 20px; line-height: 1.1; } .hero-stats span { font-size: 12px; color: rgba(255, 255, 255, .6); }

/* SOS */
.sos-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.sos-row > span:nth-child(2) { flex: 1; } .sos-row strong { display: block; } .sos-row small { color: var(--muted); font-size: 13px; }
.sos-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fde8ec; color: var(--bad); }
.sos-row > .ic { color: var(--muted); }

/* sesiones del día */
.session { margin-top: 24px; }
.session-head { display: flex; align-items: center; gap: 12px; margin: 0 4px 10px; }
.session-head > div { flex: 1; } .session-head h2 { font-size: 20px; margin: 0; font-weight: 800; }
.session-head small { color: var(--muted); font-size: 13px; }
.s-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; }
.count { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--card); border-radius: 99px; padding: 4px 10px; box-shadow: var(--shadow); }
.count.full { background: var(--ok); color: #fff; }

/* listas de tareas */
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.task, .hrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; }
.task + .task, .hrow + .hrow { box-shadow: inset 0 1px 0 var(--line); }
.task:active { background: var(--soft); }
.tile { display: grid; place-items: center; border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); flex: none; }
.task-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.task-txt strong { font-size: 16px; font-weight: 650; line-height: 1.25; }
.task-txt small { color: var(--muted); font-size: 13px; margin-top: 1px; }
.task-txt em { font-style: normal; color: var(--ink2); font-size: 13px; background: var(--soft); border-radius: 10px; padding: 6px 9px; margin-top: 6px; }
.go { color: #c4c4c6; }
.task.is-done strong { color: var(--ink2); }
.who-done { display: flex; align-items: center; gap: 2px; }
.who-done .av + .av { margin-left: -6px; }
.ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; margin-left: 6px; }
.task.locked { opacity: .5; } .task.locked .tile { filter: grayscale(1); }
.mastery { display: inline-flex; gap: 3px; } .mastery i { width: 7px; height: 16px; border-radius: 3px; background: var(--line); }
.mastery.m1 i:nth-child(1), .mastery.m2 i:nth-child(-n+2) { background: #f59e0b; } .mastery.m3 i { background: var(--ok); }

.note-card { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.note-card > .ic { margin-top: 2px; color: var(--ink2); }
.note-card strong { display: block; } .note-card p { margin: 3px 0 0; color: var(--ink2); font-size: 14px; }
.note-card.warn { background: #fff7ed; box-shadow: none; } .note-card.warn > .ic { color: #c2410c; }
.note-card.alert { background: var(--ink); color: #fff; } .note-card.alert p { color: rgba(255, 255, 255, .7); } .note-card.alert > .ic { color: #7dd3fc; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 20px 0; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 4px 10px; }
.sec-head h2, .card h2 { font-size: 20px; margin: 0; font-weight: 800; }
.card h2 { margin-bottom: 12px; }

/* tarjetas */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: var(--ink); color: #fff; font-weight: 650; font-size: 16px; line-height: 1; font-family: inherit;
  border: 0; border-radius: 14px; padding: 15px 16px; margin-top: 12px; }
.btn.ghost { background: var(--soft); color: var(--ink); width: auto; flex: 1; margin: 0; padding: 12px; font-size: 15px; }
.btn.off { visibility: hidden; }
.btn.danger { color: var(--bad); width: 100%; margin-top: 20px; background: var(--card); box-shadow: var(--shadow); padding: 15px; }

/* ejercicio */
.scene-box { background: #faf7f2; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.scene { display: block; width: 100%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; padding: 6px 10px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); color: var(--ink2); }
.pill.cat { color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: none; }
.ex-title { font-size: 28px; line-height: 1.15; font-weight: 800; margin: 12px 0 6px; }
.why { color: var(--ink2); margin: 0 0 4px; }
.step-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.segs { display: flex; gap: 4px; } .segs i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; } .segs i.on { background: var(--c); }
.step p { font-size: 18px; line-height: 1.45; margin: 10px 0 14px; font-weight: 500; }
.step-nav { display: flex; gap: 10px; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tool { display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px; border-radius: var(--radius); border: 0; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-family: inherit; }
.tool strong { display: block; font-size: 16px; font-variant-numeric: tabular-nums; } .tool small { color: var(--muted); font-size: 12px; }
.tool > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--ink); color: #fff; }
.tool.activo > .ic { background: var(--ok); } .tool.activo strong { color: var(--ok); }
.tool.pulse > .ic { animation: pulse .35s; } @keyframes pulse { 50% { transform: scale(1.18); background: #f59e0b; } }
details.card { padding: 0; } details.card summary { display: flex; align-items: center; gap: 10px; padding: 15px 16px; font-weight: 700; list-style: none; cursor: pointer; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details.card[open] summary::after { transform: rotate(-135deg); }
details.card ul { margin: 0; padding: 0 16px 14px 48px; color: var(--ink2); } details.card li { margin: 6px 0; }
.sum-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; } .sum-ic.ok { background: var(--ok); } .sum-ic.no { background: var(--bad); }
.goal { display: flex; gap: 12px; align-items: flex-start; } .goal small { color: var(--muted); font-weight: 650; } .goal p { margin: 2px 0 0; font-weight: 600; }

/* evaluación */
.eval h2 { margin-bottom: 2px; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counter { background: var(--soft); border-radius: 16px; padding: 10px 12px 12px; text-align: center; }
.counter small, .lbl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.counter > div { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.counter b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.counter button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.counter button:active { transform: scale(.92); }
.score { margin: 16px 0 6px; }
.score-n { display: flex; align-items: baseline; gap: 10px; } .score-n b { font-size: 44px; font-weight: 800; line-height: 1; color: var(--c); letter-spacing: -.03em; }
.score-n b small { font-size: 22px; } .score-n span { font-weight: 700; color: var(--c); }
.score-bar { position: relative; height: 8px; border-radius: 4px; background: var(--soft); margin-top: 10px; }
.score-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; transition: width .3s, background .3s; }
.score-bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.score-hint { color: var(--muted); font-size: 12px; }
.lbl { margin: 14px 0 6px; text-align: left; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--soft); border-radius: 14px; padding: 4px; }
.opts button { border: 0; background: transparent; border-radius: 11px; padding: 10px 4px; font-weight: 600; font-size: 13px; line-height: 1.2; font-family: inherit; color: var(--ink2); }
.opts button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.advice { background: #f0fdf4; color: #14532d; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 14px 0 0; }
textarea, input { display: block; width: 100%; min-width: 0; max-width: 100%; background: var(--soft); color: var(--ink); border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; font: inherit; margin-top: 12px; }
textarea:focus, input:focus { outline: none; border-color: var(--ink); background: #fff; }
textarea { min-height: 76px; resize: vertical; }
input[type=date] { -webkit-appearance: none; appearance: none; min-height: 48px; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.msg { color: var(--ink2); font-weight: 600; min-height: 1.2em; margin: 8px 0 0; font-size: 14px; } .msg.err { color: var(--bad); }
.m-txt { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.chip { flex: none; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.del { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #b0b0b4; flex: none; }
.del:active { background: var(--soft); color: var(--bad); }

/* SOS */
.steps-list { list-style: none; padding: 0; margin: 14px 0 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps-list li { display: flex; gap: 12px; padding: 14px 16px; } .steps-list li + li { box-shadow: inset 0 1px 0 var(--line); }
.steps-list p { margin: 2px 0 0; color: var(--ink2); font-size: 15px; }
.num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bad); color: #fff; font-weight: 800; font-size: 14px; flex: none; }

/* plan por niveles */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #e8e8e5; border-radius: 14px; padding: 4px; }
.seg a { text-align: center; padding: 9px 0; border-radius: 11px; font-weight: 650; font-size: 14px; color: var(--ink2); }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.level-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 18px; margin: 14px 0 12px; }
.level-card small { color: rgba(255, 255, 255, .55); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.level-card h2 { font-size: 26px; margin: 2px 0 6px; font-weight: 800; } .level-card p { margin: 0 0 14px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.level-card .lv-bar { background: rgba(255, 255, 255, .15); } .level-card .lv-bar i { background: #4ade80; }
.lv-n { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 6px; }
.lv-bar { position: relative; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.lv-bar i, .lv-bar u { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; transition: width .5s; }
.lv-bar u { background: color-mix(in srgb, var(--c, #0b0b0c) 18%, #fff); } .lv-bar i { background: var(--c, var(--ink)); }
.lv-bar.thin { height: 6px; }

/* progreso */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.kpi .ic { color: var(--muted); } .kpi b { display: block; font-size: 28px; font-weight: 800; margin-top: 8px; letter-spacing: -.03em; line-height: 1.1; }
.kpi b small { font-size: 16px; color: var(--muted); } .kpi span { font-size: 13px; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend i { width: 9px; height: 9px; border-radius: 3px; margin-left: 6px; }
.chart .sec-head { margin: 0 0 14px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 140px; }
.col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stack { flex: 1; width: 100%; max-width: 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.stack i { display: block; border-radius: 6px; }
.col small { font-size: 12px; font-weight: 700; color: var(--muted); } .col small.hoy { color: var(--ink); }
.lv-row { display: block; padding: 8px 0; } .lv-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 15px; }
.lv-row span { color: var(--muted); font-weight: 600; }
.area { display: flex; align-items: center; gap: 12px; padding: 7px 0; } .area > div { flex: 1; }
.area-top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; } .area-top span { color: var(--muted); font-weight: 600; }

/* diario */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  font-weight: 650; font-size: 13px; line-height: 1.2; font-family: inherit; color: var(--ink); transition: transform .12s; }
.q-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.quick button:active { transform: scale(.95); } .quick button:disabled { opacity: .5; }
.sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.sum b { display: block; font-size: 24px; font-weight: 800; color: var(--c); } .sum span { font-size: 12px; color: var(--muted); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 6px 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 9px 0; position: relative; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 66px; top: 38px; bottom: -10px; width: 2px; background: var(--line); }
.timeline time { width: 40px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink2); }
.t-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--c); flex: none; z-index: 1; }
.timeline li > div { flex: 1; } .timeline strong { display: block; font-size: 15px; } .timeline small { color: var(--muted); font-size: 12px; }

/* ajustes */
.me { display: flex; align-items: center; gap: 14px; } .me small { color: var(--muted); font-size: 13px; } .me strong { display: block; font-size: 18px; }

/* entrar */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(env(safe-area-inset-top) + 30px) 24px calc(env(safe-area-inset-bottom) + 30px); max-width: 420px; margin: 0 auto; text-align: center; }
.brand h1 { font-size: 40px; font-weight: 800; margin: 14px 0 0; letter-spacing: -.04em; } .brand p { color: var(--muted); margin: 2px 0 0; font-weight: 600; }
.brand .dog-av { box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(0, 0, 0, .12); }
.ask { font-weight: 650; margin: 34px 0 14px; color: var(--ink2); }
.who button { display: flex; align-items: center; gap: 14px; width: 100%; margin: 10px 0; padding: 14px 16px; font-weight: 700; font-size: 18px; font-family: inherit; border-radius: var(--radius); border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.who button > span:not(.av) { flex: 1; text-align: left; } .who button .ic { color: #c4c4c6; }
.pin-box .av { margin-top: 30px; } .pin-box .ask { margin-top: 12px; }
.pin { display: flex; justify-content: center; gap: 16px; margin: 6px 0 0; }
.pin i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); transition: background .15s, transform .15s; } .pin i.on { background: var(--ink); transform: scale(1.1); }
.pad { display: grid; grid-template-columns: repeat(3, 76px); justify-content: center; gap: 14px 22px; margin-top: 10px; }
.pad button { display: grid; place-items: center; width: 76px; height: 76px; font-weight: 500; font-size: 30px; font-family: inherit; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.pad button[data-k="x"], .pad button[data-k="<"] { background: transparent; box-shadow: none; color: var(--ink2); }

/* barra de abajo */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 6; padding: 6px 6px calc(env(safe-area-inset-bottom) + 4px);
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0, 0, 0, .07); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; color: #9a9a9e; transition: color .15s; }
.tabs a.on { color: var(--ink); }

/* al tocar: respuesta inmediata y sin zoom por doble toque */
a, button { touch-action: manipulation; }
.btn, .tool, .who button, .pad button, .week a, .seg a, .sos-row, .opts button { transition: transform .12s, opacity .12s, background .15s; }
.btn:active, .tool:active, .who button:active, .pad button:active, .week a:active, .sos-row:active { transform: scale(.97); }
button:disabled { opacity: .5; }

/* ----- animaciones de los dibujos ----- */
.bubble-text { font: 700 15px system-ui, sans-serif; fill: #111; }
.zzz { font: 700 22px system-ui; fill: #1e3a8a; animation: zzz 2s infinite; } .z2 { animation-delay: 1s; }
@keyframes zzz { 0% { opacity: 0; transform: translateY(6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.pose-a { animation: poseA 4s infinite; } .pose-b { animation: poseB 4s infinite; }
@keyframes poseA { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes poseB { 0%, 45% { opacity: 0; } 55%, 100% { opacity: 1; } }
.wag { transform-box: fill-box; transform-origin: 100% 100%; animation: wag .4s infinite alternate; }
@keyframes wag { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.lure-up { animation: lureUp 4s infinite; } @keyframes lureUp { 0%, 10% { transform: translate(0, 0); } 45%, 100% { transform: translate(-30px, -36px); } }
.lure-down { animation: lureDown 4s infinite; } @keyframes lureDown { 0%, 10% { transform: translate(0, 0); } 45%, 100% { transform: translate(-6px, 66px); } }
.drop { animation: drop 4s infinite; } @keyframes drop { 0%, 50% { opacity: 0; transform: translateY(-60px); } 70%, 100% { opacity: 1; transform: translateY(0); } }
.blink { animation: blink 1s infinite alternate; } @keyframes blink { from { opacity: .4; } to { opacity: 1; } }
.look { animation: poseB 4s infinite; }
.turn { animation: turn 4s infinite; } @keyframes turn { 0%, 30% { transform: translateX(-20px); } 50%, 100% { transform: translateX(0); } }
.run { animation: run 4s infinite alternate ease-in-out; } @keyframes run { from { transform: translateX(-70px); } to { transform: translateX(10px); } }
.walk { animation: walk 4s infinite ease-in-out; } @keyframes walk { 0% { transform: translateX(-30px); } 100% { transform: translateX(30px); } }
.pet { animation: pet 1.4s infinite alternate; } @keyframes pet { from { transform: translate(0, 0); } to { transform: translate(20px, -8px); } }
.bowl { animation: bowl 4s infinite; } @keyframes bowl { 0%, 15% { transform: translateY(70px); } 60%, 100% { transform: translateY(166px); } }
/* India se mueve: respira, mueve la cabeza y las orejas, y anda */
.breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 1.2s infinite alternate ease-in-out; }
.breathe.slow { animation-duration: 2.4s; }
@keyframes breathe { from { transform: scale(1, 1); } to { transform: scale(1.02, 1.06); } }
.bob { transform-box: fill-box; transform-origin: 30% 90%; animation: bob 1.8s infinite alternate ease-in-out; }
@keyframes bob { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
.ear { transform-box: fill-box; transform-origin: 80% 100%; animation: ear .9s infinite alternate ease-in-out; } .ear2 { animation-delay: .3s; }
@keyframes ear { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
.step-a, .step-b { animation: step .5s infinite alternate ease-in-out; } .step-b { animation-direction: alternate-reverse; }
@keyframes step { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
/* India: oreja doblada que se mueve, boca que mastica, nariz que toca, flechas que avanzan */
.oreja { transform-box: fill-box; transform-origin: 15% 15%; animation: oreja 1.1s infinite alternate ease-in-out; }
@keyframes oreja { from { transform: rotate(-4deg); } to { transform: rotate(6deg); } }
.chew { animation: chew .7s infinite alternate ease-in-out; }
@keyframes chew { from { transform: rotate(0deg); } to { transform: rotate(9deg); } }
.nudge { animation: nudge 4s infinite ease-in-out; } @keyframes nudge { 0%, 30% { transform: translateX(0); } 50%, 80% { transform: translateX(14px); } 100% { transform: translateX(0); } }
.lure-fwd { animation: lureFwd 4s infinite; } @keyframes lureFwd { 0%, 10% { transform: translate(0, 0); } 45%, 100% { transform: translate(30px, 4px); } }
.flow { stroke-dasharray: 8 6; animation: flow 1s linear infinite; } @keyframes flow { to { stroke-dashoffset: -14; } }
.tag-text { font: 700 13px system-ui, sans-serif; fill: #fff; }
/* parpadea de vez en cuando */
.blink-eye { transform-box: fill-box; transform-origin: center; animation: parpadeo 5s infinite; }
@keyframes parpadeo { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0s !important; } .pose-a { opacity: 0; } .pose-b { opacity: 1; } }
