/* ============================================================
   Breathy v2 — estilos
   Bloque 1: CSS del diseño de Claude (Breathy Prototipo.dc.html), tal cual.
   Bloque 2: añadidos para la app real (estados vacíos, modales, grabación).
   ============================================================ */

:root {
  --bg: #f5f4fa; --card: #ffffff; --ink: #211d3b; --ink2: #34304f; --muted: #8d8ca0; --muted2: #a3a2b5; --line: #ecebf3;
  --purple: #6d4ee6; --grad: linear-gradient(135deg, #7c5cea, #5f37db);
  --green: #2fb86b; --blue: #7b86cc; --orange: #f5971e; --pink: #ef5d8a; --yellow: #f1b32e;
  --r: 22px; --sh: 0 8px 24px rgba(33, 29, 59, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.canvas { min-height: 100vh; background: radial-gradient(circle at 1px 1px, #d9d8e4 1px, transparent 0) 0 0/22px 22px, #eceaf2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px 60px; font-family: "Inter", sans-serif; }
.proto-cap { text-align: center; color: #6b6a7e; }
.proto-cap h1 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 18px; color: #2c2a44; letter-spacing: .01em; }
.proto-cap p { font-size: 12.5px; margin-top: 4px; }

.device { width: 392px; height: 850px; border-radius: 52px; background: #0c0c12; padding: 11px; box-shadow: 0 40px 90px rgba(20,18,40,.36), 0 6px 18px rgba(20,18,40,.2); flex: 0 0 auto; }
.device-screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; position: relative; background: var(--bg); }

.scr { width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: "Inter", sans-serif; position: relative; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 0; font-size: 15px; font-weight: 600; color: var(--ink); flex: 0 0 auto; z-index: 5; }
.statusbar .sb-r { display: flex; align-items: center; gap: 6px; }
.screens { flex: 1; position: relative; overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; padding: 20px 20px 110px; display: none; flex-direction: column; gap: 16px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: flex; animation: fade .28s ease; }
.screen > * { flex-shrink: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand .mark { width: 30px; height: 30px; }
.brand span { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: .01em; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, #b9a7e8, #d9c3a8); box-shadow: inset 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.12); flex: 0 0 auto; }
.avatar.a2 { background: linear-gradient(140deg, #8d7bd6, #4a3a52); }

.greet { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 28px; letter-spacing: -.01em; line-height: 1.12; }
.greet.big { font-size: 34px; }
.subt { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); }
.chev { color: var(--muted2); flex: 0 0 auto; }
.tap { cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; }
.tap:active { transform: scale(.97); }

.equi-wrap { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.equi-ring { position: relative; width: 226px; height: 226px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.equi-ring svg { position: absolute; inset: 0; }
.equi-sym { color: var(--purple); font-size: 30px; font-weight: 700; line-height: 1; }
.equi-title { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 26px; margin-top: 12px; color: var(--ink); }
.equi-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

.metrics { display: flex; margin-top: 14px; }
.metric { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 2px; }
.metric + .metric { border-left: 1px solid var(--line); }
.m-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.m-ic svg { width: 21px; height: 21px; }
.m-label { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.25; }
.m-val { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; }

.t-green { background: rgba(47,184,107,.12); color: var(--green); }
.t-blue { background: rgba(123,134,204,.16); color: var(--blue); }
.t-purple { background: rgba(109,78,230,.12); color: var(--purple); }
.t-orange { background: rgba(245,151,30,.14); color: var(--orange); }
.t-pink { background: rgba(239,93,138,.13); color: var(--pink); }
.t-yellow { background: rgba(241,179,46,.16); color: #d99a12; }
.cl-green { color: var(--green); } .cl-blue { color: var(--blue); } .cl-purple { color: var(--purple); } .cl-orange { color: var(--orange); }

.care { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(180deg, rgba(47,184,107,.06), rgba(47,184,107,.02)); }
.care .leaf { width: 52px; height: 52px; border-radius: 50%; background: rgba(47,184,107,.13); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.care .leaf svg { width: 26px; height: 26px; color: var(--green); }
.care h4 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 7px; }
.care p { font-size: 13.5px; color: var(--ink2); line-height: 1.5; margin-top: 6px; }
.care .more { color: var(--green); font-weight: 600; font-size: 13.5px; margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; }
.sec-h h4 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 18px; }
.sec-h .sub2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.link-purple { color: var(--purple); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.goal { display: flex; align-items: center; gap: 13px; padding: 14px 0; }
.goal + .goal { border-top: 1px solid var(--line); }
.g-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.g-ic svg { width: 23px; height: 23px; }
.g-tx { flex: 1; min-width: 0; }
.g-tx b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15.5px; display: block; }
.g-tx small { font-size: 12px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dot-c { width: 25px; height: 25px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.dot-c svg { width: 13px; height: 13px; color: #fff; }
.dot-c.f-green { background: var(--green); border-color: var(--green); }
.dot-c.f-purple { background: var(--purple); border-color: var(--purple); }
.dot-c.f-orange { background: var(--orange); border-color: var(--orange); }
.g-frac { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }

.exp { background: linear-gradient(150deg, rgba(124,92,234,.12), rgba(124,92,234,.05)); border-radius: 20px; padding: 17px; }
.exp-top { display: flex; gap: 13px; align-items: flex-start; }
.exp .flask { width: 46px; height: 46px; border-radius: 14px; background: rgba(124,92,234,.16); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.exp .flask svg { width: 23px; height: 23px; color: var(--purple); }
.exp h4 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; }
.exp p { font-size: 13px; color: var(--ink2); line-height: 1.45; margin-top: 3px; }
.exp-row { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; }
.exp-days { display: flex; gap: 11px; flex: 1; }
.exp-day { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.exp-day .c { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(124,92,234,.3); display: flex; align-items: center; justify-content: center; transition: .15s; }
.exp-day .c svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.exp-day.on .c { background: var(--purple); border-color: var(--purple); }
.exp-day.on .c svg { opacity: 1; }
.exp-day small { font-size: 10.5px; color: var(--muted); }
.exp-day.on small { color: var(--purple); font-weight: 600; }
.exp-mini { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--sh); text-align: center; min-width: 116px; flex: 0 0 auto; }
.exp-mini svg { width: 26px; height: 26px; color: var(--blue); }
.exp-mini b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.exp-mini small { font-size: 11px; color: var(--muted); }

.cta { background: var(--grad); border-radius: 26px; padding: 15px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 14px 30px rgba(95,55,219,.34); }
.cta .mic { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cta .mic svg { width: 24px; height: 24px; color: var(--purple); }
.cta b { color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 18px; display: block; }
.cta small { color: rgba(255,255,255,.82); font-size: 12.5px; }

/* unified bottom nav */
.care2 { align-self: flex-start; }
.care2-btn { position: relative; width: 50px; height: 50px; border-radius: 16px; background: rgba(47,184,107,.12); border: 1px solid rgba(47,184,107,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s ease; }
.care2-btn:active { transform: scale(.94); }
.care2-btn svg { width: 24px; height: 24px; color: var(--green); }
.care2-dot { position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); border: 2.5px solid var(--bg); animation: ndot 2.2s ease-out infinite; }
@keyframes ndot { 0% { box-shadow: 0 0 0 0 rgba(240,148,30,.5); } 70% { box-shadow: 0 0 0 7px rgba(240,148,30,0); } 100% { box-shadow: 0 0 0 0 rgba(240,148,30,0); } }
.care2-panel { display: none; gap: 14px; align-items: flex-start; background: linear-gradient(180deg, rgba(47,184,107,.08), rgba(47,184,107,.02)); border: 1px solid rgba(47,184,107,.16); border-radius: 18px; padding: 16px; }
.care2.open { align-self: stretch; }
.care2.open .care2-btn { display: none; }
.care2.open .care2-panel { display: flex; animation: fade .25s ease; }
.care2-panel .cp-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(47,184,107,.15); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.care2-panel .cp-ic svg { width: 24px; height: 24px; color: var(--green); }
.care2-panel h4 { font-family: "Poppins"; font-weight: 600; font-size: 16px; color: var(--ink); }
.care2-panel p { font-size: 13px; color: var(--ink2); line-height: 1.5; margin-top: 5px; }
.care2-panel .more { color: var(--green); font-weight: 600; font-size: 13px; margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; }
.care2-close { background: none; border: none; cursor: pointer; color: var(--muted2); padding: 2px; flex: 0 0 auto; }
.care2-close svg { width: 18px; height: 18px; }

/* Experimento: nota desplegable estilo "Cuídate" (en morado) */
.exp-note { align-self: flex-start; }
.exp-note-btn { position: relative; width: 50px; height: 50px; border-radius: 16px; background: rgba(124,92,234,.12); border: 1px solid rgba(124,92,234,.22); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s ease; }
.exp-note-btn:active { transform: scale(.94); }
.exp-note-btn svg { width: 24px; height: 24px; color: var(--purple); }
.exp-note-dot { position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); border: 2.5px solid var(--bg); animation: ndot 2.2s ease-out infinite; }
.exp-note-panel { display: none; gap: 14px; align-items: flex-start; background: linear-gradient(180deg, rgba(124,92,234,.08), rgba(124,92,234,.02)); border: 1px solid rgba(124,92,234,.16); border-radius: 18px; padding: 16px; }
.exp-note.open { align-self: stretch; }
.exp-note.open .exp-note-btn { display: none; }
.exp-note.open .exp-note-panel { display: flex; animation: fade .25s ease; }
.exp-note-panel .cp-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(124,92,234,.15); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.exp-note-panel .cp-ic svg { width: 24px; height: 24px; color: var(--purple); }
.exp-note-panel h4 { font-family: "Poppins"; font-weight: 600; font-size: 16px; color: var(--ink); }
.exp-note-panel p { font-size: 13px; color: var(--ink2); line-height: 1.5; margin-top: 5px; }
.exp-note-why { color: var(--muted) !important; font-size: 12px !important; line-height: 1.45 !important; }
.exp-note-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--purple); }
.exp-note-meta svg { width: 15px; height: 15px; color: var(--purple); }
.exp-note-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; margin-top: 13px; }
.exp-note-actions .link-purple { text-align: center; }
.exp-note-close { background: none; border: none; cursor: pointer; color: var(--muted2); padding: 2px; flex: 0 0 auto; }
.exp-note-close svg { width: 18px; height: 18px; }
.botnav { position: absolute; left: 14px; right: 14px; bottom: 14px; background: #fff; border-radius: 26px; box-shadow: 0 10px 30px rgba(33,29,59,.14); display: flex; align-items: center; justify-content: space-around; padding: 10px 6px; z-index: 10; }
.nv { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9b9aae; font-size: 10px; font-weight: 500; flex: 1; cursor: pointer; transition: color .18s; }
.nv svg { width: 22px; height: 22px; }
.nv.on { color: var(--purple); }
.nv-mic { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; margin-top: -28px; box-shadow: 0 8px 20px rgba(95,55,219,.4); flex: 0 0 auto; cursor: pointer; transition: transform .15s; }
.nv-mic:active { transform: scale(.93); }
.nv-mic svg { width: 25px; height: 25px; color: #fff; }
.home-ind { position: absolute; left: 50%; transform: translateX(-50%); bottom: 6px; width: 130px; height: 5px; border-radius: 3px; background: rgba(33,29,59,.85); z-index: 11; }

.stat3 { display: flex; align-items: center; }
.stat3 .st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat3 .st + .st { border-left: 1px solid var(--line); }
.donut { width: 64px; height: 64px; position: relative; display: flex; align-items: center; justify-content: center; }
.donut b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px; position: absolute; }
.st-ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.st-ic svg { width: 22px; height: 22px; }
.st b.big { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 20px; }
.st small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.25; }

.block-h { display: flex; align-items: center; gap: 11px; }
.block-h .bh-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.block-h .bh-ic svg { width: 19px; height: 19px; }
.block-h h4 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 17px; }
.block-h p { font-size: 12.5px; color: var(--muted); }
.pill-done { background: rgba(124,92,234,.12); color: var(--purple); font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }

.habit { display: flex; align-items: center; gap: 13px; padding: 13px 0; cursor: pointer; }
.habit + .habit { border-top: 1px solid var(--line); }
.h-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: .15s; }
.h-check svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity .15s; }
.h-check.on { background: var(--purple); border-color: var(--purple); }
.h-check.on svg { opacity: 1; }
.h-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.h-ic svg { width: 21px; height: 21px; }
.h-tx { flex: 1; min-width: 0; }
.h-tx b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14.5px; display: block; }
.h-tx small { font-size: 12px; color: var(--muted); }
.h-time { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.add-habit { text-align: center; color: var(--purple); font-weight: 600; font-size: 13.5px; padding: 14px 0 2px; border-top: 1px solid var(--line); margin-top: 4px; cursor: pointer; }

.insight-card { display: flex; align-items: center; gap: 13px; }
.insight-card .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(124,92,234,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.insight-card .ic svg { width: 21px; height: 21px; color: var(--purple); }
.insight-card .tx { flex: 1; }
.insight-card b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14.5px; }
.insight-card p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.see-pat { background: rgba(124,92,234,.1); color: var(--purple); font-weight: 600; font-size: 12px; padding: 8px 13px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; cursor: pointer; }

.diary-top { display: flex; align-items: center; justify-content: space-between; }
.dt-l { display: flex; align-items: center; gap: 12px; }
.back-btn { width: 38px; height: 38px; border-radius: 50%; background: #efeef5; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.back-btn svg { width: 18px; height: 18px; color: var(--ink); }
.diary-title { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 22px; }
.date-row { text-align: center; color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.date-row svg { width: 16px; height: 16px; color: var(--purple); }
.q-center { text-align: center; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 21px; }
.faces { display: flex; justify-content: space-between; gap: 6px; }
.face { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: box-shadow .15s, transform .12s; }
.face:active { transform: scale(.92); }
.face svg { width: 30px; height: 30px; }
.face.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green); }
.f1 { background: rgba(167,139,250,.16); } .f1 svg { color: #8b6fd6; }
.f2 { background: rgba(245,151,30,.16); } .f2 svg { color: var(--orange); }
.f3 { background: rgba(241,179,46,.18); } .f3 svg { color: #d99a12; }
.f4 { background: rgba(47,184,107,.16); } .f4 svg { color: var(--green); }
.f5 { background: rgba(47,184,107,.2); } .f5 svg { color: var(--green); }

#diary-capture { display: flex; flex-direction: column; gap: 16px; }
.mic-big { align-self: center; margin: 4px auto; width: 172px; height: 172px; border-radius: 50%; background: var(--grad); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-shadow: 0 0 0 9px rgba(124,92,234,.09), 0 14px 32px rgba(95,55,219,.28); cursor: pointer; transition: transform .15s; }
.mic-big:active { transform: scale(.96); }
.mic-big svg { width: 38px; height: 38px; color: #fff; }
.mic-big b { color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 18px; }
.mic-big small { color: rgba(255,255,255,.82); font-size: 12px; }

.card-h { display: flex; align-items: center; gap: 12px; }
.card-h .ci { width: 40px; height: 40px; border-radius: 12px; background: rgba(124,92,234,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.card-h .ci svg { width: 21px; height: 21px; color: var(--purple); }
.card-h h4 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 17px; }
.card-h p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.resum-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px; }
.rg-t { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 9px; }
.rg-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 6px 10px; border-radius: 999px; margin-bottom: 7px; font-weight: 500; }
.rg-chip svg { width: 13px; height: 13px; }
.people { display: flex; gap: 14px; }
.person2 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.person2 .pc { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Poppins"; font-weight: 600; font-size: 16px; }
.person2 small { font-size: 11px; color: var(--muted); }
.topic { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 8px; }
.topic i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

.depth-q { background: #f6f5fb; border-radius: 16px; padding: 13px 14px; display: flex; align-items: center; gap: 11px; margin-top: 11px; }
.depth-q .sp { width: 24px; height: 24px; flex: 0 0 auto; color: var(--purple); }
.depth-q .qt { flex: 1; font-size: 13px; line-height: 1.4; }
.depth-q .qt em { font-style: normal; color: var(--muted); display: block; font-size: 12px; margin-bottom: 2px; }
.depth-q .qt b { font-weight: 600; }
.resp-btn { background: var(--grad); color: #fff; font-weight: 600; font-size: 12.5px; padding: 9px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: 0 0 auto; cursor: pointer; }
.resp-btn svg { width: 14px; height: 14px; }
.moment { display: flex; align-items: center; gap: 12px; }
.moment .li { width: 40px; height: 40px; border-radius: 12px; background: rgba(47,184,107,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.moment .li svg { width: 21px; height: 21px; color: var(--green); }
.moment .tx { flex: 1; }
.moment b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px; }
.moment p { font-size: 12px; color: var(--muted); }
.m-actions { display: flex; gap: 9px; margin-top: 13px; }
.m-btn { flex: 1; border-radius: 14px; padding: 11px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.m-btn svg { width: 16px; height: 16px; }
.m-btn.green { background: rgba(47,184,107,.12); color: var(--green); }
.m-btn.purple { background: rgba(124,92,234,.12); color: var(--purple); }

.pat-hero { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.pat-hero .feedback { position: absolute; top: 18px; right: 18px; background: #f3f1fb; color: var(--purple); font-weight: 600; font-size: 12px; padding: 7px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.pat-hero .feedback svg { width: 13px; height: 13px; }
.pat-hero .ph-brand { display: flex; align-items: center; gap: 8px; }
.pat-hero .ph-brand .mark { width: 26px; height: 26px; }
.pat-hero .ph-brand span { font-family: "Poppins"; font-weight: 600; font-size: 16px; color: var(--purple); }
.pat-hero h3 { font-family: "Poppins"; font-weight: 600; font-size: 20px; line-height: 1.25; margin-top: 16px; max-width: 230px; }
.pat-count { margin-top: 16px; }
.pat-count b { font-family: "Poppins"; font-weight: 600; font-size: 19px; color: var(--ink); display: block; letter-spacing: -.01em; }
.pat-count span { font-size: 12.5px; color: var(--muted); margin-top: 5px; display: block; }
.pat-hero .ph-sub { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 10px; max-width: 220px; }
.cloud { position: absolute; top: 78px; right: 18px; width: 120px; height: 100px; }
.pat-item { display: block; }
.pat-item:first-of-type { border-top: 1px solid var(--line); margin-top: 18px; }
.pat-item + .pat-item { border-top: 1px solid var(--line); }
.pi-head { display: flex; align-items: center; gap: 13px; padding: 15px 0; cursor: pointer; }
.pat-item .pi-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(124,92,234,.1); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pat-item .pi-ic svg { width: 23px; height: 23px; color: var(--purple); }
.pi-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pi-title b { font-family: "Poppins"; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.pi-chev { color: var(--muted2); flex: 0 0 auto; transition: transform .25s ease; }
.pat-item.open .pi-chev { transform: rotate(180deg); }
.pi-detail { display: none; padding: 0 2px 16px 59px; }
.pat-item.open .pi-detail { display: block; animation: fade .25s ease; }
.pi-detail p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pi-eff2 { font-size: 12px; color: var(--ink2); line-height: 1.45; margin-top: 11px; padding-left: 12px; border-left: 2px solid rgba(124,92,234,.32); }
.tagd { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #eceaf6; color: var(--purple); }
.tagd.strength { background: rgba(47,184,107,.13); color: var(--green); }
.pat-item .pi-tx p { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.pat-item .pi-eff { font-size: 11px; color: var(--muted); text-align: right; max-width: 92px; line-height: 1.35; flex: 0 0 auto; }
.pat-talk { margin-top: 18px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(124,92,234,.10), rgba(124,92,234,.04)); border: 1px solid rgba(124,92,234,.16); }
.pat-talk b { font-family: "Poppins"; font-weight: 600; font-size: 17px; color: var(--ink); display: block; letter-spacing: -.01em; }
.pat-talk > span { font-size: 13px; color: var(--muted); margin-top: 5px; display: block; line-height: 1.45; }
.pat-talk .pt-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--grad); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 999px; margin-top: 15px; cursor: pointer; box-shadow: 0 8px 20px rgba(95,55,219,.3); transition: transform .15s ease; }
.pat-talk .pt-cta:active { transform: scale(.96); }
.pat-talk .pt-cta svg { width: 17px; height: 17px; }
.slim-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.slim-eb { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pat-lead { font-family: "Poppins"; font-weight: 500; font-size: 17px; color: var(--ink); letter-spacing: -.01em; margin: 2px 2px 14px; }
.week-card { background: #fff; border-radius: 20px; box-shadow: 0 1px 2px rgba(29,26,51,.04), 0 14px 32px rgba(29,26,51,.06); border: 1px solid rgba(255,255,255,.6); padding: 18px 18px 14px; margin-bottom: 18px; }
.wc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.wc-eb { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wc-num { font-family: "Poppins"; font-weight: 600; font-size: 30px; color: var(--ink); letter-spacing: -.02em; margin-top: 5px; display: flex; align-items: baseline; gap: 9px; }
.wc-trend { font-size: 12.5px; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 2px; }
.wc-trend svg { width: 13px; height: 13px; }
.wc-pill { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 6px 11px; }
.wc-chart { width: 100%; height: 76px; margin-top: 8px; display: block; }
.wc-days { display: flex; margin-top: 4px; padding: 0 2px; }
.wc-days span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 500; color: var(--muted2); }
.wc-days span.hi { color: var(--purple); font-weight: 700; }
.peyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 2px 11px; }
.vpills { display: flex; gap: 10px; }
.vpill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 12px; border-radius: 15px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink2); transition: background .18s, border-color .18s, color .18s; }
.vpill .vp-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.vpill .vp-n { font-family: "Poppins"; font-weight: 600; font-size: 12px; min-width: 19px; height: 19px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--muted); }
.vpill.frena .vp-dot { background: var(--orange); }
.vpill.impulsa .vp-dot { background: var(--green); }
.vpill.frena.active { background: rgba(240,148,30,.1); border-color: rgba(240,148,30,.5); color: var(--orange); }
.vpill.frena.active .vp-n { background: var(--orange); color: #fff; }
.vpill.impulsa.active { background: rgba(47,184,107,.1); border-color: rgba(47,184,107,.5); color: var(--green); }
.vpill.impulsa.active .vp-n { background: var(--green); color: #fff; }
.vpanel { display: none; margin-top: 12px; }
.vpanel.show { display: block; animation: fade .25s ease; }
.prow { background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(29,26,51,.04), 0 10px 26px rgba(29,26,51,.05); border: 1px solid rgba(255,255,255,.6); padding: 15px 16px; display: flex; gap: 13px; margin-bottom: 10px; }
.prow .pic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.prow .pic svg { width: 22px; height: 22px; }
.prow .ptx { flex: 1; min-width: 0; }
.prow .ptx b { font-family: "Poppins"; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.prow .ptx p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.prow .pimpact { font-size: 12px; line-height: 1.45; margin-top: 10px; padding-left: 12px; border-left: 2px solid; color: var(--ink2); }
.vpanel.frena .pic { background: rgba(240,148,30,.13); color: var(--orange); }
.vpanel.frena .pimpact { border-left-color: rgba(240,148,30,.4); }
.vpanel.impulsa .pic { background: rgba(47,184,107,.12); color: var(--green); }
.vpanel.impulsa .pimpact { border-left-color: rgba(47,184,107,.4); }
.pat-intro b { font-family: "Poppins"; font-weight: 600; font-size: 22px; color: var(--ink); display: block; letter-spacing: -.01em; }
.pat-intro span { font-size: 13px; color: var(--muted); margin-top: 5px; display: block; line-height: 1.4; }
.pcard { background: #fff; border-radius: 20px; box-shadow: 0 1px 2px rgba(29,26,51,.04), 0 12px 28px rgba(29,26,51,.05); border: 1px solid rgba(255,255,255,.6); margin-bottom: 12px; }
.pcard .ph { display: flex; align-items: center; gap: 14px; padding: 16px 17px; cursor: pointer; }
.pcard .pic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pcard .pic svg { width: 23px; height: 23px; }
.pcard .pmid { flex: 1; min-width: 0; }
.pcard .pname { font-family: "Poppins"; font-weight: 600; font-size: 15px; color: var(--ink); }
.pcard .pval { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; margin-top: 4px; }
.pcard .pval i { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.pcard .pchev { color: var(--muted2); flex: 0 0 auto; transition: transform .25s ease; }
.pcard.open .pchev { transform: rotate(180deg); }
.pcard .pdet { display: none; padding: 0 17px 16px 77px; }
.pcard.open .pdet { display: block; animation: fade .25s ease; }
.pcard .pdet p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pcard .pdet .pimpact { font-size: 12px; line-height: 1.45; margin-top: 11px; padding-left: 12px; border-left: 2px solid; }
.pcard.frena .pic { background: rgba(240,148,30,.13); color: var(--orange); }
.pcard.frena .pval { color: var(--orange); }
.pcard.frena .pval i { background: var(--orange); }
.pcard.frena .pdet .pimpact { border-left-color: rgba(240,148,30,.4); color: var(--ink2); }
.pcard.impulsa .pic { background: rgba(47,184,107,.12); color: var(--green); }
.pcard.impulsa .pval { color: var(--green); }
.pcard.impulsa .pval i { background: var(--green); }
.pcard.impulsa .pdet .pimpact { border-left-color: rgba(47,184,107,.4); color: var(--ink2); }
.lever { margin-top: 6px; border-radius: 20px; padding: 19px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, #6e4fe4, #5836ce); box-shadow: 0 16px 36px rgba(88,54,206,.3); }
.lever::before { content:""; position:absolute; right:-40px; top:-40px; width:150px; height:150px; border-radius:50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.lever .lev-eb { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); position: relative; }
.lever h4 { font-family: "Poppins"; font-weight: 600; font-size: 18px; margin-top: 6px; position: relative; }
.lever p { font-size: 13px; color: rgba(255,255,255,.86); line-height: 1.45; margin-top: 8px; position: relative; }
.lever .lev-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--purple); font-weight: 600; font-size: 13.5px; padding: 10px 16px; border-radius: 999px; margin-top: 15px; cursor: pointer; position: relative; }
.lever .lev-btn svg { width: 16px; height: 16px; }
.resona { font-family: "Poppins"; font-weight: 600; font-size: 15px; margin: 20px 0 12px; }
.res-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.res-opt { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink2); cursor: pointer; transition: .15s; }
.res-opt svg { width: 17px; height: 17px; color: var(--muted); }
.res-opt.active { border-color: var(--purple); background: rgba(124,92,234,.06); color: var(--purple); }
.res-opt.active svg { color: var(--purple); }
.goals-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 11px; }
.gg { background: #fff; border-radius: 16px; padding: 13px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 9px; }
.gg-top { display: flex; align-items: flex-start; justify-content: space-between; }
.gg .gi { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.gg .gi svg { width: 19px; height: 19px; }
.gg .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .15s; }
.gg .radio svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.gg .radio.checked { background: var(--purple); border-color: var(--purple); }
.gg .radio.checked svg { opacity: 1; }
.gg b { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.gg small { font-size: 11px; color: var(--muted); }
.adjust { text-align: center; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 4px 0; }
.adjust svg { width: 15px; height: 15px; }

.hstats { display: flex; gap: 12px; }
.hstat { flex: 1; background: #fff; border-radius: 18px; padding: 15px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 8px; }
.hstat .hh { display: flex; align-items: center; gap: 7px; }
.hstat .hh .hi { width: 28px; height: 28px; border-radius: 8px; background: rgba(124,92,234,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hstat .hh .hi svg { width: 16px; height: 16px; color: var(--purple); }
.hstat .hh span { font-size: 12px; color: var(--ink2); font-weight: 600; }
.hstat .val { font-family: "Poppins"; font-weight: 600; font-size: 22px; }
.hstat .val small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.hstat .status { font-size: 13px; font-weight: 600; color: var(--purple); }
.hbar { height: 5px; border-radius: 3px; background: #eceaf6; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--purple); border-radius: 3px; }
.hstat .note { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.hstat .note.green { color: var(--green); font-weight: 600; }
.spark { width: 100%; height: 38px; }
.axis { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted2); }

.evo-head { display: flex; align-items: center; justify-content: space-between; }
.evo-head .eh-l { display: flex; align-items: center; gap: 10px; }
.evo-head .eh-l .ei { width: 34px; height: 34px; border-radius: 10px; background: rgba(124,92,234,.12); display: flex; align-items: center; justify-content: center; }
.evo-head .eh-l .ei svg { width: 18px; height: 18px; color: var(--purple); }
.evo-head h4 { font-family: "Poppins"; font-weight: 600; font-size: 15px; }
.evo-drop { border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.evo-drop svg { width: 13px; height: 13px; color: var(--muted); }
.legend { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
.legend span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); }
.legend i { width: 9px; height: 9px; border-radius: 50%; }

.ins-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; }
.ins-row + .ins-row { border-top: 1px solid var(--line); }
.ins-row .ii { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ins-row .ii svg { width: 20px; height: 20px; }
.ins-row .it { flex: 1; }
.ins-row .it b { font-family: "Poppins"; font-weight: 600; font-size: 14px; }
.ins-row .it p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Móvil: el teléfono ocupa toda la pantalla, sin lienzo ni marco */
@media (max-width: 640px) {
  .canvas { padding: 0; gap: 0; background: var(--bg); min-height: 100dvh; }
  .proto-cap { display: none; }
  .device { width: 100%; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .device-screen { border-radius: 0; height: 100dvh; }
}

.h-ring { position: relative; width: 40px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; z-index: 0; }
.h-ring svg.rg { position: absolute; inset: 0; width: 48px; height: 48px; }
.h-ring .ring-bg { fill: none; stroke: var(--line); stroke-width: 2.5; }
.h-ring .ring-fg { fill: none; stroke: var(--purple); stroke-width: 2.5; stroke-linecap: round; }
.h-ring .h-ic { width: 40px; height: 40px; border-radius: 12px; }
.h-ring .h-ic svg { width: 21px; height: 21px; }
.h-ring.formed .ring-fg { stroke: #6d4ee6; }
.h-ring.formed .h-ic { background: linear-gradient(135deg, #7c5cea, #5f37db); color: #fff; }

.form-banner { display: flex; align-items: center; gap: 13px; background: linear-gradient(135deg, rgba(124,92,234,.1), rgba(124,92,234,.04)); border: 1px solid rgba(124,92,234,.16); border-radius: 18px; padding: 14px 16px; }
.fb-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(124,92,234,.14); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.fb-ic svg { width: 21px; height: 21px; color: var(--purple); }
.fb-tx b { font-family: "Poppins"; font-weight: 600; font-size: 15px; color: var(--ink); display: block; }
.fb-tx span { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; line-height: 1.4; }
.h-prog { font-size: 11px; color: var(--muted); margin-top: 3px; display: inline-flex; align-items: center; gap: 6px; }

.conquest { display: flex; flex-direction: column; background: linear-gradient(135deg, rgba(124,92,234,.13), rgba(167,139,250,.05)); border: 1px solid rgba(124,92,234,.18); border-radius: 20px; padding: 16px; }
.cq-main { display: flex; align-items: center; gap: 15px; }
.cq-ring { position: relative; width: 56px; height: 56px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.cq-ring svg.rg { position: absolute; inset: 0; width: 56px; height: 56px; }
.cq-ring .ring-bg { fill: none; stroke: rgba(124,92,234,.18); stroke-width: 3.5; }
.cq-ring .ring-fg { fill: none; stroke: var(--purple); stroke-width: 3.5; stroke-linecap: round; }
.cq-ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(108,72,224,.2); }
.cq-ic svg { width: 20px; height: 20px; color: var(--purple); }
.cq-tx { flex: 1; min-width: 0; }
.cq-eb { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.cq-tx b { font-family: "Poppins"; font-weight: 600; font-size: 16px; color: var(--ink); display: block; margin-top: 2px; }
.cq-sub { font-size: 12.5px; color: var(--ink2); margin-top: 3px; display: block; }
.cq-foot { font-size: 11.5px; color: var(--muted); margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(124,92,234,.14); text-align: center; }
.cq-foot b { color: var(--purple); font-weight: 600; }
.h-prog.st-seed::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8bbf6a; flex: 0 0 auto; }
.h-prog.st-sprout::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2fb86b; flex: 0 0 auto; }
.h-prog.st-root::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; flex: 0 0 auto; }
.h-prog.formed { color: var(--purple); font-weight: 600; }
.h-prog.formed::before { content: "✦"; color: var(--purple); font-size: 11px; }
.h-ring.formed::before { content: "✦"; position: absolute; bottom: -2px; right: -2px; width: 17px; height: 17px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 9px; line-height: 1; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); z-index: 3; }
.h-ring.formed::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,234,.3), transparent 68%); z-index: -1; animation: conqglow 3s ease-in-out infinite; }
@keyframes conqglow { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .9; transform: scale(1.07); } }

/* ============================================================
   Bloque 2 — añadidos para la app real (no estaban en el diseño)
   Mantienen los mismos tokens y lenguaje visual.
   ============================================================ */

/* Onboarding del nombre */
.onb { position: absolute; inset: 0; z-index: 60; background: var(--bg); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 30px 80px; text-align: center; }
.onb.show { display: flex; animation: fade .3s ease; }
.onb .mark-big { width: 96px; height: 96px; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(.97); } 50% { transform: scale(1.05); } }
.onb h2 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 26px; color: var(--ink); }
.onb p { font-size: 14.5px; color: var(--muted); line-height: 1.5; max-width: 260px; }
.field { width: 100%; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-family: "Inter", sans-serif; font-size: 15px; color: var(--ink); text-align: center; }
.field:focus { outline: none; border-color: var(--purple); }
.btn-grad { font-family: "Inter", sans-serif; font-weight: 600; font-size: 15.5px; padding: 14px 30px; border: none; border-radius: 999px; background: var(--grad); color: #fff; cursor: pointer; box-shadow: 0 12px 30px rgba(95,55,219,.3); transition: transform .15s; }
.btn-grad:active { transform: scale(.97); }

/* Estado vacío reutilizable (tarjeta suave que invita a empezar) */
.empty-b { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 18px; color: var(--muted); }
.empty-b .eb-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(124,92,234,.1); display: flex; align-items: center; justify-content: center; }
.empty-b .eb-ic svg { width: 26px; height: 26px; color: var(--purple); }
.empty-b b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.empty-b p { font-size: 13px; line-height: 1.5; max-width: 250px; }
.eb-cta { display: inline-block; text-align: center; background: rgba(124,92,234,.1); color: var(--purple); font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.empty-b .eb-cta { margin-top: 4px; }
.empty-mini { color: var(--muted); font-size: 12.5px; text-align: center; padding: 12px 6px; line-height: 1.5; }

/* Progreso (días registrados para desbloquear patrones / salud) */
.prog-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 2px; }
.prog-bar { width: 200px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 3px; transition: width .6s; }

/* Modal genérico (añadir hábito, objetivo, check-in del cuerpo, experimento) */
.modal { position: absolute; inset: 0; z-index: 70; display: none; align-items: flex-end; justify-content: center; background: rgba(20,18,40,.4); }
.modal.show { display: flex; animation: fade .2s ease; }
.sheet { width: 100%; background: #fff; border-radius: 24px 24px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; max-height: 88%; overflow-y: auto; animation: sheetUp .28s cubic-bezier(.22,.61,.36,1); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; }
.sheet-h h3 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 18px; color: var(--ink); }
.sheet-x { background: none; border: none; cursor: pointer; color: var(--muted2); padding: 4px; }
.sheet-x svg { width: 20px; height: 20px; }
.sheet label { font-size: 12.5px; font-weight: 600; color: var(--ink2); margin-bottom: -6px; }
.sheet .field { max-width: none; text-align: left; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 80px; border: 1.5px solid var(--line); background: #fff; color: var(--ink2); border-radius: 12px; padding: 11px 8px; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.seg button.sel { border-color: var(--purple); background: rgba(124,92,234,.08); color: var(--purple); }
.sheet .btn-grad { width: 100%; margin-top: 4px; }

/* Micro grabando + transcripción en Diario */
.mic-big.rec { animation: micpulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 14px rgba(239,93,138,.14), 0 18px 40px rgba(95,55,219,.32); background: linear-gradient(135deg, #ef6f9a, #d6477b); }
@keyframes micpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.rec-line { text-align: center; }
.rec-time { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 20px; color: var(--ink); }
.rec-hint { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rec-transcript { font-size: 13.5px; color: var(--ink2); line-height: 1.55; margin-top: 8px; background: #f6f5fb; border-radius: 14px; padding: 12px 14px; }
.diary-textarea { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; font-family: "Inter", sans-serif; font-size: 14.5px; color: var(--ink); resize: vertical; }
.diary-textarea:focus { outline: none; border-color: var(--purple); }

/* Foto guardada en "Momento del día" */
.moment-photo { width: 100%; border-radius: 16px; max-height: 240px; object-fit: cover; margin-top: 12px; }

/* Selector de día */
.daybar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 20px 2px; flex: 0 0 auto; z-index: 4; }
.day-arrow { width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff; box-shadow: var(--sh); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.day-arrow:disabled { opacity: .35; cursor: default; }
.day-label { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); min-width: 96px; text-align: center; }

/* Nota solo-lectura (días pasados) */
.readonly-note { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(124,92,234,.08); color: var(--purple); font-size: 12.5px; font-weight: 600; border-radius: 14px; padding: 10px 14px; }

/* Lista de entradas del día / historial */
.elist { display: flex; flex-direction: column; gap: 10px; }
.elist-h { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); margin: 4px 0 0; }
.ecard { background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 13px 15px; cursor: pointer; display: flex; gap: 11px; align-items: flex-start; transition: transform .12s; }
.ecard:active { transform: scale(.99); }
.ecard .e-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(124,92,234,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ecard .e-ic svg { width: 18px; height: 18px; color: var(--purple); }
.ecard .e-main { flex: 1; min-width: 0; }
.ecard .e-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ecard .e-type { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.ecard .e-time { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.ecard .e-snip { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.e-day-h { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); margin: 14px 2px 8px; }

/* Conversación del día (burbujas) */
.convo { display: flex; flex-direction: column; gap: 8px; }
.cv-row { display: flex; }
.cv-row.you { justify-content: flex-end; cursor: pointer; }
.cv-row.breathy { justify-content: flex-start; }
.cv-bubble { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cv-you { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.cv-breathy { background: #f0eef9; color: var(--ink2); border-bottom-left-radius: 5px; }

/* Detalle de entrada (en hoja) */
.edetail { display: flex; flex-direction: column; gap: 12px; }
.edetail .ed-meta { font-size: 12.5px; color: var(--muted); }
.edetail .ed-q { background: #f6f5fb; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.edetail .ed-q b { color: var(--purple); }
.edetail .ed-text { font-size: 14.5px; color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.edetail .ed-photo { width: 100%; border-radius: 16px; max-height: 300px; object-fit: cover; }
.edetail .ed-sum { font-size: 13.5px; color: var(--ink2); line-height: 1.55; background: rgba(124,92,234,.06); border-radius: 12px; padding: 11px 13px; }

/* Burbujas de rutinas sugeridas */
.idea-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 9px 13px; border-radius: 999px; cursor: pointer; line-height: 1; transition: transform .12s; }
.idea-chip:active { transform: scale(.95); }
.idea-chip svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* Experimento como notificación plegable (tipo Cuídate) */
.exp-fold-btn { width: 100%; display: flex; align-items: center; gap: 11px; background: linear-gradient(135deg, rgba(124,92,234,.12), rgba(124,92,234,.05)); border: 1px solid rgba(124,92,234,.18); border-radius: 18px; padding: 14px 16px; cursor: pointer; text-align: left; font-family: inherit; }
.exp-fold-btn:active { transform: scale(.99); }
.exp-fold-btn .ef-ic { position: relative; width: 40px; height: 40px; border-radius: 12px; background: rgba(124,92,234,.14); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.exp-fold-btn .ef-ic svg { width: 21px; height: 21px; color: var(--purple); }
.exp-fold-btn .ef-tx { flex: 1; min-width: 0; }
.exp-fold-btn .ef-tx b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink); display: block; line-height: 1.25; }
.exp-fold-btn .ef-tx span { font-size: 12px; color: var(--muted); }
.ef-chev { color: var(--muted2); transition: transform .25s ease; flex: 0 0 auto; }
.exp-fold.open .ef-chev { transform: rotate(180deg); }
.exp-fold-dot { position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); border: 2.5px solid var(--card); animation: ndot 2.2s ease-out infinite; }
.exp-fold-panel { display: none; padding: 14px 4px 2px; }
.exp-fold.open .exp-fold-panel { display: block; animation: fade .25s ease; }

/* Aviso (punto) en la barra inferior */
.botnav .nv { position: relative; }
.nv-badge { position: absolute; top: 0; left: 50%; transform: translateX(8px); width: 9px; height: 9px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }

@media (prefers-reduced-motion: reduce) {
  .onb .mark-big, .care2-dot, .h-ring.formed::after, .mic-big.rec { animation: none !important; }
  .screen.active, .modal.show, .onb.show, .sheet { animation: none !important; }
  * { transition-duration: .01ms !important; }
}
