/* ===== SECCIÓN OPINIONES ===== */
.opiniones {
  background-color: #fff;
  overflow: hidden;
  position: relative;
}

.opiniones-carousel {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.opinion-item {
  position: relative;
  flex: 0 0 33.333%;
  cursor: pointer;
  overflow: hidden;
}


/**/
.opinion-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease, filter 0.5s ease; 
  
}

.opinion-item video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  
  transition: transform 0.5s ease, filter 0.5s ease;
}
/* ===== TEXTO CENTRADO ===== */
.opinion-item .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 2;
  transition: opacity 0.3s ease;

}

/* ===== EFECTO HOVER ===== 
.opinion-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  
}*/
.opinion-item.with-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.opinion-item:hover img {
  transform: scale(1.1); 
  filter: brightness(0.8);
}

.opinion-item:hover::after {
  opacity: 1; 
}

.opinion-item:hover .overlay-text {
  opacity: 1;
}

/* ===== CONTROLES ===== */
.opiniones-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(255 255 255 / 67%);
  color: rgb(98 98 98 / 60%);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opiniones-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.opiniones-control.prev {
  left: 15px;
}

.opiniones-control.next {
  right: 15px;
}
/* ===== whatsapp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f5f7fa;
  border-radius: 50px;
  padding: 0px 20px 0px 0px;
  text-decoration: none;
  color: #004c97;
  font-weight: bold;
  font-family: 'GothamRounded-Book', sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 9999;
}

.whatsapp-float:hover {
  background-color: #e8eef5;
  transform: translateY(-2px);
}

.whatsapp-icon {
  background-color: #25d366;
  color: white;
  font-size: 26px;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.whatsapp-text {
  line-height: 1.1;
}

.whatsapp-text span {
  font-size: 15px;
  display: block;
  text-align: left;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .opinion-item {
    flex: 0 0 100%;
  }
/**/
  .opinion-item img {
    height: 300px;
  }

  .opinion-item .overlay-text {
    font-size: 1rem;
  }
  .opinion-item video {
    height: 300px;
  }

   .whatsapp-float {
    padding: 0px 20px 0px 0px;
    bottom: 50px;
    right: 10px;
    gap: 6px;
  }

  .whatsapp-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-right: 0px;
  }

  .whatsapp-float span {
    font-size: 13px;
  }
}

/* ===== MODAL ===== */
.opinion-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
   overflow-y: auto; 
  padding: 2rem 1rem;
}

.opinion-modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 650px;
  width: 90%;
  text-align: center;
  position: relative;
   max-height: 90vh; /* altura máxima del modal */
  overflow-y: auto; 
}

.opinion-modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #004a98;
  font-weight: 700;
}

.opinion-modal-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}
