/* ===== SECCIÓN CONTACTO ===== */
.contacto {
  position: relative;
  background: linear-gradient(135deg, #4b0082 0%, #7c3aed 50%, #ff7f50 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

/* ===== DECORACIÓN CON GIFS ===== */
.contacto__decor {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0.15;
}

.contacto__gif {
  width: 240px;
  max-width: 25vw;
  object-fit: contain;
}

.contacto__gif--left {
  transform: translateY(20px);
  animation: floatLeft 6s ease-in-out infinite;
}
.contacto__gif--right {
  transform: translateY(10px);
  animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatLeft {
  0%, 100% { transform: translateY(20px); }
  50% { transform: translateY(0px); }
}
@keyframes floatRight {
  0%, 100% { transform: translateY(10px); }
  50% { transform: translateY(30px); }
}

/* ===== CONTENIDO PRINCIPAL ===== */
.contacto__content {
  position: relative;
  z-index: 10;
  max-width: 580px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3rem);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contacto__title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.contacto__subtitle {
  text-align: center;
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}

/* ===== FORMULARIO ===== */
.contacto__form {
  display: grid;
  gap: 1.2rem;
}

.input-group {
  position: relative;
}

.input-group .icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #ffcf7f;
  font-size: 1rem;
  opacity: 0.9;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s, background 0.3s;
}

.input-group textarea {
  border-radius: 16px;
  resize: none;
  min-height: 110px;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #ffb347;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== BOTÓN ===== */
.contacto__btn {
  margin-top: 1rem;
  background: linear-gradient(90deg, #ff7f50, #ffb347);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contacto__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 127, 80, 0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .contacto__gif { width: 150px; }
  .contacto__content { padding: 2rem 1.5rem; }
}

/* ===== CINTA ENTRE SECCIONES ===== */
.animacion-limpieza {
  position: relative;
  width: 100%;
  height: 140px;
  background: transparent; /* sin fondo extra */
  overflow: visible;
  z-index: 10; /* por encima del borde morado */
  margin-top: -30px; /* la sube para quedar justo entre secciones */
}

.animacion-limpieza__container {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  height: 100%;
  width: 100%;
}

/* ===== FIGURAS ===== */
.animacion-limpieza__gif {
  height: 130px;
  width: auto;
  transform-origin: bottom center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
  animation: moverLimpieza 4s ease-in-out infinite alternate;
}

/* Trapeadores pisando borde */
.animacion-limpieza__gif.limpieza {
  margin-bottom: -12px;
}

/* Cubetas subidas ligeramente para que apoyen bien */
.animacion-limpieza__gif.cubeta {
  margin-bottom: -4px;
  transform: translateY(-6px);
}

/* Movimiento sutil */
@keyframes moverLimpieza {
  0% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
  100% { transform: translateY(0) rotate(-2deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .animacion-limpieza {
    height: 100px;
    margin-top: -20px;
  }
  .animacion-limpieza__gif {
    height: 90px;
  }
}


/* ===== LIMPIADOR EN CUERDA (ESTABLE Y RESPONSIVO) ===== */
.contacto {
  position: relative;
  overflow: hidden; /* evita que la cuerda o sombra se salgan del fondo */
}

/* Contenedor del GIF */
.limpiador-cuerda {
  position: absolute;
  top: -10px; /* inicia justo tocando el borde superior */
  left: 8%; /* ← posición lateral, puedes ajustar entre 6%–10% */
  width: 220px; /* ancho del contenedor */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 20;
  pointer-events: none;
}

/* Imagen del limpiador */
.limpiador-cuerda__img {
  height: 320px; /* tamaño fijo y proporcionado */
  width: auto;
  opacity: 0.9;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3)) blur(0.3px);
  transform: translateY(0);
  animation: flotarCuerda 6s ease-in-out infinite;
}

/* Movimiento sutil */
@keyframes flotarCuerda {
  0% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .limpiador-cuerda {
    left: 5%;
    width: 180px;
  }

  .limpiador-cuerda__img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .limpiador-cuerda {
    left: 3%;
    width: 140px;
  }

  .limpiador-cuerda__img {
    height: 200px;
  }
}
