/* ===============================
   RANKING GENERAL
================================ */

.contenido.container.my-5 {
  margin-top: 24px !important;
}

.contenido > header {
  margin-bottom: 28px !important;
}

.contenido h2 {
  font-weight: 800;
  color: #b30000;
}

.contenido .badge {
  font-size: 0.85rem;
}

/* ===============================
   LAYOUT PRINCIPAL
================================ */


.ranking-main {
  min-width: 0;
  width: 100%;
}

/* ===============================
   SIDEBAR PESOS
================================ */

.ranking-sidebar {
  width: 170px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 16px;
  z-index: 1;
}

.ranking-sidebar-title {
  display: block;
  width: 100%;
  border: 0;
  background: #45437f;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: left;
  padding: 13px 12px;
  cursor: default;
}

.ranking-sidebar > .peso-btn {
  width: 100%;
  border-left: 0;
  border-right: 0;
  font-weight: 800;
}

.peso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.peso-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.peso-col:first-child {
  border-right: 1px solid #dcdcdc;
}

.peso-col h6 {
  margin: 0;
  padding: 10px 4px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #222222;
  background: #f7f7f7;
  border-bottom: 1px solid #dcdcdc;
}

.peso-btn {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #dcdcdc;
  background: #ffffff;
  color: #222222;
  padding: 10px 4px;
  font-size: 0.88rem;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.peso-btn:hover,
.peso-btn.active {
  background: #b30000;
  color: #ffffff;
  font-weight: 800;
}

/* ===============================
   FILTROS SUPERIORES
================================ */

.ranking-filters {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px !important;
}

.ranking-filters .form-label {
  color: #333333;
  margin-bottom: 6px;
}

#searchInput,
#filtroCategoria {
  border: 1px solid #d8d8d8;
  min-height: 39px;
}

#searchInput:focus,
#filtroCategoria:focus {
  border-color: #b30000;
  box-shadow: 0 0 0 0.2rem rgba(179, 0, 0, 0.16);
}

/* ===============================
   BOTONES
================================ */

.btn-danger {
  background-color: #b30000 !important;
  border-color: #b30000 !important;
}

.btn-danger:hover {
  background-color: #8f0000 !important;
  border-color: #8f0000 !important;
}

.btn-outline-danger {
  color: #b30000 !important;
  border-color: #b30000 !important;
}

.btn-outline-danger:hover {
  background-color: #b30000 !important;
  color: #ffffff !important;
}

/* ===============================
   TABLA
================================ */

.ranking-main .card {
  border: 1px solid #eeeeee !important;
  border-radius: 8px !important;
  overflow: hidden;
  transform: none !important;
}

.ranking-main .card:hover {
  transform: none !important;
}

.ranking-main .card-body {
  padding: 0 !important;
}

.ranking-main .border-bottom {
  padding: 18px 22px !important;
}

.ranking-main h5 {
  font-weight: 800;
  color: #111111;
}

.ranking-main .table {
  margin-bottom: 0;
  background: #ffffff;
}

.ranking-main .table thead th {
  background: #202020 !important;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 13px 16px;
  white-space: nowrap;
  vertical-align: middle;
}

.ranking-main .table tbody td {
  padding: 12px 16px;
  font-size: 0.95rem;
  vertical-align: middle;
  border-bottom: 1px solid #eeeeee;
}

.ranking-main .table tbody tr:hover {
  background-color: #f8eaea;
}

.ranking-posicion {
  font-weight: 800;
  color: #222222;
  white-space: nowrap;
}

.ranking-nombre {
  font-weight: 800;
  color: #111111;
  white-space: nowrap;
}

.ranking-categoria {
  color: #333333;
  white-space: nowrap;
}

.ranking-puntos {
  color: #b30000;
  font-weight: 800;
  white-space: nowrap;
}

/* ===============================
   FOTO
================================ */

.ranking-foto {
  width: 82px;
  height: 82px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 2px solid #ffffff;
  outline: 2px solid #b30000;
  background: #eeeeee;
  display: block;
  margin: 0 auto;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-foto:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 991px) {
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .ranking-sidebar {
    width: 100%;
    position: static;
  }

  .ranking-main .table {
    min-width: 720px;
  }
}

@media (max-width: 576px) {
  .contenido.container.my-5 {
    margin-top: 18px !important;
    padding-inline: 12px;
  }

  .contenido > header {
    margin-bottom: 22px !important;
  }

  .ranking-filters {
    padding: 15px;
  }

  .ranking-foto {
  width: 66px;
  height: 66px;
  border-radius: 8px;
}

  .ranking-main .table thead th,
  .ranking-main .table tbody td {
    font-size: 0.84rem;
    padding: 10px 12px;
  }
}



.ranking-sidebar-title {
  background-color: #494785 !important;
  color: #ffffff !important;
  font-weight: 800;
  text-align: center;
  padding: 13px 8px;
}

.sexo-btn {
  background-color: #f3f3f3;
  color: #222222;
  font-weight: 800;
  font-size: 1rem;
}

.sexo-btn:hover,
.sexo-btn.active {
  background-color: #b30000;
  color: #ffffff;
}