/* ==========================================================
   Linit — Design system CSS
   Variables de diseño propias (NO Cyprivi)
   ========================================================== */

:root {
  --bg:       #f3faf6;
  --surface:  #ffffff;
  --ink:      #13241c;
  --muted:    #6f8279;
  --line:     #e6efe9;
  --brand:    #10b981;
  --brand2:   #059669;
  --brand-s:  #d7f6e6;
  --teal:     #0d9488;
  --teal-s:   #d3f3ef;
  --sky:      #0ea5e9;
  --sky-s:    #dcf2fd;
  --amber:    #f59e0b;
  --amber-s:  #fdf0d5;
  --coral:    #f43f5e;
  --coral-s:  #fde3e8;
  --plum:     #8b5cf6;
  --plum-s:   #ede8fc;
  --green:    #22c55e;
  --radius:   22px;
  --shadow:   0 2px 6px rgba(20,80,50,.05), 0 14px 30px rgba(20,80,50,.07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

svg { display: block; }

/* ——— Layout app ——— */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 96px;
  position: relative;
}

/* ——— Header ——— */
.top {
  padding: 24px 20px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.greet h1 { font-size: 21px; font-weight: 720; letter-spacing: -.4px; }
.greet p  { font-size: 13px; color: var(--muted); margin-top: 2px; }
.who      { display: flex; align-items: center; }
.av {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  border: 2.5px solid var(--bg);
  cursor: default;
}
.curchip {
  font-size: 11px; font-weight: 800;
  background: var(--brand-s); color: var(--brand2);
  padding: 6px 9px; border-radius: 9px; margin-right: 6px;
}

/* ——— Month nav ——— */
.gmonth {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; padding: 8px 20px 2px;
}
.gmonth button {
  width: 40px; height: 40px;
  border: none; background: var(--surface);
  border-radius: 11px; box-shadow: var(--shadow);
  color: var(--brand2); font-size: 17px; cursor: pointer;
  display: grid; place-items: center;
}
.gm { font-size: 14px; font-weight: 740; min-width: 110px; text-align: center; }
.gm small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }

/* ——— Vistas ——— */
.view { display: none; padding: 8px 16px 16px; animation: fade .28s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

/* ——— Section title ——— */
.section-title {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .7px;
  margin: 22px 6px 12px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ——— Hero ——— */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #22c55e 0%, #10b981 55%, #0d9488 100%);
  color: #fff; border-radius: 26px; padding: 24px;
  box-shadow: 0 16px 36px rgba(16,185,129,.32);
}
.hero::after  { content:""; position:absolute; top:-40px; right:-30px; width:160px; height:160px; border-radius:50%; background:rgba(255,255,255,.13); }
.hero::before { content:""; position:absolute; bottom:-50px; left:-20px; width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,.08); }
.hero .label { font-size: 13px; opacity: .92; font-weight: 500; position: relative; }
.hero .big   { font-size: 38px; font-weight: 760; letter-spacing: -1.1px; margin: 6px 0 2px; position: relative; }
.hero .sub   { font-size: 13px; opacity: .92; position: relative; }
.heroduo { display: flex; gap: 10px; margin-top: 16px; position: relative; }
.heroduo > div { flex: 1; background: rgba(255,255,255,.16); border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.heroduo .hk  { font-size: 11px; opacity: .9; }
.heroduo .hv  { font-size: 17px; font-weight: 740; margin-top: 2px; }


/* ——— hduo2 (score + checklist) ——— */
.hduo2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.htile {
  background: var(--surface); border-radius: 18px; padding: 14px 8px 13px;
  box-shadow: var(--shadow); text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.htile.dark { background: linear-gradient(135deg,#0b1a15,#0a2a23); color: #fff; position: relative; overflow: hidden; }
.htlabel { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.htile.dark .htlabel { color: #79a99a; }
.hgauge  { width: 98px; margin: 4px auto 0; }
.hbig    { font-size: 25px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-top: 2px; }
.hzone   { font-size: 11px; font-weight: 740; margin-top: 3px; }
.hring   { position: relative; width: 70px; height: 70px; margin: 8px auto 6px; }
.hring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 760; }

/* ——— Executive cards ——— */
.exec { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ecard {
  background: var(--surface); border-radius: 16px; padding: 13px 12px;
  box-shadow: var(--shadow); cursor: pointer; transition: .12s; text-align: center;
}
.ecard:active { transform: scale(.98); }
.ecard .eic  { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin: 0 auto 8px; }
.ecard .ek   { font-size: 11px; color: var(--muted); font-weight: 650; }
.ecard .ev   { font-size: 17px; font-weight: 780; letter-spacing: -.4px; margin-top: 3px; white-space: nowrap; }
.ecard .es   { font-size: 10.5px; color: var(--brand2); font-weight: 650; margin-top: 4px; }

/* ——— Card y List ——— */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* ——— Checklist items ——— */
.item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.check {
  width: 26px; height: 26px; border-radius: 9px;
  border: 2px solid var(--line); flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer; transition: .15s;
}
.check.on { background: var(--green); border-color: var(--green); }
.check svg { width: 15px; height: 15px; opacity: 0; transition: .15s; }
.check.on svg { opacity: 1; }
.item .body { flex: 1; min-width: 0; }
.item .t    { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.item.done .lbl { color: var(--muted); text-decoration: line-through; }
.item .s    { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.item .amt  { font-size: 14px; font-weight: 680; white-space: nowrap; text-align: right; }
.due  { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px; }
.due.ok   { background: var(--sky-s); color: var(--sky); }
.due.late { background: var(--coral-s); color: var(--coral); }
.due.soft { background: var(--plum-s); color: var(--plum); }
.rec  { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: var(--brand-s); color: var(--brand2); }

/* ——— Bolsillos ——— */
.pcarousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 0 8px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.pcarousel::-webkit-scrollbar { display: none; }
.pocket {
  border-radius: 16px; padding: 13px 15px; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  scroll-snap-align: start; flex: 0 0 76%; min-width: 76%;
}
.pocket::after { content:""; position:absolute; top:-20px; right:-20px; width:90px; height:90px; border-radius:50%; background:rgba(255,255,255,.14); }
.pocket .pk   { font-size: 13px; font-weight: 600; opacity: .92; position: relative; }
.pocket .pv   { font-size: 19px; font-weight: 760; letter-spacing: -.5px; margin-top: 3px; position: relative; }
.pocket .pb   { height: 5px; border-radius: 5px; background: rgba(255,255,255,.28); margin-top: 9px; position: relative; overflow: hidden; }
.pocket .pb i { display: block; height: 100%; background: #fff; border-radius: 6px; }
.pocket .pmeta { font-size: 10.5px; opacity: .9; margin-top: 6px; position: relative; }

/* ——— Modales ——— */
.mscrim {
  position: fixed; inset: 0; background: rgba(19,36,28,.5);
  z-index: 55; display: none; align-items: center; justify-content: center; padding: 18px;
}
.mscrim.open { display: flex; }
.modal {
  width: 100%; max-width: 420px; background: var(--surface);
  border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  max-height: 84vh; display: flex; flex-direction: column;
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: .6; } to { transform: none; opacity: 1; } }
.mhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 4px; }
.mhead h3 { font-size: 18px; font-weight: 740; }
.mhead .x { border: none; background: var(--bg); width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--muted); }
.mtot { margin: 8px 18px 4px; background: var(--brand-s); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 740; }
.mtot.red { background: var(--coral-s); }
.mtot b   { font-size: 19px; letter-spacing: -.4px; }
.mnote    { font-size: 11.5px; color: var(--muted); margin: 8px 20px 0; }
.mscroll  { overflow: auto; padding: 6px 6px 10px; }
.mrow     { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: none; }
.mrow .mb { flex: 1; }
.mrow .mt { font-size: 14px; font-weight: 600; }
.mrow .msu { font-size: 11px; color: var(--muted); margin-top: 1px; }
.mrow .ma { font-size: 14px; font-weight: 700; white-space: nowrap; }
.mrow .ma.neg { color: var(--coral); }

/* ——— FAB ——— */
.fab {
  position: fixed; bottom: 108px; right: calc(50% - 240px + 20px);
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg,#22c55e,#059669); color: #fff;
  border: none; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(16,185,129,.5); cursor: pointer; z-index: 40;
}
@media (max-width: 520px) { .fab { right: 18px; } }

/* ——— Nav bottom ——— */
nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); display: flex; justify-content: space-around;
  padding: 10px 2px 24px; z-index: 30;
}
nav button {
  background: none; border: none; display: flex; flex-direction: column;
  align-items: center; gap: 4px; color: var(--muted); font-size: 10px;
  font-weight: 650; cursor: pointer; padding: 4px; flex: 1; transition: .15s;
}
nav button.on { color: var(--brand2); }

/* ——— Hint ——— */
.hint {
  font-size: 12px; color: var(--muted); background: #eef7f2;
  border-radius: 12px; padding: 10px 13px; margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
}

/* ——— Flash messages ——— */
.flash {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  min-width: 280px; max-width: 90%;
  padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.15);
  animation: slidedown .25s ease;
}
@keyframes slidedown { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.flash-success { background: #d7f6e6; color: #065f46; }
.flash-error   { background: var(--coral-s); color: #9f1239; }
.flash-warning { background: var(--amber-s); color: #92400e; }
.flash-info    { background: var(--sky-s); color: #0369a1; }
.flash-close   { background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; opacity: .6; flex-shrink: 0; }

/* ——— Alerts inline ——— */
.alert {
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
  font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.alert button { background: none; border: none; font-size: 18px; cursor: pointer; opacity: .6; }
.alert-success { background: #d7f6e6; color: #065f46; }
.alert-error   { background: var(--coral-s); color: #9f1239; }
.alert-warning { background: var(--amber-s); color: #92400e; }
.alert-info    { background: var(--sky-s); color: #0369a1; }

/* ——— Botones ——— */
.btn-primary {
  background: linear-gradient(135deg,#22c55e,#059669); color: #fff;
  border: none; border-radius: 14px; padding: 14px 24px;
  font-size: 15px; font-weight: 700; cursor: pointer; display: inline-block;
  box-shadow: 0 6px 16px rgba(16,185,129,.3); transition: .15s;
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(16,185,129,.45); }
.btn-primary:active { transform: scale(.97); }

.btn-outline {
  background: var(--surface); color: var(--brand2);
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 13px 22px; font-size: 14px; font-weight: 650;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .15s;
}
.btn-outline:hover { border-color: var(--brand); }
.delbtn {
  width: 100%; border: none; background: var(--coral-s); color: var(--coral);
  font-size: 15px; font-weight: 700; padding: 13px; border-radius: 14px; cursor: pointer;
}

/* ——— Forms ——— */
.fld { margin-bottom: 14px; }
.fld label { font-size: 12px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 13px;
  padding: 13px 14px; font-size: 15px; font-family: inherit;
  background: #f8fbf9; color: var(--ink);
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none; border-color: var(--brand);
}

/* ——— Login page ——— */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-wrap { width: 100%; max-width: 380px; padding: 20px; }
.login-card {
  background: var(--surface); border-radius: 24px; padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(20,80,50,.12);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.login-title { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.login-subtitle { font-size: 13px; color: var(--muted); margin-top: 4px; }
.login-btn { width: 100%; margin-top: 8px; }
.login-passkey { margin-top: 20px; text-align: center; }
.login-passkey-divider { font-size: 12px; color: var(--muted); display: block; margin-bottom: 12px; }
.login-footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }
.fld-password { position: relative; }
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 44px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted); display: flex;
}
.badge-soon {
  font-size: 9px; font-weight: 800; background: var(--brand-s); color: var(--brand2);
  padding: 2px 6px; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px;
}

/* ——— OTP page ——— */
.otp-info {
  font-size: 14px; color: var(--muted); text-align: center;
  margin: 0 0 20px; line-height: 1.5;
}
.otp-input {
  text-align: center; font-size: 28px; font-weight: 700;
  letter-spacing: 8px; font-variant-numeric: tabular-nums;
}
.btn-link {
  background: none; border: none; color: var(--brand); font-size: 13px;
  cursor: pointer; text-decoration: underline; padding: 0;
}
.btn-link:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

/* ——— Badge ——— */
.badge {
  font-size: 10px; font-weight: 800; width: 19px; height: 19px;
  border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex-shrink: 0;
}

/* ——— Boton pequeño ——— */
.btn-sm {
  background: var(--brand-s); color: var(--brand2);
  border: none; border-radius: 9px; padding: 5px 12px;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: .12s;
}
.btn-sm:hover { background: var(--brand); color: #fff; }

/* ——— Botón grande (checklist) ——— */
.bigbtn {
  width: 100%; background: linear-gradient(135deg,#22c55e,#059669); color: #fff;
  border: none; border-radius: 14px; padding: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; box-shadow: 0 6px 16px rgba(16,185,129,.3);
}

/* ——— Gastos: grp header ——— */
.grp {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
  padding: 16px 6px 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.tot { color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 740; }
.eqnote { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ——— Acciones en filas ——— */
.row-actions {
  display: flex; gap: 4px; margin-left: 8px; flex-shrink: 0;
}
.icon-btn {
  width: 28px; height: 28px; border: none; background: var(--bg);
  border-radius: 8px; display: grid; place-items: center;
  cursor: pointer; color: var(--muted); transition: .12s;
}
.icon-btn:hover { background: var(--line); color: var(--ink); }
.icon-btn.danger:hover { background: var(--coral-s); color: var(--coral); }

/* ——— Botones iconos sobre bolsillos ——— */
.icon-btn-inv {
  width: 26px; height: 26px; border: none;
  background: rgba(255,255,255,.22); border-radius: 7px;
  display: grid; place-items: center; cursor: pointer; transition: .12s;
}
.icon-btn-inv:hover { background: rgba(255,255,255,.4); }
.icon-btn-inv.danger-inv:hover { background: rgba(244,63,94,.5); }

/* ——— Modales madd footer ——— */
.madd {
  border-top: 1px solid var(--line); padding: 14px 18px;
  font-size: 14px; font-weight: 700; color: var(--brand2);
  cursor: pointer; text-align: center;
  border-bottom-left-radius: 24px; border-bottom-right-radius: 24px;
}
.madd:hover { background: var(--brand-s); }

/* ——— Futuro ——— */
.fcard { background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.ftitle { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.frow { display: flex; align-items: center; gap: 12px; }
.fl { flex: 1; }
.fmeta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.fbar { height: 5px; background: var(--line); border-radius: 5px; margin-top: 6px; overflow: hidden; }
.fbar i { display: block; height: 100%; border-radius: 6px; }
.ftag { font-size: 10px; font-weight: 800; background: var(--coral-s); color: var(--coral); padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.ftag.g { background: var(--brand-s); color: var(--brand2); }

/* ——— Futuro hero proyeccion ——— */
.scoremini {
  background: linear-gradient(135deg,#06231c,#0a3a2e);
  border-radius: 18px; padding: 16px; display: flex; gap: 14px;
  align-items: center; cursor: pointer; margin-top: 4px; color: #fff;
  box-shadow: 0 8px 20px rgba(6,35,28,.3);
}
.scoremini .si { flex: 1; }
.scoremini .sl { font-size: 11px; opacity: .7; }
.scoremini .sv { font-size: 22px; font-weight: 780; color: #34d399; letter-spacing: -.5px; margin-top: 2px; }
.scoremini .sd { font-size: 11px; opacity: .8; margin-top: 2px; }

/* ——— Chips de anos en futuro ——— */
.ychip {
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.8);
  border: none; border-radius: 9px; padding: 6px 12px;
  font-size: 12px; font-weight: 650; cursor: pointer; transition: .15s;
}
.ychip.on { background: rgba(255,255,255,.9); color: #06231c; }

/* ——— Filter tabs ——— */
.filter {
  display: flex; gap: 6px; background: var(--line); border-radius: 12px; padding: 4px;
}
.filter button {
  flex: 1; background: none; border: none; border-radius: 9px; padding: 8px;
  font-size: 13px; font-weight: 650; cursor: pointer; color: var(--muted); transition: .15s;
}
.filter button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ——— Drawer (formularios CRUD) ——— */
.scrim {
  position: fixed; inset: 0; background: rgba(19,36,28,.45);
  z-index: 50; display: none;
}
.scrim.open { display: block; }
.drawer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 480px;
  background: var(--surface); border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  z-index: 51; transition: transform .3s cubic-bezier(.25,.8,.25,1);
  display: flex; flex-direction: column; max-height: 88vh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.drawer.open { transform: translateX(-50%) translateY(0); }
.drawer-handle { width: 40px; height: 4px; background: var(--line); border-radius: 2px; margin: 12px auto 0; flex-shrink: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; flex-shrink: 0; }
.drawer-head h3 { font-size: 17px; font-weight: 740; }

/* ——— Responsive ——— */
@media (min-width: 640px) {
  .app { box-shadow: 0 0 0 1px var(--line); margin-top: 20px; border-radius: 24px; min-height: auto; }
}

/* ================================================================
   Banner de impersonación — Modo admin soporte
   Visible en TODAS las vistas cuando super_admin impersona un hogar.
   Diseñado para ser imposible de ignorar.
   ================================================================ */
.imp-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1c3a4a;
  color: #e0f2fe;
  border-bottom: 3px solid #0ea5e9;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Modo edicion activa — color más alarmante */
.imp-banner--edit {
  background: #3b1a1a;
  border-bottom-color: #f43f5e;
  color: #fecdd3;
}
.imp-banner--edit .imp-banner__mode {
  color: #f87171;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.imp-banner__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.imp-banner__icon {
  flex-shrink: 0;
  opacity: .85;
}

.imp-banner__text {
  flex: 1;
  min-width: 180px;
}

.imp-banner__mode {
  font-style: italic;
  opacity: .85;
}

.imp-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.imp-btn {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  transition: opacity .15s;
}
.imp-btn:hover { opacity: .82; }

.imp-btn--edit {
  background: #0ea5e9;
  color: #fff;
}
.imp-btn--readonly {
  background: rgba(255,255,255,.15);
  color: #e0f2fe;
}
.imp-btn--exit {
  background: #f43f5e;
  color: #fff;
}

/* Cuando hay banner, empujar el contenido principal hacia abajo */
body.has-imp-banner .app,
body.has-imp-banner .admin-body .admin-main {
  margin-top: 52px;
}
body.has-imp-banner .admin-nav {
  top: 52px;
}
