/* ============================================================
   Programa de Lealtad — Tequila Centinela · Kit F1
   Tokens oficiales de la Guía de Estilo Digital (Brandbook 06/25)
   Regla de oro digital: rojo + cream; sin dorado; sin rojo/negro.
   ============================================================ */
:root {
  --red:        #A5262C;   /* Centinela Red 187C — primario */
  --red-deep:   #841203;   /* Crimson Ember — hover / negativo */
  --cream:      #F5EBD9;   /* Soft Cream — contraste digital */
  --ivory:      #F2F0ED;   /* Frosted Ivory — fondos neutros */
  --ink:        #1C170F;   /* Obsidian Soil — texto */
  --gris:       #6B625E;
  --linea:      #E4DCD2;
  --exito:      #4E6B4E;   /* funcional (pendiente vo.bo. de marca) */

  --font-display: "Playfair Display", Georgia, serif;  /* fallback de Hilborn */
  --font-body: Roboto, system-ui, sans-serif;
}

[v-cloak] { display: none; }

* { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utilidades de marca ---------- */
.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
}
.kicker--cream { color: var(--cream); }

.titulo { font-size: 26px; font-weight: 700; }
.titulo--display { font-family: var(--font-display); font-size: 30px; }
.subtitulo { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.texto-suave { color: var(--gris); font-size: 14px; }

.tarjeta {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 18px;
  padding: 22px;
}
.tarjeta--roja {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

.boton {
  width: 100%;
  background: var(--red);
  color: var(--cream);
  border: 0; border-radius: 13px;
  padding: 15px; font-size: 16px; font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s;
}
.boton:hover { background: var(--red-deep); }
.boton:disabled { opacity: .6; cursor: wait; }

.alerta {
  background: #FBEDEA; color: var(--red-deep);
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 14px;
}

/* ---------- Login (rojo + cream: la combinación oficial) ---------- */
.login {
  min-height: 100vh;
  background: var(--red);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
}
.login__marca { text-align: center; margin-bottom: 28px; }
.login__logo { width: 210px; display: block; margin: 0 auto 10px; }
.login__tarjeta { width: 100%; max-width: 400px; }
.login__tarjeta .titulo { margin-bottom: 4px; }
.login__tarjeta .texto-suave { margin-bottom: 20px; }
.login__pie { margin-top: 26px; color: var(--cream); opacity: .75; font-size: 12px; }

.campo { display: block; margin-bottom: 14px; }
.campo span {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--gris); margin-bottom: 6px;
}
.campo input {
  width: 100%;
  border: 1.5px solid var(--linea);
  border-radius: 11px;
  background: var(--ivory);
  padding: 13px 14px; font-size: 15px;
  font-family: var(--font-body);
}
.campo input:focus { outline: 2px solid var(--red); border-color: var(--red); }

/* ---------- Dashboard ---------- */
.panel { min-height: 100vh; display: flex; flex-direction: column; }

.cabecera {
  background: var(--red);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.cabecera__logo { width: 128px; }
.cabecera__salir {
  background: transparent; border: 1.5px solid var(--cream);
  color: var(--cream); border-radius: 10px;
  padding: 7px 14px; font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body);
}
.cabecera__salir:hover { background: var(--red-deep); border-color: var(--red-deep); }

.contenido {
  flex: 1;
  width: 100%; max-width: 560px;
  margin: 0 auto; padding: 24px 16px 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.saludo { padding: 4px 6px; }

.puntos__fila {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 10px 0 6px; flex-wrap: wrap;
}
.puntos__valor { font-size: 42px; font-weight: 700; line-height: 1; }
.puntos__valor span { font-size: 16px; font-weight: 400; opacity: .8; }
.puntos__mxn {
  background: var(--red-deep);
  border-radius: 12px; padding: 10px 16px; text-align: center;
}
.puntos__mxn span {
  display: block; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; opacity: .85;
}
.puntos__mxn strong { font-size: 18px; }
.puntos__nota { font-size: 12px; opacity: .85; margin-top: 6px; }

.metricas { display: flex; gap: 12px; }
.metrica {
  flex: 1; background: var(--ivory);
  border-radius: 13px; padding: 16px; text-align: center;
}
.metrica strong { display: block; font-size: 22px; }
.metrica span { font-size: 12px; color: var(--gris); }

.movs { list-style: none; padding: 0; }
.mov {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 2px;
  border-bottom: 1px solid var(--linea);
}
.mov:last-child { border-bottom: 0; }
.mov__producto { font-weight: 500; font-size: 14.5px; }
.mov__meta { font-size: 12px; color: var(--gris); margin-top: 2px; }
.mov__puntos { font-weight: 700; color: var(--exito); white-space: nowrap; }
.mov__puntos--neg { color: var(--red-deep); }

.pie {
  text-align: center; padding: 18px;
  font-size: 12px; color: var(--gris);
}

/* ---------- Pantalla de carga ---------- */
.cargando-pantalla {
  min-height: 100vh;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center;
}
.cargando-pantalla__logo { width: 180px; opacity: .9; }

/* ============================================================
   Kit F2 — Panel del centro (gerente)
   ============================================================ */
.tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 16px 0;
  width: 100%; max-width: 560px; margin: 0 auto;
}
.tab {
  border: 1.5px solid var(--linea);
  background: #fff; color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 500;
  font-family: var(--font-body); cursor: pointer; white-space: nowrap;
}
.tab--activa {
  background: var(--red); border-color: var(--red); color: var(--cream);
  font-weight: 700;
}

.fila-titulo {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.fila-titulo .subtitulo { margin-bottom: 0; }

.pill {
  display: inline-block; background: var(--red); color: var(--cream);
  font-size: 12px; border-radius: 999px; padding: 2px 9px;
  vertical-align: 2px; margin-left: 6px;
}

.acciones { display: flex; gap: 8px; }

.boton-mini {
  background: var(--red); color: var(--cream);
  border: 1.5px solid var(--red); border-radius: 10px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 700;
  font-family: var(--font-body); cursor: pointer; white-space: nowrap;
}
.boton-mini:hover { background: var(--red-deep); border-color: var(--red-deep); }
.boton-mini--linea {
  background: transparent; color: var(--red);
}
.boton-mini--linea:hover { background: var(--ivory); color: var(--red-deep); }
.boton-mini:disabled { opacity: .5; cursor: wait; }

.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px; padding: 2px 7px; margin-left: 6px;
  vertical-align: 1px;
}
.badge--aprobado { background: #EAF0EA; color: var(--exito); }
.badge--baja     { background: var(--ivory); color: var(--gris); }
.badge--pendiente{ background: #FBEDEA; color: var(--red-deep); }

.metricas--encream { margin-top: 14px; }
.metrica--roja {
  background: var(--red-deep);
}
.metrica--roja strong { color: var(--cream); }
.metrica--roja span { color: var(--cream); opacity: .8; }

.alta {
  background: var(--ivory);
  border-radius: 13px; padding: 16px; margin-bottom: 16px;
}
.exito {
  background: #EAF0EA; border-radius: 13px;
  padding: 14px 16px; margin-bottom: 16px;
  color: var(--ink); font-size: 14px;
}
.exito__pass { margin: 6px 0; }
.exito__pass code {
  background: #fff; border: 1px dashed var(--exito);
  border-radius: 7px; padding: 3px 9px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
}

/* ============================================================
   Kit F3 — Panel de Administración
   ============================================================ */
.contenido--ancho { max-width: 860px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.kpi { padding: 16px; }
.kpi span {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 6px;
}
.kpi strong { font-size: 20px; }
.kpi--rojo { background: var(--red); border-color: var(--red); }
.kpi--rojo span { color: var(--cream); opacity: .85; }
.kpi--rojo strong { color: var(--cream); }

.campos-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 520px) { .campos-2 { grid-template-columns: 1fr; } }

.campo select {
  width: 100%;
  border: 1.5px solid var(--linea);
  border-radius: 11px;
  background: #fff;
  padding: 13px 14px; font-size: 15px;
  font-family: var(--font-body);
}
.campo select:focus { outline: 2px solid var(--red); border-color: var(--red); }

.barras { display: flex; flex-direction: column; gap: 14px; }
.barra__info {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13.5px; margin-bottom: 5px;
}
.barra__info strong { color: var(--gris); font-weight: 500; white-space: nowrap; }
.barra__pista {
  background: var(--ivory); border-radius: 999px; height: 14px; overflow: hidden;
}
.barra__relleno {
  background: var(--red); height: 100%; border-radius: 999px;
  transition: width .4s ease;
}

.dos-columnas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 700px) { .dos-columnas { grid-template-columns: 1fr; } }

.pos {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: var(--cream);
  font-size: 12px; font-weight: 700; margin-right: 6px;
}

/* ============================================================
   Kit F4 — Mi cuenta + Recuperación
   ============================================================ */
.enlace {
  display: block; margin: 16px auto 0;
  background: none; border: 0; cursor: pointer;
  color: var(--red); font-size: 13.5px; font-weight: 500;
  font-family: var(--font-body); text-decoration: underline;
}
.enlace:hover { color: var(--red-deep); }

.campo small { display: block; margin-top: 5px; font-size: 11.5px; }

.subtabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
}
.subtab {
  border: 0; background: transparent; color: var(--gris);
  padding: 8px 12px; font-size: 13.5px; font-weight: 500;
  font-family: var(--font-body); cursor: pointer; white-space: nowrap;
  border-bottom: 2.5px solid transparent;
}
.subtab--activa {
  color: var(--red); font-weight: 700;
  border-bottom-color: var(--red);
}

.contenido-anidado { display: flex; flex-direction: column; gap: 16px; }

.buscador { display: flex; gap: 10px; margin-bottom: 14px; }
.buscador input {
  flex: 1;
  border: 1.5px solid var(--linea); border-radius: 11px;
  background: var(--ivory); padding: 11px 14px; font-size: 14.5px;
  font-family: var(--font-body);
}
.buscador input:focus { outline: 2px solid var(--red); border-color: var(--red); }

.badge--dep-pagada   { background: #EAF0EA; color: var(--exito); }
.badge--dep-enviada  { background: #FDF3E3; color: #8A6A2F; }
.badge--dep-generada { background: var(--ivory); color: var(--gris); }
.badge--rechazado    { background: #FBEDEA; color: var(--red-deep); }

/* ============================================================
   Kit F5 — Registro público + Admin ampliado
   ============================================================ */
.enlaces-registro {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 6px; color: var(--gris);
}
.enlaces-registro .enlace { display: inline; margin: 0; }

.nota-lectura {
  background: #FDF3E3; color: #8A6A2F;
  border-radius: 12px; padding: 11px 15px; font-size: 13.5px;
}

.badge--per-abierto     { background: #EAF0EA; color: var(--exito); }
.badge--per-cerrado     { background: var(--ivory); color: var(--gris); }
.badge--per-dispersado  { background: #FDF3E3; color: #8A6A2F; }

.badge--rol-admin    { background: var(--red); color: var(--cream); }
.badge--rol-analista { background: #FDF3E3; color: #8A6A2F; }
.badge--rol-usuario  { background: var(--ivory); color: var(--gris); }

.mini-select {
  border: 1.5px solid var(--linea); border-radius: 9px;
  background: #fff; padding: 6px 8px; font-size: 12.5px;
  font-family: var(--font-body);
}

/* ============================================================
   Kit v10 — Novedades + Sucursales
   ============================================================ */
.novedad__imagen {
  width: calc(100% + 44px); margin: -22px -22px 16px;
  border-radius: 18px 18px 0 0;
  max-height: 300px; object-fit: cover; display: block;
}
.novedad__cuerpo { font-size: 15px; line-height: 1.65; }
.novedad__cuerpo p { margin: 0 0 10px; }
.novedad__cuerpo ul, .novedad__cuerpo ol { margin: 0 0 10px 20px; }
.novedad__cuerpo a { color: var(--red); }

.editor-barra { display: flex; gap: 6px; margin-bottom: 8px; }
.editor-barra button {
  border: 1.5px solid var(--linea); background: #fff; border-radius: 8px;
  padding: 6px 11px; font-size: 13px; cursor: pointer; font-family: var(--font-body);
}
.editor-barra button:hover { border-color: var(--red); color: var(--red); }
.editor-cuerpo {
  min-height: 140px; background: #fff;
  border: 1.5px solid var(--linea); border-radius: 11px;
  padding: 13px 14px; font-size: 15px; line-height: 1.6;
}
.editor-cuerpo:focus { outline: 2px solid var(--red); border-color: var(--red); }

.campo--fila { display: flex; align-items: center; gap: 10px; flex-direction: row; }

/* ============================================================
   Kit v11 — Menú del admin: completo en escritorio, hamburguesa en móvil
   ============================================================ */
.subtabs--admin { flex-wrap: wrap; overflow: visible; padding-bottom: 4px; }

.menu-movil-zona { display: none; position: relative; }
.menu-movil-boton {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--linea); border-radius: 13px;
  padding: 13px 16px; font-size: 15px; font-weight: 700;
  font-family: var(--font-body); color: var(--ink); cursor: pointer;
}
.menu-movil-icono { color: var(--red); font-size: 17px; }
.menu-movil {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1.5px solid var(--linea); border-radius: 13px;
  box-shadow: 0 10px 30px rgba(28, 23, 15, .14);
  overflow: hidden;
}
.menu-movil__item {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--ivory);
  padding: 14px 16px; font-size: 14.5px; font-family: var(--font-body);
  color: var(--ink); cursor: pointer;
}
.menu-movil__item:last-child { border-bottom: 0; }
.menu-movil__item--activo { color: var(--red); font-weight: 700; background: var(--ivory); }

@media (max-width: 640px) {
  .subtabs--admin { display: none; }
  .menu-movil-zona { display: block; }
}

/* ============================================================
   Kit v12 — Menú PRINCIPAL: completo en escritorio, hamburguesa en móvil
   ============================================================ */
.tabs--principal {
  flex-wrap: wrap; overflow: visible;
  max-width: 900px; justify-content: center;
  padding-bottom: 2px;
}

.menu-nav-zona {
  display: none; position: relative;
  padding: 12px 16px 0;
  width: 100%; max-width: 560px; margin: 0 auto;
}
.menu-nav-zona .menu-movil { left: 16px; right: 16px; }

@media (max-width: 640px) {
  .tabs--principal { display: none; }
  .menu-nav-zona { display: block; }
}

/* ============================================================
   Kit v14 — Detalle Ver, fotos, lightbox, sucursales anidadas
   ============================================================ */
.mini-foto {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 10px; margin-right: 12px; cursor: zoom-in;
  border: 1.5px solid var(--linea); flex-shrink: 0;
}
.mov { align-items: center; }

.foto-actual { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.foto-actual img {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: 11px; cursor: zoom-in; border: 1.5px solid var(--linea);
}

.grupo-negocio { margin-bottom: 18px; }
.grupo-negocio__titulo {
  font-weight: 700; font-size: 15px; margin-bottom: 4px;
}
.mov--sucursal { padding-left: 22px; position: relative; }
.mov--sucursal::before {
  content: '└'; position: absolute; left: 4px; color: var(--gris);
}

.modal-fondo {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 23, 15, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-fondo--oscuro { background: rgba(28, 23, 15, .88); }
.modal {
  background: #fff; border-radius: 18px;
  padding: 26px 24px; max-width: 520px; width: 100%;
  max-height: 86vh; overflow-y: auto; position: relative;
}
.modal__cerrar {
  position: absolute; top: 14px; right: 14px;
  background: var(--ivory); border: 0; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 14px;
  color: var(--ink);
}
.modal__cerrar--claro {
  position: fixed; top: 22px; right: 22px;
  background: rgba(245, 235, 217, .2); color: var(--cream);
}
.detalle { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.detalle > div { display: flex; gap: 12px; }
.detalle dt {
  flex: 0 0 145px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gris);
  padding-top: 2px;
}
.detalle dd { margin: 0; font-size: 14.5px; }
.detalle__foto {
  width: 100%; max-height: 240px; object-fit: cover;
  border-radius: 13px; margin: 12px 0; cursor: zoom-in;
}
.lightbox {
  max-width: 94vw; max-height: 88vh;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.novedad__imagen--clic { cursor: zoom-in; }

/* ============================================================
   Kit v19 — Tickets, facturas y asignación multi-línea
   ============================================================ */
.linea-asig {
  display: grid; grid-template-columns: 2fr 1fr 1fr 34px;
  gap: 10px; align-items: end; margin-bottom: 8px;
}
.linea-asig__quitar {
  height: 40px; border: 1.5px solid var(--linea); background: #fff;
  border-radius: 10px; cursor: pointer; color: var(--gris); font-size: 13px;
}
.linea-asig__quitar:hover { border-color: var(--red); color: var(--red); }
.filtro-mini {
  border: 1.5px solid var(--linea); border-radius: 9px;
  padding: 7px 10px; font-size: 13px; font-family: var(--font-body);
  background: #fff;
}
@media (max-width: 640px) {
  .linea-asig { grid-template-columns: 1fr 1fr; }
  .linea-asig .campo:first-child { grid-column: 1 / -1; }
}

/* Filas con varias acciones (tickets y facturas del admin) */
.mov--acciones { flex-wrap: wrap; gap: 10px; }
.mov__botones {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* ============================================================
   Kit v21 — Módulo Ejecutivos: checklist, avance y check in
   ============================================================ */
.checklist { list-style: none; padding: 0; margin: 10px 0 0; }
.checklist__item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--linea);
}
.checklist__item:last-child { border-bottom: 0; }
.checklist__marca {
  flex: 0 0 22px; height: 22px; border-radius: 11px;
  border: 1.5px solid var(--linea); background: #fff;
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.checklist__marca--ok { background: var(--exito); border-color: var(--exito); }
.checklist__nombre { margin: 0; font-weight: 600; color: var(--ink); }
.checklist__nombre--ok { color: var(--gris); }
.checklist__check {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; cursor: pointer; width: 100%;
}
.checklist__check input { width: 18px; height: 18px; accent-color: var(--red); }
.checklist--form .checklist__item { padding: 7px 0; }

.avance { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.avance__barra {
  flex: 1; height: 9px; border-radius: 5px;
  background: var(--linea); overflow: hidden;
}
.avance__lleno { height: 100%; background: var(--red); border-radius: 5px; transition: width .25s ease; }
.avance__texto { margin: 0; font-size: 13px; color: var(--gris); white-space: nowrap; }

.geo {
  background: var(--cream); border: 1.5px solid var(--linea);
  border-radius: 10px; padding: 10px 13px; margin: 10px 0 4px;
  font-size: 13.5px; color: var(--ink);
}
.mov--acciones { flex-wrap: wrap; gap: 10px; }
.mov__botones { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   Kit v22 — Contraseñas: ver/ocultar y confirmación
   ============================================================ */
.campo-pass { position: relative; display: block; }
.campo-pass input { width: 100%; padding-right: 46px; }
.campo-pass__ojo {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  font-size: 17px; line-height: 1; padding: 6px 8px; border-radius: 8px;
  opacity: .75;
}
.campo-pass__ojo:hover { opacity: 1; background: var(--ivory); }
.texto-error { color: var(--red); font-size: 12.5px; }
.texto-ok    { color: var(--exito); font-size: 12.5px; }

/* ============================================================
   Kit v23 — Navegación del admin: barra lateral
   ============================================================ */
.contenido--admin {
  max-width: 1180px;
  display: flex;
  flex-direction: row;      /* .contenido apila en columna; aquí van lado a lado */
  align-items: flex-start;
  gap: 28px;
}
.admin-nav {
  flex: 0 0 216px;
  background: var(--ink);
  border-radius: 16px;
  padding: 20px 14px;
  position: sticky;
  top: 20px;
}
.admin-nav__marca {
  margin: 0 0 16px;
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--oro, #C9A050);
}
.admin-nav__lista { display: flex; flex-direction: column; gap: 3px; }
.admin-nav__item {
  text-align: left;
  border: 0;
  background: none;
  color: var(--cream);
  opacity: .8;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.admin-nav__item:hover { opacity: 1; background: rgba(255, 255, 255, .07); }
.admin-nav__item--activo {
  background: var(--red);
  color: #fff;
  opacity: 1;
  font-weight: 700;
}
.admin-cuerpo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-cuerpo .saludo { margin-top: 0; }

@media (max-width: 900px) {
  .contenido--admin { flex-direction: column; gap: 16px; }
  .admin-nav {
    position: static;
    width: 100%;
    flex: none;
    padding: 12px;
    border-radius: 14px;
  }
  .admin-nav__marca { display: none; }
  .admin-nav__lista {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-nav__lista::-webkit-scrollbar { display: none; }
  .admin-nav__item { white-space: nowrap; padding: 9px 14px; font-size: 14px; }
}

/* ============================================================
   Kit v24 — Catálogo de tareas ordenable
   ============================================================ */
.orden-tareas { list-style: none; padding: 0; margin: 14px 0 0; }
.orden-tareas__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border: 1.5px solid var(--linea);
  border-radius: 12px; margin-bottom: 8px; background: #fff;
  flex-wrap: wrap;
}
.orden-tareas__item--arrastrando { opacity: .45; border-style: dashed; border-color: var(--red); }
.orden-tareas__asa {
  cursor: grab; color: var(--gris); font-size: 15px;
  letter-spacing: -3px; user-select: none;
}
.orden-tareas__asa:active { cursor: grabbing; }
.orden-tareas__num {
  flex: 0 0 26px; height: 26px; border-radius: 13px;
  background: var(--cream); color: var(--ink);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.orden-tareas__datos { flex: 1; min-width: 160px; }
.orden-tareas__datos p { margin: 0; }

/* Kit v27 — el logotipo de la cabecera lleva al inicio */
.cabecera__inicio {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 8px;
}
.cabecera__inicio:hover { opacity: .85; }

/* ============================================================
   Kit v29 — Buscador con X, facturas agrupadas y avisos centrados
   ============================================================ */
.buscador__campo { position: relative; flex: 1; display: flex; }
.buscador__campo input { width: 100%; padding-right: 38px; }
.buscador__limpiar {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; cursor: pointer;
  color: var(--gris); font-size: 14px; line-height: 1;
  padding: 6px; border-radius: 6px;
}
.buscador__limpiar:hover { color: var(--red); background: var(--ivory); }
.enlace-inline {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--red); font-family: inherit; font-size: inherit;
  text-decoration: underline;
}

.grupo-facturas { margin-top: 18px; }
.grupo-facturas:first-of-type { margin-top: 10px; }
.grupo-facturas__titulo {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 4px; font-family: var(--font-display, Georgia), serif;
  font-size: 16px; font-weight: 700; color: var(--red);
  padding-bottom: 6px; border-bottom: 1.5px solid var(--linea);
}
.grupo-facturas__cuenta {
  background: var(--cream); color: var(--ink);
  border-radius: 10px; padding: 2px 9px; font-size: 12px; font-weight: 700;
}

.modal--aviso { max-width: 420px; text-align: center; }
.aviso-modal { padding: 8px 4px 4px; }
.aviso-modal__icono {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 26px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
}
.aviso-modal--exito .aviso-modal__icono { background: var(--exito); }
.aviso-modal--error .aviso-modal__icono { background: var(--red); }
.aviso-modal__texto {
  margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink);
}
