/* ============================ HOME / DESKTOP ============================ */
/* ======================Banner principal=========================*/
/* Slideshow container */
.home .slideshow-container {
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.home .mySlides {
  display: none;
}

/* Next & previous buttons */
.home .prev, .home .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.home .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* The dots/bullets/indicators */
.home .dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.home .active, .home .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.home .fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* ============================== Móvil =========================== */
@media (max-width: 480px) {
  .home .prev, .home .next {
    padding: 8px;
    font-size: 14px;
    margin-top: -14px;
  }

  .home .dot {
    height: 10px;
    width: 10px;
    margin: 0 2px;
  }

  .home .dots-container {
    margin-top: 8px;
  }

  .home .mySlides img {
    width: 100%;
    height: 180px;        
    object-fit: cover;    
    display: block;
  }
}

/*==========================NAV BAR SECUNDARIO=========================*/
/*Contenedor mascotas*/
.home .card .img img {
    margin-top: 20px;
    width: 200px;
    object-fit: cover;
}

/*animación hacer grande*/
.home .card:hover {-webkit-transform:scale(1.2);transform:scale(1.2);}
.home .card {overflow:hidden;}

.home .carousel .card {
    scroll-snap-align: start;
    width: 300px;
    list-style: none;
    display: flex;
    cursor: pointer;
    padding-bottom: 5px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.home .card-product p{
  font-size: 1.3rem;
  padding-top: 20px;
  
}

.home .card-product h2{
  font-size: 1.5rem;
}

.home .wrapper i {
    height: 40px;
    width: 40px;
    background: rgba(238, 238, 238, 1);
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
}

.home .wrapper i:first-child {
    left: -25px;
}

.home .wrapper i:last-child {
    right: 28px;
}

.home .wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: 0;
}

.home .carousel::-webkit-scrollbar {
    display: none;
}

.home .carousel .card,
.home .carousel .img  {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .carousel.no-transition {
    scroll-behavior: auto;
}

.home .carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.home .carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

/*boton carrusel*/
.home .wrapper {
    max-width: 1100px;
    width: 100%;
    padding: 0px;
    margin: 0 auto;
    position: relative;
}

/* ============================ MOVIL  ============================ */
@media (max-width: 480px) {
  .home .wrapper {
    padding: 0 10px;
  }

  .home .wrapper .carousel {
    grid-auto-columns: 140px;
    gap: 10px;
  }

  .home .carousel .card {
    width: 140px;
  }

  .home .card .img img {
    width: 110px;
    margin-top: 10px;
  }

  .home .card:hover {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  .home .card-product p {
    font-size: 0.95rem;
    padding-top: 10px;
  }

  .home .card-product h2 {
    font-size: 1.1rem;
  }
}


/* ======================CONTENEDOR DE PRODUCTOS=========================*/
/*Imagenes dentro de las tarjetas*/
.home .card-product .img {
    width: 150px;
    height: 200px; 
    overflow: hidden; 
}

.home .card-product .img img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    padding-top: 20px;
}

.home .carousel .card-product {
    scroll-snap-align: start;
    height: 350px;
    width: 250px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
}

.home .card-product:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
    transform: translateY(-6px); 
}

.home .wrapper-product i {
    height: 40px;
    width: 40px;
    background: rgba(238, 238, 238, 1);
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.home .wrapper-product i:first-child {
    left: -25px;
}

.home .wrapper-product i:last-child {
    right: 28px;
}

.home .wrapper-product .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 245px;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: 0;
}

.home .carousel::-webkit-scrollbar {
    display: none;
}

.home .carousel :where(.card-product, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .carousel.no-transition {
    scroll-behavior: auto;
}

.home .carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.home .carousel.dragging .card-product {
    cursor: grab;
    user-select: none;
}

/*boton carrusel*/
.home .wrapper-product {
    max-width: 1100px;
    width: 100%;
    padding: 0px;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width: 480px) {
   .home .wrapper-product .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 480px) {
    .home .wrapper-product .carousel {
     grid-auto-columns: 100%;
     }
 }

/*================================SECCIÓN PASOS PARA COMPRAR===========================*/
.home .contenedor-card{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  padding: 0px 16px 40px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.home .cont-card {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid;
  border-color: #003F5C;
  width: 300px;
}

.home .icon img{
  width: 180px;
  padding: 30px 0px;
}

.home .cont-card p {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}


/* ============================== Móvil (≤ 480px) =============================== */
@media (max-width: 480px) {
  .home .contenedor-card {
    grid-template-columns: 1fr;  
    gap: 15px;
    padding: 0px 12px 25px 12px;
  }

  .home .number img {
    width: 30px;
  }
  .home .cont-card {
    width: 50%;
    padding: 14px;
  }

  .home .icon img {
    width: 80px;
    padding: 15px 0px;
  }

  .home .cont-card p {
    font-size: 1em;
  }
}

/* ======================SECCIÓN DE TESTIMONIOS=========================*/
.home .contenedor-tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 0 100px;
  margin-bottom: 40px;
  align-items: center;   
}

.home .card-testimonio{
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
  border-radius: 8px;
  height: 500px;
  width: 300px;
}

.home .card-header {
  display: flex;
  align-items: center;
  padding: 16px;
  padding-left: 30px;
  gap: 12px;
  margin-top: 10px;
}

.home .perfil {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.home .nombre {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.home .card-image {
  width: 80%;
  height: auto;
  padding: 30px;
  padding-top: 10px;             
  display: flex;
  justify-content: center;   
  align-items: center;     
}

.home .card-image img {
  width: 100%;
  height: 250px;         
  object-fit: cover;     
}

.home .card-text {
  padding: 16px;
  padding-top: 2%;
  font-size: 14px;
  color: #333;
}

/* ========================= Móvil (≤ 480px) ============================= */
@media (max-width: 480px) {
  .home .contenedor-tarjetas {
    grid-template-columns: 1fr;   
    gap: 20px;
    padding: 0 16px;
    margin-bottom: 25px;
    width: 30%;
  }

  .home .card-testimonio {
    height: auto;
  }

  .home .card-header {
    padding: 12px;
    padding-left: 16px;
    margin-top: 6px;
  }

  .home .perfil {
    width: 35px;
    height: 35px;
  }

  .home .nombre {
    font-size: 14px;
  }

  .home .card-image {
    width: 70%;
    padding: 12px;
    padding-top: 6px;
  }

  .home .card-image img {
    height: 160px;
  }

  .home .card-text {
    padding: 12px;
    font-size: 13px;
  }
}

/*Banner segundo*/

.home .button{
  display: flex;
  font-size: 1.8em;
  font-weight: 600;
  position: absolute;
  top: 60%;             
  right: 50%;            
  transform: translate(-50%, -50%); 
  cursor: pointer;
}

.home .banner-img {
  display: flex;
  justify-content: center;
  position: relative;   
}

/* ========================= Móvil (≤ 480px) ======================== */
@media (max-width: 480px) {
  .home .banner-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .home .button {
    font-size: 1em;
    top: 50%;
    padding: 8px 14px;
  }
}


