/* ===== Club de Conquistadores — estilos ===== */
:root {
  --azul: #0b2a5b;
  --azul-2: #133b7c;
  --azul-3: #1d4ed8;
  --rojo: #c8102e;
  --oro: #f2b705;
  --oro-2: #fde68a;
  --fondo: #f3f5fa;
  --tarjeta: #ffffff;
  --texto: #0f172a;
  --suave: #64748b;
  --borde: #e2e8f0;
  --verde: #16a34a;
  --ambar: #d97706;
  --sombra: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --radio: 16px;
}
* { 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", Roboto, sans-serif;
}
a { color: var(--azul-3); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.suave { color: var(--suave); }
.peq { font-size: .85rem; }
.centro { text-align: center; }
.oculto { display: none !important; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 2.2; vertical-align: -3px; }

/* ---------- botones y formularios ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.1rem; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--azul); color: #fff; font: inherit; font-weight: 700; line-height: 1.1;
  transition: transform .12s, box-shadow .12s, background .12s; text-align: center;
}
.btn:hover { background: var(--azul-2); box-shadow: 0 6px 18px rgba(11, 42, 91, .25); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-oro { background: var(--oro); color: #3b2a00; }
.btn-oro:hover { background: #ffc61a; box-shadow: 0 6px 18px rgba(242, 183, 5, .35); }
.btn-rojo { background: var(--rojo); } .btn-rojo:hover { background: #a50d26; }
.btn-verde { background: var(--verde); } .btn-verde:hover { background: #15803d; }
.btn-claro { background: #fff; color: var(--texto); border: 1px solid var(--borde); }
.btn-claro:hover { background: #f8fafc; box-shadow: none; }
.btn-fantasma { background: transparent; color: var(--azul-3); padding: .5rem .7rem; }
.btn-fantasma:hover { background: #eef2ff; box-shadow: none; }
.btn-chico { padding: .45rem .75rem; font-size: .85rem; border-radius: 10px; }
.btn-grande { padding: 1rem 1.4rem; font-size: 1.05rem; border-radius: 14px; }
.btn-bloque { width: 100%; }
.btns { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.campo { margin-bottom: 1rem; }
.ayuda { font-size: .8rem; color: var(--suave); margin-top: .25rem; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search],
input[type=tel], input[type=email], input[type=url], select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--borde); border-radius: 12px;
  font: inherit; background: #fff; color: var(--texto); transition: border .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--azul-3); box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
textarea { min-height: 110px; resize: vertical; }
.fila { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--azul); flex: none; }

/* ---------- tarjetas, chips ---------- */
.tarjeta { background: var(--tarjeta); border-radius: var(--radio); box-shadow: var(--sombra); padding: 1.25rem; }
.tarjeta + .tarjeta { margin-top: 1rem; }
.tarjeta-titulo { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tarjeta-titulo h2, .tarjeta-titulo h3 { margin: 0; }
.chip {
  --c: #64748b; display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 99px;
  font-size: .75rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 25%, #fff); white-space: nowrap;
}
.chip-gris { --c: #64748b; }
.estado { display: inline-block; padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.estado-verde { background: #dcfce7; color: #166534; }
.estado-ambar { background: #fef3c7; color: #92400e; }
.estado-rojo { background: #fee2e2; color: #991b1b; }
.estado-azul { background: #dbeafe; color: #1e40af; }
.estado-gris { background: #f1f5f9; color: #475569; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--c, var(--azul)); font-size: .9rem; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; }

.aviso { padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.aviso-ok { background: #dcfce7; color: #14532d; }
.aviso-error { background: #fee2e2; color: #7f1d1d; }
.aviso-info { background: #e0e7ff; color: #1e3a8a; }
.aviso-ambar { background: #fef3c7; color: #78350f; }

.progreso { height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.progreso > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--oro), #f59e0b); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.progreso-verde > span { background: linear-gradient(90deg, #22c55e, var(--verde)); }

.vacio { text-align: center; padding: 3rem 1rem; color: var(--suave); }
.vacio [data-lucide] { width: 48px; height: 48px; color: #cbd5e1; margin-bottom: .75rem; }
.vacio h2 { color: var(--texto); }

/* ---------- tablas ---------- */
.tabla-env { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
table.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--suave); padding: .6rem .6rem; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla td { padding: .7rem .6rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover { background: #fafbff; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.persona { display: flex; gap: .65rem; align-items: center; min-width: 180px; }
.persona b { display: block; line-height: 1.2; }

/* ============ PÁGINA PÚBLICA ============ */
.pub-barra { background: var(--azul); color: #fff; }
.pub-barra .cont { display: flex; align-items: center; gap: .75rem; padding: .7rem 16px; }
.pub-barra img { width: 38px; height: 38px; border-radius: 50%; background: #fff; object-fit: cover; }
.pub-barra b { font-size: .98rem; }
.pub-barra small { display: block; opacity: .75; font-size: .75rem; }
.pub-barra a { color: #fff; }
.cont { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.escudo-mini { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--oro); color: var(--azul); font-weight: 900; }

.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 400px at 80% -10%, rgba(242, 183, 5, .35), transparent 60%),
              linear-gradient(135deg, var(--azul) 0%, #102f6b 55%, #7a0d1f 130%);
}
.hero .cont { padding: 3rem 16px 4.5rem; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.hero p { opacity: .85; max-width: 560px; font-size: 1.05rem; }
.hero-tri { position: absolute; right: -60px; bottom: -80px; width: 340px; opacity: .12; }
.hero-logo { width: 84px; height: 84px; border-radius: 50%; background: #fff; object-fit: cover; margin-bottom: 1rem; box-shadow: 0 0 0 5px rgba(255,255,255,.15); }

.seccion { padding-top: 2rem; padding-bottom: 2rem; }
.seccion-titulo { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sube { margin-top: -3rem; position: relative; z-index: 2; }

.eventos-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.evento-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; color: inherit; transition: transform .2s, box-shadow .2s; }
.evento-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }
.evento-foto { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--azul), var(--rojo)); position: relative; overflow: hidden; }
.evento-foto img { width: 100%; height: 100%; object-fit: cover; }
.evento-foto .sin-foto { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.evento-foto .sin-foto [data-lucide] { width: 56px; height: 56px; }
.evento-fecha { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 12px; padding: .3rem .6rem; text-align: center; font-weight: 800; color: var(--azul); line-height: 1.1; box-shadow: var(--sombra); }
.evento-fecha small { display: block; font-size: .65rem; text-transform: uppercase; color: var(--rojo); }
.evento-cuerpo { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.evento-cuerpo h3 { margin: 0; font-size: 1.15rem; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; color: var(--suave); font-size: .85rem; }
.precio { font-size: 1.25rem; font-weight: 800; color: var(--azul); }

.ev-hero { position: relative; min-height: 300px; color: #fff; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--azul), var(--rojo)); }
.ev-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 40, .1) 0%, rgba(5, 15, 40, .85) 100%); }
.ev-hero .cont { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4.2rem; width: 100%; }
.ev-hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; }
.ev-hero .meta { color: rgba(255,255,255,.9); font-size: .95rem; }
.ev-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ev-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.linea-cuotas { list-style: none; padding: 0; margin: 0; }
.linea-cuotas li { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--borde); }
.linea-cuotas li:last-child { border: 0; }
.linea-cuotas b { display: block; }

.buscador { position: relative; }
.buscador [data-lucide] { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--suave); }
.buscador input { padding-left: 2.6rem; font-size: 1rem; padding-top: .9rem; padding-bottom: .9rem; border-radius: 14px; }

.lista-personas { display: grid; gap: .6rem; margin-top: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.persona-card {
  display: flex; gap: .75rem; align-items: center; padding: .8rem .9rem; background: #fff; border: 1px solid var(--borde);
  border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%;
  transition: border .15s, transform .15s, box-shadow .15s; animation: aparecer .3s both;
}
.persona-card:hover { border-color: var(--azul-3); box-shadow: 0 6px 18px rgba(29, 78, 216, .12); transform: translateY(-1px); }
.persona-card .info { flex: 1; min-width: 0; }
.persona-card .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.persona-card .lado { text-align: right; font-size: .8rem; }
.al-dia { color: var(--verde); font-weight: 700; }
.debe { color: var(--rojo); font-weight: 700; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } }

/* ---------- hoja de pago (modal) ---------- */
.hoja-fondo { position: fixed; inset: 0; background: rgba(5, 15, 40, .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fundido .2s; backdrop-filter: blur(3px); }
.hoja { background: #fff; width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 1.25rem 1.25rem 1.5rem; animation: subir .3s cubic-bezier(.2, .8, .2, 1); position: relative; }
@media (min-width: 640px) { .hoja-fondo { align-items: center; } .hoja { border-radius: 24px; } }
.hoja-cerrar { position: absolute; right: 12px; top: 12px; border: 0; background: #f1f5f9; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.hoja-asa { width: 44px; height: 5px; border-radius: 9px; background: #e2e8f0; margin: -0.4rem auto .9rem; }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
@keyframes fundido { from { opacity: 0; } }
.pasos { display: flex; gap: .35rem; margin-bottom: 1rem; }
.pasos span { flex: 1; height: 4px; border-radius: 9px; background: #e2e8f0; transition: background .3s; }
.pasos span.on { background: var(--oro); }
.cuota-op { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border: 2px solid var(--borde); border-radius: 14px; margin-bottom: .5rem; cursor: pointer; transition: border .15s, background .15s; font-weight: 500; }
.cuota-op:has(input:checked) { border-color: var(--azul-3); background: #eff6ff; }
.cuota-op input { width: 20px; height: 20px; accent-color: var(--azul); }
.cuota-op .txt { flex: 1; }
.cuota-op.bloq { cursor: default; background: #f8fafc; }
.total-pagar { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; font-weight: 700; }
.total-pagar b { font-size: 1.5rem; color: var(--azul); }
.qr-caja { background: linear-gradient(135deg, #fff7d6, #fff); border: 2px dashed var(--oro); border-radius: 20px; padding: 1rem; text-align: center; }
.qr-caja img { width: min(270px, 100%); margin: 0 auto .5rem; border-radius: 12px; background: #fff; }
.monto-grande { font-size: 2rem; font-weight: 800; color: var(--azul); letter-spacing: -.02em; }
.datos-cuenta { font-size: .88rem; color: var(--suave); }
.zona-subir { display: block; border: 2px dashed #94a3b8; border-radius: 18px; padding: 2rem 1rem; text-align: center; cursor: pointer; transition: border .15s, background .15s; }
.zona-subir:hover { border-color: var(--azul-3); background: #f8fbff; }
.zona-subir [data-lucide] { width: 40px; height: 40px; color: var(--azul-3); }
.vista-previa { position: relative; border-radius: 16px; overflow: hidden; max-height: 380px; background: #0f172a; }
.vista-previa img { width: 100%; max-height: 380px; object-fit: contain; }
.escaner { position: absolute; left: 0; right: 0; height: 70px; top: -70px; background: linear-gradient(180deg, transparent, rgba(242, 183, 5, .55)); border-bottom: 2px solid var(--oro); animation: escanear 1.6s ease-in-out infinite; }
@keyframes escanear { 0% { top: -70px; } 100% { top: 100%; } }
.etapas { list-style: none; padding: 0; margin: 1rem 0 0; }
.etapas li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; color: #94a3b8; font-weight: 600; transition: color .2s; }
.etapas li.activa { color: var(--azul); }
.etapas li.lista { color: var(--verde); }
.etapas .punto { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; }
.etapas li.activa .punto { border-top-color: transparent; animation: girar .8s linear infinite; }
.etapas li.lista .punto { background: var(--verde); border-color: var(--verde); color: #fff; }
@keyframes girar { to { transform: rotate(360deg); } }
.resultado-icono { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin: .5rem auto 1rem; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.resultado-icono [data-lucide] { width: 52px; height: 52px; color: #fff; }
.resultado-ok { background: var(--verde); box-shadow: 0 0 0 12px #dcfce7; }
.resultado-rev { background: var(--ambar); box-shadow: 0 0 0 12px #fef3c7; }
.resultado-error { background: var(--rojo); box-shadow: 0 0 0 12px #fee2e2; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

.pub-pie { text-align: center; color: var(--suave); font-size: .85rem; padding: 2rem 16px 3rem; }
.recibo { max-width: 460px; margin: 2rem auto; background: #fff; border-radius: 20px; box-shadow: var(--sombra); overflow: hidden; }
.recibo-cab { background: var(--azul); color: #fff; padding: 1.25rem; text-align: center; }
.recibo-cuerpo { padding: 1.25rem; }
.recibo-fila { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--borde); }
@media print { .no-imprimir { display: none !important; } body { background: #fff; } .recibo { box-shadow: none; } }

/* ============ PANEL ============ */
.panel { display: flex; min-height: 100vh; }
.lateral {
  width: 250px; flex: none; background: var(--azul); color: #cbd5e1; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.lateral-marca { display: flex; gap: .7rem; align-items: center; padding: 1.1rem 1rem; color: #fff; }
.lateral-marca img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: cover; }
.lateral-marca b { display: block; line-height: 1.15; font-size: .95rem; }
.lateral-marca small { opacity: .7; font-size: .72rem; }
.menu { padding: .5rem .6rem; flex: 1; }
.menu a { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: 12px; color: #cbd5e1; font-weight: 600; margin-bottom: 2px; }
.menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu a.activo { background: rgba(242, 183, 5, .16); color: var(--oro); }
.menu .badge { margin-left: auto; background: var(--rojo); color: #fff; font-size: .7rem; padding: .05rem .45rem; border-radius: 99px; font-weight: 800; }
.menu-sep { height: 1px; background: rgba(255, 255, 255, .08); margin: .6rem .75rem; }
.lateral-usuario { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; gap: .6rem; align-items: center; font-size: .85rem; }
.lateral-usuario .avatar { width: 34px; height: 34px; background: var(--oro); color: var(--azul); }
.lateral-usuario a { color: #94a3b8; margin-left: auto; }
.principal { flex: 1; min-width: 0; }
.barra-sup { display: none; }
.contenido { padding: 1.5rem; max-width: 1200px; }
.cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cabeza h1 { margin: 0; }
.cabeza p { margin: .2rem 0 0; color: var(--suave); }
.migas { font-size: .85rem; color: var(--suave); margin-bottom: .3rem; }
.migas a { color: var(--suave); }
@media (max-width: 900px) {
  .lateral { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; }
  .panel.menu-abierto .lateral { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .panel.menu-abierto::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
  .barra-sup { display: flex; align-items: center; gap: .6rem; padding: .7rem 16px; background: var(--azul); color: #fff; position: sticky; top: 0; z-index: 20; }
  .barra-sup button { background: none; border: 0; color: #fff; padding: .3rem; cursor: pointer; }
  .barra-sup b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .contenido { padding: 1rem 16px 2rem; }
  .tarjeta { padding: 1rem; }
  .tabla-env { margin: 0 -1rem; padding: 0 1rem; }
}

.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1rem; }
.kpi { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 1.1rem 1.2rem; position: relative; overflow: hidden; }
.kpi .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--azul-3); margin-bottom: .6rem; }
.kpi .ico.oro { background: #fef3c7; color: #b45309; }
.kpi .ico.verde { background: #dcfce7; color: var(--verde); }
.kpi .ico.rojo { background: #fee2e2; color: var(--rojo); }
.kpi .valor { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.kpi .etiqueta { color: var(--suave); font-size: .85rem; }
.rejilla-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .rejilla-2 { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.ev-fila { display: flex; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid #f1f5f9; color: inherit; }
.ev-fila:last-child { border: 0; }
.ev-mini { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--azul), var(--rojo)); display: grid; place-items: center; color: rgba(255,255,255,.7); }
.ev-mini img { width: 100%; height: 100%; object-fit: cover; }
.ev-fila .det { flex: 1; min-width: 0; }

.filtros { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filtros input, .filtros select { width: auto; min-width: 160px; flex: 1; }
.pestanas { display: flex; gap: .25rem; border-bottom: 1px solid var(--borde); margin-bottom: 1rem; overflow-x: auto; }
.pestanas a { padding: .6rem .9rem; color: var(--suave); font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.pestanas a.activo { color: var(--azul); border-color: var(--oro); }

.celda { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 800; border: 0; cursor: pointer; font: inherit; }
.celda [data-lucide] { width: 16px; height: 16px; }
.celda-pagada { background: #dcfce7; color: var(--verde); }
.celda-revision { background: #fef3c7; color: var(--ambar); }
.celda-pendiente { background: #f1f5f9; color: #94a3b8; }
.celda-vencida { background: #fee2e2; color: var(--rojo); }
.leyenda { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--suave); }
.leyenda span { display: inline-flex; align-items: center; gap: .35rem; }
.leyenda i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.menu-celda { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(15, 23, 42, .2); padding: .4rem; z-index: 60; min-width: 230px; animation: fundido .15s; }
.menu-celda button, .menu-celda a { display: flex; width: 100%; gap: .5rem; align-items: center; padding: .55rem .7rem; border: 0; background: none; border-radius: 10px; font: inherit; cursor: pointer; color: var(--texto); text-align: left; }
.menu-celda button:hover, .menu-celda a:hover { background: #f1f5f9; }
.menu-celda .tit { padding: .5rem .7rem .3rem; font-size: .78rem; color: var(--suave); }

.modal-fondo { position: fixed; inset: 0; background: rgba(5, 15, 40, .5); z-index: 70; display: grid; place-items: center; padding: 16px; animation: fundido .15s; }
.modal { background: #fff; border-radius: 20px; padding: 1.4rem; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; animation: subir .25s; }
.modal h2 { margin-bottom: 1rem; }

.barras { display: flex; align-items: flex-end; gap: .5rem; height: 180px; padding-top: 1rem; }
.barras .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .3rem; min-width: 0; }
.barras .b span { width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--oro), #f59e0b); min-height: 3px; transition: height .8s cubic-bezier(.2, .8, .2, 1); }
.barras .b small { font-size: .7rem; color: var(--suave); white-space: nowrap; }
.barras .b em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--texto); white-space: nowrap; }

.permisos-grupo { margin-bottom: 1rem; }
.permisos-grupo h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); margin-bottom: .4rem; }
.permisos-grupo .check { padding: .5rem .6rem; border-radius: 10px; }
.permisos-grupo .check:hover { background: #f8fafc; }

.login-fondo { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 500px at 10% 0%, rgba(242, 183, 5, .25), transparent 60%), linear-gradient(135deg, var(--azul), #0b1f45 60%, #5c0a18); }
.login { background: #fff; border-radius: 24px; padding: 2rem 1.5rem; width: 100%; max-width: 400px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.login .escudo { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--oro); display: grid; place-items: center; color: var(--azul); overflow: hidden; }
.login .escudo img { width: 100%; height: 100%; object-fit: cover; }
.foto-previa { width: 100%; max-width: 360px; border-radius: 14px; margin-bottom: .5rem; }
.comprobante-img { width: 100%; border-radius: 14px; border: 1px solid var(--borde); }
pre.ocr { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--borde); border-radius: 12px; padding: .8rem; font-size: .78rem; max-height: 260px; overflow: auto; }
.check-lista { list-style: none; padding: 0; margin: 0; }
.check-lista li { display: flex; gap: .5rem; padding: .3rem 0; align-items: center; }
.ok { color: var(--verde); } .mal { color: var(--rojo); } .neutro { color: var(--suave); }
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi { padding: .85rem; }
  .kpi .valor { font-size: 1.15rem; }
  .kpi .ico { width: 34px; height: 34px; margin-bottom: .4rem; }
  .fila-cuota { grid-template-columns: 1fr 1fr !important; border-bottom: 1px dashed var(--borde); margin-bottom: .6rem; }
  .fila-cuota .campo:first-of-type { grid-column: 1 / -1; }
}
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--texto); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; z-index: 90; font-weight: 600; animation: subir .25s; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
