.fa-circle-half-stroke {
  transition: transform 0.3s ease;
}
@media (min-width: 990px) {
  .navbar-toggle { /*un uso en header-admin.ejs*/
      display: none;
  }
  .navbar-collapse {/*un uso en header-admin.ejs*/
      border-top: 0 none;
      box-shadow: none;
      width: auto;
  }
  .navbar-nav {
      float: right !important;
      margin: 0;
  }
  .navbar-nav>li {
      float: right;
  }
  .navbar-nav>li>a {
      padding-top: 15px;
      padding-bottom: 15px;
  }
}

.custom-input-height {
  height: 2.5rem; /* Adjust input height */
  font-size: 1rem; /* Font size of input text */
}

.custom-label {
  position: absolute;
  top: 50%; /* Vertically center the label initially */
  left: 0.75rem; /* Left spacing of the label */
  transform: translateY(-50%); /* Center the label vertically */
  font-size: 1rem; /* Default label font size */
  color: #6c757d; /* Default label color */
  transition: 0.2s ease; /* Smooth transition */
  pointer-events: none; /* Make label not interactable */
}

.custom-input-height:focus + .custom-label,
.custom-input-height:not(:placeholder-shown) + .custom-label {
  top: -0.5rem; /* Adjust to right above the input */
  font-size: 0.75rem; /* Smaller label font size */
  color: #666666; /* Change label color when input is focused or filled */
}
.pd1 {
  padding-top: 15px;
}

.t-peq {
  font-size: 10px;
  position: relative;
}
.t-peq .imgx {
  width: 200px; 
  height: auto; 
  position: absolute;
  right: 0;
  top: 0;
}
@media (max-width: 768px) {
  .t-peq img {
    width: 160px;
    right: 10px;
  }
}
@media (max-width: 480px) {
  .t-peq img {
    width: 120px;
    right: 10px;
  }
}

@media (max-width: 380px) {
  .t-peq img {
    width: 100px;
    right: 5px;
  }
}

/* Light Mode Styles */
[data-bs-theme="light"] .btn-custom {
  background-color: #add8e6; /* Light blue */
  color: #000;
  border: 1px solid #90c8e0;
}

[data-bs-theme="light"] .form-select, .form-control {
  background-color: #e6f4ff !important;  /* very light blue */
  color: #000 !important;
  border: 1px solid #ccc;
}

/* Dark Mode Styles */
[data-bs-theme="dark"] .btn-custom {
  background-color: #5aa4c9; /* Slightly deeper blue for contrast */
  color: #fff;
  border: 1px solid #6fb3d6;
}

[data-bs-theme="dark"] .form-control, .form-select {
  background-color: #131e25 !important; /* Dark bluish background */
  color: #fff !important;
  border: 1px solid #444;
}

body, .form-control, .btn-danger, .form-select {
  transition: background-color 0.3s ease, color 0.3s ease;
}

#navBarId .nav-link {
    background-color: rgba(255, 255, 255, 0.25); 
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#navBarId .nav-link i {
    font-size: 1.2rem;
}

#navBarId .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

[data-bs-theme="dark"] #navBarId .nav-link {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pills .nav-link {
  border-radius: 0px;
  margin: 0 5px;
  border: 1px solid #000000;
  color: #888;
  font-weight: 500;
}

.nav-pills .nav-link.active {
  background: #6c757d;
  color: #ffffff;
  border-color: #000000;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
}

.menu-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.price-original-mini {
  text-decoration: line-through;
  color: #888;
  font-size: .8rem;
  line-height: 1;
}

.badge-promo {
  background: #ffc107;
  color: #000;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.item-soldout {
  filter: grayscale(1);
  opacity: .7;
  position: relative;
}

.badge-soldout {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 53, 69, .9);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  z-index: 10;
}

.btn-like {
  background: none;
  border: none;
  color: #ccc;
  padding: 0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease;
}

.btn-like:hover {
  transform: scale(1.2);
}

.btn-like.active {
  color: #e0245e;
}

.heart-beat {
  animation: heartbeat .3s ease;
}

@keyframes heartbeat {
  0% {
    transform: scale(1)
  }
  50% {
    transform: scale(1.3)
  }
  100% {
    transform: scale(1)
  }
}

/* GALERIA */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 1rem auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track img {
  width: auto;
  height: 140px;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 5px;
}

.carousel-btn.next {
  right: 5px;
}

/* VINCULOS */
.vinculos-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.vinculos-div {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  padding: 10px;
}

.vinculos-div::-webkit-scrollbar {
  display: none;
}

.vinculo-imagen {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
}

.scroll-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: #fff;
  color: #8e1919;
  border: none;
  cursor: pointer;
  z-index: 1;
  font-size: 20px;
  padding: 5px 10px;
  box-shadow: 0 2px 5px rgba(13, 123, 46, 0.2);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

.scroll-btn:hover {
  opacity: 0.9;
}

#menuTab .nav-link {
  font-size: 0.85rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1); /* Efecto de crecimiento al pasar el mouse */
  color: white;
}