.card {

  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.753);
  display: flex;
  flex-direction: column;
}

.card-header {
  border-top: 2px solid #b03030;
  border-left: 2px solid #b03030;
  border-right: 2px solid #b03030;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-body {
  background: #9e9e9e;
  border: 2px solid #b03030;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex: 1;
}

.card-img-top {
  border-top: 2px solid #b03030;
  border-left: 2px solid #b03030;
  border-right: 2px solid #b03030;
  position: relative;
  height: auto;
  overflow: hidden;
  flex: 4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-img-top img {
  width: auto;
  height: 100%;
  object-fit: contain;
  background: none;
}

.discount-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #b03030;
  color: #FFFFFF;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 3px;
}

.card-nombre {
  text-align: center;
  color: #b03030;
  margin-bottom: 20px;
  font-weight: 700;
}

.card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-footer h6 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #555;
}

.card-footer .btn {
  width: 100%;
  margin-bottom: 5px;
}

.product-info p {
  font-size: 1.25rem;
  font-weight: 700;
  color: #808080;
  margin-bottom: 5px;
}

.product-info .highlight {
  font-size: 1.25rem;
}

.nombre {
  font-weight: bold;
}

.antes {
  font-weight: bold;
}

.descuento {
  font-weight: bold;
}

.preciofinal {
  font-weight: bolder;
  color: #b03030;
}

/* carousel */
@media (min-width: 768px) {
  .multi .grid {
    display: flex;
  }

  .multiItem {
    margin-right: 0;
    flex: 0 0 33.333333%;
    display: block;
  }
}

.multi2 {
  padding: 1em;
  display: flex;
}



.img-wrapper {
  position: relative;
  text-align: center;
}

.column {
  flex: 1;
  margin: 10px;
}

.carousel-item .p-2 {
  flex: 1 0 auto;
}

.carousel-item img {
  max-height: 50px;
  height: 50px;
  width: auto;
  margin: 0 auto;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilos para los iconos de los controles previos y siguientes del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  /* Color de fondo semi-transparente */
  border-radius: 100%;
  /* Hace que los bordes sean redondeados */
  padding: 20px;
  /* Espacio interior alrededor del icono */
  width: 40px;
  /* Ancho del icono */
  height: 40px;
  /* Altura del icono */
}

/* Cambiar el color del icono del control previo y siguiente */
.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  color: white;
  /* Color del icono */
}

/* Cambiar el tamaño del icono del control previo y siguiente */
.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  font-size: 20px;
  /* Tamaño del icono */
}

.mini-thumbnail {
  border: 2px solid transparent;
  transition: border 0.3s;
}

.mini-thumbnail:hover {
  border: 2px solid #007bff;
  /* Resalta la miniatura al pasar el mouse */
}


/* fin carousel */

/* card naipe */
.naipe {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}

.custom-card-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 16rem;
}

.custom-card-container {
  display: flex;
  transition: transform 0.5s ease;
}

.custom-card {
  flex: 0 0 auto;
  margin: 0 5px;
  text-align: center;
  height: 350px;
  /* Set a fixed height for the card */
  position: relative;
  /* Ensure positioning context for title */
}

.custom-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensure the image fits within the container */
  object-position: center;
  /* Center the image within the container */
  transition: filter 0.3s ease-in-out;
  display: block;
}

.custom-card-title {
  position: absolute;
  bottom: 10px;
  /* Position at the bottom of the card */
  left: 0;
  width: 100%;
  font-size: 26px;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  /* Background with transparency */
  padding: 5px;
  box-sizing: border-box;
  /* Ensure padding is included in the width */
}

.custom-card-title.destacado {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: #333;
  background-color: #f8f9fa;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 10%;
  width: 100%;
  /* Ajustar el ancho según sea necesario */
}


.custom-card img:hover {
  filter: none;
}

/* Adjust the width of the custom card container based on the number of cards */
.custom-card-container.one-card .custom-card {
  width: calc(100% - 10px);
}

.custom-card-container.two-cards .custom-card {
  width: calc(50% - 10px);
}

.custom-card-container.three-cards .custom-card {
  width: calc(33.33% - 10px);
}


.custom-table {
  display: flex;
  justify-content: center;
}



img,
svg {
  vertical-align: middle;
}

table {
  caption-side: bottom;
  border-collapse: collapse;
}




#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: linear-gradient(to bottom, #b03030, #1a1a1a);
  transition: background 0.4s ease-in-out, padding 0.4s ease-in-out;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

#mainNav .navbar-toggler {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

#mainNav .navbar-brand {
  color: #e51636;
  font-weight: 700;
  letter-spacing: 0.0625em;
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.0625em;
}

#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: white;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border: none;
    background-color: transparent;
    transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
  }

  #mainNav .navbar-brand {
    font-size: 1.5em;
    transition: font-size 0.3s ease-in-out;
  }

  #mainNav .navbar-brand img {
    height: 3rem;
    transition: height 0.3s ease-in-out;
  }

  #mainNav.navbar-shrink {
    background: linear-gradient(to bottom, #000, #000);
    /* Mantiene el fondo negro sin destellos */
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  #mainNav.navbar-shrink .navbar-brand {
    font-size: 1.25em;
  }

  #mainNav.navbar-shrink .navbar-brand svg,
  #mainNav.navbar-shrink .navbar-brand img {
    height: 1.5rem;
  }

  #mainNav .navbar-nav .nav-item {
    margin-right: 1rem;
  }

  #mainNav .navbar-nav .nav-item:last-child {
    margin-right: 0;
  }
}

header.masthead {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  text-align: center;
  color: #fff;
  /* background-image: url("../assets/img/camioneta_3.png"); */
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
}

.masthead-subheading {
  color: white;
  font-weight: bold;
  text-shadow:
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0px  0px 4px #000;
}



header.masthead .masthead-subheading {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5rem;
  margin-bottom: 25px;
}

header.masthead .masthead-heading {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 3.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  header.masthead {
    padding-top: 17rem;
    padding-bottom: 12.5rem;
  }

  header.masthead .masthead-subheading {
    font-size: 2.25rem;
    font-style: italic;
    line-height: 2.25rem;
    margin-bottom: 2rem;
  }

  header.masthead .masthead-heading {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 4.5rem;
    margin-bottom: 4rem;
  }
}


.portfolio-modal .modal-dialog {
  margin: 1rem;
  max-width: 100vw;
}

.portfolio-modal .modal-content {
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}


.portfolio-modal .modal-content p.item-intro {
  font-style: italic;
  margin-bottom: 2rem;
  font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.portfolio-modal .modal-content p {
  margin-bottom: 2rem;
}

.portfolio-modal .modal-content ul.list-inline {
  margin-bottom: 2rem;
}

.portfolio-modal .modal-content img {
  margin-bottom: 2rem;
}

.portfolio-modal .close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  background-color: transparent;
}

.portfolio-modal .close-modal:hover {
  opacity: 0.3;
}

.footer {
  text-align: center;
  font-size: 0.9rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}



/* botones */
.dropdown-toggle {
  background-color: #a00000;
  color: #ca0000;
}

.btn-color {
  background-color: #a00000;
  color: #ca0000;
}

.btn {
  text-decoration: none;
  position: relative;
  overflow: hidden;
  color: white;
  border-radius: 8px;
}

.btn:hover {
  color: #ffffff;
  box-shadow: 1px 1px 25px 10px rgba(255, 255, 255, 0.4);
}

.btn:before {
  content: "";
  color: #ffffff;
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgb(255, 255, 255),
      transparent);
  transition: all 650ms;
}

.btn:hover:before {
  color: #ffffff;
  left: 100%;
}

.btn:active {
  color: #ffffff;
  box-shadow: inset 1px 1px 25px 10px rgba(146, 148, 248, 0.4);
}

.nav-link {
  text-decoration: none;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-radius: 8px;
}

.nav-link:hover {
  color: white;

  box-shadow: 1px 1px 25px 10px rgba(146, 148, 248, 0.4);
}

.nav-link:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgb(255, 255, 255),
      transparent);
  transition: all 650ms;
}

.nav-link:hover:before {
  left: 100%;
}

.btn:active {
  box-shadow: inset 1px 1px 25px 10px rgba(146, 148, 248, 0.4);
}

/* Mantener el texto blanco cuando el dropdown está abierto */
.dropdown-toggle.show {
  color: white !important;
}


/* fin botones */

.divider {
  border-bottom: 2px solid #ddd;
  margin: 40px 0;
}

.divider2 {
  border-bottom: 2px solid #ddd;
  margin: 20px 0;
}


.sucursal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 10px;
  /* Espaciado entre secciones */
}

.sucursal-info span {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 5px;
  /* Espaciado entre el título y el contenido */
}

.sucursal-content {
  display: flex;
  align-items: center;
  gap: 6px;
  /* Espaciado entre el ícono y el texto */
}

.sucursal-content i {
  font-size: 1.2rem;
  /* Tamaño uniforme para los íconos */
  width: 20px;
  /* Espacio fijo para todos los íconos */
  text-align: center;
}

.sucursal-content h6 {
  margin: 0;
  line-height: 1;
}

.glassmorphism {
  background: rgba(109, 109, 109, 0.2);
  /* Fondo translúcido */
  border-radius: 15px;
  /* Bordes redondeados */
  backdrop-filter: blur(10px);
  /* Desenfoque de fondo */
  -webkit-backdrop-filter: blur(10px);
  /* Soporte para Safari */
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* Borde semi-transparente */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Sombra suave */
  padding: 20px;
  /* Espaciado interno */
}

a {
  text-decoration: none;
  /* Quita el subrayado */
  color: inherit;
  /* Hereda el color del texto del padre */
  cursor: pointer;
  /* Mantiene la manito */
}

#nosotros {
  scroll-margin-top: 100px;
  /* Ajusta según la altura del navbar */
}

#noticias {
  scroll-margin-top: 70px;
  /* Ajusta según la altura del navbar */
}

#contacto {
  scroll-margin-top: 70px;
  /* Ajusta según la altura del navbar */
}

#estamos {
  scroll-margin-top: 70px;
  /* Ajusta según la altura del navbar */
}

#sucursales {
  scroll-margin-top: 70px;
  /* Ajusta según la altura del navbar */
}

#repuestos {
  scroll-margin-top: 70px;
  /* Ajusta según la altura del navbar */
}

@media (max-width: 768px) {
  #nosotros {
    scroll-margin-top: 25rem;
    /* Ajusta según la altura del navbar */
  }

  #noticias {
    scroll-margin-top: 25rem;
    /* Ajusta según la altura del navbar */
  }

  #contacto {
    scroll-margin-top: 25rem;
    /* Ajusta según la altura del navbar */
  }

  #estamos {
    scroll-margin-top: 25rem;
    /* Ajusta según la altura del navbar */
  }

  #sucursales {
    scroll-margin-top: 25rem;
    /* Ajusta según la altura del navbar */
  }

  #repuestos {
    scroll-margin-top: 25rem;
    /* Ajusta según la altura del navbar */
  }
}


/* flechita para volver al top de la página */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #a00000;
  /* Rojo italiano */
  color: white;
  border: 2px solid black;
  /* Borde negro */
  border-radius: 50%;
  font-size: 24px;
  text-align: center;
  line-height: 45px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  opacity: 0;
  /* Inicia invisible */
  visibility: hidden;
  /* Oculta el elemento */
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.scroll-top.show {
  opacity: 1;
  /* Se vuelve visible */
  visibility: visible;
}

@media (max-width: 768px) {
  .scroll-top {
    width: 40px;
    /* Tamaño más pequeño para móviles */
    height: 40px;
    font-size: 20px;
    line-height: 36px;
    bottom: 15px;
    /* Ajuste de posición */
    right: 15px;
  }
}


/* efecto en portafolio */
.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.image {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease-in-out;
}

.info-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Efecto al pasar el cursor */
.image-container:hover .image {
  filter: brightness(50%);
}

.image-container:hover .info-icon {
  opacity: 1;
}



/* botón seleccionar imagen */
.custom-file-input {
  cursor: pointer;
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

.custom-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff;
  /* Color Bootstrap primary */
  color: white;
  border-radius: 5px;
  padding: 8px 12px;
  width: 100%;
  text-align: center;
  transition: background-color 0.3s;
}

.custom-file-label:hover {
  background-color: #0056b3;
}

.custom-file-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-file-container input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}