html {
  scroll-behavior: smooth;
}

#exampleModal .modal-dialog {
  position: absolute !important;
  right: 0 !important;
  margin-right: 0 !important;
}

.productos__item:hover .item__btn-carrito {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.item__btn-carrito {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.my-carousel-progress {
  background: #ccc;
}

.my-carousel-progress-bar {
  background: var(--primary-blue);
  height: 2px;
  transition: width 400ms ease;
  width: 0;
}

.newsletter__form {
  display: flex;
  border-bottom: 1px solid var(--dark-gray);
  align-items: center;
  width: 100%;
}

.newsletter__form input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 10px;
  color: var(--black);
}

.newsletter__form > input:focus {
  outline: none !important;
  border: none;
  background-color: transparent;
  box-shadow: none;
}

.newletter__last-img {
  height: calc(100% + 40px);
  object-fit: cover;
  position: absolute;
  top: -40px;
}

.form--grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.registro__input {
  display: flex;
  flex-direction: column;
}

.registro__input label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 8px;
}

.registro__input input {
  border: none;
  background-color: #f3f3f3;
  border-radius: 8px;
  color: var(--black);
  padding: 12px 20px;
}

.registro__input input::placeholder {
  color: #7a828a;
}

.registro__input span {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
  font-weight: 400;
}

.registro__input select {
  border: none;
  background-color: #f3f3f3;
  border-radius: 8px;
  color: var(--black);
  padding: 12px 20px;
  transition: all 0.6s ease-in-out;
}

.registro__input select:focus {
  outline: none !important;
  background-color: var(--light-gray);
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  transition: all 0.3s ease-in-out;
}

/***** Track Styles *****/
/***** Chrome, Safari, Opera, and Edge Chromium *****/
input[type='range'].custom-range::-webkit-slider-runnable-track {
  background: var(--light-gray);
  border-radius: 25px;
}

/******** Firefox ********/
input[type='range'].custom-range::-moz-range-track {
  background: var(--light-gray);
}

.shop__select {
  border: none;
  padding: 8px 16px;
  height: fit-content;
}

.shop__search {
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 0 16px;
  height: fit-content;
}

.shop__search input {
  border: none;
  background-color: transparent;
  width: 100%;
  padding: 8px;
  color: var(--black);
}

.contacto__input {
  background-color: var(--light-gray);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  width: 100%;
}

.contacto__input::placeholder {
  color: var(--primary-blue);
}

input {
  transition: all 0.6s ease-in-out;
}

input:focus {
  outline: none !important;
  border: none;
  background-color: var(--light-gray);
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  transition: all 0.3s ease-in-out;
}

input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid white;
  background-color: white;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

input[type='radio']:checked {
  border-color: red;
  background-color: white !important;
}

/* Crear el circulito interior cuando está seleccionado */
input[type='radio']:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 10px;
  border-radius: 50%;
  background-color: #007bff; /* Color del círculo interior */
}

textarea {
  transition: all 0.6s ease-in-out;
  resize: none !important;
}

textarea:focus {
  outline: none !important;
  border: none;
  background-color: var(--light-gray);
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  transition: all 0.3s ease-in-out;
}

.btn--faq {
  background-color: transparent;
  border: none;
  padding: 12px;
  color: var(--dark-gray);
}

.btn--faq.active {
  color: var(--black);
}

.btn--faq:hover {
  color: var(--black);
}

.btn--faq:focus {
  color: var(--black);
  outline: none;
}

.input--white {
  background-color: white !important;
  border: 2px solid var(--light-gray) !important;
}

.btn--green {
  background-color: #29a71a !important;
  border: none;
  padding: 12px;
  color: white !important;
}

.btn--green.active {
  color: var(--black);
}

.btn--green:hover {
  color: var(--black);
}

.btn--green:focus {
  color: var(--black);
  outline: none;
}

.btn--black {
  background-color: black !important;
  border: none;
  padding: 12px;
  color: white !important;
}

.btn--black.active {
  color: var(--black) !important;
}

.btn--black:hover {
  background-color: var(--primary-blue) !important;
}

.btn--black:focus {
  color: var(--primary-blue) !important;
  outline: none;
}

.nav-tabs {
  border: none !important;
}
.nav-tabs .nav-link {
  border: none !important;
  position: relative !important;
}

.nav-tabs .nav-link.active {
  border-bottom: 2px solid var(--dark-gray) !important;
  padding-bottom: 10px !important;
}

.nav-tabs .nav-link:not(.active):hover {
  color: #007bff !important;
}

.product-img {
  position: relative;
}

.product-action {
  position: absolute;
  bottom: 0;
  left: 45%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-img:hover .product-action {
  opacity: 1; /* Muestra el botón al hacer hover */
}

.overflow-auto::-webkit-scrollbar {
  height: 8px;
}

.overflow-auto::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.overflow-auto::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.overflow-auto::-webkit-scrollbar-button {
  display: none;
}

.overflow-auto {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.accordion-button {
  font-weight: bold;
  border: none !important;
  box-shadow: none !important;
  color: var(--dark-gray) !important;
}

.accordion-button:not(.collapsed) {
  background-color: white !important;
  /* Cambiar color de fondo */
  color: var(--dark-gray) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Transiciones suaves */
  border: none;
}

.accordion-item {
  margin: 20px 0px !important;
  border: 1px solid #ccc !important;
  border-left: none !important; /* Sin borde en los lados */
  border-right: none !important;
  border-top: none !important;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(360deg);
  background-image: url('../img/minus_2.png') !important;
  color: var(--dark-gray);
  background-color: white !important;
  background-size: auto;
  background-position: center;
}

.accordion-button.collapsed::after {
  background-image: url('../img/plus_2.png') !important;
  background-size: auto;
  background-position: center;
}

.navbar-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1030;
  background-color: #fff; /* importante si hay contenido debajo */
}

.accordion-collapse {
  color: var(--dark-gray) !important;
}

.modal-dialog.modal-dialog-centered.modal-lg {
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0;
}

.banner--newsletter {
  background-image: url("../img/home/newsBanner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

.banner__products {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.banner__bg {
  background-image: url("../img/home/banner_interactivo/fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner__item {
  width: 18.75%;
  padding: 24px 12px;
  position: relative;
  box-sizing: border-box;
  align-content: end;
}

.banner__item:nth-child(2) {
  width: 25%;
}

.banner__item:nth-child(3) {
  width: 17%;
}

.banner__item img {
  transition: transform 0.3s ease-in-out;
}

.banner__item img:hover,
.banner__item:hover img{
  transform: translateY(-12px);
  transition: transform 0.3s ease-in-out;
}

.banner__card {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  opacity: 0;
  position: absolute;
  bottom: 32px;
  width: 360px;
}

.banner__card--mobile {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  position: absolute;
  bottom: -200px;
  width: 280px;
}

/* Agrega el pico a la izquierda */
.banner__card.card-right::before {
  content: "";
  position: absolute;
  left: -8px; /* Desplaza el pico hacia la izquierda fuera del contenedor */
  bottom: 50%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid white; /* El color del fondo del card */
}

.banner__item:hover .banner__card.card-right,
.banner__card.card-right:hover {
  opacity: 1;
  transition: all 0.3s ease-in-out;
  left: 50%;
  z-index: 10;
}

.banner__item:hover .banner__card.card-left,
.banner__card.card-left:hover {
  opacity: 1;
  transition: all 0.3s ease-in-out;
  right: 50%;
  z-index: 10;
}

.card-left::before {
  content: "";
  position: absolute;
  /*left: -8px; !* Desplaza el pico hacia la izquierda fuera del contenedor *!*/
  bottom: 50%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  /*border-right: 8px solid white; !* El color del fondo del card *!*/

  left: auto !important; /* Cambia la posición del pico */
  right: -8px !important; /* Desplaza el pico hacia la derecha fuera del contenedor */
  border-right: none !important; /* Elimina el borde derecho */
  border-left: 8px solid white !important; /* Agrega el borde izquierdo */
}

.input--quantity {
  display: flex;
  align-items: center;
}

.input--quantity input {
  text-align: center;
  margin: 0 4px;
}

#btnFiltrosDesk.active i {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

#btnFiltrosDesk:not(.active) i {
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 1200px) {
  .banner__products {
    flex-wrap: wrap;
    justify-content: center;
  }
  .banner__item {
    width: 33.33% !important;
  }
}

@media (max-width: 767px) {
  .form--grid {
    grid-template-columns: 1fr;
  }

  .banner__products {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-sidebar {
    display: none;
  }

  .filter-sidebar.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background-color: white;
    z-index: 10000;
    padding: 56px 24px !important;
  }

  .filter-sidebar .custom-control {
    justify-content: start !important;
  }

  .filter-sidebar .custom-control-label {
    margin-left: 24px !important;
  }

  .banner__item {
    width: 25% !important;
    padding: 4px !important;
    text-align: center;
  }

  .banner__item:nth-child(1) img {
    transform: translateY(-24px);
  }

  .banner__item:nth-child(3) img {
    transform: translateY(-12px);
  }

  .banner__item:nth-child(4) img {
    transform: translateY(0px);
  }

  .banner__item:nth-child(5) img {
    transform: translateY(-12px);
  }

  .banner__item:nth-child(2) {
    display: none; /* Oculta el quinto elemento en pantallas pequeñas */
  }

  .banner__bg {
    background-position: top;
  }

  .banner__card {
    display: none; /* Oculta el card por defecto */
  }

  .banner__card.active,
  .banner__card.active--left {
    display: block; /* Muestra el card activo */
    width: 300px;
    right: -50%;
  }

  #exampleModal .modal-dialog {
    right: 50% !important;
  }
}

@media (max-width: 575px) {
  /*.banner__item {*/
  /*  width: 25% !important;*/
  /*  padding: 4px !important;*/
  /*  text-align: center;*/
  /*}*/

  /*.banner__item:nth-child(5) {*/
  /*  display: none; !* Oculta el quinto elemento en pantallas pequeñas *!*/
  /*}*/

  .banner__card {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 40px;
    margin: auto;
  }

  .banner__card.active--left::before {
    content: "";
    position: absolute;
    top: -8px; /* Posiciona el pico arriba */
    left: 20px; /* Ajusta horizontalmente según necesites */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white; /* Apunta hacia abajo con el color de fondo */
  }

  .banner__card--mobile {
    bottom: -100px;
  }
}

@media (max-width: 991px) {
  .newletter__last-img {
    position: relative;
    height: auto;
    top: 0;
    width: 100%;
    margin: 0 auto;
  }

  #exampleModal > div {
    min-width: 90vw;
    position: relative !important;
    right: 50% !important;
    transform: translateX(50%) !important;
  }

}

.add-to-cart-btn {
  position: relative;
  transition: all 0.3s ease;
  min-width: 40px;
  min-height: 40px;
  background: white;
  border: 1px solid #e6e6e6;
}

.add-to-cart-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn i {
  transition: all 0.3s ease;
}

.add-to-cart-btn.success {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.short-desc {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  border: 1px solid #0f0f0f;
  padding: 4px 8px;
  text-align: center;
  font-size: 12px;
  background-color: #FFF;
  opacity: 0;
  z-index: 1;
}

.product-card:hover .short-desc {
  opacity: 1;
}

.detalle__social a,
.detalle__social button {
  /*box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;*/
  border-radius: 50%;
  border: 1px solid var(--dark-gray);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  margin: 4px;
}

.detalle__social a:hover,
.detalle__social button:hover {
  background-color: var(--primary-blue);
  color: white !important;
  transition: background-color 0.3s ease-in-out;
}

.social--links {
  height: 0;
  overflow: hidden;
}

.social--links.active {
  height: auto;
  transition: height 0.3s ease-in-out;
}

#accordionExample * {
  color: black !important;
}

.section__contamos {
  background-image: url("../img/about/contamos.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.check-icon-animation {
  animation: checkmark 0.4s ease-in-out forwards;
}

/* Estilos para iconos de redes sociales en navbar */
.social-icon {
  color: #6c757d;
  transition: all 0.3s ease-in-out;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.social-icon:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover .fa-facebook-f {
  color: #1877f2;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 2px;
}

.social-icon:hover .fa-instagram {
  color: #e4405f;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
