.app-home { max-width: 1120px; margin-inline: auto; }
.app-group { margin-block: 30px; }
.app-group h2 { margin-block: 0 12px; font-size: 1rem; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 4px;
  border-radius: 18px;
  color: inherit;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
}
.app-tile:hover { background: #458aa416; }
.app-tile:focus-visible { outline: 2px solid #16a89e; outline-offset: 2px; }
.app-icon {
  position: relative;
  display: grid;
  width: clamp(72px, 8vw, 92px);
  height: clamp(72px, 8vw, 92px);
  place-items: center;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 6px 14px #0b28352d;
}
.app-icon-blue { background: linear-gradient(135deg, #367fa7, #124264); }
.app-icon-teal { background: linear-gradient(135deg, #14877c, #05635c); }
.app-icon-indigo { background: linear-gradient(135deg, #686cae, #41447a); }
.app-icon-amber { background: linear-gradient(135deg, #98651f, #794818); }
.app-count { position: absolute; top: -7px; right: -10px; padding: 2px 6px; border-radius: 20px; background: #a92846; font-size: .7rem; }

#apps-logout { display: none; }
.app.app-workspace { grid-template-columns: minmax(0, 1fr); }
.app-workspace #side { display: none; }
.app-workspace #apps-logout { display: inline-flex; }
.app-launcher .app-group { margin-block: 22px; }

.app-icon svg { width: 38px; height: 38px; }
#apps-back { display: none; }
.app-workspace:not(.app-launcher) #apps-back { display: inline-flex; flex: 0 0 auto; text-decoration: none; }

#apps-brand { display: none; }
.app-launcher .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.app-launcher #apps-brand {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 16px;
  color: #fff;
  background: radial-gradient(ellipse at 90% 20%, #226d83, transparent 70%), #102e4a;
}
#apps-brand small { color: #98eee4; font-size: .68rem; }
#apps-brand h1 { color: inherit; font-size: 1rem; margin: 0; }
.app-launcher .topbar .search { grid-column: 1; grid-row: 1; width: 100%; justify-self: start; min-width: 0; }
.app-launcher .tb-actions { grid-column: 3; grid-row: 1; justify-self: end; }
@media (max-width: 1050px) {
  .app-launcher .topbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .app-launcher #apps-brand { grid-column: 1 / -1; justify-self: center; }
  .app-launcher .tb-actions { grid-column: 2; grid-row: 2; }
  .app-launcher .topbar .search { grid-column: 1; grid-row: 2; }
}
@media (max-width: 600px) {
  .app-launcher .tb-actions, .app-launcher .topbar .search { grid-column: 1 / -1; }
  .app-launcher .topbar .search { grid-row: 3; width: 100%; }
}

.app-workspace #newbtn {
  position: fixed;
  right: 24px;
  bottom: 78px;
  z-index: 80;
}
.app-workspace .tb-actions #newbtn span { display: inline; }
.app-workspace #new-pop .new-menu {
  position: fixed;
  top: auto;
  left: auto;
  width: 290px;
  z-index: 81;
  right: 24px;
  bottom: 134px;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
}
@media (max-width: 600px) {
  .app-workspace #newbtn { right: 12px; bottom: 70px; }
  .app-workspace #new-pop .new-menu { right: 12px; bottom: 126px; }
}

#apps-profile, #newbtn { display: none; }
.app-workspace #apps-profile, .app-workspace #newbtn { display: inline-flex; }
@media print { .app-workspace #newbtn, #new-pop { display: none; } }

/* ---------- Ficha de cliente ---------- */
.cliente-ficha { max-width: 1280px; margin-inline: auto; }
.cf-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 16px 0 18px; padding: 24px; }
.cf-hero-id { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1 1 380px; }
.cf-hero-id .tt { min-width: 0; overflow-wrap: anywhere; }
.cf-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--hover); border: 1px solid var(--line); color: var(--ink2); font-size: 13px; font-weight: 650; }
.cf-hero-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cf-hero-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.cf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.cf-kpi { --k: var(--teal); display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.cf-kpi-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }
.cf-kpi small { display: block; color: var(--ink2); font-weight: 650; font-size: 13px; }
.cf-kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; }
.cf-kpi em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink3); margin-top: 2px; }
.cf-kpi .cf-de { font-size: 15px; color: var(--ink3); font-weight: 700; }
.cf-kpi.teal { --k: #00A08D; } .cf-kpi.blue { --k: var(--blue); } .cf-kpi.violet { --k: var(--violet); } .cf-kpi.orange { --k: #E08A00; } .cf-kpi.green { --k: #0B9A72; } .cf-kpi.gray { --k: var(--ink3); }
.cf-kpi.red { --k: var(--rose); border-color: color-mix(in srgb, var(--rose) 35%, transparent); }
.cf-kpi.red b { color: var(--negative); }

.cf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.cf-main, .cf-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cf-side { position: sticky; top: 8px; }
.cf-card .card-h h3 small { margin-left: 6px; font-size: 13px; color: var(--ink3); background: var(--hover); padding: 2px 9px; border-radius: 99px; vertical-align: 2px; }
.cf-card .card-h h3 { margin-right: auto; }
.cf-seg button { height: 30px; padding: 0 12px; font-size: 13px; }

.cf-pols { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.cf-pols.solo-vig .cf-pol[data-activa="0"] { display: none; }
.cf-pol { display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 16px; border-radius: 20px; background: var(--card-solid); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.cf-pol:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line2); }
.cf-pol:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cf-pol.off { opacity: .72; }
.cf-pol-top { display: flex; align-items: flex-start; gap: 12px; }
.cf-pol-tt { flex: 1; min-width: 0; }
.cf-pol-tt b { display: block; font-size: 15.5px; font-weight: 750; }
.cf-pol-tt small { display: block; color: var(--ink3); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.cf-pol-bien { font-size: 13.5px; color: var(--ink2); background: var(--hover); padding: 7px 11px; border-radius: 12px; }
.cf-pol-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.cf-pol-nums small { display: block; color: var(--ink3); font-size: 11.5px; font-weight: 650; }
.cf-pol-nums b { display: block; font-size: 15px; font-weight: 800; margin-top: 1px; }
.cf-pol-nums b.neg { color: var(--negative); }
.cf-bar { height: 6px; border-radius: 99px; background: var(--progress-track); overflow: hidden; }
.cf-bar i { display: block; height: 100%; border-radius: inherit; background: var(--progress-fill); }
.cf-bar.warn i { background: var(--amber); } .cf-bar.off i { background: var(--ink3); opacity: .45; }
.cf-vig-l { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--ink3); }
.cf-vig-l b { font-weight: 700; color: var(--ink2); text-align: center; }
.cf-vig-l b.warn { color: var(--warning); }

.cf-cuotas { display: flex; flex-direction: column; gap: 8px; }
.cf-cuota { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; background: var(--hover); border: 1px solid transparent; }
.cf-cuota.venc { border-color: color-mix(in srgb, var(--rose) 30%, transparent); background: color-mix(in srgb, var(--rose) 6%, transparent); }
.cf-cuota .mid { flex: 1; min-width: 0; } .cf-cuota .mid b { display: block; font-size: 14.5px; } .cf-cuota .mid small { color: var(--ink3); font-size: 12.5px; }
.cf-fecha { width: 48px; height: 50px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line); display: grid; place-content: center; text-align: center; flex: none; line-height: 1.05; }
.cf-fecha b { font-size: 18px; font-weight: 800; } .cf-fecha small { font-size: 11px; text-transform: uppercase; color: var(--ink3); font-weight: 700; }
.cf-cuota.venc .cf-fecha b { color: var(--negative); }
.cf-monto { font-size: 16px; font-weight: 800; white-space: nowrap; }

.cf-items { display: flex; flex-direction: column; }
.cf-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cf-item:last-child { border-bottom: 0; padding-bottom: 0; } .cf-item:first-child { padding-top: 0; }
.cf-item > .ic { color: var(--ink3); margin-top: 2px; }
.cf-item div { min-width: 0; } .cf-item small { display: block; color: var(--ink3); font-size: 12px; font-weight: 650; }
.cf-item span { display: block; font-weight: 650; overflow-wrap: anywhere; } .cf-item a { color: var(--accent); }
.cf-item .badge { height: 22px; font-size: 11.5px; margin-left: 4px; }
.cf-nota { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--warning-bg); }
.cf-nota small { font-weight: 750; color: var(--warning); font-size: 12px; } .cf-nota p { margin-top: 4px; white-space: pre-wrap; font-size: 14px; }
.cf-del { align-self: flex-start; }

@media (max-width: 1000px) {
  .cf-grid { grid-template-columns: 1fr; } .cf-side { position: static; }
  .cf-hero-acts { align-items: stretch; width: 100%; } .cf-hero-row { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .cf-hero { padding: 18px; } .cf-hero h1 { font-size: 24px; }
  .cf-cuota { flex-wrap: wrap; } .cf-cuota .mid { flex-basis: calc(100% - 62px); }
  .cf-cuota .cf-monto { margin-left: 62px; } .cf-cuota .btn { margin-left: auto; }
}

/* ---------- Tablero de inicio ---------- */
.db .hello { margin-bottom: 18px; }
.db .hello h1 { font-size: 32px; }
.db-date { color: var(--ink3) !important; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px !important; }
.db-goals { margin-bottom: 22px; }

.db-focos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.db-foco { --t: var(--ink3); display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 14px 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; min-width: 0; }
.db-foco:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--t) 45%, transparent); }
.db-foco:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.db-foco > .ic:last-child { color: var(--ink3); margin-left: auto; }
.db-foco-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--t); background: color-mix(in srgb, var(--t) 15%, transparent); }
.db-foco-tx { min-width: 0; line-height: 1.2; }
.db-foco-tx b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-right: 6px; }
.db-foco-tx span { font-weight: 700; font-size: 13.5px; }
.db-foco-tx small { display: block; color: var(--ink3); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-foco.red { --t: var(--rose); } .db-foco.orange { --t: #E08A00; } .db-foco.violet { --t: var(--violet); } .db-foco.blue { --t: var(--blue); } .db-foco.ok { --t: #0B9A72; }
.db-foco.red .db-foco-tx b { color: var(--negative); }

.db-kpi { --t: var(--teal); position: relative; overflow: hidden; height: 100%; min-height: 172px; display: flex; flex-direction: column; padding: 20px 22px 0; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.db-kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--t); }
.db-kpi-h { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink2); }
.db-kpi-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--t); background: color-mix(in srgb, var(--t) 15%, transparent); }
.db-kpi-big { font-size: 34px; font-weight: 800; letter-spacing: -.025em; margin-top: 12px; line-height: 1.05; }
.db-kpi-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--ink3); margin: 8px 0 14px; }
.db-kpi-sub b { color: var(--ink2); }
.db-kpi .spark { display: block; width: calc(100% + 44px); height: 46px; margin: auto -22px 0; color: var(--t); }
.db-kpi.k-navy { --t: #3B82F6; } .db-kpi.k-teal { --t: #00A08D; } .db-kpi.k-blue { --t: var(--sky); } .db-kpi.k-green { --t: #0B9A72; }
.db-kpi.k-red { --t: var(--rose); } .db-kpi.k-red .db-kpi-big { color: var(--negative); }
.db-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.db-delta.up { background: var(--positive-bg); color: var(--positive); } .db-delta.dn { background: color-mix(in srgb, var(--rose) 14%, transparent); color: var(--negative); }

.db-card { height: 100%; }
.db-seg { margin-left: auto; } .db-seg button { height: 32px; font-size: 13px; padding: 0 12px; }
.db-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.db-tot > div { background: var(--hover); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.db-tot small, .db-meta-g small, .db-conv small { display: block; color: var(--ink3); font-size: 12px; font-weight: 650; }
.db-tot b { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; }
.db-tot em { font-style: normal; font-size: 12.5px; color: var(--ink3); }
.db-meta { display: flex; flex-direction: column; }
.db-ring { display: grid; place-items: center; }
.db-meta-v { text-align: center; margin-top: 12px; } .db-meta-v b { font-size: 22px; font-weight: 800; margin-right: 6px; }
.db-meta-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 16px; }
.db-meta-g > div, .db-conv > div { background: var(--hover); border-radius: 14px; padding: 10px 12px; }
.db-meta-g b, .db-conv b { display: block; font-size: 16px; font-weight: 800; margin-top: 2px; }
.db-meta .more .ic { margin-right: 4px; }

.db-sec { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin: 10px 0 -4px; }
.db-dot { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.db-dot.red { color: var(--negative); background: color-mix(in srgb, var(--rose) 15%, transparent); }
.db-dot.blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 15%, transparent); }
.db-neg { color: var(--negative) !important; font-weight: 700; }
.db-tareas .task .t { min-width: 0; }

.db-aseg { margin-bottom: 12px; }
.db-aseg-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.db-aseg-h small { color: var(--ink3); font-weight: 600; font-size: 12px; } .db-aseg-h b { margin-left: auto; }
.db-foot { font-size: 13px; margin-top: 8px; }
.db-conv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }

.db-top .mid { min-width: 0; }
.db-top .prog { display: block; height: 4px; margin-top: 6px; max-width: 220px; }
.db-top .prog i { background: var(--teal); }
.db-top .end small { display: block; color: var(--ink3); font-size: 11.5px; text-align: right; }
.db-rank { width: 22px; text-align: center; font-weight: 800; color: var(--ink3); font-size: 13px; flex: none; }
.db-flash { animation: dbFlash 1.2s ease; }
@keyframes dbFlash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } }

@media (max-width: 1280px) { .db-focos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .db-focos { grid-template-columns: 1fr 1fr; } .db .hello h1 { font-size: 26px; }
  .db-tot { grid-template-columns: 1fr 1fr; } .db-tot > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .db-focos { grid-template-columns: 1fr; } }
.db-tareas { max-height: 420px; overflow-y: auto; margin-right: -6px; padding-right: 6px; }
.db-tareas .task { gap: 10px; } .db-tareas .task .t { font-size: 14px; }
.db-tareas .task .icon-btn { opacity: 0; transition: opacity .15s; }
.db-tareas .task:hover .icon-btn, .db-tareas .task .icon-btn:focus-visible { opacity: 1; }
@media (hover: none) { .db-tareas .task .icon-btn { opacity: 1; } }

/* ---------- Inicio estilo iPad ---------- */
.app-launcher .main {
  --wp1: #6FD6C8; --wp2: #7CB8F2; --wp3: #FFC9A3; --wp4: #1B6FA8;
  background:
    radial-gradient(60% 55% at 12% 8%, color-mix(in srgb, var(--wp1) 85%, transparent), transparent 70%),
    radial-gradient(55% 60% at 92% 18%, color-mix(in srgb, var(--wp2) 85%, transparent), transparent 70%),
    radial-gradient(50% 50% at 78% 92%, color-mix(in srgb, var(--wp3) 80%, transparent), transparent 70%),
    radial-gradient(70% 70% at 20% 100%, color-mix(in srgb, var(--wp4) 70%, transparent), transparent 75%),
    linear-gradient(160deg, #2C8FB5 0%, #1F5E91 55%, #233F78 100%);
  background-attachment: fixed;
}
:root[data-theme="dark"] .app-launcher .main { --wp1: #0E6B66; --wp2: #1D4F8C; --wp3: #5A3B6E; --wp4: #0A2A4A; }
:root[data-theme="dark"] .app-launcher .main { background-color: #071423; }
.app-launcher .main::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.12), transparent 30%, transparent 70%, rgba(0,0,0,.18)); }
.app-launcher .main > * { position: relative; }

/* barra superior de cristal */
.app-launcher .topbar { background: transparent; box-shadow: none; border: 0; backdrop-filter: none; }
.app-launcher .topbar .search, .app-launcher .topbar .icon-btn, .app-launcher #apps-brand {
  background: rgba(255,255,255,.18) !important; border: 1px solid rgba(255,255,255,.28) !important; color: #fff !important;
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 8px 24px -12px rgba(0,0,0,.35) !important;
}
.app-launcher .topbar .search input { color: #fff; background: transparent !important; border: 0 !important; box-shadow: none !important; } .app-launcher .topbar .search input::placeholder { color: rgba(255,255,255,.8); }
.app-launcher .topbar .search .ic, .app-launcher #sico { color: rgba(255,255,255,.85); }
.app-launcher #apps-brand small { color: rgba(255,255,255,.8); }
.app-launcher .sync { background: rgba(255,255,255,.2); color: #fff; }

.ip-home { max-width: 1180px; margin-inline: auto; color: #fff; padding-bottom: 150px; }
.ip-icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22.5%; color: #fff;
  background: linear-gradient(180deg, var(--a), var(--b)); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -1px 0 rgba(0,0,0,.12) inset, 0 10px 22px -10px rgba(0,0,0,.55); overflow: hidden; }
.ip-icon::after { content: ""; position: absolute; inset: 0 0 50%; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent); pointer-events: none; }
.ip-icon .ic { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); stroke-width: 2; }
.ip-badge { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: #FF3B30; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); z-index: 1; }

/* widgets */
.ip-widgets { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr) minmax(260px, 1.1fr); gap: 20px; margin: 10px 0 34px; }
.ip-w { border-radius: 28px; padding: 20px 22px; min-width: 0; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7); box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); }
:root[data-theme="dark"] .ip-w, :root[data-theme="dark"] .ip-folder-box, :root[data-theme="dark"] .ip-dock { background: rgba(20,32,48,.42); border-color: rgba(255,255,255,.14); }
.ip-w-clock { display: flex; flex-direction: column; justify-content: center; }
.ip-hora { font-size: 64px; font-weight: 700; letter-spacing: -.04em; line-height: 1; text-shadow: 0 2px 16px rgba(0,0,0,.2); }
.ip-dia { font-size: 17px; font-weight: 650; margin-top: 8px; opacity: .95; }
.ip-hola { font-size: 14px; opacity: .85; margin-top: 2px; }
.ip-w-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; opacity: .9; margin-bottom: 10px; }
.ip-w-h em { margin-left: auto; font-style: normal; background: rgba(255,255,255,.25); padding: 1px 9px; border-radius: 99px; }
.ip-alerts { display: flex; flex-direction: column; gap: 2px; }
.ip-alert { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 10px; margin: 0 -10px; border-radius: 14px; color: #fff; transition: background .15s; }
.ip-alert:hover { background: rgba(255,255,255,.16); }
.ip-alert i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.ip-alert span { flex: 1; min-width: 0; } .ip-alert b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-alert small { display: block; font-size: 12.5px; opacity: .8; }
.ip-alert > .ic { opacity: .7; }
.ip-ok { display: flex; align-items: center; gap: 10px; font-weight: 650; opacity: .95; padding-top: 10px; }
.ip-w-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.ip-mini { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.14); color: #fff; transition: background .15s, transform .15s; min-width: 0; }
.ip-mini:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.ip-mini .ip-icon { width: 28px; height: 28px; border-radius: 8px; box-shadow: none; margin-bottom: 8px; }
.ip-mini small { font-size: 12px; font-weight: 650; opacity: .85; } .ip-mini b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; } .ip-mini em { font-style: normal; font-size: 12px; opacity: .75; }

/* biblioteca de apps */
.ip-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px 22px; }
.ip-folder h2 { text-align: center; font-size: 14px; font-weight: 700; margin-top: 10px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.ip-folder-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 8px; padding: 22px 12px 16px; border-radius: 32px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); box-shadow: 0 20px 40px -26px rgba(0,0,0,.55); height: calc(100% - 30px); align-content: start; }
.ip-app { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; text-decoration: none; border-radius: 20px; padding: 4px;
  animation: ipIn .45s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * 28ms); }
.ip-icon-w { position: relative; transition: transform .2s cubic-bezier(.2,.9,.3,1.4); }
.ip-app:hover .ip-icon-w { transform: translateY(-3px) scale(1.04); }
.ip-app:active .ip-icon-w { transform: scale(.9); transition-duration: .08s; }
.ip-app:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ip-lbl { font-size: 13.5px; font-weight: 600; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.45); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes ipIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* dock */
.ip-dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; gap: 14px; padding: 12px 14px; border-radius: 30px;
  background: rgba(255,255,255,.24); border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(34px) saturate(1.8); -webkit-backdrop-filter: blur(34px) saturate(1.8); box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); }
.ip-dock-app { position: relative; display: block; transition: transform .2s cubic-bezier(.2,.9,.3,1.4); }
.ip-dock-app .ip-icon { width: 62px; height: 62px; }
.ip-dock-app:hover { transform: translateY(-6px) scale(1.08); } .ip-dock-app:active { transform: scale(.92); }
.ip-dock-app:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 18px; }
.ip-dock .ip-badge { top: -5px; right: -5px; min-width: 22px; height: 22px; font-size: 12px; }


@media (max-width: 1100px) { .ip-widgets { grid-template-columns: 1fr 1.4fr; } .ip-w-minis { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) {
  .ip-widgets { grid-template-columns: 1fr; } .ip-w-minis { grid-template-columns: 1fr 1fr; }
  .ip-hora { font-size: 52px; } .ip-icon { width: 64px; height: 64px; }
  .ip-dock { gap: 10px; padding: 10px; bottom: 12px; } .ip-dock-app .ip-icon { width: 50px; height: 50px; }
  .ip-dock { display: none; } .ip-home { padding-bottom: 140px; }
}
@media (prefers-reduced-motion: reduce) { .ip-app { animation: none; } .ip-icon-w, .ip-dock-app, .ip-mini { transition: none; } }
.app-launcher .topbar .search { border-radius: 16px; overflow: visible; }
