/* ===== ESTILOS DE FORMULARIO AVANZADOS ===== */

/* Estructura básica del formulario */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Grupos de formulario */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

/* Campos de entrada */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  background-color: #fff;
}

/* Estilos para el textarea */
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Estilos para el select */
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Estilos de enfoque */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Botón de envío */
.contact-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Mensaje de campos requeridos */
.required-fields-notice {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 14px;
  color: #666;
}

.required-fields-notice i {
  margin-right: 8px;
  color: #4a90e2;
}

/* Estilos para errores */
.form-field-wrapper.error input,
.form-field-wrapper.error select,
.form-field-wrapper.error textarea {
  border-color: #e74c3c;
  background-color: #fff8f8;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.error-message i {
  margin-right: 5px;
}

/* Estilos para advertencias */
.form-field-wrapper.warning input,
.form-field-wrapper.warning select,
.form-field-wrapper.warning textarea {
  border-color: #f39c12;
  background-color: #fffbf2;
}

/* Animación de sacudida para errores */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Estilos para reCAPTCHA */
.g-recaptcha {
  margin-bottom: 1rem;
  transform-origin: left top;
  transform: scale(1);
}

.recaptcha-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.recaptcha-error i {
  margin-right: 5px;
}

/* Mensaje de éxito */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.success-content {
  max-width: 500px;
}

.success-icon {
  font-size: 64px;
  color: #2ecc71;
  margin-bottom: 1rem;
}

.form-success h3 {
  color: #2ecc71;
  margin-bottom: 1rem;
}

.form-success p {
  margin-bottom: 1.5rem;
  color: #555;
}

.tracking-id {
  font-family: monospace;
  background-color: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* Notificaciones */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 350px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 15px 20px;
}

.notification-content i {
  font-size: 20px;
  margin-right: 15px;
}

.notification-content span {
  flex: 1;
}

.notification-content button {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 5px;
  margin-left: 10px;
}

.notification-success i {
  color: #2ecc71;
}

.notification-error i {
  color: #e74c3c;
}

.notification-info i {
  color: #3498db;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }

  .g-recaptcha {
    transform: scale(0.85);
    margin-left: -20px;
  }

  .notification {
    left: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
  }
}

/* Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.77);
    margin-left: -30px;
  }
}

/* Estilos para etiquetas flotantes */
.form-field-wrapper {
  position: relative;
}

.floating-label {
  position: absolute;
  top: 12px;
  left: 16px;
  color: #999;
  pointer-events: none;
  transition: all 0.2s ease;
  font-size: 16px;
  background-color: transparent;
}

.form-field-wrapper input:focus + .floating-label,
.form-field-wrapper select:focus + .floating-label,
.form-field-wrapper input:not(:placeholder-shown) + .floating-label,
.form-field-wrapper select:not([value=""]):not([value="null"]) + .floating-label,
.floating-label.active {
  top: -10px;
  left: 10px;
  font-size: 12px;
  color: #4a90e2;
  background-color: #fff;
  padding: 0 5px;
}

/* Estilos específicos para textarea */
.textarea-wrapper {
  position: relative;
}

.textarea-wrapper textarea {
  padding: 12px 16px;
  min-height: 120px;
}
\
</
style>
