/* =====================================================================
   Club Mediterráneo — estilos base (mobile-first)
   Paleta oficial de marca.
   ===================================================================== */
:root {
  --rojo: #FF0000;
  --rojo-osc: #cc0000;
  --negro: #000000;
  --amarillo: #EEC900;
  --blanco: #FFFFFF;
  --gris-fondo: #f4f4f5;
  --gris-borde: #e3e3e6;
  --gris-texto: #2b2b2b;
  --gris-suave: #6b6b70;
  --radio: 12px;
  --sombra: 0 2px 10px rgba(0, 0, 0, .08);
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--gris-texto);
  background: var(--gris-fondo);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Cabecera ---------- */
.cabecera {
  background: var(--negro);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 3px solid var(--rojo);
}
.marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--blanco); }
.marca__icono {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--rojo); color: var(--blanco);
  font-weight: 800; border-radius: 8px;
}
.marca__icono--xl { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 12px; }
.marca__texto { font-size: 1.05rem; font-weight: 500; letter-spacing: .3px; }
.marca__texto strong { color: var(--amarillo); }

.sesion { display: flex; align-items: center; gap: .6rem; }
.sesion__usuario { font-size: .85rem; display: flex; align-items: center; gap: .4rem; }
.chip {
  background: var(--amarillo); color: var(--negro);
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  padding: .12rem .45rem; border-radius: 999px;
}

/* ---------- Contenido ---------- */
.contenido { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 700;
  padding: .6rem 1.1rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn--primario { background: var(--rojo); color: var(--blanco); }
.btn--primario:hover { background: var(--rojo-osc); }
.btn--bloque { width: 100%; }
.btn--ghost { background: transparent; color: var(--gris-texto); border-color: var(--gris-borde); padding: .4rem .8rem; font-size: .85rem; }
.btn--ghost:hover { border-color: var(--rojo); color: var(--rojo); }
.cabecera .btn--ghost { color: var(--blanco); border-color: rgba(255,255,255,.4); }
.cabecera .btn--ghost:hover { border-color: var(--amarillo); color: var(--amarillo); }
.vacio .btn--ghost, .panel .btn--ghost { color: var(--gris-texto); border-color: var(--gris-borde); }
.vacio .btn--ghost:hover { border-color: var(--rojo); color: var(--rojo); }

/* ---------- Login ---------- */
.login { display: grid; place-items: center; padding-top: 2rem; }
.login__tarjeta {
  background: var(--blanco); width: 100%; max-width: 360px;
  padding: 1.8rem 1.5rem; border-radius: var(--radio);
  box-shadow: var(--sombra); border-top: 4px solid var(--rojo); text-align: center;
}
.login__marca { display: grid; place-items: center; margin-bottom: .8rem; }
.login__titulo { margin: 0; font-size: 1.3rem; }
.login__sub { margin: .2rem 0 1.2rem; color: var(--gris-suave); font-size: .9rem; }
.campo { display: block; text-align: left; margin-bottom: .9rem; }
.campo span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; color: var(--gris-suave); }
.campo input {
  width: 100%; padding: .65rem .7rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--gris-borde); border-radius: 8px; background: #fafafa;
}
.campo input:focus { outline: 2px solid var(--rojo); border-color: var(--rojo); background: var(--blanco); }

/* ---------- Alertas ---------- */
.alerta { padding: .6rem .8rem; border-radius: 8px; font-size: .88rem; margin-bottom: 1rem; text-align: left; }
.alerta--error { background: #ffe3e3; color: #b00000; border: 1px solid #ffb3b3; }
.alerta--aviso { background: #fff7d6; color: #806600; border: 1px solid #f0dd8a; }

/* ---------- Panel ---------- */
.panel__saludo { margin: .2rem 0 .1rem; font-size: 1.5rem; }
.panel__sub { margin: 0 0 1.3rem; color: var(--gris-suave); }
.tarjetas { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.tarjeta {
  background: var(--blanco); border: 1px solid var(--gris-borde); border-left: 4px solid var(--rojo);
  border-radius: var(--radio); padding: 1rem 1.1rem; text-decoration: none; color: inherit;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .85rem; align-items: center; box-shadow: var(--sombra);
  transition: transform .12s, border-color .12s;
}
.tarjeta:hover { transform: translateY(-2px); border-left-color: var(--amarillo); }
.tarjeta__icono { grid-row: 1 / 3; font-size: 1.7rem; }
.tarjeta__titulo { font-weight: 700; }
.tarjeta__desc { font-size: .82rem; color: var(--gris-suave); }

/* ---------- Vacío / estados ---------- */
.vacio { text-align: center; padding: 2.5rem 1rem; }
.vacio h1 { font-size: 1.6rem; margin-bottom: .4rem; }

/* ---------- Pie ---------- */
.pie { text-align: center; padding: 1rem; color: var(--gris-suave); font-size: .72rem; }

/* ---------- Responsive ---------- */
@media (min-width: 620px) {
  .tarjetas { grid-template-columns: 1fr 1fr; }
}

/* ---------- PWA cliente ---------- */
.contenido--cliente { max-width: 560px; }
.login__pie { margin-top: 1rem; font-size: .9rem; color: var(--gris-suave); }
.campo--check { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; }
.campo--check input { width: auto; margin-top: .2rem; }
.alerta--ok { background: #e6f7e6; color: #1b6b1b; border: 1px solid #b3e0b3; }
.saldo { background: var(--negro); color: var(--blanco); border-radius: var(--radio); padding: 1.4rem; text-align: center; border-bottom: 4px solid var(--rojo); }
.saldo__label { display: block; font-size: .9rem; color: var(--amarillo); margin-bottom: .3rem; }
.saldo__num { display: block; font-size: 3rem; font-weight: 800; line-height: 1; }
.saldo__pts { color: #bbb; font-size: .85rem; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0 1.5rem; }
.subir__label { display: block; background: var(--rojo); color: #fff; text-align: center; padding: .8rem; border-radius: 8px; font-weight: 700; cursor: pointer; }
.subir__label input { display: none; }
.seccion { font-size: 1rem; margin: 1.3rem 0 .5rem; border-bottom: 1px solid var(--gris-borde); padding-bottom: .3rem; }
.lista { list-style: none; padding: 0; margin: 0; }
.lista__item { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem .2rem; border-bottom: 1px solid #eee; font-size: .9rem; }
.lista__item small { color: var(--gris-suave); }
.estado { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }
.estado--aprobada { background: #e6f7e6; color: #1b6b1b; }
.estado--rechazada { background: #ffe3e3; color: #b00000; }
.estado--en_revision, .estado--pendiente { background: #fff7d6; color: #806600; }
.pos { color: #1b6b1b; font-weight: 700; }
.neg { color: #b00000; font-weight: 700; }
.vacio-msg { color: var(--gris-suave); font-size: .9rem; }

/* ---------- Revisión de boletas (personal) ---------- */
.revision h1 { font-size: 1.4rem; margin-bottom: .2rem; }
.rev-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
.rev-card { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio); padding: 1rem; box-shadow: var(--sombra); }
.rev-img { width: 110px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--gris-borde); background: #f0f0f0; }
.rev-data { font-size: .88rem; display: flex; flex-direction: column; gap: .25rem; }
.rev-motivo { color: #806600; background: #fff7d6; padding: .2rem .5rem; border-radius: 6px; font-size: .8rem; }
.rev-acciones { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; align-items: center; }
.rev-acciones input { padding: .4rem .5rem; border: 1px solid var(--gris-borde); border-radius: 6px; font-family: inherit; }
.revision .btn--ghost { color: var(--gris-texto); border-color: var(--gris-borde); }
.revision .btn--ghost:hover { border-color: var(--rojo); color: var(--rojo); }
@media (min-width: 620px) { .rev-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Usuarios (personal) ---------- */
.usuarios h1 { font-size: 1.4rem; margin: .2rem 0; }
.usuarios--angosto { max-width: 440px; }
.volver { display: inline-block; margin-bottom: .6rem; color: var(--gris-suave); text-decoration: none; font-size: .85rem; }
.volver:hover { color: var(--rojo); }
.tarjeta-form { background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio); padding: 1.1rem 1.1rem .4rem; box-shadow: var(--sombra); margin-bottom: 1.5rem; }
.tarjeta-form .seccion { margin-top: 0; border: 0; }
.campo select { width: 100%; padding: .65rem .7rem; font-size: 1rem; font-family: inherit; border: 1px solid var(--gris-borde); border-radius: 8px; background: #fafafa; }
.campo select:focus { outline: 2px solid var(--rojo); border-color: var(--rojo); background: var(--blanco); }
.usuario-fila { flex-wrap: wrap; }
.usuario-datos { display: flex; flex-direction: column; gap: .2rem; }
.usuario-datos > div { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.usuario-acciones { display: flex; gap: .5rem; flex-wrap: wrap; }
.usuario-fila--inactivo { opacity: .6; }
.chip--yo { background: var(--gris-borde); color: var(--gris-texto); }
.cred { margin-top: .5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.cred code { background: #fff; border: 1px solid #b3e0b3; padding: .2rem .55rem; border-radius: 6px; font-size: 1rem; }
.usuarios code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.usuarios .btn--ghost { color: var(--gris-texto); border-color: var(--gris-borde); padding: .4rem .7rem; }
.usuarios .btn--ghost:hover { border-color: var(--rojo); color: var(--rojo); }
.form-email { display: flex; gap: .4rem; margin-top: .35rem; flex-wrap: wrap; align-items: center; }
.form-email input { padding: .35rem .5rem; border: 1px solid var(--gris-borde); border-radius: 6px; font-family: inherit; font-size: .85rem; min-width: 190px; }
.form-email .btn--ghost { padding: .3rem .6rem; font-size: .8rem; }

/* ---------- Catálogo de premios ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.cat-grid .campo { margin-bottom: .25rem; }
.cat-item { background: #fff; border: 1px solid var(--gris-borde); border-left: 4px solid var(--rojo); border-radius: var(--radio); padding: 1rem; box-shadow: var(--sombra); margin-bottom: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.cat-item--inactivo { opacity: .65; border-left-color: var(--gris-suave); }
.cat-cab { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.chip--pts { background: var(--negro); color: var(--amarillo); }
.cat-stock { font-size: .78rem; color: var(--gris-suave); margin-left: auto; }
@media (min-width: 620px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cliente: catálogo de premios + cupones ---------- */
.subir-solo { margin: 0 0 1rem; }
.premios { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.premio-card { background: #fff; border: 1px solid var(--gris-borde); border-left: 4px solid var(--amarillo); border-radius: var(--radio); padding: .9rem 1rem; box-shadow: var(--sombra); }
.premio-card--lejos { opacity: .7; }
.premio-nom { font-weight: 700; }
.premio-ben { color: var(--rojo-osc); font-size: .9rem; font-weight: 600; }
.premio-desc { color: var(--gris-suave); font-size: .82rem; margin-top: .15rem; }
.premio-pie { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .6rem; }
.premio-pie .btn { padding: .45rem .9rem; font-size: .88rem; }
.cupon-cod { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; }
.estado--canje-emitido { background: #fff7d6; color: #806600; }
.estado--canje-usado { background: #e6f7e6; color: #1b6b1b; }
.estado--canje-anulado, .estado--canje-vencido { background: #ffe3e3; color: #b00000; }
.chip--on { background: #1b6b1b; color: #fff; }
@media (min-width: 620px) { .premios { grid-template-columns: 1fr 1fr; } }

/* ---------- Operaciones (caja) ---------- */
.ficha-datos { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; margin: .35rem 0 .2rem; }
.registrar-compra { margin-top: .7rem; border-top: 1px dashed var(--gris-borde); padding-top: .8rem; }
.registrar-compra .campo { max-width: 240px; }

/* ---------- Estadística / CRM ---------- */
.filtros-fecha { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio); padding: .9rem 1rem; box-shadow: var(--sombra); margin-bottom: 1.2rem; }
.filtros-fecha .campo { margin: 0; }
.filtros-fecha .btn { padding: .55rem 1rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.stat-card { background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio); padding: .9rem 1rem; box-shadow: var(--sombra); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; }
.stat-ico { grid-row: 1 / 3; font-size: 1.5rem; }
.stat-num { font-size: 1.35rem; font-weight: 800; color: var(--negro); }
.stat-label { font-size: .78rem; color: var(--gris-suave); }
.grafico { background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio); padding: 1rem; box-shadow: var(--sombra); overflow-x: auto; }
.grafico svg { width: 100%; min-width: 520px; height: auto; }
@media (min-width: 620px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.crm-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.crm-nav__link { padding: .4rem .85rem; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--gris-texto); background: #fff; border: 1px solid var(--gris-borde); }
.crm-nav__link:hover { border-color: var(--rojo); color: var(--rojo); }
.crm-nav__link--activo { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.tabla-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio); box-shadow: var(--sombra); }
.tabla { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
.tabla th, .tabla td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid #eee; white-space: nowrap; }
.tabla thead th { background: var(--negro); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.tabla th.num, .tabla td.num { text-align: right; }
.tabla tbody tr:hover { background: #faf7f7; }
.paginacion { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0; font-size: .88rem; color: var(--gris-suave); }
.politica { max-width: 640px; margin: 0 auto; line-height: 1.5; }
.politica h1 { font-size: 1.4rem; }
.politica h2 { font-size: 1.05rem; margin: 1.2rem 0 .3rem; color: var(--rojo-osc); }
.politica__intro { color: var(--gris-suave); }
.politica ul { padding-left: 1.2rem; margin: .3rem 0; }
.politica li { margin: .2rem 0; }
.politica__pie { margin-top: 1.5rem; }

/* ---------- Fase 6.6: contraste y logo (cliente) ---------- */
/* Botones fantasma sobre fondo claro (Mi cuenta, panel del cliente): el color
   blanco por defecto es para la cabecera negra y quedaba invisible aquí. */
.panel-cliente .btn--ghost, .cuenta .btn--ghost {
  color: var(--gris-texto); border-color: var(--gris-borde); background: var(--blanco);
}
.panel-cliente .btn--ghost:hover, .cuenta .btn--ghost:hover { border-color: var(--rojo); color: var(--rojo); }
/* Enlaces de texto del área del cliente: rojo de marca, sin morado de visitado. */
.contenido--cliente a:not([class]) { color: var(--rojo-osc); }
.contenido--cliente a:not([class]):visited { color: var(--rojo-osc); }
/* Logo real en cabecera y páginas de acceso. */
.marca__logo { width: 38px; height: 38px; border-radius: 8px; display: block; }
.marca__logo--xl { width: 64px; height: 64px; border-radius: 12px; }
.cabecera__acciones { display: flex; align-items: center; gap: .5rem; }
/* Separador entre el login con contraseña y el enlace por correo. */
.login__separador {
  display: flex; align-items: center; gap: .6rem; margin: 1.1rem 0 .8rem;
  color: var(--gris-suave); font-size: .82rem;
}
.login__separador::before, .login__separador::after { content: ""; flex: 1; border-top: 1px solid var(--gris-borde); }

/* Enlaces de texto de TODO el contenido (personal y cliente): rojo de marca,
   sin el azul/morado por defecto del navegador. */
.contenido a:not([class]) { color: var(--rojo-osc); }
.contenido a:not([class]):visited { color: var(--rojo-osc); }

/* Foto del premio en el catálogo del cliente (Fase 6.7c). */
.premio-img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; margin-bottom: .5rem; display: block; }

/* Variante secundaria del botón de subir (galería): blanco con borde rojo. */
.subir__label--alt { background: var(--blanco); color: var(--rojo-osc); border: 2px solid var(--rojo); }

/* Selector de boleta NATIVO visible (muestra el nombre del archivo elegido).
   REGLA: el input NUNCA se oculta (display:none rompe la subida en Android);
   solo se estiliza con CSS. */
.boleta-drop { background: #fff; border: 2px dashed var(--rojo); border-radius: 12px; padding: 1rem .8rem; text-align: center; box-shadow: var(--sombra); }
.boleta-drop__icono { display: block; font-size: 2rem; line-height: 1; margin-bottom: .5rem; }
.boleta-drop__ayuda { display: block; font-size: .78rem; color: var(--gris-suave); margin-top: .55rem; }
.input-boleta { display: block; width: 100%; font-size: .9rem; font-family: inherit; color: var(--gris-texto); box-sizing: border-box; cursor: pointer; }
.input-boleta::file-selector-button,
.input-boleta::-webkit-file-upload-button {
  background: var(--rojo); color: #fff; border: 0; padding: .6rem 1rem; border-radius: 8px;
  font-weight: 700; font-size: .9rem; margin-right: .7rem; font-family: inherit; cursor: pointer;
}
.input-boleta:hover::file-selector-button,
.input-boleta:hover::-webkit-file-upload-button { background: var(--rojo-osc); }
/* Botón deshabilitado: opaco y no clickeable (ej. "Enviar boleta" sin foto). */
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
/* Separador entre elegir de galería y tomar foto con la cámara. */
.boleta-o { text-align: center; color: var(--gris-suave); font-size: .82rem; font-weight: 600; margin: .7rem 0 .5rem; }

/* ---------- Selectores uniformes (opciones y subir imagen) ---------- */
/* Botón interno rojo para CUALQUIER input de archivo con la clase .file-input.
   REGLA: nunca ocultar el input (display:none rompe la subida bajo CSP/Android). */
.file-input { font-family: inherit; font-size: .88rem; color: var(--gris-texto); cursor: pointer; max-width: 100%; }
.file-input::file-selector-button,
.file-input::-webkit-file-upload-button {
  background: var(--rojo); color: #fff; border: 0; padding: .5rem .9rem; border-radius: 8px;
  font-weight: 700; font-family: inherit; font-size: .86rem; margin-right: .55rem; cursor: pointer;
}
.file-input:hover::file-selector-button,
.file-input:hover::-webkit-file-upload-button { background: var(--rojo-osc); }
/* Todos los <select> del sistema con un look consistente (incluye los sueltos
   en tablas, no solo los de .campo). Flecha propia para que se vean modernos. */
.contenido select {
  padding: .5rem 1.9rem .5rem .7rem; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--gris-borde); border-radius: 8px; background-color: #fff;
  color: var(--gris-texto); cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23cc0000' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .65rem center; background-size: .7rem;
}
.contenido select:focus { outline: 2px solid var(--rojo); border-color: var(--rojo); }

/* Cupón activo destacado en el panel del cliente (código grande para la caja). */
.cupon-activo { background: var(--negro); color: #fff; border-radius: var(--radio); padding: .9rem 1rem; margin-bottom: .6rem; text-align: center; border-bottom: 4px solid var(--rojo); }
.cupon-activo__desc { font-size: .9rem; color: var(--amarillo); font-weight: 700; }
.cupon-activo__cod { font-size: 1.7rem; font-weight: 800; letter-spacing: 2px; margin: .2rem 0; }
.cupon-activo__venc { font-size: .75rem; color: #bbb; }
.canje-monto { background: #fff; border: 1px solid var(--gris-borde); border-left: 4px solid var(--rojo); border-radius: var(--radio); padding: 1rem; box-shadow: var(--sombra); }

/* Promociones activas (ofertas con fecha) — tarjeta vistosa en el panel del cliente. */
.seccion--promos { font-size: 1.15rem; font-weight: 800; color: var(--rojo); border-bottom: 0; margin-bottom: .7rem; }
.promo-card {
  background: var(--blanco);
  border: 2px solid var(--rojo);
  border-radius: var(--radio);
  overflow: hidden;
  margin-bottom: .9rem;
  box-shadow: 0 4px 14px rgba(204, 0, 0, .18);
}
.promo-card__img { width: 100%; height: 160px; object-fit: cover; display: block; }
.promo-card__strip {
  height: 84px;
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-osc) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.promo-card__body { padding: .85rem 1rem 1rem; }
.promo-card__badge {
  display: inline-block; background: var(--rojo); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: .18rem .6rem; border-radius: 999px; margin-bottom: .4rem;
}
.promo-card__title { font-size: 1.2rem; font-weight: 800; color: var(--negro); margin: 0 0 .25rem; line-height: 1.2; }
.promo-card__desc { font-size: .92rem; color: var(--gris-texto); margin: 0 0 .5rem; }
.promo-card__venc {
  display: inline-block; font-size: .78rem; font-weight: 700; color: var(--gris-texto);
  background: var(--amarillo); padding: .2rem .55rem; border-radius: 6px;
}
.promo-card__btn { width: 100%; margin-top: .2rem; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.dobles-aviso {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-osc) 100%); color: #fff;
  border-radius: var(--radio); padding: .8rem 1rem; margin-bottom: .8rem; font-size: .95rem;
  text-align: center; border-bottom: 4px solid var(--amarillo); box-shadow: 0 4px 14px rgba(204,0,0,.22);
}
.dobles-aviso strong { color: var(--amarillo); }
.promo-card__hecho { margin: .6rem 0 0; font-size: .85rem; font-weight: 700; color: #1b6b1b; }

/* ============================================================
   DASHBOARD DEL PERSONAL — barra lateral agrupada + contenido centrado
   ============================================================ */
body.tiene-dash { background: var(--gris-fondo); }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 1000;
  display: flex; align-items: center; gap: .6rem; padding: 0 .8rem;
  background: var(--negro); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.topbar .marca { flex: 1; }
.topbar__menu {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12);
  color: #fff; font-size: 20px; line-height: 40px; cursor: pointer; flex: 0 0 auto; padding: 0;
}
.topbar__menu:hover { background: rgba(255,255,255,.22); }
.topbar .sesion__usuario { color: #fff; }
.topbar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.topbar .btn--ghost:hover { border-color: var(--amarillo); color: var(--amarillo); }

.dash { display: flex; align-items: flex-start; margin-top: 56px; }

/* Barra lateral */
.dash__side {
  position: sticky; top: 56px; align-self: flex-start;
  width: 250px; flex: 0 0 250px; height: calc(100vh - 56px); overflow-y: auto;
  background: #17130f; color: #e9e2d9; padding: 12px 10px 30px;
  transition: width .2s ease;
}
.dash-nav__grupo {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--amarillo); padding: 14px 12px 6px; white-space: nowrap; overflow: hidden;
}
.dash-nav__home, .dash-nav__link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 2px 0;
  border-radius: 10px; color: #e9e2d9; text-decoration: none; font-size: .9rem; font-weight: 600;
  white-space: nowrap; overflow: hidden;
}
.dash-nav__home:hover, .dash-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-nav__link.is-active, .dash-nav__home.is-active {
  background: var(--rojo); color: #fff; box-shadow: 0 3px 10px rgba(224,0,0,.4);
}
.dash-nav__ic { flex: 0 0 auto; width: 22px; text-align: center; font-size: 1.05rem; }
.dash-nav__home { margin-bottom: 4px; }

/* Contenido centrado a la derecha de la barra */
.dash__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 56px); }
.dash__main .contenido { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 1.4rem 1.2rem 2.5rem; }
.dash__overlay { display: none; }

/* Colapsada (escritorio): solo íconos */
.dash.colapsado .dash__side { width: 64px; flex-basis: 64px; }
.dash.colapsado .dash-nav__tx, .dash.colapsado .dash-nav__grupo { display: none; }
.dash.colapsado .dash-nav__ic { width: 100%; }
.dash.colapsado .dash-nav__home, .dash.colapsado .dash-nav__link { justify-content: center; padding: 11px 0; }

/* Encabezados de grupo en la bienvenida */
.panel__grupo {
  font-size: .95rem; font-weight: 800; color: var(--negro); letter-spacing: .01em;
  margin: 1.5rem 0 .6rem; padding-bottom: .3rem; border-bottom: 2px solid var(--rojo); display: inline-block;
}
.panel__grupo span { margin-right: .3rem; }

/* Móvil: barra como cajón deslizante */
@media (max-width: 900px) {
  .dash__side {
    position: fixed; top: 56px; left: 0; height: calc(100vh - 56px); z-index: 999;
    transform: translateX(-100%); transition: transform .25s ease; flex-basis: 250px; width: 250px;
    box-shadow: 4px 0 24px rgba(0,0,0,.4);
  }
  .dash.abierto .dash__side { transform: translateX(0); }
  .dash.abierto .dash__overlay {
    display: block; position: fixed; inset: 56px 0 0 0; z-index: 998; background: rgba(0,0,0,.5);
  }
  .dash__main .contenido { padding: 1.1rem .9rem 2.2rem; }
  .topbar .sesion__usuario { display: none; }
}

/* Inicio del panel: tarjetas de pendientes (no duplica el menú lateral) */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.stat-tile {
  background: #fff; border: 1px solid var(--gris-borde); border-left: 4px solid var(--gris-borde);
  border-radius: var(--radio); padding: 1.1rem 1rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .1rem; box-shadow: var(--sombra); transition: transform .12s, border-color .12s;
}
.stat-tile--activo { border-left-color: var(--rojo); }
.stat-tile:hover { transform: translateY(-2px); border-left-color: var(--amarillo); }
.stat-tile__ic { font-size: 1.4rem; }
.stat-tile__n { font-size: 2.1rem; font-weight: 800; line-height: 1.05; color: var(--gris-suave); }
.stat-tile--activo .stat-tile__n { color: var(--rojo); }
.stat-tile__label { font-size: .82rem; color: var(--gris-suave); font-weight: 600; }
.todo-al-dia { background: #e6f7e6; color: #1b6b1b; border: 1px solid #b3e0b3; border-radius: var(--radio); padding: 1.3rem; font-weight: 700; text-align: center; }
