/* style personalizados para la página "autoparts.com.ar" */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,700&display=swap");

:root {
  --primaryFont: "DM Sans", sans-serif;

  --primaryColor: #355233;
  --primaryHover: #bcd2fb;
  --secondaryColor: #8db842;
  --secondaryHover: #b9f5d1;
  --blackColor: #14141b;

  /* styles de gris */
  --grey-1: #b1b1b1;
  --grey-2: #f3f5f9;
  --grey-3: #707070;
  --grey-4: #e8e8e8;
  /* grey-4 utilizado para los "border" */

  /* box-shadow style */
  --shadow: 0 0 1px 1px rgba(0, 0, 0, 0.07), 0 5px 10px 0 rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: transparent linear-gradient(180deg, #f3f5f9 0%, #ffffff 100%) !important;
  font-family: var(--primaryFont) !important;
  line-height: 1.6;
}

/* Reglas para FAQ'S */

.faq-section .nav-pills .nav-link.active {
  background-color: #198754 !important;
  /* Bootstrap 'success' */
  color: #fff !important;
}

.faq-section a {
  color: #198754;
}

.faq-section a:hover {
  color: #146c43;
}

.faq-section .accordion-button:not(.collapsed) {
  background-color: #198754;
  /* success */
  color: white;
}

.faq-section .accordion-button:not(.collapsed)::after {
  filter: invert(1);
  /* Cambia el ícono al blanco */
}

/*REGLAS PARA COL - BOOTSTRAP*/
.no-padding-grid .col,
.no-padding-grid [class^="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.mw-200 {
  min-width: 200px;
}

.mw-300 {
  min-width: 300px;
}

/* Icono Mapa index */

.marker-wrapper {
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  border: 2px solid #0d6efd;
  /* color de borde Bootstrap */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.marker-wrapper img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

/* Estilos Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite linear;
  border-radius: 4px;
}

.skeleton-img {
  width: 100%;
  height: 200px;
}

.skeleton-text {
  width: 100%;
  height: 15px;
  margin-bottom: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Fin de estilos Skeleton Loader */

/* Estilo para el spinner de carga */
#loadingSpinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Fin de estilo para el spinner de carga */

/* CSS para Select2 simple y multiple y Bootstrap 5.3 */

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  height: 38px !important;
  /* Misma altura que .form-select en Bootstrap 5 */
  padding: 0.375rem 0.75rem !important;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
}

/* Ajusta el texto dentro del select2 */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  line-height: normal !important;
  padding-left: 0 !important;
  margin-bottom: 5px !important;
}

/* Asegura que la flecha del dropdown se vea bien */
.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
  height: 36px !important;
  display: flex;
  align-items: center;
}

.select2-container .select2-search--inline .select2-search__field {
  height: 28px;
}

.select2-hidden-accessible {
  position: fixed !important;
}

.carousel-miniaturas .swiper-slide {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.carousel-miniaturas .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #0d6efd;
  border-radius: 0.25rem;
}

/* Fin de CSS para Select2 y Bootstrap 5.3 */

.logo-width {
  max-width: 60%;
}

@media (max-width: 767.98px) {
  .logo-width {
    max-width: 100%;
  }
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Ajustamos estilos para el menú hamburguesa */
.navbar-toggler {
  border: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.category-icon {
  width: 80px;
  height: 80px;
  background-color: #f8f9fa;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-inner {
  padding: 1em;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #000;
  border-radius: 50%;
}

.h-color {
  color: var(--textColor);
  background-color: var(--primaryColor);
  font-style: italic;
  font-weight: 600;
  border-radius: 0.25rem;
}

.section-search {
  height: 100dvh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-radius {
  border-radius: 0.375rem 0 0 0.375rem !important;
}

.form-radius-btn {
  border-radius: 0 0.375rem 0.375rem 0 !important;
}

/* Estilos adicionales para mejorar la apariencia del carrusel */
.slick-prev:before,
.slick-next:before {
  color: var(--blackColor) !important;
}

.nav-item .nav-link {
  color: inherit;
  /* Usa el color actual del texto */
  text-decoration: none;
  /* Elimina subrayados por defecto */
  transition: color 0.3s ease;
  /* Animación suave al cambiar de color */
}

.nav-item .nav-link:hover {
  color: var(--primaryHover);
  /* Color cuando el cursor está encima */
}

.btn-link {
  color: var(--grey-3);
  text-decoration: none;
  /* Sin subrayado */
  transition: color 0.3s ease, text-decoration 0.3s ease;
  /* Transición suave */
}

.linked-color {
  color: inherit;
  /* Usa el color actual del texto */
  text-decoration: none;
  /* Elimina subrayados por defecto */
  transition: color 0.3s ease;
}

.linked-color:hover {
  color: var(--primaryHover);
  /* Color cuando el cursor está encima */
}

.btn-link:hover {
  color: var(--primaryHover);
  /* Color de hover */
  text-decoration: none;
  /* Subrayado al pasar el cursor */
}

.btn-color {
  background-color: var(--primaryColor) !important;
  color: var(--grey-2) !important;
  font-weight: 600;
  border: 1px solid #dee2e6;
  transition: background-color 0.3s ease;
}

.btn-color:hover {
  background-color: var(--primaryHover) !important;
  border: 1px solid #dee2e6;
}

.form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: #dee2e6 !important;
  outline: 0;
  box-shadow: none !important;
}

.styled-border {
  border: 1px solid var(--grey-4);
}

.card:hover {
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.07), 0 5px 10px 0 rgba(0, 0, 0, 0.1);
}

/* Estilos personalizados para las tarjetas */
.card {
  transition: all 0.3s ease;
  border: 1px solid var(--grey-4) !important;
}

.card-body {
  padding: 1rem;
}

/* Estilos perzonalizados para cards "redirecciones" */
.redirect-card .card {
  transition: all 0.3s ease;
  border: 1px solid var(--grey-4) !important;
  border-radius: 0 !important;
}

.redirect-card .card:hover {
  background-color: var(--primaryHover);
  color: var(--blackColor);
  border: 1px solid var(--primaryColor) !important;
}

.edited-col {
  display: flex;
  flex-direction: row;
}

@media (max-width: 767.98px) {
  .edited-col {
    display: flex;
    flex-direction: column;
  }
}

.card-title {
  margin-bottom: 0.5rem;
}

.card-text {
  margin-bottom: 0.55rem;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767.98px) {
  .card-body {
    padding: 0.75rem;
  }

  .card-title {
    font-size: 1rem !important;
  }

  .card-text {
    font-size: 0.875rem;
  }

  .card-text small {
    font-size: 0.75rem;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 575.98px) {
  .card-body {
    padding: 0.5rem;
  }

  .card-title {
    font-size: 0.9rem !important;
  }

  .card-text {
    font-size: 0.8rem;
  }

  .card-text small {
    font-size: 0.7rem;
  }
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.07), 0 5px 10px 0 rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
}

.whatsapp-icon {
  width: 30px;
  height: 36px;
  transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.1);
}

@media screen and (max-width: 767px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}