* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #F5F6E8;
  color: #2C3E3C;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.hidden {
  display: none !important;
}

/* Logo */
.logo {
  text-align: center;
  margin: 24px 0;
}

.logo img {
  border-radius: 16px;
}

/* Títulos */
h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #2C3E3C;
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #6BD8D7;
  text-align: center;
  margin-bottom: 20px;
}

.intro {
  text-align: center;
  color: #5a6f6d;
  margin-bottom: 30px;
  font-size: 16px;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2C3E3C;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #d4d8c8;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  background: #ffffff;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: #6BD8D7;
  box-shadow: 0 0 0 3px rgba(107, 216, 215, 0.2);
}

.hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8a9a98;
}

/* Legal text */
.legal-text {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid #6BD8D7;
}

.legal-text p {
  margin-bottom: 10px;
}

.legal-text p:last-child {
  margin-bottom: 0;
}

/* Signature pad */
.signature-container {
  position: relative;
}

#signature-pad {
  border: 2px solid #d4d8c8;
  border-radius: 8px;
  width: 100%;
  height: 200px;
  touch-action: none;
  background: #ffffff;
  cursor: crosshair;
}

.btn-secondary {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #ffffff;
  border: 2px solid #d4d8c8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #5a6f6d;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #F5F6E8;
  border-color: #6BD8D7;
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Checkbox */
.checkbox-group {
  margin: 24px 0;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #6BD8D7;
}

.checkbox-group span {
  line-height: 1.5;
  font-size: 14px;
}

/* Botón principal */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: #FE7F2D;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-primary:hover {
  background: #e56d1e;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: #b8c0b0;
  cursor: not-allowed;
}

/* Confirmación */
.confirmation {
  text-align: center;
  padding: 40px 20px;
}

.confirmation h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.confirmation p {
  font-size: 18px;
  color: #5a6f6d;
  margin-bottom: 10px;
}

.confirmation .small {
  font-size: 14px;
  color: #8a9a98;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .logo {
    margin: 15px 0;
  }

  .logo img {
    width: 64px;
    height: 64px;
  }

  h1 {
    font-size: 20px;
  }

  .intro {
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    padding: 12px;
    font-size: 16px;
  }

  #signature-pad {
    height: 180px;
  }

  .btn-primary {
    padding: 14px;
    font-size: 16px;
  }
}

/* Error states */
input.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
