/* Fondo floral animado */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: url("image/fondoservicios.jpeg") repeat;
  background-size: cover;
  animation: fondoAnimado 20s linear infinite;
  color: #4a4a4a;
}

/* Animación del fondo */
@keyframes fondoAnimado {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

/* Header */
.header-contacto {
  background: linear-gradient(45deg, #f78da7, #fbc2eb);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header-contacto h1 {
  margin: 0;
  font-size: 2.5rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
  animation: brillar 3s infinite alternate;
}

@keyframes brillar {
  0% { text-shadow: 0 0 10px #fff; }
  100% { text-shadow: 0 0 25px #ffd700; }
}

.header-contacto p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Contenedor formulario */
.contacto-container {
  max-width: 600px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

/* Formulario */
.form-contacto label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #d4881f;
}

.form-contacto input,
.form-contacto textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: 2px solid #fbc2eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
  border-color: #f78da7;
  outline: none;
}

/* Botón WhatsApp */
.btn-enviar {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: #fff;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  animation: vibrar 2s infinite;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes vibrar {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1deg); }
  50% { transform: rotate(-1deg); }
  75% { transform: rotate(1deg); }
}

.btn-enviar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.7);
}

/* Botón volver */
.btn-volver {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #ff85a2, #ffd3b6);
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.5);
  transition: transform 0.3s ease;
}

.btn-volver:hover {
  background: linear-gradient(45deg, #ff69b4, #ffa07a);
  transform: scale(1.05);
}

/* Popup de éxito */
.popup-exito {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-contenido {
  background: #fff5f8;
  color: #28a745;
  padding: 2rem 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: aparecer 0.4s ease-out;
}

.popup-contenido i {
  font-size: 3rem;
  color: #25D366;
}

.popup-contenido p {
  margin-top: 1rem;
  font-size: 1.2rem;
}

@keyframes aparecer {
  from {transform: scale(0.7); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Footer */
footer {
  text-align: center;
  margin-top: 3rem;
  color: #999;
  font-size: 0.9rem;
}