@import url("fonts/fonts.css");

/* ============ Tokens · Casa Altaluz (oliva + luz cálida) ============ */
:root {
  --canvas: #F2F1EC;
  --surface: #FCFBF8;
  --surface-2: #F5F4EF;
  --surface-3: #ECEBE4;
  --glass: rgba(252, 251, 248, .72);
  --ink: #1B231D;
  --ink-2: #48524A;
  --ink-3: #616962;
  --line: #E3E1D9;
  --line-2: #D6D4CB;
  --on-dark: #F6F5F0;
  --dark: #1B231D;
  --dark-2: #2A332C;

  --brand: #56723F;
  --brand-hi: #6E8C55;
  --brand-ink: #3A5029;
  --brand-tint: #E4ECD8;
  --brand-soft: #C9D9B6;

  --sun: #E6B94A;
  --sun-ink: #7A5A0B;
  --sun-tint: #F8EDCB;
  --lilac: #A893DB;
  --lilac-ink: #5B4596;
  --lilac-tint: #ECE6F8;
  --peach: #F0A585;
  --peach-ink: #8F4426;
  --peach-tint: #FCE6DB;
  --sky: #8DB6E2;
  --sky-ink: #2F5B88;
  --sky-tint: #E2EDF8;
  --rose: #E496AB;
  --rose-ink: #8E3550;
  --rose-tint: #F9E1E8;

  --ok: #2A6F48;
  --ok-tint: #DDF0E3;
  --warn: #8A5A00;
  --warn-tint: #FAECCB;
  --alert: #B23A30;
  --alert-tint: #FADFDB;

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 35, 29, .04), 0 10px 30px rgba(27, 35, 29, .06);
  --shadow-lg: 0 2px 6px rgba(27, 35, 29, .06), 0 24px 60px rgba(27, 35, 29, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0F1310; --surface: #181E19; --surface-2: #1F2620; --surface-3: #283029; --glass: rgba(24, 30, 25, .74);
    --ink: #EEF1EA; --ink-2: #C1C8BE; --ink-3: #9AA398; --line: #2B332C; --line-2: #3A433B; --on-dark: #121712;
    --dark: #EEF1EA; --dark-2: #D6DCD2;
    --brand: #9CBD82; --brand-hi: #B3D19A; --brand-ink: #CBE2B6; --brand-tint: #233020; --brand-soft: #34482B;
    --sun: #E9C463; --sun-ink: #F3D98F; --sun-tint: #352E1A;
    --lilac: #B7A6E6; --lilac-ink: #D3C8F5; --lilac-tint: #2A2540;
    --peach: #F2B094; --peach-ink: #F7C9B4; --peach-tint: #3A2820;
    --sky: #9DC3EA; --sky-ink: #C2DBF5; --sky-tint: #1C2B3A;
    --rose: #EAA6B8; --rose-ink: #F4C6D3; --rose-tint: #3A2229;
    --ok: #7CCB98; --ok-tint: #1D3326; --warn: #F0C46A; --warn-tint: #3A2F15; --alert: #F2958B; --alert-tint: #3D1F1C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0F1310; --surface: #181E19; --surface-2: #1F2620; --surface-3: #283029; --glass: rgba(24, 30, 25, .74);
  --ink: #EEF1EA; --ink-2: #C1C8BE; --ink-3: #9AA398; --line: #2B332C; --line-2: #3A433B; --on-dark: #121712;
  --dark: #EEF1EA; --dark-2: #D6DCD2;
  --brand: #9CBD82; --brand-hi: #B3D19A; --brand-ink: #CBE2B6; --brand-tint: #233020; --brand-soft: #34482B;
  --sun: #E9C463; --sun-ink: #F3D98F; --sun-tint: #352E1A;
  --lilac: #B7A6E6; --lilac-ink: #D3C8F5; --lilac-tint: #2A2540;
  --peach: #F2B094; --peach-ink: #F7C9B4; --peach-tint: #3A2820;
  --sky: #9DC3EA; --sky-ink: #C2DBF5; --sky-tint: #1C2B3A;
  --rose: #EAA6B8; --rose-ink: #F4C6D3; --rose-tint: #3A2229;
  --ok: #7CCB98; --ok-tint: #1D3326; --warn: #F0C46A; --warn-tint: #3A2F15; --alert: #F2958B; --alert-tint: #3D1F1C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
em.serif, .serif em { font-style: italic; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { display: inline-block; vertical-align: -.22em; width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.ic.duo path[opacity] { opacity: .28; }

/* ============ Botones, chips y etiquetas ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font-weight: 650; font-size: 14px; white-space: nowrap; text-decoration: none; transition: transform .18s var(--ease), background .2s, box-shadow .2s;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn:hover { background: var(--surface-2); }
.btn:active, .press:active { transform: scale(.97); }
.btn.dark { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.btn.dark:hover { background: var(--dark-2); }
.btn.brand { background: var(--brand); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .btn.brand { color: #142010; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.brand { color: #142010; } }
.btn.brand:hover { background: var(--brand-hi); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.lg { min-height: 54px; padding: 0 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn .arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); margin-right: -10px; }
.btn.dark .arrow { background: var(--on-dark); color: var(--dark); }
.btn.alert { background: var(--alert); color: #fff; box-shadow: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); position: relative; transition: transform .18s var(--ease), background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 2px var(--surface); }
.icon-btn.dark { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.round-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--on-dark); flex: none; transition: transform .2s var(--ease); }
.press:hover .round-arrow { transform: rotate(-12deg) scale(1.05); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s;
}
.chip[aria-pressed="true"], .chip.on { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.chip[aria-pressed="true"] .muted, .chip.on .muted { color: inherit; opacity: .75; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.plain::before { display: none; }
.tag.ok { background: var(--ok-tint); color: var(--ok); }
.tag.warn { background: var(--warn-tint); color: var(--warn); }
.tag.alert { background: var(--alert-tint); color: var(--alert); }
.tag.brand { background: var(--brand-tint); color: var(--brand-ink); }
.tag.lilac { background: var(--lilac-tint); color: var(--lilac-ink); }
.tag.sky { background: var(--sky-tint); color: var(--sky-ink); }
.tag.peach { background: var(--peach-tint); color: var(--peach-ink); }
.tag.sun { background: var(--sun-tint); color: var(--sun-ink); }
.tag.rose { background: var(--rose-tint); color: var(--rose-ink); }
.tag.mute { background: var(--surface-3); color: var(--ink-2); }

.ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--lilac-ink); background: var(--lilac-tint); padding: 4px 10px; border-radius: 999px; }

/* chips de ícono en color (pastel) */
.ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--ink-2); }
.ico.sm { width: 32px; height: 32px; border-radius: 11px; }
.ico.lg { width: 52px; height: 52px; border-radius: 18px; }
.ico.round { border-radius: 50%; }
.ico .ic { width: 22px; height: 22px; }
.ico.sm .ic { width: 18px; height: 18px; }
.ico.lg .ic { width: 28px; height: 28px; }
.t-brand { background: var(--brand-tint) !important; color: var(--brand-ink) !important; }
.t-sun { background: var(--sun-tint) !important; color: var(--sun-ink) !important; }
.t-lilac { background: var(--lilac-tint) !important; color: var(--lilac-ink) !important; }
.t-peach { background: var(--peach-tint) !important; color: var(--peach-ink) !important; }
.t-sky { background: var(--sky-tint) !important; color: var(--sky-ink) !important; }
.t-rose { background: var(--rose-tint) !important; color: var(--rose-ink) !important; }
.t-alert { background: var(--alert-tint) !important; color: var(--alert) !important; }
.t-ok { background: var(--ok-tint) !important; color: var(--ok) !important; }
.t-dark { background: var(--dark) !important; color: var(--on-dark) !important; }

/* avatar ilustrado */
.av { display: inline-block; vertical-align: middle; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: var(--sky-tint); position: relative; }
.av img { width: 100%; height: 100%; object-fit: cover; transform: translateY(4%) scale(1.04); }
.av.xs { width: 28px; height: 28px; }
.av.sm { width: 36px; height: 36px; }
.av.md { width: 56px; height: 56px; }
.av.lg { width: 76px; height: 76px; }
.av.ring { box-shadow: 0 0 0 3px var(--surface); }
.av.mono { display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.av-stack { display: flex; }
.av-stack .av { margin-left: -10px; box-shadow: 0 0 0 2.5px var(--surface); }
.av-stack .av:first-child { margin-left: 0; }
.bg-brand { background: var(--brand-tint); } .bg-sun { background: var(--sun-tint); } .bg-lilac { background: var(--lilac-tint); }
.bg-peach { background: var(--peach-tint); } .bg-sky { background: var(--sky-tint); } .bg-rose { background: var(--rose-tint); }

/* ============ Tarjetas ============ */
.card { background: var(--surface); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); position: relative; min-width: 0; }
.card.flat { box-shadow: none; }
.card.tint { background: var(--surface-2); box-shadow: none; }
.card.dark { background: var(--dark); color: var(--on-dark); }
.card.dark .muted { color: color-mix(in srgb, var(--on-dark) 66%, transparent); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-width: 0; }
.card-h h2, .card-h h3 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.card-h .act { font-size: 13px; font-weight: 650; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.tile { background: var(--surface-2); border-radius: var(--r-md); padding: 16px; min-width: 0; }
.link-card { transition: transform .25s var(--ease), box-shadow .25s; cursor: pointer; text-align: left; }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.link-card:active { transform: scale(.985); }
.big { font-size: 40px; font-weight: 650; line-height: 1; letter-spacing: -.035em; }
.mid { font-size: 26px; font-weight: 650; line-height: 1.05; letter-spacing: -.03em; }
.delta { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
.delta.down { background: var(--alert-tint); color: var(--alert); }
.delta.flat { background: var(--surface-3); color: var(--ink-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.note { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.note .ic { width: 15px; height: 15px; margin-top: 1px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* listas */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; min-width: 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row b { font-weight: 650; display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .time { font-size: 18px; font-weight: 650; width: 58px; flex: none; letter-spacing: -.02em; }
.row.btnrow { width: 100%; text-align: left; border-radius: 14px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; width: calc(100% + 16px); transition: background .2s; }
.row.btnrow:hover { background: var(--surface-2); }
.row.btnrow + .row.btnrow { border-top-color: transparent; }
.pill-list { display: flex; flex-direction: column; gap: 8px; }
.pill-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--surface-2); min-width: 0; text-align: left; width: 100%; transition: background .2s, transform .18s var(--ease); }
.pill-item:hover { background: var(--surface-3); }
.pill-item .grow { flex: 1; min-width: 0; }
.pill-item b { display: block; font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-item small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* barras de progreso */
.bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .9s var(--ease); }
.bar.hatch { background-image: repeating-linear-gradient(-45deg, var(--line-2) 0 2px, transparent 2px 7px); background-color: var(--surface-2); }
.milestones { position: relative; padding-top: 30px; }
.milestones .mk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0; }
.milestones .mk span { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; }
.milestones .mk span .ic { width: 14px; height: 14px; }
.milestones .mk::after { content: ""; width: 2px; height: 10px; background: var(--ink); }
.milestones .scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }

/* ============ Portada (LongevAi) ============ */
.landing { max-width: 1280px; margin: 0 auto; padding: 18px max(20px, env(safe-area-inset-right)) 60px max(20px, env(safe-area-inset-left)); }
.l-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 18px; }
.lv-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.lv-brand img { width: 26px; height: auto; }
.lv-brand small { font-weight: 600; font-size: 12px; color: var(--ink-3); letter-spacing: 0; }
.l-top .acts { display: flex; gap: 8px; align-items: center; }
.hero {
  position: relative; border-radius: 40px; overflow: hidden; padding: 56px 48px; min-height: 620px;
  background: radial-gradient(120% 90% at 85% 0%, var(--sun-tint) 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, var(--brand-tint) 0%, transparent 60%), var(--surface);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: .98; font-weight: 700; letter-spacing: -.045em; margin: 14px 0 18px; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--brand-ink); }
.hero p.intro { font-size: 18px; color: var(--ink-2); max-width: 520px; line-height: 1.55; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero .trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.trust .ic { color: var(--brand); }
.collage { position: relative; height: 540px; }
.collage .photo { position: absolute; inset: 0 0 0 40px; border-radius: 32px; overflow: hidden; background: var(--brand-tint); }
.collage .photo img { width: 100%; height: 100%; object-fit: cover; }
.collage .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 16, 11, .35)); }
.float {
  position: absolute; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .5); min-width: 0;
  animation: flotar 7s ease-in-out infinite;
}
:root[data-theme="dark"] .float { border-color: rgba(255, 255, 255, .08); }
.float.f1 { top: 28px; left: 0; width: 230px; }
.float.f2 { top: 210px; right: -10px; width: 250px; animation-delay: -2s; }
.float.f3 { bottom: 34px; left: 10px; width: 270px; animation-delay: -4s; }
.float .k { font-size: 12px; color: var(--ink-3); font-weight: 600; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.section { margin-top: 80px; }
.section-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-h h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; max-width: 680px; }
.section-h h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--brand-ink); }
.section-h p { color: var(--ink-2); max-width: 420px; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door { border-radius: 32px; padding: 26px; min-height: 300px; display: flex; flex-direction: column; gap: 14px; text-align: left; position: relative; overflow: hidden; }
.door h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.door ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink-2); }
.door li { display: flex; gap: 8px; align-items: flex-start; }
.door li .ic { color: var(--brand); margin-top: 2px; width: 16px; height: 16px; }
.door .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.door .who { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.door.d1 { background: var(--brand-tint); } .door.d2 { background: var(--lilac-tint); } .door.d3 { background: var(--peach-tint); }
.door.d1 h3, .door.d1 li { color: var(--brand-ink); } .door.d2 h3, .door.d2 li { color: var(--lilac-ink); } .door.d3 h3, .door.d3 li { color: var(--peach-ink); }
.door.d1 li .ic { color: var(--brand-ink); } .door.d2 li .ic { color: var(--lilac-ink); } .door.d3 li .ic { color: var(--peach-ink); }

.bento-l { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feat { border-radius: 30px; padding: 24px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; position: relative; }
.feat h3 { font-size: 20px; letter-spacing: -.025em; font-weight: 700; }
.feat p { color: var(--ink-2); font-size: 14.5px; }
.feat .shot { margin-top: auto; }
.feat.photo-bg { color: #fff; min-height: 300px; justify-content: flex-end; background: #1B231D; }
.feat.photo-bg img.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.feat.photo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(8, 12, 9, .78)); }
.feat.photo-bg > *:not(img) { position: relative; z-index: 1; }
.feat.photo-bg p { color: rgba(255, 255, 255, .86); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { border-radius: 32px; padding: 28px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.rec { background: var(--dark); color: var(--on-dark); }
.plan.rec .muted { color: color-mix(in srgb, var(--on-dark) 68%, transparent); }
.plan .price { font-size: 46px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.plan .price small { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; }
.plan li .ic { color: var(--brand); width: 18px; height: 18px; }
.plan.rec li .ic { color: var(--sun); }
.plan .badge { position: absolute; top: 22px; right: 22px; background: var(--sun); color: #3a2a00; font-size: 12px; font-weight: 750; padding: 5px 12px; border-radius: 999px; }
.offer { margin-top: 16px; border-radius: 26px; padding: 18px 22px; background: var(--sun-tint); color: var(--sun-ink); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.l-foot { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }

/* ============ Dirección (escritorio) ============ */
.desk { max-width: 1440px; margin: 0 auto; padding: 16px max(22px, env(safe-area-inset-right)) 40px max(22px, env(safe-area-inset-left)); }
.topbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; position: sticky; top: 0; z-index: 30; padding: 10px 0; background: var(--canvas); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: linear-gradient(var(--canvas), transparent); pointer-events: none; }
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 8px; }
.logo-tile { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); flex: none; }
.logo-tile svg { width: 28px; height: 28px; }
.house-pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 14px; border-radius: 16px; background: var(--dark); color: var(--on-dark); font-weight: 650; font-size: 14px; white-space: nowrap; flex: none; }
.house-pill > span { display: block; }
.desk-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.nums3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.nums3 .tile { display: flex; align-items: center; gap: 12px; }
.nums3 b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.nums3 small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.house-pill small { display: block; font-size: 11px; font-weight: 600; opacity: .62; line-height: 1; }
.house-pill b { display: block; line-height: 1.2; }
.navpill { display: flex; gap: 4px; padding: 5px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); }
.navpill a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.navpill a:hover { color: var(--ink); background: var(--surface-2); }
.navpill a[aria-current="page"] { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .navpill a[aria-current="page"] { color: #142010; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .navpill a[aria-current="page"] { color: #142010; } }
.navpill a .ic { width: 18px; height: 18px; }
.roleswitch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-3); }
.roleswitch a { height: 36px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; text-decoration: none; color: var(--ink-2); }
.roleswitch a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.roleswitch a .ic { width: 16px; height: 16px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 22px 0 22px; flex-wrap: wrap; }
.page-h h1 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.page-h h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--brand-ink); letter-spacing: -.02em; }
.page-h p { color: var(--ink-2); margin-top: 8px; }
.page-h .meta { text-align: right; font-size: 13px; color: var(--ink-3); }
.page-h .meta b { display: flex; align-items: center; gap: 6px; justify-content: flex-end; color: var(--ink); font-size: 14px; }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.stat4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 20px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .2s var(--ease), background .2s; }
.stat:hover { background: var(--surface-3); }
.stat .rg { position: relative; width: 52px; height: 52px; }
.stat .rg svg { position: absolute; inset: 0; }
.stat .rg .ic { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; }
.stat b { font-size: 14px; font-weight: 650; line-height: 1.2; }
.stat .v { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.stat .v strong { color: var(--ink); font-size: 20px; letter-spacing: -.02em; }

.ai-card { color: #fff; overflow: hidden; background: #2E3F27; display: flex; flex-direction: column; min-height: 330px; }
.ai-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.8); }
.ai-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 44, 25, .2), rgba(18, 28, 15, .78)); }
.ai-card > *:not(img) { position: relative; z-index: 1; }
.ai-card h3 { font-size: 20px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.ai-q { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ai-q button { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .22); text-align: left; transition: background .2s; }
.ai-q button:hover { background: rgba(255, 255, 255, .28); }
.ai-box { margin-top: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px; padding: 10px; backdrop-filter: blur(14px); }
.ai-box .in { display: flex; align-items: center; gap: 8px; background: #fff; color: #1B231D; border-radius: 16px; padding: 6px 6px 6px 14px; }
.ai-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: #1B231D; height: 34px; }
.ai-box .send { width: 36px; height: 36px; border-radius: 12px; background: #1B231D; color: #fff; display: grid; place-items: center; }
.ai-ans { background: rgba(255, 255, 255, .95); color: #1B231D; border-radius: 18px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-top: 10px; animation: subir .35s var(--ease); }
.ai-ans .ai-label { background: #ECE6F8; color: #5B4596; margin-bottom: 6px; }

.attn { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 20px; background: var(--surface-2); }
.attn + .attn { margin-top: 8px; }
.attn .grow { flex: 1; min-width: 0; }
.attn b { font-weight: 650; font-size: 14px; display: block; }
.attn p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.attn .acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.attn.done { opacity: .55; }
.attn.done b { text-decoration: line-through; }

/* residentes */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.res-card { background: var(--surface); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; text-align: left; transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.res-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.res-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.res-card .meta { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.res-card .meta b { color: var(--ink-2); font-weight: 650; }
.res-card .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.view-pill { height: 30px; padding: 0 14px; border-radius: 999px; background: var(--sun); color: #3A2A00; font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.searchbox { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.searchbox input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }

/* residente 360 */
.portrait { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 420px; }
.portrait .art { position: relative; flex: 1; min-height: 260px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.portrait .art img { width: 78%; max-width: 300px; transform: translateY(10%); }
.portrait .art .name { position: absolute; top: 20px; left: 22px; right: 22px; }
.portrait .art .name h2 { font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.portrait .art .name p { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.portrait .actions { display: flex; gap: 8px; padding: 14px 16px; background: var(--surface); justify-content: space-between; align-items: center; }
.portrait .actions .icon-btns { display: flex; gap: 8px; }
.dialwrap { display: grid; place-items: center; position: relative; margin: 6px auto 10px; width: 220px; height: 220px; }
.dialwrap .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.dialwrap .center b { display: block; font-size: 56px; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.dialwrap .center small { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.ai-pill { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px 10px 14px; border-radius: 20px; background: var(--lilac-ink); color: #fff; text-align: left; transition: transform .18s var(--ease), filter .2s; }
:root[data-theme="dark"] .ai-pill { color: #1d1636; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ai-pill { color: #1d1636; } }
.ai-pill:hover { filter: brightness(1.05); }
.ai-pill .grow { flex: 1; }
.ai-pill b { display: block; font-size: 14px; } .ai-pill small { font-size: 12px; }
.ai-pill .go { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #5B4596; display: grid; place-items: center; }
.vit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vit .tile { display: flex; flex-direction: column; gap: 6px; }
.vit .tile .h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vit .tile .v { font-size: 26px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.vit .tile .v small { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.daytl { position: relative; overflow-x: auto; padding-bottom: 6px; }
.daytl .track { position: relative; min-width: 760px; height: 256px; }
.daytl .hours { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); border-bottom: 1px dashed var(--line-2); padding-bottom: 6px; }
.daytl .now { position: absolute; top: 24px; bottom: 0; width: 2px; background: var(--ink); }
.daytl .now::before { content: attr(data-t); position: absolute; top: -2px; left: 50%; transform: translate(-50%, -100%); background: var(--ink); color: var(--canvas); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ev { position: absolute; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 12.5px; white-space: nowrap; transition: transform .2s var(--ease); }
.ev:hover { transform: translateY(-2px); }
.ev b { display: block; font-size: 13px; font-weight: 650; }
.ev small { display: block; font-size: 11.5px; color: var(--ink-3); }
.ev.done .ico { position: relative; }
.ev.done .ico::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4L19 7' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/9px no-repeat; box-shadow: 0 0 0 2px var(--surface); }
.goal { display: flex; flex-direction: column; gap: 6px; }
.goal + .goal { margin-top: 12px; }
.goal .h { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.likes { display: flex; gap: 6px; flex-wrap: wrap; }

/* agenda */
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 880px; position: relative; }
.week-wrap { overflow-x: auto; }
.week .dh { padding: 10px 8px; text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.week .dh b { display: block; font-size: 20px; color: var(--ink); font-weight: 650; letter-spacing: -.02em; }
.week .dh.today b { background: var(--dark); color: var(--on-dark); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin: 2px auto 0; font-size: 16px; }
.week .hr { font-size: 11.5px; color: var(--ink-3); text-align: right; padding-right: 8px; height: 64px; transform: translateY(-7px); }
.week .cell { border-top: 1px solid var(--line); border-left: 1px solid var(--line); height: 64px; position: relative; }
.blk { position: absolute; left: 4px; right: 4px; border-radius: 14px; padding: 7px 9px; font-size: 12px; text-align: left; overflow: hidden; z-index: 2; transition: transform .2s var(--ease), box-shadow .2s; display: flex; flex-direction: column; gap: 2px; }
.blk:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); z-index: 3; }
.blk b { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.blk small { font-size: 11px; }
.blk.cat-mov { background: var(--brand-tint); color: var(--brand-ink); }
.blk.cat-mente { background: var(--lilac-tint); color: var(--lilac-ink); }
.blk.cat-arte { background: var(--peach-tint); color: var(--peach-ink); }
.blk.cat-nat { background: var(--sun-tint); color: var(--sun-ink); }
.blk.cat-salud { background: var(--sky-tint); color: var(--sky-ink); }
.blk.cat-fam { background: var(--rose-tint); color: var(--rose-ink); }
.datestrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.datestrip::-webkit-scrollbar { display: none; }
.datestrip a { text-decoration: none; }
.datestrip button, .datestrip a { flex: none; width: 58px; height: 66px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; color: var(--ink-3); font-weight: 600; transition: background .2s, transform .18s var(--ease); }
.datestrip button b, .datestrip a b { font-size: 19px; color: var(--ink); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.datestrip [aria-pressed="true"], .datestrip [aria-current] { background: var(--dark); color: color-mix(in srgb, var(--on-dark) 70%, transparent); width: 84px; box-shadow: none; }
.datestrip [aria-pressed="true"] b, .datestrip [aria-current] b { color: var(--on-dark); }

/* semana: columna de horas + 7 columnas con bloques */
.hrs { position: relative; height: 768px; }
.hrs span { position: absolute; right: 8px; transform: translateY(-7px); font-size: 11.5px; color: var(--ink-3); }
.daycol { position: relative; height: 768px; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 64px); }
.daycol.hoy { background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 64px), var(--surface-2); border-radius: 14px; }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--alert); z-index: 4; pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--alert); }
.only-m { display: none; }
.solo-cel { display: none !important; }
@media (max-width: 760px) { .solo-cel { display: grid !important; } }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pill-item[aria-pressed="true"] { background: var(--ok-tint); }

/* admisiones */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--surface-2); border-radius: 26px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 6px; }
.col-h b { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.col-h .n { font-size: 12px; font-weight: 700; background: var(--surface); padding: 2px 9px; border-radius: 999px; }
.lead { background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; gap: 8px; transition: transform .2s var(--ease), box-shadow .2s; width: 100%; }
.lead:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.lead .h { display: flex; gap: 10px; align-items: center; }
.lead b { font-size: 14.5px; font-weight: 650; display: block; }
.lead small { color: var(--ink-3); font-size: 12.5px; display: block; }
.lead .f { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.proposal { border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.proposal .ph { height: 170px; position: relative; }
.proposal .ph img { width: 100%; height: 100%; object-fit: cover; }
.proposal .ph span { position: absolute; left: 14px; bottom: 12px; }
.proposal .bd { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* finanzas */
.kpi { display: flex; flex-direction: column; gap: 10px; }
.kpi .h { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.kpi .row2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }

/* ============ Escenario de teléfono (Equipo y Familia) ============ */
.stage { min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, 400px) auto; justify-content: center; align-items: center; gap: 64px; padding: 28px; position: relative;
  background: radial-gradient(60% 60% at 75% 20%, var(--sun-tint), transparent 70%), radial-gradient(60% 60% at 10% 90%, var(--brand-tint), transparent 70%), var(--canvas); }
.stage.familia { background: radial-gradient(60% 60% at 75% 20%, var(--peach-tint), transparent 70%), radial-gradient(60% 60% at 10% 90%, var(--rose-tint), transparent 70%), var(--canvas); }
.ctx { display: flex; flex-direction: column; gap: 18px; }
.ctx h1 { font-size: 44px; line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.ctx h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--brand-ink); }
.stage.familia .ctx h1 em { color: var(--peach-ink); }
.ctx p { color: var(--ink-2); font-size: 16px; }
.ctx ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ctx li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.ctx li .ico { margin-top: -4px; }
.phone { width: 390px; height: min(844px, calc(100dvh - 56px)); border-radius: 54px; background: #0E120F; padding: 11px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .1); position: relative; flex: none; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--canvas); isolation: isolate; }
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 54px 18px 120px; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { display: none; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0 34px; font-size: 14px; font-weight: 700; pointer-events: none; }
.statusbar .isl { width: 110px; height: 32px; border-radius: 20px; background: #0E120F; position: absolute; left: 50%; top: 9px; transform: translateX(-50%); }
.statusbar .sig { display: flex; gap: 5px; align-items: center; }
.statusbar .sig .ic { width: 16px; height: 16px; }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 18px; height: 70px; border-radius: 26px; background: var(--dark); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; z-index: 15; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
:root[data-theme="dark"] .tabbar { background: #262E27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar { background: #262E27; } }
.tabbar a, .tabbar button { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: rgba(246, 245, 240, .55); text-decoration: none; position: relative; transition: color .2s, background .2s, transform .18s var(--ease); }
.tabbar a .ic, .tabbar button .ic { width: 25px; height: 25px; }
.tabbar a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); }
.tabbar .plus { background: var(--sun); color: #2A2000; width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 8px 22px rgba(230, 185, 74, .4); }
.tabbar .plus .ic { width: 28px; height: 28px; }
.tabbar a:active, .tabbar button:active { transform: scale(.92); }
.tabbar .badge { position: absolute; top: 9px; right: 10px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--peach); color: #3b1a0c; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

/* contenido móvil */
.m-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.m-hello { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-hello b { display: block; font-size: 15px; font-weight: 700; }
.m-hello small { display: block; font-size: 12.5px; color: var(--ink-3); }
.m-title { font-size: 38px; line-height: 1; letter-spacing: -.045em; font-weight: 700; margin: 6px 0 14px; }
.m-title em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--brand-ink); }
.familia .m-title em, .m-title.fam em { color: var(--peach-ink); }
.m-sec { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 10px; }
.m-sec h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.m-sec a, .m-sec button { font-size: 13px; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.m-card { background: var(--surface); border-radius: 26px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { border-radius: 24px; padding: 14px; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; text-align: left; transition: transform .2s var(--ease); min-width: 0; }
.mini .h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; }
.mini .h .ic { width: 18px; height: 18px; }
.mini .v { font-size: 30px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.mini .v small { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.mini.g-brand { background: var(--brand-tint); color: var(--brand-ink); }
.mini.g-sun { background: var(--sun-tint); color: var(--sun-ink); }
.mini.g-sky { background: var(--sky-tint); color: var(--sky-ink); }
.mini.g-lilac { background: var(--lilac-tint); color: var(--lilac-ink); }
.mini.g-peach { background: var(--peach-tint); color: var(--peach-ink); }
.mini.g-rose { background: var(--rose-tint); color: var(--rose-ink); }

/* carrusel de tarjetas del turno (inspiración: tarjetas de recordatorio) */
.deck { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 18px 14px; margin: 0 -18px; scrollbar-width: none; }
.deck::-webkit-scrollbar { display: none; }
.task { scroll-snap-align: center; flex: none; width: 210px; min-height: 250px; border-radius: 28px; padding: 18px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; transition: transform .25s var(--ease), opacity .3s; }
.task .tm { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.task .art { flex: 1; display: grid; place-items: center; }
.task .art .ico { width: 84px; height: 84px; border-radius: 30px; }
.task .art .ico .ic { width: 44px; height: 44px; }
.task b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.task small { font-size: 12.5px; color: var(--ink-3); }
.task .done-btn { margin-top: 6px; }
.task.hecha { background: var(--surface-2); box-shadow: none; }
.task.hecha .art { opacity: .5; }
.task.hecha .tm::after { content: " ✓"; color: var(--ok); }
.task.next { background: var(--dark); color: var(--on-dark); }
.task.next small { color: color-mix(in srgb, var(--on-dark) 66%, transparent); }

.agenda-m { display: grid; grid-template-columns: 48px 1fr; gap: 0 10px; }
.agenda-m .t { font-size: 13px; font-weight: 700; padding-top: 14px; }
.agenda-m .t small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.agenda-m .rail { border-left: 2px solid var(--line-2); padding: 0 0 10px 12px; margin-left: -12px; }
.agenda-m .card-ev { border-radius: 24px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; }
.agenda-m .card-ev h3 { font-size: 19px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.agenda-m .card-ev .f { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.mood { display: flex; justify-content: space-between; gap: 6px; }
.mood button { flex: 1; aspect-ratio: 1; max-width: 62px; border-radius: 20px; background: var(--surface-2); display: grid; place-items: center; font-size: 30px; transition: transform .18s var(--ease), background .2s, box-shadow .2s; }
.mood button[aria-pressed="true"] { background: var(--sun-tint); box-shadow: inset 0 0 0 2px var(--sun); transform: scale(1.06); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { min-height: 56px; border-radius: 18px; background: var(--surface-2); font-weight: 650; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; text-align: center; transition: background .2s, transform .18s var(--ease), box-shadow .2s; }
.opt[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--brand); }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border-radius: 18px; font-size: 11.5px; font-weight: 650; transition: background .2s; }
.pick[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand-ink); }
.pick .av { width: 52px; height: 52px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.field input, .field textarea, .field select { border: 0; border-radius: 16px; background: var(--surface-2); padding: 12px 14px; font-size: 16px; outline: none; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; width: 100%; }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border-radius: 22px; background: var(--surface-2); }
.stepper b { font-size: 34px; font-weight: 650; letter-spacing: -.04em; }
.stepper button { width: 54px; height: 54px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }

.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; width: 168px; scroll-snap-align: start; }
.gallery img { width: 168px; height: 200px; object-fit: cover; border-radius: 22px; }
.gallery figcaption { font-size: 12.5px; font-weight: 600; margin-top: 6px; color: var(--ink-2); }

.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.45; background: var(--surface); box-shadow: var(--shadow); animation: subir .3s var(--ease); }
.msg small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.msg.me { align-self: flex-end; background: var(--dark); color: var(--on-dark); border-bottom-right-radius: 6px; }
.msg.me small { color: color-mix(in srgb, var(--on-dark) 60%, transparent); }
.msg.them { border-bottom-left-radius: 6px; }
.msg-who { display: flex; gap: 8px; align-items: flex-end; }
.composer { position: absolute; left: 14px; right: 14px; bottom: 100px; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); z-index: 14; }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; height: 40px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots button { height: 46px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 650; font-size: 14px; }
.slots button[aria-pressed="true"] { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.slots button:disabled { opacity: .5; text-decoration: line-through; cursor: not-allowed; }
.paycard { border-radius: 30px; padding: 22px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #6E8C55 0%, transparent 55%), radial-gradient(90% 90% at 0% 100%, #A893DB 0%, transparent 60%), #1B231D; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg); }
.paycard .amt { font-size: 40px; font-weight: 700; letter-spacing: -.04em; }

/* ============ Hojas, cajones y avisos ============ */
.veil { position: fixed; inset: 0; background: rgba(12, 16, 13, .38); z-index: 60; opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.veil.on { opacity: 1; }
.drawer { position: fixed; z-index: 61; top: 12px; right: 12px; bottom: 12px; width: min(480px, calc(100vw - 24px)); background: var(--surface); border-radius: 30px; box-shadow: var(--shadow-lg); transform: translateX(110%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer .dh, .sheet .dh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 18px 10px 22px; }
.drawer .dh h2, .sheet .dh h2 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.drawer .db, .sheet .db { padding: 6px 22px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.screen .veil { position: absolute; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88%; background: var(--surface); border-radius: 32px 32px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .35s var(--ease); display: flex; flex-direction: column; padding-bottom: 14px; }
.sheet.on { transform: none; }
.sheet::before { content: ""; width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 10px auto 0; flex: none; }
#toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--dark); color: var(--on-dark); padding: 10px 18px 10px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: subir .35s var(--ease); }
.toast .ok { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: var(--canvas); }
.toast .ok svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: trazo .45s .1s var(--ease) forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.demo-ribbon { position: fixed; left: 14px; bottom: 14px; z-index: 50; font-size: 11.5px; font-weight: 650; color: var(--ink-3); background: var(--glass); backdrop-filter: blur(10px); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }

/* entrada suave de las vistas */
.enter > * { animation: subir .5s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .04s; } .enter > *:nth-child(3) { animation-delay: .08s; }
.enter > *:nth-child(4) { animation-delay: .12s; } .enter > *:nth-child(5) { animation-delay: .16s; }
.enter > *:nth-child(n+6) { animation-delay: .2s; }

/* gráficas */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 600 11px var(--sans); fill: var(--ink-3); }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .tipbox { fill: var(--dark); }
.chart .tiptx { fill: var(--on-dark); font-weight: 700; }
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: dibujar 1.2s .1s var(--ease) forwards; }
@keyframes dibujar { to { stroke-dashoffset: 0; } }
.ring-in { animation: anillo 1s .1s var(--ease) both; }
@keyframes anillo { from { stroke-dasharray: 0 999; } }
.grow-y { transform-box: fill-box; transform-origin: bottom; animation: crecer .8s var(--ease) both; }
@keyframes crecer { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ============ Plan Integral · app clínica ============ */
.plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan ul { font-size: 13.5px; }
.integral { border-radius: 36px; padding: 34px; background: var(--dark); color: var(--on-dark); display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: center; }
.integral-h { display: flex; flex-direction: column; gap: 14px; }
.integral-h h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.03; letter-spacing: -.04em; font-weight: 700; }
.integral-h h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--sun); }
.integral-h p { opacity: .8; }
:root[data-theme="dark"] .integral-h h2 em { color: #7A5A0B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .integral-h h2 em { color: #7A5A0B; } }
.integral-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ia { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 20px; background: color-mix(in srgb, var(--on-dark) 8%, transparent); color: inherit; text-align: left; transition: background .2s, transform .18s var(--ease); min-width: 0; }
.ia:hover { background: color-mix(in srgb, var(--on-dark) 14%, transparent); }
.ia b { display: block; font-size: 14.5px; }
.ia small { display: block; font-size: 12px; opacity: .72; line-height: 1.35; }
.areas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; position: sticky; top: 66px; z-index: 29; background: var(--canvas); }
.clinica .topbar::after { display: none; }

.areas::-webkit-scrollbar { display: none; }
.area-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 650; color: var(--ink-2); transition: background .2s, color .2s; }
.area-chip.on { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.esc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.esc-chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.esc-chip b { font-weight: 700; }
.de { font-size: .62em; font-weight: 600; letter-spacing: 0; }
.esc-chip.venc { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); }
.vgi { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.vgi-t { border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vgi-t b { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.vgi-t b small { font-size: 12px; font-weight: 600; }
.vgi-t .tiny { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vgi.compacto .vgi-t { padding: 10px; }
.vgi.compacto .vgi-t b { font-size: 20px; }
.esc-card { display: flex; flex-direction: column; }
.esc-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.esc-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.esc-item { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.esc-item legend { font-weight: 650; font-size: 14.5px; padding: 0; margin-bottom: 6px; }
.ropts { display: flex; flex-direction: column; gap: 6px; }
.ropts.dos { flex-direction: row; }
.ropts.dos .ropt { flex: 1; justify-content: center; }
.ropt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); cursor: pointer; font-size: 14px; transition: background .15s, box-shadow .15s; }
.ropt input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin: 0; }
.ropt span { flex: 1; }
.ropt b { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 13px; }
.ropt:has(input:checked) { background: var(--brand-tint); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand-ink); }
.ropt:has(input:checked) b { color: var(--brand-ink); }
.esc-total { position: sticky; bottom: -22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); z-index: 2; min-height: 54px; }
.esc-total b { font-size: 26px; letter-spacing: -.03em; }
.esc-total b small { font-size: 13px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border-radius: 22px; border: 2px dashed var(--line-2); background: var(--surface-2); text-align: center; cursor: pointer; }
.drop small { color: var(--ink-3); font-size: 12.5px; }
.drop input { max-width: 100%; font-size: 13px; }
.field select { border: 0; border-radius: 16px; background: var(--surface-2); padding: 12px 14px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); width: 100%; }
.esc-grupo { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.crono { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crono input { width: 120px; border: 0; border-radius: 14px; background: var(--surface-2); padding: 10px 12px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.field .crono input { flex: 1; width: auto; }
.btn.corriendo { background: var(--alert-tint); color: var(--alert); }
.cortes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.corte { font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: 999px; }
.disp { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--sun-ink); background: var(--sun-tint); border-radius: 12px; padding: 7px 10px; margin-top: 8px; }
.disp .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.esc-total .disp { flex-basis: 100%; margin-top: 0; }
.pick.toca { box-shadow: inset 0 0 0 2px var(--brand); }
.pick small { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
/* ciclo Plenitud, cuadrantes, prioridades y voz */
.ciclo { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.sem { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 7px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.sem.pasada { background: var(--brand-tint); }
.sem.hoy { background: var(--dark); color: var(--on-dark); }
.sem-n { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sem-f { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 6px; padding: 0 2px; }
.sem-f i, .legend i[class^="d-"] { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.sem-h { position: absolute; top: -6px; right: -2px; color: var(--sun-ink); }
.sem-h .ic { width: 13px; height: 13px; }
.d-brand { background: var(--brand); } .d-peach { background: var(--peach); } .d-sun { background: var(--sun); } .d-rose { background: var(--rose); } .d-sky { background: var(--sky); } .d-lilac { background: var(--lilac); } .d-alert { background: var(--alert); }
.cuads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.cuad { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--surface-2); min-width: 0; }
.cuad > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.cuad b { font-size: 14px; font-weight: 700; }
.cuad-g { position: relative; display: grid; place-items: center; flex: none; }
.cuad-g b { position: absolute; font-size: 17px; }
.voz { margin: 0; padding: 14px 18px; border-radius: 20px; background: var(--lilac-tint); color: var(--lilac-ink); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; display: flex; flex-direction: column; gap: 4px; }
.voz .tiny { font-family: var(--sans, inherit); font-style: normal; font-weight: 650; opacity: .85; }
.voz.grande { font-size: 23px; margin-bottom: 16px; padding: 18px 24px; }
.prio-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--on-dark); font-size: 13px; font-weight: 700; flex: none; }
.prios { display: flex; flex-direction: column; gap: 8px; }
.prio { display: grid; grid-template-columns: 28px 1.2fr .8fr 1.2fr; gap: 8px; align-items: center; }
.prio input, .prio select, .f-dom-in input, .f-dom-in select, .f-ident select { border: 0; border-radius: 12px; background: var(--surface-2); padding: 10px 12px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; width: 100%; }
/* formatos F-01…F-06 */
.drawer.ancho { width: min(900px, calc(100vw - 24px)); }
.f-bloque { border-radius: 20px; background: var(--surface-2); }
.f-bloque > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; font-size: 15px; }
.f-bloque > summary::-webkit-details-marker { display: none; }
.f-bloque > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); flex: none; margin-left: 4px; transition: transform .2s; }
.f-bloque[open] > summary::after { transform: rotate(-135deg); }
.f-bloque > summary > span:first-child { flex: 1; min-width: 0; }
.f-b, .f-ctx, .f-ident, .f-bloque > .pill-list, .f-bloque > .prios, .f-bloque > .note, .f-bloque > .field, .f-bloque > p, .f-bloque > .btn { margin: 0 16px 16px; }
.f-b { display: flex; flex-direction: column; gap: 12px; }
.f-ctx { display: flex; flex-direction: column; gap: 10px; }
.f-ident { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.f-ident > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.f-ident b { font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; }
.f-sec { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.f-campo { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-lab { font-size: 13.5px; font-weight: 650; color: var(--ink); padding: 0; }
.f-campo .field input, .f-campo textarea, .f-campo input[type=number] { background: var(--surface); }
.f-b .field input, .f-b .field textarea { background: var(--surface); }
textarea.cita { font-family: var(--serif); font-style: italic; font-size: 17px; }
.chip-r { position: relative; display: inline-flex; cursor: pointer; }
.chip-r input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-r span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.chip-r input:checked + span { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.chip-r input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.escala10 { display: flex; gap: 4px; flex-wrap: wrap; }
.escala10 .chip-r span { min-width: 38px; justify-content: center; padding: 6px 0; }
.f-esc { border-radius: 18px; background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.f-esc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.f-esc-h > div:first-child { min-width: 0; flex: 1 1 220px; }
.f-esc-b { display: flex; flex-direction: column; gap: 12px; }
.f-esc .ropt { background: var(--surface-2); }
.f-score { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.f-score b { font-size: 20px; letter-spacing: -.02em; }
.f-score .disp { flex-basis: 100%; }
.f-doms { display: flex; flex-direction: column; gap: 8px; }
.f-dom { border-radius: 16px; background: var(--surface); }
.f-dom > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.f-dom > summary::-webkit-details-marker { display: none; }
.f-dom > .f-esc { padding-top: 0; }
.f-dom-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.f-dom-t b { font-size: 14px; font-weight: 650; }
.f-dom-plano { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.f-dom-in { display: flex; gap: 6px; align-items: center; flex: 0 1 300px; min-width: 0; }
.f-dom-in input[type=number] { width: 110px; flex: none; }
.f-dom-in input[type=file] { font-size: 12px; box-shadow: none; background: transparent; padding: 0; }
.lic { color: var(--warn); display: flex; gap: 4px; align-items: flex-start; }
.lic .ic { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.f-cond { border-radius: 16px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.f-cond-h { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.f-cond-h > span:first-of-type { flex: 1; min-width: 0; }
.f-cond-h .ic { width: 15px; height: 15px; color: var(--sun-ink); flex: none; }
.f-cond-b .f-esc { padding: 0; }
.f-mods { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 16px; background: var(--surface); }
.f-firma { position: sticky; bottom: -22px; z-index: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); }
.f-firma .tiny { flex: 1 1 200px; }

/* ============ Responsivo ============ */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; padding: 40px 32px; }
  .collage { height: 460px; }
  .c3, .c4, .c5 { grid-column: span 6; } .c7, .c8, .c9 { grid-column: span 12; }
  .navpill a span { display: none; }
  .navpill a { padding: 0 12px; }
}
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .integral { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
  .ctx { max-width: 520px; text-align: left; }
  .doors, .plans { grid-template-columns: 1fr; }
  .roleswitch a span { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .landing { padding-top: 10px; }
  .hero { padding: 28px 20px; border-radius: 32px; min-height: 0; gap: 26px; }
  .hero h1 { font-size: 44px; }
  .hero p.intro { font-size: 16px; }
  .nums3 { grid-template-columns: 1fr; }
  .collage { height: 400px; }
  .collage .photo { inset: 0; }
  .float.f1 { top: 14px; left: 10px; width: 200px; }
  .float.f2 { top: 150px; right: 10px; width: 210px; }
  .float.f3 { bottom: 14px; left: 10px; right: 10px; width: auto; }
  .section { margin-top: 56px; }
  .bento-l > * { grid-column: span 12 !important; }
  .desk { padding: 6px 16px 120px; }
  .topbar { padding: 8px 0; }
  .areas { top: 60px; }
  .topbar .navpill { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 40; background: #1B231D; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); padding: 8px; }
  .topbar .navpill a { flex: 1; flex-direction: column; height: 52px; gap: 2px; padding: 0; font-size: 10.5px; color: rgba(246, 245, 240, .6); justify-content: center; }
  .topbar .navpill a span { display: block; }
  .topbar .navpill a:hover { background: transparent; color: #fff; }
  .topbar .navpill a[aria-current="page"] { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
  :root[data-theme="dark"] .topbar .navpill { background: #262E27; }
  .portrait .art { min-height: 300px; }
  .portrait .art img { width: 62%; }
  .topbar .navpill a .ic { width: 22px; height: 22px; }
  .house-pill small, .hide-m { display: none !important; }
  .only-desk { display: none !important; }
  .only-m { display: block; }
  .house-pill { padding: 0 12px; height: 44px; }
  .logo-tile { width: 44px; height: 44px; }
  .bento > * { grid-column: span 12 !important; }
  .bento > .c3.kpi { grid-column: span 6 !important; padding: 16px; }
  .kpi .row2 { flex-direction: column; align-items: flex-start; }
  .kpi .h { flex-wrap: wrap; gap: 4px; }
  .kpi .mid { font-size: 23px; }
  .lv-brand small { display: none; }
  .integral { padding: 22px; border-radius: 28px; }
  .integral-areas { grid-template-columns: 1fr; }
  .vgi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .esc-total { bottom: -22px; }
  .cuads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cuad { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ciclo { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .voz.grande { font-size: 19px; padding: 14px 18px; }
  .f-ident { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prio { grid-template-columns: 28px 1fr; }
  .prio > select, .prio > input:last-child { grid-column: 2; }
  .f-dom-in { flex-basis: 100%; }
  .f-firma { bottom: -22px; }
  .stat4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-h { margin: 12px 0 16px; }
  .page-h .meta { text-align: left; }
  .page-h .meta b { justify-content: flex-start; }
  .card { padding: 18px; border-radius: 26px; }
  .big { font-size: 34px; }
  .kanban { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .kanban .col { scroll-snap-align: start; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 90dvh; border-radius: 30px 30px 0 0; transform: translateY(105%); }
  .drawer.on { transform: none; }
  .stage { padding: 0; display: block; min-height: 0; }
  .stage .ctx { display: none; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; position: fixed; inset: 0; background: var(--canvas); }
  .screen { border-radius: 0; }
  .statusbar { display: none; }
  .scroll { padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
  .tabbar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .composer { bottom: calc(94px + env(safe-area-inset-bottom)); }
  .demo-ribbon { display: none; }

  #toasts { bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) {
  .house-pill { display: none; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 38px; }
  .m-title { font-size: 33px; }
  .stat4 { gap: 8px; }
  .mini .v { font-size: 26px; }
  .datestrip button { width: 52px; }
  .pick-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; }
}

@media (max-width: 760px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar .navpill { background: #262E27; } }
.hoja-btn { position: relative; overflow: hidden; align-self: flex-start; max-width: 100%; }
.hoja-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hoja-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; font-size: 0; }
.hoja-btn.lista { background: var(--brand-tint); color: var(--brand-ink); }
.hoja-btn:focus-within { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.f-dom-in select { width: auto; flex: none; }
.solo-m-i { display: none; }
@media (max-width: 760px) { .solo-m-i { display: inline; } }
@media (max-width: 760px) { .row.envuelve b, .row.envuelve small { white-space: normal; } }
