/*Body page*/

body{
     display: flex;
     flex-direction: column;            
     justify-content: center; 
     font-family: 'Poppins', sans-serif; 
     margin: 0; 
}

p{
  margin: 0;
}

h2 {
    font-size: 2em;
    font-weight: bold;
    color: #003F5C; 
    display: flex;
    justify-content: center;

}

/*header*/

.top-bar-content {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  gap: 20px;
}

.top-bar{
    background-color: #8CC63F;
}



.top-bar a {
    text-decoration: none;
    color: black;
    font-weight: 100;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.top-bar-content .logo img{
  height: 40px;
  margin-top: 10px;
}

.container{
  flex: 1;
  display: flex;
  justify-content: center;
}

input{
  padding: 5px 35px 5px 10px;
  border-radius: 20px;
  border: none;
  width: 100%;
  max-width: 400px;
}

/*Nav bar*/
.nav-bar{
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-bar ul li {
    list-style: none;
    display: inline; 
    margin: 0 20px;
}

.nav-bar ul{
    text-align: center;
}

.dropbtn {
  color:black;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #FFA500}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #FFA500;
}

/*Banner principal*/
/* Slideshow container */
.slideshow-container {
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .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 */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* The dots/bullets/indicators */
.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;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/*Contenedor mascotas*/
.card .img img {
    margin-top: 20px;
    width: 200px;
    object-fit: cover;
}

/*animación hacer grande*/
.card:hover {-webkit-transform:scale(1.3);transform:scale(1.3);}
.card {overflow:hidden;}

.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;
}

.card-product p{
  font-size: 1.3rem;
  padding-top: 20px;
  
}

.card-product h2{
  font-size: 1.5rem;
}

.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);
}

.wrapper i:first-child {
    left: -25px;
}

.wrapper i:last-child {
    right: 28px;
}

.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;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

/*boton carrusel*/
.wrapper {
    max-width: 1100px;
    width: 100%;
    padding: 0px;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width: 900px) {
   .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel {
     grid-auto-columns: 100%;
     }
 }



/*Contenedor Productos*/
.card-product .img {
    width: 150px;
    height: 200px; /* Fija la altura */
    overflow: hidden; /* Oculta el desbordamiento si la imagen es más grande */
}

.card-product .img img {
    width: 100%;
    height: 100%; /* Hace que la imagen llene completamente el contenedor */
    object-fit: cover; /* Recorta la imagen sin deformarla */
    padding-top: 20px;
}

.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;
}

.card-product:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
    transform: translateY(-6px); /* Opcional: levanta un poco la tarjeta */
}

.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%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
}

.wrapper-product i:first-child {
    left: -25px;
}

.wrapper-product i:last-child {
    right: 28px;
}

.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;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel :where(.card-product, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card-product {
    cursor: grab;
    user-select: none;
}

/*boton carrusel*/
.wrapper-product {
    max-width: 1100px;
    width: 100%;
    padding: 0px;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width: 900px) {
   .wrapper-product .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px) {
    .wrapper-product .carousel {
     grid-auto-columns: 100%;
     }
 }



/*Pasos*/

.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;
}

.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;
}

.icon img{
  width: 180px;
  padding: 30px 0px;
}

.cont-card p {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

/*Contenedor Testimonios*/

.contenedor-tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 0 210px;
  margin-bottom: 40px;
  align-items: center;   
}

.card-testimonio{
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
  border-radius: 8px;
  height: 480px;
}

.card-header {
  display: flex;
  align-items: center;
  padding: 16px;
  padding-left: 30px;
  gap: 12px;
  margin-top: 10px;
}

.perfil {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nombre {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.card-image {
  width: 80%;
  height: auto;
  padding: 30px;
  padding-top: 10px;             
  display: flex;
  justify-content: center;   
  align-items: center;     
}

.card-image img {
  width: 100%;
  height: 250px;         
  object-fit: cover;     
}

.card-text {
  padding: 16px;
  padding-top: 2%;
  font-size: 14px;
  color: #333;
}


/*Banner segundo*/

.button{
  display: flex;
  padding: 12px 40px;
  font-size: 1.8em;
  border-radius: 30px;
  background-color: #003F5C;
  color: white;
  border: none;
  font-weight: 600;
  position: absolute;
  top: 60%;             
  right: 50%;            
  transform: translate(-50%, -50%); 
  cursor: pointer;
}

.button:hover {
  background-color: #FFA500; /* color al pasar el cursor */
}

.banner-img {
  display: flex;
  justify-content: center;
  position: relative;   /* Necesario para posicionar el botón dentro */
}

/*Texto*/

h1{
  display: flex;
  justify-content: center;
  margin: 0;
  padding-top: 50px;
  padding-bottom: 50px;
  color:  #003F5C;
}

/*Footer*/
footer{
  background-color: #003F5C;
}

.contenedor-footer{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 30px 50px;
}

.cont-1 img{
  width: 30px;
  padding: 15px 5px;
}

.cont-2 img{
  width: 30px;
}

.cont-4 img{
  width: 300px;
}

.sub-titulos{
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.text-2{
  color: white;
}

.contacto {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.redog{
  color: white;
  width: max-content;       
  margin: 0 auto;           
  padding: 16px;
  font-size: 0.8em;
  text-align: center;
}

