html {
  font-family: 'Lato', sans-serif;
}

.badge-purple {
  background-color: #6f42c1;
  color: #fff;
}

/* Banner de perfil incompleto — espeja el margin de .content-wrapper */
#banner-perfil {
  margin-left: 250px;
  transition: margin-left .3s ease-in-out;
}
.sidebar-collapse #banner-perfil {
  margin-left: 0;
}
@media (max-width: 991.98px) {
  #banner-perfil {
    margin-left: 0 !important;
  }
}

.tooltip-inner {
  background-color: #f00 !important;
}

.tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow::before,
.tooltip.bs-tooltip-bottom .arrow::before {
  margin-left: -3px;
  content: "";
  border-width: 0 5px 5px;
  border-bottom-color: #f00;
}

.fondo-login {
  background-image: url(../img/fondo-referidosya.jpg);
  background-size: cover;
  background-position: center;
  text-align: center !important;
}

.small-box {
  height: 200px;
}
.small-box>.small-box-footer {
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Small-box del widget meta/diferencia en dashboard — scoped */
.row-met .small-box,
.row-dif .small-box {
  border-radius: 10px;
  height: auto;
  min-height: 180px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.row-met .small-box .inner,
.row-dif .small-box .inner {
  padding: 25px;
}
.row-met .small-box .inner h3,
.row-dif .small-box .inner h3 {
  font-size: 52px;
  font-weight: 800;
  margin: 0 0 10px 0;
  white-space: nowrap;
  padding: 0;
  color: white;
}
.row-met .small-box .inner p,
.row-dif .small-box .inner p {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.row-met .small-box .icon,
.row-dif .small-box .icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 90px;
  color: rgba(0,0,0,0.15);
}
.row-met .small-box:hover,
.row-dif .small-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.prep-minw {
  min-width: 60px !important;
  justify-content: center;
}

.btn-comisiones {
  background-color: #ff141f !important;
  border: #000;
}

/* ── Tareas Diarias — Calendario ──────────────────────────────────────── */
.tar-cal-tabla {
  table-layout: fixed;
  width: 100%;
}
.tar-cal-tabla thead th {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 4px 2px;
  letter-spacing: 0.5px;
}
.tar-cal-tabla tbody td {
  padding: 3px;
  text-align: center;
}
.tar-dia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin: auto;
}
.tar-dia:hover:not(.tar-fut) {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.tar-ok {
  background-color: #28a745;
  color: #fff;
}
.tar-pen {
  background-color: #dc3545;
  color: #fff;
}
.tar-fut {
  background-color: #e9ecef;
  color: #adb5bd;
  cursor: default;
}
.tar-hoy {
  background-color: #263248;
  color: #fff;
  border-color: #263248 !important;
  box-shadow: 0 0 0 2px rgba(38,50,72,0.25);
}
.tar-sel {
  border-color: #17a2b8 !important;
  box-shadow: 0 0 0 3px rgba(23,162,184,0.35) !important;
  transform: scale(1.12);
}
.tar-leyenda .badge {
  font-size: 11px;
  padding: 4px 8px;
}
.tar-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6c757d;
  margin-bottom: 4px;
}

/* ── Fin Tareas Diarias ────────────────────────────────────────────────── */

.borde-success {
  border-left: 10px solid var(--success) !important;
}

.borde-danger {
  border-left: 10px solid var(--danger) !important;
}

.borde-warning {
  border-left: 10px solid var(--warning) !important;
}

.borde-primary {
  border-left: 10px solid var(--primary) !important;
}

.borde-info {
  border-left: 10px solid var(--info) !important;
}

.borde-secondary {
  border-left: 10px solid var(--secondary) !important;
}

.borde-purple {
  border-left: 10px solid var(--indigo) !important;
}

.borde-orange {
  border-left: 10px solid var(--orange) !important;
}

.borde-pink {
  border-left: 10px solid var(--pink) !important;
}

.borde-indigo {
  border-left: 10px solid var(--indigo) !important;
}

.text-black {
  color: black !important;
}

.text-white {
  color: #fff !important;
}

.small-box,
.small-box a {
  color: white !important;
}

.dropzone {
  border: 2px dashed #17a2b8 !important;
}

div[class="table-responsive"] {
  max-height: 70vh;
  width: 100%;
}

.table-head-fixed th {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

code {
  font-size: 75%;
  color: var(--teal);
  word-wrap: break-word;
}

.btn-group.special {
  display: flex;
}

.special .btn {
  flex: 1
}

.btn-expand:hover {
  transform: scale(1.1);
}

.bg-movistar-1 {
  background-color: #263248;
  color: white;
}

.bg-movistar-2 {
  background-color: #00517A;
  color: white;
}

.bg-movistar-3 {
  background-color: #ff6600;
  color: white;
}

.bg-movistar-4 {
  background-color: orange;
  color: white;
}

.bg-movistar-5 {
  background-color: #DDE8EA;
  color: white;
}

.rating-color {
  color: #fbc634 !important;
}

.badge-orange {
  background-color: #ff6600;
}


/* Ranking de Vendedores — shared */
#table-ranking,
#table-ranking-monto {
   margin-bottom: 0;
   table-layout: fixed;
   width: 100%;
}

#table-ranking thead th,
#table-ranking-monto thead th {
   color: #fff;
   font-weight: 600;
   border: none;
   padding: 12px 8px;
}

#table-ranking thead th {
   background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

#table-ranking-monto thead th {
   background: linear-gradient(135deg, #28a745 0%, #1a6e2e 100%);
}

#table-ranking th:first-child,
#table-ranking-monto th:first-child {
   width: 72px;
}


#table-ranking th:last-child,
#table-ranking-monto th:last-child {
   padding-right: 16px;
}

#table-ranking th:last-child {
   width: 62px;
}

#table-ranking-monto th:last-child {
   width: 108px;
}

#table-ranking td:last-child,
#table-ranking-monto td:last-child {
   text-align: right;
   padding-right: 16px;
}

#table-ranking tbody tr,
#table-ranking-monto tbody tr {
   transition: all 0.3s ease;
}

#table-ranking tbody td,
#table-ranking-monto tbody td {
   padding: 0.58rem 0.5rem;
   vertical-align: middle;
}

#table-ranking tbody tr:hover {
   background-color: #fff3cd;
   transform: translateX(5px);
}

#table-ranking-monto tbody tr:hover {
   background-color: #d4edda;
   transform: translateX(5px);
}

.ranking-row[data-posicion="0"] {
   background: linear-gradient(90deg, rgba(255,215,0,0.1) 0%, rgba(255,255,255,0) 100%);
}

.ranking-row[data-posicion="1"] {
   background: linear-gradient(90deg, rgba(192,192,192,0.1) 0%, rgba(255,255,255,0) 100%);
}

.ranking-row[data-posicion="2"] {
   background: linear-gradient(90deg, rgba(205,127,50,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* Periodo buttons — shared structure */
.btn-ranking-periodo,
.btn-ranking-monto-periodo {
   border-radius: 20px;
   padding: 5px 15px;
   font-weight: 600;
   transition: all 0.3s ease;
}

.btn-ranking-periodo.active {
   background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
   color: #fff;
   border-color: #ffc107;
}

.btn-ranking-periodo:hover:not(.active) {
   background-color: #fff3cd;
   border-color: #ffc107;
}

.btn-ranking-monto-periodo.active {
   background: linear-gradient(135deg, #28a745 0%, #1a6e2e 100%);
   color: #fff;
   border-color: #28a745;
}

.btn-ranking-monto-periodo:hover:not(.active) {
   background-color: #d4edda;
   border-color: #28a745;
}

/* Ranking card borders */
.card-ranking-polizas {
   border-left: 5px solid #ffc107;
}

.card-ranking-monto {
   border-left: 5px solid #28a745;
}

/* Ranking table cell helpers */
.ranking-badge-gold {
   background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
   font-size: 1em;
   padding: 6px 10px;
}

.ranking-badge-silver {
   background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
   font-size: 0.95em;
   padding: 5px 9px;
}

.ranking-badge-bronze {
   background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
   font-size: 0.95em;
   padding: 5px 9px;
}

.ranking-avatar {
   width: 32px;
   height: 32px;
   object-fit: cover;
   flex-shrink: 0;
   margin-right: 8px;
}

.ranking-avatar-placeholder {
   width: 32px;
   height: 32px;
   flex-shrink: 0;
   margin-right: 8px;
}

.ranking-seller-cell {
   min-width: 0;
}

.ranking-name {
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.ranking-badge-tu {
   font-size: 0.75em;
   flex-shrink: 0;
}

.ranking-badge-polizas {
   font-size: 0.95em;
   padding: 5px 10px;
}

.ranking-badge-monto {
   font-size: 0.76em;
   padding: 4px 7px;
   white-space: nowrap;
}

.btn-outline-warning {
    color: #453608;
    border-color: #ffc107;
}
/* Tarjetas de inicio y Mi Equipo — footer alineado al fondo en todas las tarjetas */
.col-card-inicio .small-box,
#box-miembros,
#box-polizas {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.col-card-inicio .small-box .inner,
#box-miembros .inner,
#box-polizas .inner {
  flex: 1;
}

/* Rankings y Estadísticas — breakpoint custom 1650px */
.col-ranking-xl {
  flex: 0 0 50%;
  max-width: 50%;
}
.col-stats-xl {
  flex: 0 0 100%;
  max-width: 100%;
}
@media (max-width: 767px) {
  .col-ranking-xl {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
@media (min-width: 1650px) {
  .col-ranking-xl {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-stats-xl {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Badge mes+año en esquina sup-derecha de cada card de meta del dashboard.
   Requiere que el card padre tenga position-relative (clase Bootstrap). */
.meta-dash-mes-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: capitalize;
}
.meta-dash-toggle {
  position: absolute;
  top: 26px;
  right: 8px;
}

/* Tarjetas de inicio — apilado progresivo desde 1650px */
.col-card-inicio {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 8px;
  padding-left: 8px;
  margin-bottom: 12px;
}
@media (min-width: 576px) {
  .col-card-inicio { flex: 0 0 50%; max-width: 50%; }         /* 2 por fila */
}
@media (min-width: 992px) {
  .col-card-inicio { flex: 0 0 33.333%; max-width: 33.333%; } /* 3 por fila */
}
@media (min-width: 1200px) {
  .col-card-inicio { flex: 0 0 25%; max-width: 25%; }         /* 4 por fila */
}
@media (min-width: 1650px) {
  .col-card-inicio { flex: 0 0 20%; max-width: 20%; }         /* 5 por fila */
}

/* ===== Barra de Nivel del vendedor (inicio) =====
   Logros = 1 card; Barra = 3 cards (alineadas a la derecha).
   En móvil se apila: Logros arriba, Barra abajo. */
.nivel-row {
  display: flex; flex-wrap: wrap; align-items: stretch;
  margin-right: -7.5px; margin-left: -7.5px;   /* mismos márgenes que .row para alinear con las cards de abajo */
}
.nivel-logro-col,
.nivel-barra-col { padding: 0 8px; margin-bottom: 12px; }

/* Móvil: apilado (Logros encima, Barra debajo) */
.nivel-logro-col,
.nivel-barra-col { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .nivel-logro-col { flex: 0 0 34%; max-width: 34%; margin-left: auto; }
  .nivel-barra-col { flex: 0 0 66%; max-width: 66%; }
}
@media (min-width: 1200px) {
  .nivel-logro-col { flex: 0 0 25%; max-width: 25%; margin-left: auto; } /* 1 de 4, deja 1 card vacía */
  .nivel-barra-col { flex: 0 0 50%; max-width: 50%; }         /* 2 de 4 */
}
@media (min-width: 1650px) {
  .nivel-logro-col { flex: 0 0 20%; max-width: 20%; margin-left: auto; } /* sobre la 3ª card, deja 2 vacías a la izq */
  .nivel-barra-col { flex: 0 0 40%; max-width: 40%; }         /* 2 de 5 (members + podium) */
}

/* Tarjeta de Logros — mismo aspecto y ALTURA que las small-box del inicio.
   La altura se iguala por JS (ajustarAlturaNivel) a la card real; estos
   valores son sólo el fallback antes de que corra el script. */
.nivel-logro-box {
  position: relative; height: 100%; min-height: 96px;
  border-radius: 8px; overflow: hidden; margin-bottom: 0;
  background: #6f42c1;
}
.nivel-logro-box .inner { padding: 14px 16px; }
.nivel-logro-box .inner h3 {
  color: #fff; font-weight: 700;
  font-size: 2.2rem; margin: 0; line-height: 1.1;
}
.nivel-logro-icon {
  position: absolute; top: 20px; right: 15px;     /* misma posición que el ícono de las cards del inicio */
  width: 80px; height: 80px; object-fit: contain; display: none; z-index: 2;
  filter: brightness(0.45);                         /* oscurecer para que destaque */
  transition: -webkit-transform 0.3s linear; transition: transform 0.3s linear;
}
/* Mismo efecto de hover que el ícono de las demás cards del inicio */
.nivel-logro-box:hover .nivel-logro-icon { -webkit-transform: scale(1.1); transform: scale(1.1); }

/* Barra de Nivel — layout EN FLUJO [imagen] [texto] [foto].
   Al no usar posición absoluta, la foto nunca puede quedar sobre el texto,
   en ninguna fase del responsive. */
.nivel-barra-box {
  position: relative; height: 100%; min-height: 96px;
  border-radius: 8px; overflow: hidden;
  display: flex; align-items: center;
  padding: 0 22px; column-gap: 18px;
  background: #cccccc;
}
.nivel-barra-img {
  flex: 0 0 auto;
  width: 128px; height: 128px; object-fit: contain; display: none;
}
.nivel-barra-txt {
  flex: 1 1 auto; min-width: 0;          /* ocupa el centro y hace wrap sin desbordar */
  color: #fff; font-weight: 700; text-transform: uppercase;
  font-size: 2.05rem; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,.35);
  white-space: normal; line-height: 1.08; overflow-wrap: break-word;
}
/* Foto de perfil circular (extremo derecho de la barra) */
.nivel-foto {
  flex: 0 0 auto;
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  border: none; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
}
.nivel-foto img { width: 100%; height: 100%; object-fit: cover; }
.nivel-foto-fb { color: #adb5bd; font-size: 3rem; }

/* Móvil: mismos elementos en flujo, sólo más compactos. */
@media (max-width: 575px) {
  .nivel-barra-box { padding: 10px 14px; column-gap: 12px; }
  .nivel-barra-img { width: 64px; height: 64px; }
  .nivel-foto { width: 48px; height: 48px; }
  .nivel-barra-txt { font-size: 1.15rem; line-height: 1.05; }
}

/* Columna "Nivel" en tablas Rendimiento por Agente (podio + dashboard):
   mini-barra de nivel = logo + nombre + color de fondo, sin foto de usuario. */
.agentes-nivel-cell { white-space: nowrap; }

/* Anchos por porcentaje (Agente 18% / Nivel 18% / # 4% / resto repartido):
   se fijan en los <th> de _theadPolizaHtml/_theadKpiAllHtml y requieren layout fijo. */
#table-agentes { table-layout: fixed; width: 100%; min-width: 1150px; }

/* Listado de pólizas: ancho por contenido (no columnas iguales).
   table-layout:auto deja que cada columna tome el espacio que necesita. */
#table-inf { table-layout: auto; width: 100%; min-width: 1150px; }
#table-inf thead th, #table-inf tbody td { white-space: nowrap; }
/* Celdas con texto largo sí pueden envolver/limitarse. */
#table-inf td.td-agente, #table-inf td[data-bita-es] { white-space: normal; }
#table-inf td[data-bita-es] { max-width: 220px; }
#table-inf td.text-uppercase { white-space: normal; }

/* Bloque "Compartida con" bajo el badge: nombre + % del reparto. */
.pol-comp { display: flex; flex-direction: column; align-items: flex-start; row-gap: 6px; margin-top: 6px; }
.pol-comp .badge { font-size: .72rem; padding: .35em .6em; }
.pol-comp-nom { font-size: .74rem; color: #2c3e50; font-weight: 600; line-height: 1.2; }
.pol-comp-pct { font-size: .74rem; color: #17a2b8; font-weight: 700; }

/* Controles de comparación del "Gráfico Pólizas por Día" (header oscuro). */
.poldia-tools { gap: 4px; }
.poldia-tools .poldia-comp-sel { width: auto; min-width: 130px; }
.poldia-tools .poldia-comp-mes { width: auto; min-width: 140px; }
@media (max-width: 575.98px) {
  .poldia-tools { width: 100%; margin-top: .5rem; }
  .poldia-tools .poldia-comp-sel,
  .poldia-tools .poldia-comp-mes { flex: 1 1 auto; min-width: 0; }
}

/* Nombre del agente: no desbordar su columna (25%). */
.agentes-nom { overflow: hidden; }
.agentes-nom .d-flex > span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.agentes-nivel {
  display: inline-flex; align-items: center; column-gap: 8px;
  padding: 6px 12px; border-radius: 7px; min-height: 38px;
  width: 100%; max-width: 100%; background: #cccccc;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.agentes-nivel-img {
  flex: 0 0 auto; width: 28px; height: 28px; object-fit: contain;
}
.agentes-nivel-txt {
  flex: 1 1 auto; min-width: 0;
  font-weight: 700; text-transform: uppercase; font-size: .82rem;
  letter-spacing: .4px; line-height: 1.1; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  white-space: normal; overflow-wrap: break-word;
}

/* ===== Póliza "Compartida con" — buscador con lazy loading ===== */
.pol-comp-dd { position: relative; }
/* Se despliega hacia ARRIBA: el campo está al final del formulario y abrir hacia
   abajo desbordaba la tarjeta (fallo visual). */
.pol-comp-lista {
  position: absolute; bottom: 100%; top: auto; left: 0; right: 0; z-index: 1050;
  max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid #ced4da; border-bottom: none;
  box-shadow: 0 -4px 10px rgba(0,0,0,.12);
}
.pol-comp-item {
  display: flex; align-items: center; column-gap: 10px;
  padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0;
}
.pol-comp-item:hover { background: #f4f8ff; }
.pol-comp-item-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pol-comp-item-txt strong { font-size: .9rem; }
.pol-comp-item-txt small { color: #6c757d; font-size: .75rem; }
/* Distintivo de administrador en el buscador "Compartida con". */
.pol-comp-badge {
  display: inline-block; vertical-align: middle;
  margin-left: 6px; padding: 1px 7px;
  border-radius: 10px; border: 1px solid rgba(83,74,183,.35);
  background: rgba(83,74,183,.12); color: #534AB7;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.pol-comp-avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; background: #e9ecef;
}
.pol-comp-avatar-fb {
  display: inline-flex; align-items: center; justify-content: center;
  color: #adb5bd;
}
.pol-comp-loading, .pol-comp-empty {
  padding: 14px; text-align: center; color: #6c757d; font-size: .85rem;
}
.pol-comp-chip {
  display: flex; align-items: center; column-gap: 10px;
  padding: 8px 12px; margin-bottom: 8px;
  background: #eef5ee; border: 1px solid #cfe3cf; border-radius: 4px;
}
/* Nombre arriba, RUN · rol abajo — mismo ritmo que los items de la lista. */
.pol-comp-chip-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pol-comp-chip-txt strong { font-size: .9rem; }
.pol-comp-chip-txt small { color: #6c757d; font-size: .75rem; }

.col-card-inicio a.small-box:hover,
.col-card-inicio .small-box:hover {
  color: white;
}

/* Evitar oscurecimiento en hover — AdminLTE oscurece a.bg-*:hover */
.col-card-inicio a.bg-primary:hover,   .col-card-inicio a.bg-primary:focus   { background-color: #007bff !important; }
.col-card-inicio a.bg-secondary:hover, .col-card-inicio a.bg-secondary:focus { background-color: #6c757d !important; }
.col-card-inicio a.bg-success:hover,   .col-card-inicio a.bg-success:focus   { background-color: #28a745 !important; }
.col-card-inicio a.bg-info:hover,      .col-card-inicio a.bg-info:focus      { background-color: #8f8f8f !important; }
.col-card-inicio a.bg-warning:hover,   .col-card-inicio a.bg-warning:focus   { background-color: #ffc107 !important; }
.col-card-inicio a.bg-danger:hover,    .col-card-inicio a.bg-danger:focus    { background-color: #dc3545 !important; }
.col-card-inicio a.bg-light:hover,     .col-card-inicio a.bg-light:focus     { background-color: #f8f9fa !important; }
.col-card-inicio a.bg-dark:hover,      .col-card-inicio a.bg-dark:focus      { background-color: #343a40 !important; }


#mi-posicion-rapida { margin-left: auto; }

@media (max-width: 575px) {
  .card-das .card-header { padding-bottom: 0.4rem; row-gap: 20px !important; }
  .card-das .card-body   { padding-top: 0 !important; }
  #mi-posicion-rapida { margin-left: 0; width: 100%; justify-content: center; }
}

/* ─── Podio ──────────────────────────────────────────────────────────────── */
.podio-hero{
  background: linear-gradient(135deg,#0f2027 0%,#203a43 45%,#2c5364 100%);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.podio-hero::before{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events:none;
}
.podio-hero-inner{
  position:relative;
  padding: 20px 24px 32px;
  min-height: 360px;
}
.podio-selectores{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
}
.podio-vista-selector,
.podio-mes-selector{
  width: 280px;
  flex: 0 0 280px;
}
.podio-tipo-selector,
.podio-estado-selector,
.podio-evento-selector,
.podio-modo-selector{
  width: 280px;
  flex: 0 0 280px;
}
.podio-equipo-btn{
  width: 280px;
  flex: 0 0 280px;
}
.btn-mi-equipo{
  width: 100%;
  height: 38px;
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  padding: 0 20px;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn-mi-equipo:hover{
  background-color: #218838;
  border-color: #1e7e34;
  color: #fff;
}
.btn-mi-equipo.activo{
  background-color: #155724;
  border-color: #155724;
  color: #fff;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.25);
}
.podio-vista-selector .input-group-text,
.podio-mes-selector .input-group-text,
.podio-tipo-selector .input-group-text,
.podio-estado-selector .input-group-text,
.podio-evento-selector .input-group-text,
.podio-modo-selector .input-group-text{ border:0; font-weight:600; min-width:105px; }
.row-filtro-dashboard .input-group-text{ min-width:105px; }
.podio-vista-selector select,
.podio-mes-selector select,
.podio-tipo-selector select,
.podio-estado-selector select,
.podio-evento-selector select,
.podio-modo-selector select{ border:0; font-weight:600; }

@media (max-width: 575.98px){
  .podio-vista-selector,
  .podio-mes-selector,
  .podio-tipo-selector,
  .podio-estado-selector,
  .podio-evento-selector,
  .podio-modo-selector,
  .podio-equipo-btn{
    width: 100%;
    flex: 1 1 100%;
  }
}

.podio-stage{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
  padding: 0 10px;
}
.podio-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  width: 180px;
  opacity: 0;
  animation: podioRise 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.podio-step-2{ animation-delay: 0.10s; }
.podio-step-1{ animation-delay: 0.30s; }
.podio-step-3{ animation-delay: 0.50s; }

@keyframes podioRise{
  from{ opacity:0; transform: translateY(40px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes podioFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}

.podio-avatar{
  width: 110px; height: 110px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg,#c0c0c0,#e8e8e8);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  margin-bottom: 14px;
  position: relative;
  animation: podioFloat 4.5s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
  cursor: pointer;
}
.podio-step-1 .podio-avatar{
  width: 132px; height: 132px;
  background: linear-gradient(135deg,#FFD700,#FFA500);
  box-shadow: 0 12px 30px rgba(255,180,0,0.45);
  animation-duration: 4s;
}
.podio-step-3 .podio-avatar{
  background: linear-gradient(135deg,#CD7F32,#E8A87C);
  animation-duration: 5s;
}
.podio-step-1 .podio-avatar:hover{
  animation-play-state: paused;
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(255,215,0,0.55), 0 16px 36px rgba(255,180,0,0.55);
}
.podio-step-2 .podio-avatar:hover{
  animation-play-state: paused;
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(192,192,192,0.6), 0 14px 30px rgba(150,150,150,0.45);
}
.podio-step-3 .podio-avatar:hover{
  animation-play-state: paused;
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(205,127,50,0.6), 0 14px 30px rgba(180,100,30,0.45);
}
.podio-avatar-img,
.podio-avatar-fallback{
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display:flex; align-items:center; justify-content:center;
  background:#fff;
  color:#adb5bd;
  font-size: 2.3em;
}
.podio-nombre{
  color:#fff;
  font-weight: 700;
  font-size: 18px;
  text-align:center;
  margin-bottom: 6px;
  max-width: 180px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  letter-spacing: 0.3px;
}
.podio-step-1 .podio-nombre{ font-size: 20px; }
.podio-metric{
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 2px;
}
.podio-step-1 .podio-metric{ font-size: 18px; }
.podio-metric-label{
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.podio-pillar{
  width: 100%;
  border-radius: 10px 10px 0 0;
  display:flex; align-items:center; justify-content:center;
  position:relative;
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom: 0;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.22), 0 -4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
}
.podio-pillar::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent 40%);
  pointer-events:none;
}
.podio-step-1 .podio-pillar{
  height: 170px;
  background: linear-gradient(180deg,#FFD700 0%, #B8860B 100%);
  border-color: rgba(255,215,0,0.65);
}
.podio-step-2 .podio-pillar{
  height: 130px;
  background: linear-gradient(180deg,#E5E4E2 0%, #8c8c8c 100%);
  border-color: rgba(192,192,192,0.65);
}
.podio-step-3 .podio-pillar{
  height: 100px;
  background: linear-gradient(180deg,#CD7F32 0%, #7a4a1d 100%);
  border-color: rgba(205,127,50,0.65);
}
.podio-pos{
  font-size: 52px;
  font-weight: 900;
  color: rgba(255,255,255,0.97);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1;
  position: relative;
  letter-spacing: -2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.podio-step-empty{ opacity:0.45; }
.podio-step-empty .podio-pillar{ background: rgba(255,255,255,0.08); }
.podio-step-empty .podio-avatar{
  background: rgba(255,255,255,0.15);
  animation: none;
}
.podio-loading{ width: 100%; padding: 80px 0; }

/* ─── Podio Ranking Row ──────────────────────────────────────────────────── */
.podio-ranking-row{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.podio-ranking-row .podio-stage{
  flex: 1 1 auto;
}

/* ─── Vista Primera Venta ─────────────────────────────────────────────────
   Grid de avatars centrados; cada card flota con la misma animación de los
   Top 3 del podio. Borde azul para distinguir de los podios premiados. */
.podio-pv-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px 32px;
  padding: 20px 12px;
  min-height: 220px;
}
.podio-pv-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}
.podio-pv-avatar{
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #1e88e5, #64b5f6);
  box-shadow: 0 8px 22px rgba(30, 136, 229, 0.45);
  margin-bottom: 12px;
  animation: podioFloat 4.5s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.podio-pv-avatar:hover{
  animation-play-state: paused;
  transform: scale(1.10);
  box-shadow: 0 0 0 5px rgba(30, 136, 229, 0.55), 0 14px 32px rgba(30, 136, 229, 0.55);
}
.podio-pv-avatar > img,
.podio-pv-avatar > .podio-pv-avatar-fallback{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #adb5bd;
  font-size: 2.3em;
}
.podio-pv-nombre{
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podio-pv-monto{
  color: #ffd54f;
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.podio-pv-tipo{
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: 4px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podio-pv-empty{
  color: rgba(255,255,255,0.7);
  text-align: center;
  width: 100%;
  padding: 30px 12px;
}
.podio-side-cards{
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
}
.podio-mipos-measure-host{
  position: absolute;
  visibility: hidden;
  left: -9999px;
  top: 0;
  width: 600px;
  pointer-events: none;
}
.podio-mipos-measure{
  flex: 0 0 195px;
  width: 195px;
}
#podio-mi-posicion{
  flex: 0 0 195px;
  width: 195px;
}

/* ─── Podio Mi Posición Card ─────────────────────────────────────────────── */
.podio-mipos-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  padding: 22px 16px 18px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  animation: podioRise 0.7s cubic-bezier(.2,.8,.2,1) 0.65s both;
}
.podio-mipos-inner::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,#4facfe 0%,#00f2fe 100%);
}
.podio-mipos-avatar{
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg,#4facfe 0%,#00f2fe 100%);
  border: 3px solid rgba(79,172,254,0.5);
  box-shadow: 0 4px 22px rgba(79,172,254,0.35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  animation: podioFloat 5s ease-in-out infinite;
  flex-shrink: 0;
}
.podio-mipos-label{
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}
.podio-mipos-inner .podio-info-mobile{
  text-align: center;
}
.podio-mipos-badge{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg,#4facfe,#00f2fe);
  border-radius: 12px;
  padding: 5px 22px;
  margin-top: 10px;
}
.podio-mipos-num{
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.podio-mipos-rank-label{
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

@media (max-width: 768px){
  .podio-ranking-row{ flex-direction: column; align-items: stretch; }
  .podio-side-cards{ flex-direction: column; gap: 14px; }
  #podio-mi-posicion{
    width: 100%; flex: 1 1 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .podio-mipos-inner{
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 32px 16px 14px;
    position: relative;
  }
  .podio-mipos-inner::before{
    width: 3px; height: auto;
    top: 0; bottom: 0; left: 0; right: auto;
    background: linear-gradient(180deg,#4facfe,#00f2fe);
  }
  .podio-mipos-avatar{
    width: 54px; height: 54px;
    margin-bottom: 0;
    animation-name: podioFloatMobile;
  }
  .podio-mipos-inner .podio-info-mobile{ text-align: left; }
  .podio-mipos-label{
    position: absolute;
    top: 12px;
    left: 16px;
    margin: 0;
  }
  .podio-mipos-badge{
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    padding: 4px 10px;
    margin-top: 0;
    flex-shrink: 0;
  }
  .podio-mipos-num{ font-size: 28px; }
  .podio-mipos-rank-label{ font-size: 10px; }
  .podio-mipos-badge--col{
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 4px 12px;
  }
}

.podio-kpi-badge{
  margin-left: auto;
  align-self: center;
  text-align: right;
  pointer-events: none;
  flex-shrink: 1;
}
.podio-kpi-badge-nombre{
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.podio-kpi-badge-rango{
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  font-weight: 500;
  margin-top: 5px;
  letter-spacing: 0.4px;
}

@keyframes podioFloatMobile{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-5px); }
}
@media (max-width: 768px){
  .podio-avatar{ animation-name: podioFloatMobile !important; }
  .podio-stage{ flex-direction: column; align-items: stretch; gap: 14px; margin-top: 24px; }
  .podio-step-1{ order: 1; }
  .podio-step-2{ order: 2; }
  .podio-step-3{ order: 3; }
  .podio-step{ width: 100%; max-width: 320px; margin: 0 auto; flex-direction: row; align-items: center; gap: 14px; text-align: left; }
  .podio-step .podio-avatar{ margin-bottom: 0; width: 70px; height: 70px; flex-shrink: 0; aspect-ratio: 1/1; }
  .podio-step-1 .podio-avatar{ width: 80px; height: 80px; flex-shrink: 0; aspect-ratio: 1/1; }
  .podio-step .podio-pillar{ flex: none; width: 80px; height: 70px !important; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .podio-pos{ font-size: 40px; }
  .podio-nombre, .podio-metric{ color:#fff; text-align: left; }
  .podio-nombre{ font-size: 14px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .podio-step-1 .podio-nombre{ font-size: 15px !important; }
  .podio-metric{ font-size: 12px !important; }
  .podio-step-1 .podio-metric{ font-size: 13px !important; }
  .podio-metric-label{ font-size: 10px !important; text-align: left; margin-bottom: 4px; }
  .podio-info-mobile{ flex: 1; min-width: 0; overflow: hidden; }
  .podio-hero-inner{ min-height: 0; padding-bottom: 28px; }
  .podio-kpi-badge{
    margin-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }
  .podio-kpi-badge-nombre{ font-size: 18px; white-space: normal; }
}

/* ─── Podio Evento Info Card ─────────────────────────────────────────────── */
#podio-evento-info{
  flex: 0 0 195px;
  width: 195px;
  align-self: stretch;
}
.podio-evento-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px 18px 22px;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: var(--podio-mipos-height, 320px);
  box-sizing: border-box;
  animation: podioRise 0.7s cubic-bezier(.2,.8,.2,1) both;
}
.podio-evento-inner::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,#7c3aed 0%,#a78bfa 100%);
}
.podio-evento-label{
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}
.podio-evento-nom{
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  word-break: break-word;
}
.podio-evento-des,
.podio-evento-crea{
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
  word-break: break-word;
}
.podio-evento-des{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: help;
}
.podio-evento-miemb{
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.podio-evento-fec{
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(124,58,237,0.32);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: auto;
}
@media (max-width: 768px){
  #podio-evento-info{
    width: 100%; flex: 1 1 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .podio-evento-inner{
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    text-align: left;
    padding: 14px 16px;
    min-height: 0;
  }
  .podio-evento-inner::before{
    width: 3px; height: auto;
    top: 0; bottom: 0; left: 0; right: auto;
    background: linear-gradient(180deg,#7c3aed,#a78bfa);
  }
  .podio-evento-label{ font-size: 11px; margin-bottom: 0; width: 100%; }
  .podio-evento-nom{ font-size: 15px; margin-bottom: 0; }
  .podio-evento-des{ display: none; }
  .podio-evento-crea,
  .podio-evento-miemb{ font-size: 12px; margin-bottom: 0; }
  .podio-evento-fec{ font-size: 12px; padding: 4px 10px; margin-top: 0; }
}

/* ─── Red de Equipo — árbol jerárquico ───────────────────────────────────── */
.css-treeview ul {
  padding-left: 22px;
  list-style: none;
  position: relative;
  margin: 0;
}
.css-treeview > ul.tree-root {
  padding-left: 0;
}
.css-treeview li {
  position: relative;
  padding: 3px 0 3px 18px;
}
.css-treeview li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  border-left: 1px solid #ced4da;
  height: 100%;
}
.css-treeview li:last-child::before {
  height: 16px;
}
.css-treeview li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  border-top: 1px solid #ced4da;
  width: 14px;
}
.css-treeview > ul.tree-root > li::before,
.css-treeview > ul.tree-root > li::after {
  display: none;
}
.css-treeview .tree-node {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  font-size: 0.85em;
  transition: background 0.15s;
  cursor: default;
  max-width: 100%;
}
.css-treeview .tree-node:hover {
  background: #e9ecef;
}
.css-treeview .tree-toggle {
  cursor: pointer;
  width: 18px;
  text-align: center;
  color: #6c757d;
  margin-right: 4px;
  flex-shrink: 0;
}
.css-treeview .tree-toggle:hover {
  color: #007bff;
}
.css-treeview .tree-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
  font-size: 0.7em;
}
.css-treeview .tree-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.css-treeview .tree-email {
  color: #6c757d;
  font-size: 0.8em;
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.css-treeview .tree-children-hidden > ul {
  display: none;
}
.tree-node--inactivo {
  opacity: 0.45;
  filter: grayscale(50%);
}
.tree-node__badge-inactivo {
  font-size: 0.65em;
  margin-left: 6px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ─── Dashboard (rep_lat) ───────────────────────────────────────────────── */
.das-card-bg { background-color: #f8f9fa; }
.das-info-muted { font-size: 13px; }
.das-rendimiento-title { font-size: 18px; font-weight: 600; }
.chart-header-meta { min-height: 55px; }
.chart-card-body { height: 400px; position: relative; }
/* Gráfico por día con scroll horizontal: barras no se aplastan en rangos
   grandes / móvil. El ancho del canvas lo fija el JS según nº de días. */
.chart-body-poldia { display: flex; flex-direction: column; }
.chart-body-poldia .chart-scroll-x {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.chart-body-poldia .chart-canvas-wrap { position: relative; height: 100%; min-width: 100%; }
#monthSelect { width: 150px; }
.overlay-das,
.overlay-tbl,
.overlay-agentes { background: rgba(255,255,255,0.9); }

#table-inf thead th,
#table-agentes thead th { font-size: 14px; font-weight: 600; }

#table-inf thead th.col-num,
#table-agentes thead th.col-num { width: 40px; }

.agentes-pos { font-size: 13px; font-weight: 600; color: #6c757d; width: 40px; }
.agentes-nom { font-size: 14px; white-space: nowrap; }
.agentes-avatar { width: 34px; height: 34px; object-fit: cover; flex-shrink: 0; margin-right: 8px; }
.agentes-avatar-fallback { width: 34px; height: 34px; flex-shrink: 0; margin-right: 8px; }
.agentes-badge { font-size: 14px; padding: 6px 10px; }
.badge-kpi { background-color: #1a3a5c; color: #fff; }

/* Columna del KPI seleccionado resaltada en verde suave (Rendimiento por Agente).
   !important para sobreponerse al rayado de table-striped. */
td.kpi-col-activa,
th.kpi-col-activa {
  background-color: rgba(40, 167, 69, 0.12) !important;
}
th.kpi-col-activa { background-color: rgba(40, 167, 69, 0.20) !important; }
/* Bordes laterales sutiles para leer la columna como un bloque continuo */
td.kpi-col-activa,
th.kpi-col-activa {
  box-shadow: inset 2px 0 0 rgba(40, 167, 69, 0.30), inset -2px 0 0 rgba(40, 167, 69, 0.30);
}

.agentes-pagination-wrap { display: none; }
.agentes-pagination-inner { gap: 6px; }

/* Daterangepicker centrado en mobile */
@media (max-width: 768px) {
  .daterangepicker {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: 95vw !important;
    overflow-x: auto !important;
  }
  .daterangepicker .drp-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 12px 16px !important;
  }
  .daterangepicker .drp-buttons .cancelBtn,
  .daterangepicker .drp-buttons .applyBtn {
    flex: 1 !important;
    max-width: 120px !important;
    margin: 0 !important;
    text-align: center !important;
  }
}

/* Días deshabilitados en daterangepicker más visiblemente apagados */
.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
  color: #c8c8c8 !important;
  background-color: transparent !important;
  opacity: 0.4;
  cursor: not-allowed !important;
  text-decoration: line-through;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.info-box {
  border-radius: 10px;
  border: none;
  min-height: 120px;
}
.info-box-icon {
  border-radius: 10px 0 0 10px;
  font-size: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-box-content {
  padding: 15px;
}
.info-box-text {
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-box-number {
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  display: block;
  margin: 10px 0;
}

.card {
  border-radius: 10px;
  border: none;
}
.card-header {
  border-radius: 10px 10px 0 0 !important;
  border: none;
}

.table thead th {
  border-bottom: 2px solid #dee2e6;
  padding: 15px;
}
.table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
}

.badge-pill {
  border-radius: 50px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .row-filtro-dashboard > div {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }
  .row-filtro-dashboard > div:last-child {
    margin-bottom: 0;
  }
  .row-filtro-dashboard .input-group {
    width: 100%;
    max-width: 320px;
  }
  .row-filtro-dashboard .btn {
    width: 100%;
    max-width: 320px;
  }
  .info-box {
    min-height: 90px;
    align-items: stretch;
  }
  .info-box-icon {
    width: 80px !important;
    min-width: 80px !important;
    font-size: 38px !important;
    flex-shrink: 0;
  }
  .info-box-content {
    padding: 10px 14px;
    min-width: 0;
    overflow: hidden;
  }
  .info-box-text {
    font-size: 13px !important;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .info-box-number {
    font-size: 28px !important;
    line-height: 1.1;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ── Filtro VEN: dropdown con búsqueda + carga progresiva (fic_ven_list) ── */
.ven-filter { position: relative; }
.ven-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1051;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ced4da;
  border-top: none;
}
.ven-list .ven-item {
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  font-size: 12px;
  line-height: 1.2;
}
.ven-list .ven-item:hover,
.ven-list .ven-item.active { background: #f4f6f9; }
.ven-list .ven-item.self  { background: #fff8e1; }
.ven-list .ven-item .ven-nom { font-weight: 600; text-transform: capitalize; }
.ven-list .ven-item .ven-ema { color: #6c757d; font-size: 11px; }
.ven-list .ven-empty,
.ven-list .ven-loading { padding: 8px 10px; color: #6c757d; font-size: 12px; }

/* ── Utilidades de ancho mínimo para botones de cabecera ── */
.btn-min-100 { min-width: 100px; }
.btn-min-50  { min-width: 50px; }
.btn-min-150 { min-width: 150px; }

/* ── Modal de selección de miembros (componente NWMiembrosPicker) ── */
.cursor-pointer { cursor: pointer; }
.miembros-tree { max-height: 60vh; overflow-y: auto; }
.is-hidden { display: none; }

/* Hueco del chevron en los nodos hoja: mantiene alineada la columna de
   checkboxes con la de los nodos que sí tienen hijos. */
.nw-mp-sangria { display: inline-block; width: 18px; }
/* Fuera del filtro `solo` del picker: sin casilla y atenuado (solo el propio
   nodo, no sus hijos); la rama sin nadie elegible se esconde con una clase que
   el buscador no toca. */
.nw-mp-fuera > .tree-node .tree-name,
.nw-mp-fuera > .tree-node .tree-email { opacity: .55; }
.nw-mp-fuera-oculto { display: none !important; }

/* ── Progreso de descarga (rep_ref) ── */
.download-progress-container { background-color: #f8f9fa; }
.download-progress-title { color: #495057; }
.progress-bar-zero { width: 0%; }

/* ── Tarjeta de Eventos en el dashboard ─────────────────────────────── */
.text-purple { color: #6f42c1; }

.card-eventos-dash {
  border-top: 3px solid #6f42c1;
}
.card-eventos-dash .card-title strong { color: #4b287a; }

/* Altura dinámica según contenido, con tope máximo y scroll vertical
   cuando se desborda. Sin flex para que el slideUp/Down de AdminLTE
   (data-card-widget="collapse") funcione correctamente. */
.card-body-eventos-dash {
  max-height: 420px;
  overflow-y: auto;
  padding: 0;
}

.evento-dash-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f1f1;
  align-items: flex-start;
}
.evento-dash-item:last-child { border-bottom: none; }
.evento-dash-item:hover { background-color: #f8f9fa; }
.evento-dash-item[data-tip="1"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.evento-dash-icon {
  color: #6f42c1;
  font-size: 1.25rem;
  flex-shrink: 0;
  padding-top: 2px;
}
.evento-dash-body { flex: 1; min-width: 0; }
.evento-dash-titulo {
  font-weight: 600;
  color: #4b287a;
  font-size: 0.9rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evento-dash-creador {
  font-weight: 400;
  color: #6c757d;
  font-size: 0.78rem;
  text-transform: capitalize;
}
.evento-dash-meta {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 3px;
}
.evento-dash-miembros { font-size: 0.72rem; }
.evento-dash-empty {
  padding: 30px 12px;
  text-align: center;
  color: #adb5bd;
}

/* ── Tooltip del item Eventos en dashboard ── */
.evento-dash-tooltip { opacity: 1 !important; pointer-events: none; }
.evento-dash-tooltip .tooltip-inner {
  max-width: 300px;
  text-align: left;
  background-color: rgba(20, 24, 33, 0.92) !important;
  color: #e5e7eb;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  line-height: 1.45;
}
.evento-dash-tooltip.bs-tooltip-left .arrow::before,
.evento-dash-tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before {
  border-left-color: rgba(20, 24, 33, 0.92) !important;
}
.evento-dash-tooltip.bs-tooltip-right .arrow::before,
.evento-dash-tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before {
  border-right-color: rgba(20, 24, 33, 0.92) !important;
}
.evento-dash-tooltip.bs-tooltip-top .arrow::before,
.evento-dash-tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before {
  border-top-color: rgba(20, 24, 33, 0.92) !important;
}
.evento-dash-tooltip.bs-tooltip-bottom .arrow::before,
.evento-dash-tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
  border-bottom-color: rgba(20, 24, 33, 0.92) !important;
}
.evento-dash-tip-titulo {
  font-weight: 600;
  font-size: 0.82rem;
  color: #ffffff;
  letter-spacing: 0.1px;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.evento-dash-tip-des {
  color: #cbd5e1;
  margin-bottom: 8px;
  white-space: pre-line;
  word-break: break-word;
}
.evento-dash-tip-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 5px;
  color: #d1d5db;
}
.evento-dash-tip-row i {
  margin-top: 3px;
  color: #8b95a5;
  font-size: 0.72rem;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}
.evento-dash-tip-row span { flex: 1; word-break: break-word; }
.evento-dash-tip-row-top { align-items: flex-start; }
.evento-dash-tip-extra {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.10);
  color: #f3f4f6;
  font-weight: 600;
  font-size: 0.7rem;
}

/* ── Eventos asociados a la póliza (read-only, badges) ── */
.pol-eventos-list {
  min-height: 38px;
  height: auto;
  background-color: #f8f9fa;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  cursor: default;
}
.pol-eventos-list .pol-evento-badge {
  background-color: #6f42c1;
  color: #fff;
  padding: 3px 9px;
  font-size: 0.78rem;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.4;
}
.pol-eventos-list .text-muted {
  font-style: italic;
  font-size: 0.85rem;
}

/* ── Móvil: stack label sobre input en formulario de Póliza ── */
@media (max-width: 767.98px) {
  .callout-poliza .table-pol,
  .callout-poliza .table-pol thead,
  .callout-poliza .table-pol tbody,
  .callout-poliza .table-pol tr,
  .callout-poliza .table-pol th,
  .callout-poliza .table-pol td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .callout-poliza .table-pol tr {
    margin-bottom: 0.85rem;
  }
  .callout-poliza .table-pol th {
    padding: 0 0 4px 0;
    border: 0;
    font-weight: 600;
    white-space: normal;
  }
  .callout-poliza .table-pol td {
    padding: 0 0 4px 0;
    border: 0;
  }
  .callout-poliza .table-pol .input-group {
    width: 100%;
    flex-wrap: nowrap;
  }
  .callout-poliza .table-pol .input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
  }
  .callout-poliza .table-pol .input-group-prepend,
  .callout-poliza .table-pol .input-group-append {
    flex: 0 0 auto;
  }
  .callout-poliza .table-pol .form-control,
  .callout-poliza .table-pol select.form-control {
    width: 100%;
  }
}

/* ── Mi Equipo — tarjetas sin membresía ─────────────────────────────────── */
.equipo-card {
  position: relative;
}
.equipo-card--inactivo {
  opacity: 0.52;
  filter: grayscale(45%);
}
.equipo-card__badge-inactivo {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.68em;
  letter-spacing: 0.3px;
  pointer-events: none;
}

/* Caja de errores de validación de contraseñas (utils.js). */
.clave-errores {
   display: none;
   padding: 10px;
   margin-bottom: 15px;
   font-size: 14px;
}
.clave-errores-lista {
   margin-bottom: 0;
   padding-left: 20px;
}

/* ============================================================================
 * MEDALLERO — mantenedor, card de Logros y popup de logros (podio)
 * ========================================================================== */

/* Miniatura de medalla en las tablas del mantenedor */
.med-thumb {
   width: 34px;
   height: 34px;
   object-fit: contain;
}
/* Vista previa de la imagen en el modal del mantenedor */
.med-prev img {
   width: 80px;
   height: 80px;
   object-fit: contain;
   border: 1px solid #ddd;
   border-radius: 6px;
   background: #f4f4f4;
}

/* ---- Combo de usuario: dropdown con búsqueda + lazy loading ---- */
.usuario-combo { position: relative; }
.usuario-combo-lista {
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   z-index: 1060; /* sobre el modal de Bootstrap */
   max-height: 220px;
   overflow-y: auto;
   background: #fff;
   border: 1px solid #ced4da;
   border-top: none;
   border-radius: 0 0 4px 4px;
   box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.usuario-combo-item {
   padding: 8px 12px;
   cursor: pointer;
   border-bottom: 1px solid #f1f1f1;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}
.usuario-combo-item:hover { background: #f1f8ff; }
.usuario-combo-empty {
   padding: 10px 12px;
   color: #adb5bd;
   font-style: italic;
}

/* ---- Card de Logros: 3 medallas en la esquina inferior izquierda ---- */
.logro-clickable { cursor: pointer; }
.logro-medallas {
   position: absolute;
   left: 12px;
   bottom: 10px;
   display: flex;
   align-items: flex-end;
   gap: 7px;
   z-index: 5;
}
.logro-medalla {
   width: 54px;
   height: 54px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}
.logro-medalla img { width: 100%; height: 100%; object-fit: contain; }
.logro-medalla i { font-size: 42px; color: rgba(255,255,255,0.9); }

/* Tooltip de medalla (mismo fondo negro que el de la columna de eventos) */
.logro-medalla-tooltip { opacity: 1 !important; pointer-events: none; }
.logro-medalla-tooltip .tooltip-inner {
   max-width: 240px;
   text-align: left;
   background-color: rgba(20, 24, 33, 0.92) !important;
   color: #e5e7eb;
   padding: 8px 11px;
   border-radius: 8px;
}
.logro-medalla-tooltip.bs-tooltip-top .arrow::before,
.logro-medalla-tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before {
   border-top-color: rgba(20, 24, 33, 0.92) !important;
}
.logro-medalla-tooltip.bs-tooltip-bottom .arrow::before,
.logro-medalla-tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
   border-bottom-color: rgba(20, 24, 33, 0.92) !important;
}
.logro-tip-nom { font-weight: 700; font-size: 13px; color: #ffffff; }
.logro-tip-motivo { font-size: 12px; opacity: .9; margin-top: 2px; }
.logro-tip-fecha { font-size: 11px; opacity: .65; margin-top: 2px; }

/* ---- Popup de logros ---- */
.logros-modal { overflow: hidden; } /* clip: el gradiente respeta las esquinas redondeadas */
.logros-modal-header {
   background: linear-gradient(135deg,#0f2027 0%,#203a43 45%,#2c5364 100%);
   color: #fff;
   border-bottom: none; /* sin línea separadora con el podio */
}
.logros-modal-header .close { color: #fff; opacity: .9; text-shadow: none; }
.logros-modal-body { padding: 20px; }
/* Sin listado inferior: quitar la franja blanca de abajo (el podio llega al borde) */
.logros-modal-body.logros-sin-resto { padding-bottom: 0; }
.logros-modal-body.logros-sin-resto .logros-podio { margin-bottom: 0; }

/* Podio: 3 medallas más recientes con efecto flotante.
   Fondo igual al podio visual (mismo degradado azul oscuro), sangrado bajo
   el header del popup. Solo el podio; el listado inferior queda en blanco. */
.logros-podio {
   display: flex;
   justify-content: center;
   align-items: flex-end;
   gap: 24px;
   background: linear-gradient(135deg,#0f2027 0%,#203a43 45%,#2c5364 100%);
   margin: -20px -20px 16px; /* cancela el padding del modal-body y llega al borde */
   padding: 26px 20px 30px;
}
#logros-podio .podio-item {
   flex: 0 0 30%;
   max-width: 30%;
   text-align: center;
}
#logros-podio .podio-medalla {
   width: 120px;
   height: 120px;
   margin: 0 auto 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   filter: drop-shadow(0 6px 8px rgba(0,0,0,0.40));
   animation: logroFloat 3s ease-in-out infinite;
}
#logros-podio .podio-medalla img { width: 100%; height: 100%; object-fit: contain; }
#logros-podio .podio-medalla i { font-size: 84px; color: #c9a227; }
/* La medalla central (más reciente) más grande y con flotación desfasada */
#logros-podio .podio-pos-1 .podio-medalla {
   width: 152px;
   height: 152px;
   animation-delay: .4s;
}
#logros-podio .podio-pos-2 .podio-medalla { animation-delay: 0s; }
#logros-podio .podio-pos-3 .podio-medalla { animation-delay: .8s; }
#logros-podio .podio-nom {
   font-weight: 700;
   font-size: 18px;
   color: #ffffff;
   line-height: 1.15;
}
#logros-podio .podio-motivo {
   font-size: 14px;
   color: rgba(255,255,255,0.85);
   margin-top: 3px;
}
#logros-podio .podio-fecha {
   font-size: 12px;
   color: rgba(255,255,255,0.60);
   margin-top: 3px;
}

@keyframes logroFloat {
   0%   { transform: translateY(0); }
   50%  { transform: translateY(-8px); }
   100% { transform: translateY(0); }
}

/* Resto de medallas: lista con scroll interno */
.logros-rest-title {
   margin-top: 10px;
   font-weight: 700;
   color: #495057;
   border-top: 1px solid #e9ecef;
   padding-top: 12px;
}
.logros-rest {
   max-height: 260px;
   overflow-y: auto;
}
.logro-rest-item {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 8px 4px;
   border-bottom: 1px solid #f1f1f1;
}
.logro-rest-img {
   flex: 0 0 44px;
   width: 44px;
   height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
}
.logro-rest-img img { width: 100%; height: 100%; object-fit: contain; }
.logro-rest-img i { font-size: 30px; color: #c9a227; }
.logro-rest-info { flex: 1 1 auto; min-width: 0; }
.logro-rest-nom { font-weight: 600; color: #2c3e50; }
.logro-rest-motivo { font-size: 12px; color: #6c757d; }
.logro-rest-fecha { flex: 0 0 auto; font-size: 12px; color: #adb5bd; white-space: nowrap; }

/* Responsive: en móvil el podio se apila (más reciente arriba) y las
   medallas vuelven a un tamaño contenido (el grande es solo para PC). */
@media (max-width: 575px) {
   .logros-podio { flex-direction: column; align-items: center; gap: 14px; padding: 18px; }
   #logros-podio .podio-item { flex: 0 0 100%; max-width: 100%; }
   /* Orden vertical: 1º (reciente) arriba, luego 2º, luego 3º */
   #logros-podio .podio-pos-1 { order: 1; }
   #logros-podio .podio-pos-2 { order: 2; }
   #logros-podio .podio-pos-3 { order: 3; }
   #logros-podio .podio-medalla { width: 96px; height: 96px; }
   #logros-podio .podio-pos-1 .podio-medalla { width: 112px; height: 112px; }
   #logros-podio .podio-medalla i { font-size: 64px; }
   #logros-podio .podio-nom { font-size: 16px; }
   .logro-medalla { width: 50px; height: 50px; }
   .logro-medalla i { font-size: 38px; }
}

/* ===== Popup elegir Podio / Medallero (card del inicio) ===== */
.podio-menu-modal { overflow: hidden; border-radius: 10px; }
.podio-menu-header {
   background: linear-gradient(135deg,#0f2027 0%,#203a43 45%,#2c5364 100%);
   color: #fff;
   border-bottom: none;
}
.podio-menu-header .close { color: #fff; opacity: .9; text-shadow: none; }
.podio-menu-body { padding: 22px; }
.podio-menu-grid {
   display: flex;
   gap: 18px;
   flex-wrap: wrap;
}
.podio-menu-opt {
   flex: 1 1 0;
   min-width: 140px;
   text-align: center;
   padding: 26px 16px;
   border-radius: 10px;
   color: #fff;
   text-decoration: none;
   transition: transform .15s ease, box-shadow .15s ease;
   box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.podio-menu-opt:hover {
   transform: translateY(-4px);
   box-shadow: 0 8px 18px rgba(0,0,0,0.22);
   color: #fff;
   text-decoration: none;
}
.podio-menu-opt-rank { background: linear-gradient(135deg,#f7b500 0%,#e08e00 100%); }
.podio-menu-opt-med  { background: linear-gradient(135deg,#2c5364 0%,#203a43 100%); }
.podio-menu-opt-icon { font-size: 44px; margin-bottom: 10px; }
.podio-menu-opt-tit  { font-weight: 700; font-size: 19px; }
.podio-menu-opt-sub  { font-size: 13px; opacity: .9; margin-top: 2px; }

/* ===== Medallero público (página completa) ===== */
.medallero-page { overflow: hidden; border-radius: 10px; }

/* Bloque oscuro ÚNICO: título + buscador + nombre + podio comparten el mismo
   degradado (sin costuras). El header y el podio van transparentes encima. */
.medallero-top {
   background: linear-gradient(135deg,#0f2027 0%,#203a43 45%,#2c5364 100%);
   color: #fff;
}
.medallero-head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   flex-wrap: wrap;
   padding: 18px 22px 0;
   background: transparent;
}
.medallero-head-tit { font-weight: 700; font-size: 20px; }
.medallero-head-right {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 8px;
   flex: 0 1 360px;
   max-width: 100%;
}
.medallero-search { width: 100%; }
.medallero-user-name {
   font-size: 22px;
   font-weight: 700;
   color: #fff;
   text-align: right;
}
/* El dropdown vive dentro del header oscuro (hereda color blanco); forzamos
   texto oscuro sobre el fondo blanco de la lista para que se lean los nombres. */
.medallero-search .pol-comp-item { color: #2c3e50; }
.medallero-search .pol-comp-empty { color: #6c757d; }

/* Mensaje "sin medallas" sobre el fondo oscuro: padding amplio para dar
   más altura al bloque cuando el usuario no tiene medallas (más estético).
   !important vence a las utilidades de espaciado de Bootstrap (.py-*). */
.medallero-top #logros-vacio {
   color: rgba(255,255,255,0.85);
   font-size: 18px;
   padding: 150px 20px !important;
   margin: 0;
}

/* Listado inferior (medallas anteriores): fondo claro de la card. */
.medallero-rest-wrap { padding: 20px; }
/* Datos del listado más grandes (solo en el medallero). */
.medallero-rest-wrap .logros-rest-title { font-size: 20px; }
.medallero-rest-wrap .logro-rest-item { gap: 16px; padding: 12px 6px; }
.medallero-rest-wrap .logro-rest-img { flex: 0 0 60px; width: 60px; height: 60px; }
.medallero-rest-wrap .logro-rest-img i { font-size: 42px; }
.medallero-rest-wrap .logro-rest-nom { font-size: 19px; }
.medallero-rest-wrap .logro-rest-motivo { font-size: 15px; }
.medallero-rest-wrap .logro-rest-fecha { font-size: 14px; }

/* Podio del medallero: transparente (usa el fondo del bloque) y más grande. */
.medallero-page .logros-podio {
   background: transparent;
   margin: 0;
   gap: 40px;
   padding: 18px 20px 48px;
}
.medallero-page #logros-podio .podio-medalla { width: 168px; height: 168px; }
.medallero-page #logros-podio .podio-pos-1 .podio-medalla { width: 210px; height: 210px; }
.medallero-page #logros-podio .podio-medalla i { font-size: 120px; }
.medallero-page #logros-podio .podio-nom { font-size: 26px; }
.medallero-page #logros-podio .podio-motivo { font-size: 18px; }
.medallero-page #logros-podio .podio-fecha { font-size: 15px; }

@media (max-width: 575px) {
   .medallero-head { flex-direction: column; align-items: stretch; }
   .medallero-head-tit { text-align: center; }
   .medallero-search { flex-basis: auto; }
   .podio-menu-grid { flex-direction: column; }
   /* Podio apilado sin huecos: el flex-basis:100% de base (pensado para el
      popup) en column hace que cada item intente ocupar el alto completo →
      se fuerza a contenido. Menos gap/padding para móvil. */
   .medallero-page .logros-podio { gap: 18px; padding: 14px 16px 28px; justify-content: flex-start; }
   .medallero-page #logros-podio .podio-item { flex: 0 0 auto; max-width: 100%; }
   /* En móvil, tamaños contenidos (anula los grandes de escritorio). */
   .medallero-page #logros-podio .podio-medalla { width: 110px; height: 110px; }
   .medallero-page #logros-podio .podio-pos-1 .podio-medalla { width: 128px; height: 128px; }
   .medallero-page #logros-podio .podio-medalla i { font-size: 72px; }
   .medallero-page #logros-podio .podio-nom { font-size: 18px; }
   .medallero-page #logros-podio .podio-motivo { font-size: 14px; }
}
