/* Estilo futurista con efecto vidrio */
.contact-form {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,243,255,0.9) 100%);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(110, 87, 224, 0.2),
              inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient);
  opacity: 0.1;
  z-index: -1;
  transform: rotate(15deg);
  animation: gradientRotate 15s infinite linear;
}

@keyframes gradientRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--main-color);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: rgba(255,255,255,0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05),
              inset 0 0 0 1px rgba(110, 87, 224, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(110, 87, 224, 0.15),
              inset 0 0 0 2px var(--main-color);
  background-color: white;
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

/* Efecto especial para los campos */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: width 0.4s ease;
}

.form-group:focus-within::after {
  width: 100%;
}

.full-width {
  grid-column: span 2;
}

.submit-btn {
  background: var(--bg-color);
  color: var(--main-color);
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(110, 87, 224, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(110, 87, 224, 0.4);
}

.submit-btn:hover::before {
  left: 100%;
}

/* Botón de WhatsApp mejorado */
.whatsapp-float {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
  animation: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
    padding: 2rem;
    margin: 1.5rem;
    backdrop-filter: blur(5px);
  }
  
  .full-width {
    grid-column: span 1;
  }
  
  .submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .form-group label {
    font-size: 1rem;
  }
  
  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}