/* ======== bannersection ======== */
#bannersection{
  display: flex;
  width: 100%;
  background-color: var(--site-color-fondo-2);
  justify-content: center;
}

.contenido_banner{
  display: flex;
  align-items: center;
  padding: 3%;
  margin-left: 6%;
}

.centered_element h1 {
  font-family: var(--site-font-title);
}

.centered_element p {
  font-family: var(--site-font-body);
}

.image-banner-1 figure {
  padding: 6% 6% 0 6%;
  margin-left: 6%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end; 
  justify-content: center;
  overflow: hidden;
}

.image-banner-1 figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.image-banner-2{
  display: none;
}

.buton-banner {
  padding: 12px 24px;
  background-color: var(--site-color-verde);
  color: white;
  font-size: 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.buton-banner:hover {
  background-color: #1f7f5c; 
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.mensaje_motivacional {
  font-size: 0.9rem;
  color: #5c5c5c;
  font-style: italic;
}

@media (max-width: 1279px) and (min-width: 700px) {

  .contenido_banner{
    padding: 1.5%;
    margin-left: 0;
  }

  .image-banner-1 figure {
    padding: 3% 3% 0 3%;
    margin-left: 3%;
  }

}

@media (max-width: 699px) {

  #bannersection{
    display: block;
  }

  .image-banner-1{
    display: none;
  }

  .image-banner-2{
    display: inline;
  }

  .image-banner-2 figure {
    width: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
  }
  
  .image-banner-2 figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: inherit;
  }

  .contenido_banner{
    padding: 4%;
    margin-left: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}
/* ======== Nuestras mascotas ======== */
.mascotas {
    text-align: center;
    padding: 2rem;
    background-color: var(--site-color-fondo-1);
  }
  
  .mascotas h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--site-color-verde);
  }
  
  
  .galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-inline: auto;
    padding: 0 1rem;
  }
  
  .mascota-card {
    width: 100%;
    height: 300px;
    perspective: 1000px;
    background-color: #c4c4c4;
    border-radius: 8px;
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.2s ease-in-out;
    transform-style: preserve-3d;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .mascota-card:hover .card-inner {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }

  .mascota-card.is-flipped .card-inner {
    transform: rotateY(180deg);
  }

  .card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  overflow: hidden;
}

.card-front {
  background-color: #c4c4c4;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-back {
  background-color: #fff;
  color: #333;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

  
  .mascota-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .mascota-card:hover {
    transform: scale(1.05); 
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.8); 
    filter: brightness(1.2);
  }
  
  .ver-mas {
    background-color: #4CAF4F;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
  }
  
  .ver-mas:hover {
    background-color: #bbb;
  }
  
  
  @media (max-width: 1024px) {
    .galeria {
      grid-template-columns: repeat(3, 1fr); 
    }
  }
  
  @media (max-width: 768px) {
    .galeria {
      grid-template-columns: repeat(2, 1fr); 
    }
  }
  
  @media (max-width: 480px) {
    .mascotas h2 {
      font-size: 1.5rem;
    }
  
    .galeria {
      grid-template-columns: 1fr; 
    }
  
    .ver-mas {
      width: 100%;
      max-width: 200px;
    }
  }

  .glow-text {
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    background-color: #CFAFD8;
    padding: 10px 20px;
    border-radius: 10px;
    text-shadow: 0 0 5px #CFAFD8, 0 0 10px #CFAFD8, 0 0 20px #CFAFD8;
    margin-bottom: 20px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
  }
  
  @keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
      opacity: 1;
    }
    20%, 22%, 24%, 55% {
      opacity: 0.7;
    }
  }
  
  .conoceme-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--site-color-fondo-2);
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
  }
  
  .mascota-card:hover .conoceme-text {
    opacity: 1;
  }
  
/* ======== como adoptar ======== */
#como-adoptar {
    display: flex;
    padding: 20px;
    /* place-items: center; */
}


.pasos h3{
    font-size: 30px;
    color: var(  --site-color-blanco-texto);
    background-color: var(--site-color-verde);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    text-align: center;
    line-height: 70px;
    display: inline-block;
    flex-shrink: 0; /* Evita que el círculo se encoja */
    
}

.pasos p{

    text-align: justify;
    padding: 30px;
   
}

#adopt{
    place-items: center;
    width: 50%;
    padding: 30px;
}

.pasos {
    display: flex;
    align-items: center; /* Alinea verticalmente el h3 y el p */

}

#tuto{
    width: 50%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video{
    width: auto;
    height: 500px;
}

#bhaz-match{
    font-size: 30px;
    width: 220px;
    height: 50px;
    background-color: var(--site-color-verde);
    color: var(--site-color-blanco-texto);
    border: 2px solid;
    border-color: var(--site-color-verde);
    border-radius: 20px;
    
    
}

#bhaz-match:hover{
    
    background-color: var(--site-color-blanco-texto);
    color: var(--site-color-verde);
    border: 2px solid;
    border-color: var(--site-color-verde);

}

@media (max-width: 1279px) {

    #como-adoptar {
        display: inline-block;
    }

    #adopt{
        width: 100%;
    }
    
    #tuto{
        width: 100%;
    }

    #video{
        width: 100%;
    }

}


/* ======== logo mascota ======== */



/* ======== adopciones extitosas ======== */



/* Contenedor general del carrusel */
.carrusel {
  padding-top: 0px;
  padding: 2rem;
  background-color: var(--site-color-fondo-1); 
  text-align: center;
  font-family: var(--site-font-body);
}

/* Título de la sección */
.titulo-adopex {
  font-family: var(--site-font-title);  
  margin-bottom: 30px;
  color: var(--site-color-verde);
}

/* Container del slider */
.slider-container {
  overflow: hidden;
  width: 100%;
}

/* Slider con todos los slides */
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Cada slide */
.slide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr; 
  justify-items: center;
  align-items: stretch; 
  flex: 0 0 100%;
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Cada tarjeta */
.card {
  background-color: #d1d5db; 
  border-radius: 3rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;  
  align-items: center;
  width: 90%;
  height: 100%;
  max-width: 700px;
  min-width: 250px;
  max-height: 400px;
  min-height: 260px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}


/* Para la tercera tarjeta, que ocupe toda la segunda fila y esté centrada */
.slide .card:nth-child(3) {
  grid-column: 1 / 3; /* Para que la tarjeta ocupe dos columnas */
  justify-self: center;
}


/* Hover en la tarjeta */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Imagen dentro de la tarjeta */
.imagen-carta {
  width: 150px;
  height: 150px;
  border-radius: 30%;
  object-fit: cover;  
}

/* Texto del testimonio */
.card p {
  font-family: var(--site-font-body);
  flex: 1;
  margin: 0; 
}

.texto-carta {
  font-family: var(--site-font-body);
  width: 100%; 
  margin: 0;
  text-align: justify;
}

/* Dots del carrusel */
.dots {
  margin-top: 1rem;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #333;
}

/* Responsividad de adopciones exitosas */

@media (max-width: 1279px) and (min-width: 700px) { 
  .carrusel {
    padding: 3rem;
  }

  .slide {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    max-width: 600px;
  }
}


@media (max-width: 699px) {
  .carrusel {
    padding: 1.5rem 1rem;
  }

  
  .slide {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slide .card:nth-child(3) {
    grid-column: auto;
  }

  .card {
    flex: 0 0 100%;
    max-width: 90%;
  }

  .imagen-carta {
    width: 120px;
    height: 120px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

}
/* ======== Aliados ======== */
.aliados {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--site-color-fondo-2);
}

.aliados h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--site-color-verde);
}

.aliados-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d9d9d9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 768px) {
  .logo-circle {
    width: 100px;
    height: 100px;
  }

  .logo-circle img {
    width: 60%;
    height: 60%;
  }
}

@media (max-width: 480px) {
  .aliados-logos {
    flex-direction: column;
    align-items: center;
  }

  .logo-circle {
    width: 90px;
    height: 90px;
  }

  .logo-circle img {
    width: 60%;
    height: 60%;
  }
}