/* Peony UI Kit · tokens tomados del archivo Peony_Final.sketch */
:root {
  --page: #FBECE6;        /* softbrick */
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --card-soft: #FBECE6;   /* softbrick */
  --ink: #263154;         /* text1 */
  --ink-2: #3E4968;       /* text2 */
  --muted: #5F6782;
  --hair: rgba(14, 27, 66, .10);
  --primary: #60034C;     /* dark magenta */
  --primary-2: #F98B83;   /* salmon */
  --primary-soft: #FEE8E6;/* softpink */
  --mint: #FED5CB;        /* peach */
  --brick: #F8DACE;
  --softyellow: #FFF3E7;
  --gray: #F8F8F9;
  --crisis: #C23B3B;
  --crisis-soft: #FDE4E1;
  --sym: #E0812A;
  --sym-ink: #8A4B0A;
  --sym-soft: #FFF3E7;
  --ok: #2F7558;
  --ok-soft: #E6F3EC;
  --shadow: 0 2px 4px rgba(142,165,180,.18), 0 10px 24px -10px rgba(38,49,84,.18);
}
* { box-sizing: border-box; margin: 0; }
body { font-family: "Hanken Grotesk", system-ui, sans-serif; font-size: 16px; line-height: 1.45; color: var(--ink-2); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; }
button { cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, b, strong { color: var(--ink); }

.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.15em; }
.ic.b { stroke-width: 2.2; }

.scr { position: relative; width: 390px; height: 844px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.content { flex: 1; overflow: hidden; padding: 56px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.has-tabs .content { padding-bottom: 112px; }

/* Text styles: Title bold / Subtitle / Paragraph / small text */
.t-xl { font-size: 28px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; color: var(--ink); }
.t-lg { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.t-md { font-size: 16px; font-weight: 700; color: var(--ink); }
.t-sm { font-size: 14px; }
.t-xs { font-size: 13px; }
.muted { color: var(--muted); }
.serif { font-family: inherit; font-style: normal; font-weight: 700; color: var(--primary) !important; font-size: inherit !important; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.cap { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }

/* Cards: Peony usa tarjetas planas en softbrick, radio 20 */
.shell { background: none; border-radius: 20px; padding: 0; box-shadow: none; }
.core { background: var(--card-soft); border-radius: 20px; padding: 18px; box-shadow: none; }

/* button/top: círculo */
.iconbtn { width: 44px; height: 44px; border-radius: 50%; background: var(--gray); display: grid; place-items: center; font-size: 20px; color: var(--ink); box-shadow: none; flex: none; }
.chip-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }

/* button/default/big: pastilla magenta 64px, texto centrado */
.cta { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 32px; padding: 0 24px; background: var(--primary); color: #fff; font-weight: 700; font-size: 16px; box-shadow: none; }
.cta .knob { display: none; }
.ghost { width: 100%; min-height: 56px; border-radius: 32px; padding: 14px; font-weight: 700; background: var(--primary-soft); color: var(--primary); box-shadow: none; display: flex; align-items: center; justify-content: center; gap: 10px; }
.link { color: var(--primary); font-weight: 700; }
.danger { color: var(--crisis); font-weight: 700; }

/* Inputs: card/search (gris, radio 16) */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; padding-left: 2px; }
.input { background: var(--gray); border-radius: 16px; padding: 0 18px; min-height: 52px; box-shadow: none; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.input input { flex: 1; min-width: 0; height: 50px; outline: none; }
.input.focus { background: var(--gray); box-shadow: inset 0 0 0 1.5px var(--primary-2); }
textarea { background: var(--gray) !important; box-shadow: none !important; border-radius: 16px !important; color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.pill.crisis { background: var(--crisis-soft); color: var(--crisis); }
.pill.sym { background: var(--sym-soft); color: var(--sym-ink); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.pri { background: var(--primary-soft); color: var(--primary); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* Selección: control/tick y control/round en salmón */
.select { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--brick); font-weight: 700; color: var(--ink); }
.select.on { box-shadow: inset 0 0 0 1.5px var(--primary-2); background: var(--primary-soft); }
.select .mark { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); box-shadow: none; display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; }
.select.on .mark { background: var(--primary-2); }
.select.sq .mark { border-radius: 6px; }

/* control/toggle */
.toggle { width: 44px; height: 28px; border-radius: 16px; background: #E3E5EA; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(142,165,180,.41); }
.toggle.on { background: var(--primary-2); }
.toggle.on::after { transform: translateX(16px); }

.divider { height: 1px; background: var(--hair); }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--mint); display: grid; place-items: center; font-weight: 700; color: var(--primary); }

.orb { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #FED5CB url("img/e06bd5077bafaf0ea55c68ef5f70b0cb.png") center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(96,3,76,.12); position: relative; }
.orb::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #3FB47E; box-shadow: 0 0 0 2.5px #fff; }

/* Barra inferior · opción B: botón central de registro */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 92px; padding: 0 8px 18px; background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px -16px rgba(38,49,84,.3); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabs a .ic { font-size: 24px; }
.tabs a.on { color: var(--primary); font-weight: 700; }
.tabs a.tab-add { justify-self: center; margin-top: -35px; gap: 5px; color: var(--primary); font-weight: 700; white-space: nowrap; }
.tabs a.tab-add .fab { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 0 0 6px #fff, 0 14px 24px -10px rgba(96,3,76,.6); }
.tabs a.tab-add .fab .ic { font-size: 27px; stroke-width: 2; }

/* Chat */
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bub { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 14px; line-height: 1.45; }
.bub.ai { background: var(--card-soft); color: var(--ink-2); box-shadow: none; border-bottom-left-radius: 6px; align-self: flex-start; }
.bub.me { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--card-soft); border-radius: 18px; align-self: flex-start; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-2); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.composer { flex: none; margin: 0 16px 28px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--gray); box-shadow: none; }
.composer input { flex: 1; min-width: 0; height: 44px; outline: none; }
.composer .mic { width: 44px; height: 44px; display: grid; place-items: center; font-size: 21px; color: var(--muted); }
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 18px; }
.chathead { display: flex; align-items: center; gap: 12px; padding: 52px 20px 12px; }

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.cal .dow { font-size: 11px; font-weight: 700; color: var(--primary); padding-bottom: 2px; }
.cal .d { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--ink-2); background: #fff; }
.cal .d.s { background: var(--yellow, #FFCEA0); color: #6B3A06; }
.cal .d.c { background: var(--crisis); color: #fff; }
.cal .d.n { background: var(--ok-soft); color: var(--ok); }
.cal .d.sel { box-shadow: 0 0 0 2px var(--card-soft), 0 0 0 4px var(--primary); }
.cal .d.today { color: var(--primary); font-weight: 700; }
.seg { display: flex; background: var(--gray); border-radius: 16px; padding: 4px; }
.seg button { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

/* Montos: Amount/30 */
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat3 .shell { display: flex; }
.stat3 .core { flex: 1; padding: 14px 12px; }
.stat3 b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.stat3 span { font-size: 12px; color: var(--muted); }

/* Sheet */
.scrim { position: absolute; inset: 0; background: rgba(14,27,66,.45); z-index: 3; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: #fff; border-radius: 32px 32px 0 0; padding: 12px 24px 40px; display: flex; flex-direction: column; gap: 10px; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--brick); margin: 0 auto 8px; }
.opt { width: 100%; display: flex; align-items: center; gap: 14px; background: var(--card-soft); border-radius: 20px; padding: 16px; box-shadow: none; }
.opt .chip-ic { width: 48px; height: 48px; border-radius: 16px; font-size: 22px; }
.opt.crisis { background: var(--crisis-soft); box-shadow: none; }

/* PDF */
.paper { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 20px 40px -24px rgba(96,3,76,.35); display: flex; flex-direction: column; gap: 9px; font-size: 11px; transform: rotate(-1.2deg); }
.hb { display: grid; grid-template-columns: 64px 1fr 18px; align-items: center; gap: 8px; font-size: 11px; }
.hb i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--primary-2), var(--mint)); }
.skel { height: 6px; border-radius: 3px; background: var(--card-soft); }

/* Pantalla bloqueada */
.lock { background: linear-gradient(170deg, #60034C 0%, #263154 100%); color: #fff; }
.lock b { color: #fff; }
.lock .content { align-items: center; padding-top: 72px; }
.clock { font-size: 88px; font-weight: 300; letter-spacing: -4px; line-height: 1; }
.push { width: 100%; margin-top: 26px; border-radius: 24px; padding: 14px; display: flex; gap: 12px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.appicon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-2); color: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }

/* App/icon: cuadrado salmón */
.logo { width: 72px; height: 72px; border-radius: 22px; background: var(--primary-2); display: grid; place-items: center; color: #fff; font-size: 34px; box-shadow: none; flex: none; }

.alert { border-radius: 20px; padding: 18px; background: var(--crisis-soft); box-shadow: none; display: flex; flex-direction: column; gap: 10px; }
.alert .cta { background: var(--crisis); }
.flag { border-radius: 16px; padding: 12px 14px; background: var(--softyellow); color: var(--sym-ink); font-size: 13px; display: flex; gap: 8px; box-shadow: none; }

.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--primary-soft); }
.progress span.on { background: var(--primary-2); }

/* Backoffice */
.desk { min-height: 100%; background: #fff; display: flex; flex-wrap: wrap; align-items: stretch; }
.side { flex: 1 1 220px; max-width: 100%; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; border-right: 0; background: var(--card-soft); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); padding: 0 8px 22px; }
.brand .logo { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.nav .ic { font-size: 20px; }
.nav.on { background: #fff; color: var(--primary); box-shadow: none; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #fff; }
.side .me .avatar { width: 36px; height: 36px; font-size: 12px; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 36px; display: flex; flex-direction: column; gap: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kpis .shell, .grid2 > .shell { display: flex; }
.kpis .shell > .core, .grid2 > .shell > .core { flex: 1; }
.kpi .core { padding: 20px; }
.kpi b { display: block; font-size: 36px; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 2px; }
.trend { font-size: 12px; font-weight: 700; color: var(--ok); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.bars { height: 170px; display: flex; align-items: flex-end; gap: 5px; margin-top: 16px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--primary-2), var(--mint)); }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid var(--hair); }
.editor { width: 100%; min-height: 280px; background: var(--card-soft); border-radius: 20px; padding: 22px 24px; box-shadow: none; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.btn-sm { display: inline-flex; align-items: center; gap: 8px; border-radius: 28px; padding: 12px 18px; min-height: 44px; font-weight: 700; font-size: 14px; background: var(--primary-soft); color: var(--primary); box-shadow: none; white-space: nowrap; }
.btn-sm.pri { background: var(--primary); color: #fff; }
.wrap { flex-wrap: wrap; }

/* Ilustración 3D sobre fondo durazno (Peony Welcome) */
.hero3d { flex: none; height: 480px; border-radius: 0 0 40px 40px; margin: -56px -28px 0; background: linear-gradient(180deg, #FBECE6, #FED5CB); display: flex; align-items: center; justify-content: center; padding: 64px 28px 12px; position: relative; overflow: hidden; }
.hero3d img { width: 270px; max-width: 100%; height: auto; object-fit: contain; }

textarea.focus { box-shadow: inset 0 0 0 1.5px var(--primary-2) !important; }

.seg a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg a.on { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
