html {
  position: relative;
  min-height: 100%;
  padding-bottom: 160px;
}

body {
  margin-bottom: 160px;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 250px;
}

main {
  margin-top: 100px;
}

.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 8px 6px -6px #999;
}

.card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 4em;
}

.chart-container {
  height: 22em;
  margin-bottom: 4em;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.chart-title {
  text-align: center;
  width: 100%;
}

.product-image {
  height: 300px;
  object-fit: cover;
}

.btn-dropdown:active {
  background: #65D1C1;
}

.text-changeit {
  color: #65D1C1;
}

.btn-changeit {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-color: #65D1C1;
  background: #65D1C1;
  --bs-btn-hover-bg: #47c5b2;
  --bs-btn-hover-border-color: #47c5b2;
  --bs-btn-hover-color: white;
  --bs-btn-active-bg: #359889;
  --bs-btn-active-color: white;
  --bs-btn-active-border-color: #359889;
}

#header-logo {
  height: 40px;
}

nav.navbar {
  padding: 0 0.8rem;
}

nav.navbar .nav-item {
  padding: 0.8rem;
}

.navbar-nav .nav-item {
  position: relative;
  display: inline-block;
  font-size: 20px;
}

.navbar-nav .nav-item .nav-link {
  display: block;
  text-decoration: none;
  color: black;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-item.dropdown:hover .nav-link,
.navbar-nav .nav-item:hover .nav-link {
  color: white;
}

.navbar-nav .nav-item .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #65D1C1;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.nav-item.dropdown:hover .nav-link::before,
.navbar-nav .nav-item:hover .nav-link::before {
  opacity: 1;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.mega-menu {
  min-width: 300px;
  max-width: 600px;
  background-color: white;
  z-index: 1000;
}

.mega-menu .dropdown-item {
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.mega-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.mega-menu .category-column {
  padding: 5px 0;
}

@media (max-width: 992px) {
  .mega-menu {
    position: static !important;
    width: 100% !important;
  }

  .mega-menu .dropdown-item {
    padding: 10px;
  }
}

.category-card-pro {
  height: 200px;
  position: relative;
  background-color: #ddd;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-img-pro {
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
}

.category-card-pro:hover .category-img-pro {
  transform: scale(1.1);
}

.category-overlay-pro {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.3s ease;
  padding: 0 10px;
}

.text-shadow {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.category-card-pro:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#user-info-points {
  background-color: #9ce6db;
  border-radius: 12px;
  padding: 5px 10px;
  color: #333;
  font-size: 1.2em;
  display: inline-block;
}

.table-hover tbody tr:not(.details-row):not(.dropdown-row):hover td,
.table-hover tbody tr:not(.details-row).dropdown-row:hover td {
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6)), #65D1C1;
  cursor: pointer;
}

.table-hover thead tr th.th-sortable {
  cursor: pointer;
}

.table-hover thead tr,
.table-hover tbody tr {
  border-bottom: 1px solid #65D1C1;
}

.modal-content {
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #65D1C1;
  color: white;
}

.modal-footer {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background-color: #f8f9fa;
  border-top: 0 none;
}

.footer-link {
  color: #65D1C1;
}

.rates-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.rates-img-container:first-of-type {
  margin-top: -2em;
  margin-bottom: 6em;
}

.rates-img-container:last-of-type {
  margin-bottom: -4em;
}

.ali-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  border: 1px solid #ddd;
  color: #333;
  font-size: 1.2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  z-index: 10;
}

.ali-arrow:hover {
  background-color: #f0f0f0;
}

.ali-arrow.left {
  left: 0.5rem;
}

.ali-arrow.right {
  right: 0.5rem;
}

#thumbnails {
  white-space: nowrap;
}

#thumbnails img {
  height: 70px;
  width: 70px;
  cursor: pointer;
  object-fit: contain;
  display: inline-block;
}

.ali-thumb-nav {
  height: 70px;
  width: 30px;
  font-size: 1.2rem;
  z-index: 1;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.modal-dialog {
  max-height: 90vh;
}

.modal-content {
  height: 100%;
}

.modal-body {
  height: 100%;
}

.modal-equal-columns {
  height: 100%;
}

@media (max-width: 767px) {
  .modal-dialog {
    max-height: none;
  }

  .modal-body {
    height: auto;
  }
}

#productsDropdownMenu {
  min-width: 100%;
  max-width: 1320px;
  left: 50%;
  transform: translateX(-50%);
  background: #f9f9f9;
  display: none;
  position: absolute;
  top: calc(100% + 5px); /* Pequeño ajuste para mover el dropdown un poco hacia abajo */
  z-index: 1000;
}

