/* Contenedor overlay */
.overlay-content {
  position: absolute;
  top: 50%;               /* centrado vertical */
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  z-index: 10;            /* 🔑 siempre arriba del carrusel */
  color: white;
}

/* Texto */
.overlay-text {
  flex: 2;
  text-align: left;
}

.overlay-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.btn-wsp {
  display: inline-block;
  background-color: #25d366;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
}

.btn-wsp:hover {
  background-color: #1ebd5a;
}

/* Imagen (pinocho) */
.overlay-img {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* un poco a la derecha */
}

.overlay-img img {
  max-width: 300px;  /* 🔑 siempre chiquito */
  height: auto;
  animation: flotando 3s ease-in-out infinite;
}



/* Animación flotante */
@keyframes flotando {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (min-width: 992px) {
  .overlay-img img {
    margin-left: -500px;  /* lo mueve a la izquierda */
    margin-right: 150px;
    margin-top: 200px;    /* lo baja un poquito */
  }
}

/* Tablets */
@media (max-width: 992px) {
  .overlay-content {
    flex-direction: column;
    text-align: center;
  }
  .overlay-text {
    margin-bottom: 15px;
  }

  .overlay-img {
    justify-content: center;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .overlay-content {
    top: 60%;              /* 🔑 baja todo el bloque */
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .overlay-text h2 {
    font-size: 1.3rem;
  }
  .btn-wsp {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  .overlay-img img {
    max-width: 120px;  /* 🔑 más pequeño en móvil */
       margin-top: -80px;   /* 🔑 lo sube un poquito */
     margin-left: 180px;  /* 🔑 lo empuja un poco a la derecha */
  }
}
