.layout { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
@media (min-width: 960px) { .layout { grid-template-columns: 210px minmax(0, 1fr); } }
.side { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .3rem; }
@media (min-width: 960px) { .side { flex-direction: column; position: sticky; top: 76px; align-self: start; overflow: visible; } }
.side a { text-decoration: none; color: var(--ink); padding: .5rem .7rem; border-radius: 9px; white-space: nowrap; font-size: .93rem; display: flex; justify-content: space-between; gap: .5rem; }
.side a:hover { background: #e8eef7; }
.side a[aria-current="page"] { background: var(--blue); color: #fff; font-weight: 600; }
.side .count { background: var(--orange); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; font-weight: 700; }
.side .sep { border-top: 1px solid var(--line); margin: .4rem 0; }
.kpis { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.kpi { background: #fff; border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow); }
.kpi b { display: block; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi.alert b { color: var(--bad); }
.kpi.money b { font-size: 1.8rem; }
.kpi .hint { display: block; font-size: .74rem; color: var(--muted); margin-top: .2rem; }
.occ { height: 8px; background: #e6ecf3; border-radius: 4px; overflow: hidden; min-width: 80px; position: relative; }
.occ i { display: block; height: 100%; background: var(--sky); }
.occ i.paid { background: var(--blue); position: absolute; left: 0; top: 0; }
.occ .min { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--orange); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .h { font-size: .72rem; text-align: center; color: var(--muted); font-weight: 700; }
.cal .d { min-height: 72px; background: #fff; border-radius: 8px; padding: .25rem; font-size: .72rem; border: 1px solid var(--line); overflow: hidden; }
.cal .d.out { opacity: .35; } .cal .d.today { border-color: var(--orange); }
.cal .ev { display: block; border-radius: 5px; padding: .1rem .25rem; margin-top: 2px; color: #fff; background: var(--blue); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal .ev.confirmada { background: var(--green); } .cal .ev.borrador { background: #8796a8; } .cal .ev.cancelada { background: var(--bad); text-decoration: line-through; }
.flow { display: grid; grid-template-columns: 120px 1fr; gap: .3rem .8rem; font-size: .88rem; }
.flow dt { font-weight: 700; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; padding-top: .1rem; }
.flow dd { margin: 0; }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } .flow dd { margin-bottom: .4rem; } }
.lab-out { background: #0f1d2e; color: #d9e6f5; border-radius: 10px; padding: .8rem 1rem; font-size: .88rem; }
.lab-out ol { margin: 0; padding-left: 1.2rem; } .lab-out li { margin: .25rem 0; }
.lab-out a { color: #8fd3ff; }
.form-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.econ-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.login { max-width: 380px; margin: 3rem auto; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: .3rem; }

/* ---------- Centro de mando ---------- */
.cockpit { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .cockpit { grid-template-columns: 1.7fr 1fr; } }
.hello-card { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff; background: radial-gradient(120% 120% at 90% 10%, #1460B5 0%, #0A4C97 45%, #0B2747 100%); padding: 1.5rem 1.4rem; min-height: 210px; }
.hello-card .in { position: relative; z-index: 1; max-width: 30rem; }
.hello-card .date { color: #B9D4F2; font-size: .9rem; }
.hello-card h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.4rem); text-transform: uppercase; margin: .2rem 0 .4rem; }
.hello-card p { color: #D7E7FA; font-size: 1.05rem; }
.mini-globe { position: absolute; right: -110px; top: -55px; width: 330px; height: 330px; opacity: .85; }
@media (max-width: 640px) { .mini-globe { right: -110px; top: -70px; opacity: .45; } }
.next-card { display: flex; flex-direction: column; gap: .35rem; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; text-decoration: none; color: inherit; }
.next-card .lbl { color: var(--orange); font-weight: 700; font-size: .85rem; }
.next-card .count { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--muted); }
.next-card .count b { font-size: 3.6rem; color: var(--blue); line-height: .9; }
.next-card .t { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; }
.next-card:hover .t { color: var(--blue); }
.approve { border-left: 5px solid var(--orange); }
.req { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .req { grid-template-columns: 1fr auto auto; } }
.req .amt { font-family: var(--display); font-size: 1.5rem; }
.req.done { opacity: .75; }

/* ---------- Pulso en vivo, meta y feed ---------- */
.month-feed { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .month-feed { grid-template-columns: 1fr 1fr; align-items: start; } }
.goal .pct { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--blue); line-height: 1; }
.goal-bar { height: 14px; background: #E6ECF3; border-radius: 999px; overflow: hidden; margin: .7rem 0 .4rem; }
.goal-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--orange), #F5A55A); transition: width .6s ease; }
.feed .live { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--green-d); }
.feed .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(99,166,47,.6); animation: livep 1.8s infinite; }
@keyframes livep { 70% { box-shadow: 0 0 0 8px rgba(99,166,47,0); } 100% { box-shadow: 0 0 0 0 rgba(99,166,47,0); } }
.feed-list { display: grid; gap: .1rem; max-height: 420px; overflow-y: auto; margin: .6rem -.4rem 0; }
.feed-item { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .4rem; border-radius: 10px; text-decoration: none; color: inherit; font-size: .92rem; animation: rise .35s ease-out; }
.feed-item:hover { background: #F4F8FC; }
.fi-ic { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sky-l); color: var(--blue); }
.feed-item.compra .fi-ic, .feed-item.cobro .fi-ic { background: var(--green-l); color: var(--green-d); }
.feed-item.consulta .fi-ic { background: var(--orange-l); color: var(--orange-d); }
.feed-item.baja .fi-ic { background: #F1F4F8; color: var(--muted); }
.fi-tx small { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }

/* ---------- Buscador del encabezado ---------- */
.hsearch { flex: 1; max-width: 360px; margin-left: 1rem; }
.hsearch input { min-height: 40px; border-radius: 999px; padding: .45rem 1rem; background: #F4F8FC; }
@media (max-width: 760px) { .top .tag { display: none; } .hsearch { margin-left: 0; } }

/* ---------- Celular: barra inferior y "Más" ---------- */
.mnav { display: none; }
@media (max-width: 959px) {
  .side { display: none; }
  .layout { padding-bottom: 6rem; }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(11,39,71,.08); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); }
  .mnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; border-radius: 12px; }
  .mnav a .ic { width: 1.5rem; height: 1.5rem; }
  .mnav a[aria-current="page"] { color: var(--blue); background: var(--sky-l); }
  .mnav a i { position: absolute; top: .1rem; right: 22%; background: var(--orange); color: #fff; font-style: normal; font-size: .66rem; font-weight: 800; border-radius: 999px; padding: 0 .35rem; }
}
.more-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.more-grid a { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.more-grid .count { background: var(--orange); color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 .5rem; }
.launch summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.launch summary::-webkit-details-marker { display: none; }
.launch .pct { font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--orange); }
.launch-list { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .3rem; }
.launch-list li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.launch-list li > .ic { width: 1.4rem; height: 1.4rem; color: var(--warn-ink); flex: none; }
.launch-list li.ok > .ic { color: var(--green-d); }
.launch-list li.ok b { color: var(--muted); font-weight: 600; text-decoration: line-through; }
.launch-list li > span { flex: 1; }
.review-admin.pendiente { border-left: 5px solid var(--orange); }
.review-admin.oculta { opacity: .65; }
.feed-item.opinion .fi-ic { background: #FFF4DC; color: #B86A0E; }
