/* Piensoweb · Clientes — tarjetas suaves, barra lateral oscura, acento coral */
:root {
  --fondo: #efede9; --panel: #faf9f7; --blanco: #ffffff; --texto: #1b1a22; --tenue: #8a867f; --borde: #e3e0da;
  --tinta: #1b1a22; --lateral: #16151d;
  --coral: #f47b52; --rosa: #ec5f9b; --coral-f: #fde3db; --rosa-f: #fbe0ec;
  --ambar: #c98a12; --ambar-f: #fdf0d2; --verde: #2f8f62; --verde-f: #dff2e8; --rojo: #d6453d; --rojo-f: #fde4e2;
  --gris: #d3cfc8; --azul: #4d6bfe;
  --grad: linear-gradient(135deg, #f47b52 0%, #ef6a7a 55%, #ec5f9b 100%);
  --radio: 26px; --radio-s: 14px;
  --sombra: 0 1px 2px rgba(27,26,34,.04), 0 8px 24px rgba(27,26,34,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral); }
h1 { font-size: 1.7rem; margin: .2rem 0 .6rem; letter-spacing: -.02em; font-weight: 800; }
h1.h-grande { font-size: 2.3rem; margin: 0 0 1.2rem; }
h2 { font-size: 1.05rem; margin: 1.6rem 0 .7rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: .95rem; margin: 1.2rem 0 .3rem; }
.tenue { color: var(--tenue); font-weight: 500; }
.chico { font-size: .8rem; }
.nowrap { white-space: nowrap; }
.der { text-align: right; }
.oculto { display: none !important; }
.ico { flex-shrink: 0; }

/* ---------- Estructura ---------- */
.lateral { position: fixed; inset: 0 auto 0 0; width: 92px; background: var(--lateral); border-radius: 0 28px 28px 0; display: flex; flex-direction: column; align-items: center; padding: 1.4rem 0; z-index: 10; }
.logo { width: 46px; height: 46px; border-radius: 15px; background: var(--grad); display: grid; place-items: center; margin-bottom: 2rem; box-shadow: 0 6px 18px rgba(236,95,155,.35); }
.logo span { color: #fff; font-weight: 800; font-size: 1.5rem; line-height: 1; transform: translateY(-2px); }
.lateral nav { display: flex; flex-direction: column; gap: .55rem; flex: 1; width: 100%; align-items: center; }
.lateral nav a, .lateral .salir { position: relative; width: 50px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #8d8a96; transition: background .15s, color .15s; }
.lateral nav a:hover, .lateral .salir:hover { color: #fff; background: rgba(255,255,255,.07); }
.lateral nav a.activo { background: #ebe8e3; color: var(--tinta); width: 72px; border-radius: 0 23px 23px 0; margin-left: 22px; }
.lateral nav a.activo::after { content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--tinta); }
.lateral nav a span, .lateral .salir span { position: absolute; left: 64px; background: var(--tinta); color: #fff; font-size: .8rem; padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: .15s; }
.lateral nav a.activo span { left: 84px; }
.lateral nav a:hover span, .lateral .salir:hover span { opacity: 1; transform: none; }

.contenido { margin-left: 92px; min-height: 100vh; }
.cabecera { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 2.2rem .4rem; }
.saludo { flex: 1; color: var(--tenue); font-weight: 600; }
.busqueda { display: flex; align-items: center; gap: .5rem; background: var(--panel); border-radius: 999px; padding: 0 1rem; height: 46px; width: min(340px, 40vw); color: var(--tenue); box-shadow: var(--sombra); }
.busqueda input { border: 0; background: transparent; padding: 0; height: 100%; outline: none; }
.busqueda input:focus { outline: none; }
main { padding: 1rem 2.2rem 4rem; max-width: 1480px; }

/* ---------- Rejilla del tablero ---------- */
.rejilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.2rem; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.pila { display: flex; flex-direction: column; gap: .8rem; }

.tarjeta { background: var(--panel); border-radius: var(--radio); padding: 1.5rem; box-shadow: var(--sombra); }
.tarjeta h2:first-child { margin-top: 0; }
.t-cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.t-cab h2 { margin: 0; }
.mas, .hero-link, .lf-ir { letter-spacing: .1em; font-weight: 800; color: var(--tenue); }

.hero { background: var(--grad); color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(236,95,155,.28); }
.hero::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); right: -80px; top: -110px; }
.hero-top { display: flex; justify-content: space-between; font-weight: 600; opacity: .92; position: relative; }
.hero-link { color: #fff; }
.hero-num { font-size: 2.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .5rem 0 .2rem; position: relative; }
.hero-num small { font-size: 1rem; font-weight: 600; margin-left: .4rem; opacity: .8; }
.hero-spark { width: 100%; height: 70px; margin: .4rem 0 .6rem; }
.hero-spark .spark-linea { fill: none; stroke: #fff; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.hero-spark .spark-area { fill: rgba(255,255,255,.14); }
.hero-pie { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; }
.hero-pie > div { padding: 0 .8rem; border-left: 1.5px dashed rgba(255,255,255,.45); }
.hero-pie > div:first-child { border: 0; padding-left: 0; }
.hero-pie small { display: block; opacity: .85; font-size: .82rem; }
.hero-pie strong { font-size: 1.25rem; font-weight: 700; }

.dona-caja { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: .5rem; }
.graf-dona { width: 150px; height: 150px; }
.dona-fondo { fill: none; stroke: #ebe8e3; stroke-width: 14; }
.dona-seg { fill: none; stroke-width: 14; stroke-linecap: round; }
.dona-num { font-size: 26px; font-weight: 800; fill: var(--texto); }
.dona-sub { font-size: 11px; fill: var(--tenue); font-weight: 600; }
.leyenda { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.leyenda a { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; }
.leyenda b { margin-left: auto; font-size: 1rem; }
.pt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.d-coral { background: var(--coral); stroke: var(--coral); } .d-gris { background: var(--gris); stroke: var(--gris); }
.d-ambar { background: #f5b841; stroke: #f5b841; } .d-tinta { background: var(--tinta); stroke: var(--tinta); } .d-rosa { background: var(--rosa); stroke: var(--rosa); }
.leyenda-linea { display: flex; gap: 1rem; font-size: .82rem; color: var(--tenue); font-weight: 600; }
.leyenda-linea span { display: flex; align-items: center; gap: .4rem; }

.indicador { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 22px; }
.indicador:hover { color: inherit; transform: translateY(-1px); }
.indicador > div { flex: 1; min-width: 0; }
.indicador strong { display: block; font-size: .92rem; }
.indicador small { color: var(--tenue); font-size: .8rem; }
.indicador.urgente { outline: 2px solid var(--rosa); }
.ind-num { width: 64px; height: 64px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.35rem; font-weight: 800; line-height: 1.1; flex-shrink: 0; }
.coral-f { background: var(--coral-f); color: #c4472a; } .rosa-f { background: var(--rosa-f); color: #b8306c; }
.tinta-f { background: #e3e1e8; color: var(--tinta); } .ambar-f { background: var(--ambar-f); color: #9b6a08; }

.progreso { height: 8px; border-radius: 999px; background: #e8e5e0; overflow: hidden; margin-top: .45rem; }
.progreso span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.progreso.tinta span { background: var(--tinta); } .progreso.verde span { background: var(--verde); }
.progreso.ambar span { background: #f5b841; } .progreso.coral span { background: var(--grad); }

.graf-barras { width: 100%; height: 230px; display: block; overflow: visible; }
.graf-barras .eje { stroke: #e6e3dd; stroke-width: 1; stroke-dasharray: 3 4; }
.graf-barras .eje-t { font-size: 11px; fill: var(--tenue); font-weight: 600; font-family: inherit; }
.graf-barras .eje-t.fuerte { fill: var(--texto); font-weight: 800; }
.b-coral { fill: #f4a184; } .b-tinta { fill: var(--tinta); } .b-gris { fill: #cfcac2; }
.b-destacada { fill: url(#gradBar); }

.salud { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.salud a { display: block; }
.salud a:hover { color: inherit; }
.salud-cab { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; font-weight: 600; }
.salud-cab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pestanas-t { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--borde); margin-bottom: .6rem; }
.pestanas-t button { background: none; border: 0; padding: .3rem 0 .8rem; font: inherit; font-weight: 700; color: var(--tenue); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pestanas-t button.on { color: var(--texto); border-color: var(--tinta); }
.lista-filas { list-style: none; padding: 0; margin: 0; }
.lista-filas li { display: flex; align-items: center; gap: .9rem; padding: .75rem .6rem; border-radius: 16px; }
.lista-filas li:hover { background: var(--blanco); }
.lista-filas li.vacio { justify-content: center; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.avatar.tinta { background: var(--tinta); } .avatar.ambar { background: var(--ambar-f); color: var(--ambar); } .avatar.verde { background: var(--verde-f); color: var(--verde); }
.lf-txt { flex: 1; min-width: 0; }
.lf-txt a { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-txt small { color: var(--tenue); font-size: .8rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-fecha { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.lf-monto { min-width: 90px; text-align: right; font-weight: 700; white-space: nowrap; }
.lista-filas.compacta li { padding: .55rem .3rem; }

/* ---------- Componentes generales ---------- */
.chip, .tag { display: inline-block; font-size: .74rem; padding: .12rem .55rem; border-radius: 999px; background: #e9e6e1; color: #5f5b55; white-space: nowrap; font-weight: 600; }
.chip.rojo { background: var(--rojo-f); color: var(--rojo); }
.chip.ambar { background: var(--ambar-f); color: var(--ambar); }
.tag.t-cliente { background: var(--verde-f); color: var(--verde); }
.tag.t-cortesia { background: var(--ambar-f); color: var(--ambar); }
.tag.t-propia { background: #e3e1e8; color: var(--tinta); }
.tag.t-por_clasificar { background: transparent; border: 1.5px dashed var(--gris); color: var(--tenue); }
.tag.t-baja { background: var(--rojo-f); color: var(--rojo); }
.falta { color: var(--rojo); font-size: .85rem; font-weight: 700; }
.punto { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .45rem; background: var(--tenue); }

.tabla-scroll { overflow-x: auto; background: var(--panel); border-radius: var(--radio); box-shadow: var(--sombra); padding: .4rem .6rem; }
.tabla-scroll.ancha { max-width: 860px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: .8rem .8rem; text-align: left; vertical-align: middle; border-bottom: 1px solid #ebe8e3; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tenue); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--blanco); }
tbody tr:hover td:first-child { border-radius: 14px 0 0 14px; } tbody tr:hover td:last-child { border-radius: 0 14px 14px 0; }
td a strong { font-weight: 700; }
tr.apagado { opacity: .5; }
td.servs { max-width: 280px; color: var(--tenue); font-size: .85rem; }
.vacio { color: var(--tenue); text-align: center; padding: 1.6rem; }

.titulo-acciones { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.titulo-acciones h1, .titulo-acciones h2 { margin-right: auto; }
.acciones { display: flex; gap: .4rem; flex-wrap: wrap; }
.migas { margin: 0; font-size: .88rem; color: var(--tenue); font-weight: 600; }
.migas a:hover { color: var(--coral); }
.filtros { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.filtros input[type=search] { flex: 1; min-width: 220px; }
.pestanas { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.pestanas a { padding: .45rem .95rem; border-radius: 999px; color: var(--tenue); font-size: .86rem; font-weight: 600; background: var(--panel); }
.pestanas a.activo { background: var(--tinta); color: #fff; }
.pestanas a:hover { color: var(--texto); }

.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 999px; border: 0; background: var(--blanco); color: var(--texto); font: inherit; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--borde); white-space: nowrap; }
.btn:hover { box-shadow: inset 0 0 0 1.5px var(--texto); color: var(--texto); }
.btn.primario { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(236,95,155,.28); }
.btn.primario:hover { filter: brightness(1.05); color: #fff; }
.btn.negro { background: var(--tinta); color: #fff; box-shadow: none; height: 46px; padding: 0 1.4rem; }
.btn.negro:hover { background: #000; color: #fff; }
.btn.peligro { color: var(--rojo); box-shadow: inset 0 0 0 1.5px var(--rojo); background: transparent; margin-top: 1.5rem; }
.btn.liga { box-shadow: none; background: none; color: var(--coral); }

input, select, textarea { width: 100%; padding: .65rem .85rem; border: 1.5px solid transparent; border-radius: var(--radio-s); background: var(--blanco); color: var(--texto); font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-f); }
.filtros input, .filtros select { width: auto; box-shadow: var(--sombra); }
label { display: block; margin-bottom: .9rem; font-weight: 700; font-size: .86rem; }
label input, label select, label textarea { margin-top: .3rem; font-weight: 500; }
label small, small { display: block; color: var(--tenue); font-weight: 500; font-size: .8rem; margin-top: .25rem; }
label.check { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
label.check input { width: auto; margin: 0; accent-color: var(--coral); }
fieldset { border: 0; background: rgba(255,255,255,.55); border-radius: 20px; padding: 1rem 1.1rem .3rem; margin: 0 0 1rem; }
legend { font-weight: 800; padding: .2rem .8rem; background: var(--blanco); border-radius: 999px; display: flex; align-items: center; gap: .4rem; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.fila.tres { grid-template-columns: 1fr 1fr 1fr; }
.tarjeta.ancha { max-width: 860px; }
.dos-col { display: grid; grid-template-columns: minmax(300px, 430px) 1fr; gap: 1.6rem; align-items: start; margin-top: 1rem; }
.dos-col > div > .titulo-acciones h2 { margin-top: 0; }

/* Interruptor */
.interruptor { display: flex; align-items: center; gap: .7rem; font-weight: 700; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor span { width: 44px; height: 26px; border-radius: 999px; background: var(--gris); position: relative; transition: .2s; flex-shrink: 0; }
.interruptor span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.interruptor input:checked + span { background: var(--grad); }
.interruptor input:checked + span::after { left: 21px; }
.interruptor input:focus-visible + span { box-shadow: 0 0 0 4px var(--coral-f); }
.avisos-opciones { margin-top: .6rem; }
fieldset.avisos:has(.interruptor input:not(:checked)) .avisos-opciones { opacity: .4; pointer-events: none; }
.dias-grid { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; }
.pildora { margin: 0; }
.pildora input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pildora span { display: inline-block; padding: .4rem .8rem; border-radius: 999px; background: var(--blanco); font-weight: 600; font-size: .82rem; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--borde); }
.pildora input:checked + span { background: var(--tinta); color: #fff; box-shadow: none; }
.pildora input:focus-visible + span { box-shadow: 0 0 0 3px var(--coral-f); }
.nota-fase { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 14px; background: var(--ambar-f); color: #7a5508; font-size: .85rem; }
.lista-avisos { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.lista-avisos li { display: flex; align-items: center; gap: .8rem; }
.lista-avisos li > div { flex: 1; min-width: 0; }
.fecha-chip { background: var(--coral-f); color: #b8432a; font-weight: 700; font-size: .78rem; padding: .3rem .6rem; border-radius: 10px; white-space: nowrap; }

/* Ficha de cliente */
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: .4rem 0 .6rem; }
.mini { background: var(--panel); border-radius: 22px; padding: 1rem 1.1rem; display: flex; gap: .9rem; align-items: center; box-shadow: var(--sombra); min-width: 0; }
.mini > div { min-width: 0; }
.mini .ic { width: 46px; height: 46px; border-radius: 14px; background: #ebe8e3; display: grid; place-items: center; flex-shrink: 0; }
.mini .ic.coral { background: var(--grad); color: #fff; }
.mini small { margin: 0; }
.mini strong { display: block; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini em { display: block; font-style: normal; color: var(--tenue); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini em a { color: var(--coral); font-weight: 600; }
.servicio { background: var(--panel); border-radius: 22px; padding: 1rem 1.2rem; margin-bottom: .8rem; box-shadow: var(--sombra); }
.servicio.est-suspendido { box-shadow: inset 4px 0 0 var(--rojo), var(--sombra); }
.servicio.est-cancelado { opacity: .55; }
.s-cab { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.s-cab a strong { font-size: 1.02rem; }
.s-det { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; color: var(--tenue); font-size: .85rem; margin-top: .35rem; }
.s-det b { color: var(--texto); }
.cobro-rapido { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr 1.2fr auto; gap: .6rem; align-items: end; margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--borde); }
.cobro-rapido label { margin: 0; font-size: .76rem; color: var(--tenue); }
.cobro-rapido input, .cobro-rapido select { padding: .5rem .65rem; }
.cobro-rapido .btn { height: 40px; }
.vacio-campo { box-shadow: inset 0 0 0 1.5px var(--rojo-f); }
.historial { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.historial li { padding: .45rem 0; border-bottom: 1px solid #e6e3dd; }
.acciones-rapidas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin: .8rem 0 1.2rem; }
.acciones-rapidas > form:not(.pago) { align-self: center; }
.tarjeta.pago { padding: 1rem 1.2rem; max-width: 860px; flex: 1; min-width: 300px; }
.pago-tit { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.pago-tit small { margin: 0 0 0 auto; }
.pago-campos { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr auto; gap: .6rem; align-items: end; }
.pago-campos label { margin: 0; font-size: .76rem; color: var(--tenue); }
.pago-campos .btn { height: 42px; }

.aviso-ok, .aviso-error, .aviso-info { padding: .8rem 1.1rem; border-radius: 16px; margin-bottom: 1rem; font-weight: 600; }
.aviso-ok { background: var(--verde-f); color: var(--verde); }
.aviso-error { background: var(--rojo-f); color: var(--rojo); }
.aviso-info { background: var(--blanco); color: var(--texto); font-weight: 500; }
.aviso-info a { color: var(--coral); font-weight: 700; }

body.centrado { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--fondo); }
.login { width: 100%; max-width: 400px; }
.login .marca { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.login .marca::before { content: "p"; width: 40px; height: 40px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.login .marca span { color: var(--tenue); font-weight: 600; }
.login .btn { width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .c3, .c4, .c5 { grid-column: span 6; } .c8 { grid-column: span 12; }
  .pila { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dos-col, .fila, .fila.tres, .mini-kpis { grid-template-columns: 1fr; }
  .cobro-rapido, .pago-campos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .lateral { inset: auto 0 0 0; width: auto; height: 66px; flex-direction: row; border-radius: 22px 22px 0 0; padding: 0 .6rem; }
  .logo { display: none; }
  .lateral nav { flex-direction: row; justify-content: space-around; }
  .lateral nav a, .lateral .salir { width: 46px; }
  .lateral nav a.activo { width: 46px; margin: 0; border-radius: 15px; }
  .lateral nav a.activo::after { display: none; }
  .lateral nav a span, .lateral .salir span { display: none; }
  .contenido { margin-left: 0; padding-bottom: 80px; }
  .cabecera { padding: 1rem 16px .2rem; flex-wrap: wrap; }
  .saludo { flex-basis: 100%; }
  .busqueda { flex: 1; width: auto; }
  .btn.negro { padding: 0 1rem; }
  main { padding: .8rem 16px 3rem; }
  h1.h-grande { font-size: 1.8rem; }
  .rejilla { grid-template-columns: 1fr; gap: 1rem; }
  .c3, .c4, .c5, .c8 { grid-column: auto; }
  .pila { grid-template-columns: 1fr; }
  .hero-num { font-size: 2.3rem; }
  .dona-caja { grid-template-columns: 1fr 120px; }
  .graf-dona { width: 120px; height: 120px; }
  .lista-filas li { flex-wrap: wrap; }
  .lf-txt { flex-basis: calc(100% - 60px); }
  .lf-fecha { margin-left: 52px; }
  .lf-monto { margin-left: auto; min-width: 0; }
  .lf-ir { display: none; }
}

/* Ajustes finos */
.hero small, .hero-num small { color: rgba(255,255,255,.88); }
.hero-spark { flex: 1; min-height: 80px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--borde); }
.mini-stats small { margin: 0; font-size: .74rem; }
.mini-stats strong { font-size: 1.3rem; font-weight: 800; }
@media (max-width: 760px) { .mini-stats { grid-template-columns: 1fr 1fr; } }
.hero-num small { display: inline; }
.tarjeta > h2:first-of-type { margin-top: 0; }
.avisos-opciones label.check { display: block; }
.avisos-opciones label.check input { margin-right: .45rem; vertical-align: -1px; }
@media (max-width: 760px) {
  .lateral nav a:nth-child(6) { display: none; }
  .lateral nav a, .lateral .salir { width: 40px; }
}
