* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.header-form {
  text-align: center;
  margin-bottom: 40px;
}

.logo-form {
  max-width: 300px;
  margin-bottom: 20px;
}

h1 {
  color: #1f2937;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  color: #6b7280;
  font-size: 16px;
}

.form-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #2B7AB8;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.required {
  color: #ef4444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: #f9fafb;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2B7AB8;
  background: white;
  box-shadow: 0 0 0 3px rgba(43, 122, 184, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Calculadora */
.calculator {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  padding: 25px;
  border-radius: 15px;
  margin-top: 20px;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.calc-result {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #2B7AB8;
}

.calc-result-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 5px;
}

.calc-result-value {
  font-size: 32px;
  font-weight: 700;
  color: #2B7AB8;
}

.calc-result-unit {
  font-size: 18px;
  color: #6b7280;
}

/* Botones */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-submit {
  background: linear-gradient(135deg, #2B7AB8, #2570a8);
  color: white;
  box-shadow: 0 4px 20px rgba(43, 122, 184, 0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(43, 122, 184, 0.5);
}

.btn-back {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-back:hover {
  background: #f9fafb;
  border-color: #2B7AB8;
  color: #2B7AB8;
}

/* Badge de reCAPTCHA - desktop */
@media(min-width:769px){
  .grecaptcha-badge {
    visibility: visible !important;
    bottom: 14px !important;
    right: -186px !important;
    opacity: 0.7;
    z-index: 9997;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 4px;
    transition: right 0.3s ease, opacity 0.3s ease;
  }
  .grecaptcha-badge:hover {
    right: 14px !important;
    opacity: 1;
  }
}

/* Modal de Confirmación */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
}

.modal-message {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-modal {
  background: linear-gradient(135deg, #2B7AB8, #2570a8);
  color: white;
  padding: 12px 40px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(43, 122, 184, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  .container {
    padding: 10px 0;
  }
  
  .header-form {
    margin-bottom: 25px;
  }
  
  .logo-form {
    max-width: 220px;
  }
  
  .form-card {
    padding: 25px 20px;
    margin-bottom: 20px;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .subtitle {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  textarea {
    font-size: 16px;
    padding: 12px;
    min-height: 48px;
  }
  
  textarea {
    min-height: 120px;
  }
  
  .calc-inputs {
    grid-template-columns: 1fr;
  }
  
  .calc-result {
    padding: 20px;
  }
  
  .calc-result-value {
    font-size: 28px;
  }
  
  .calc-result-unit {
    font-size: 16px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 25px;
    min-height: 48px;
  }
  
  .modal-content {
    padding: 30px 20px;
    width: 95%;
  }
  
  .success-icon {
    font-size: 50px;
  }
  
  .modal-title {
    font-size: 22px;
  }
  
  .modal-message {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 22px;
  }
  
  .form-card {
    padding: 20px 15px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  label {
    font-size: 13px;
  }
}

/* Utility classes (replacing inline style attributes) */
.honeypot-field {
  display: none;
}
