/* ============================================
   SECCIÓN DE CONTACTO Y FORMULARIO
   ============================================ */

.contact-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f4f9 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
}

/* ============================================
   CONTACT WRAPPER
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 110, 234, 0.05);
  transition: all 0.3s ease;
}

.contact-item:hover {
  box-shadow: 0 4px 16px rgba(16, 110, 234, 0.12);
  transform: translateY(-2px);
}

.contact-item i {
  font-size: 1.8rem;
  color: #106eea;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-item h4 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.contact-item a {
  color: #106eea;
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item small {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form-wrapper {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(16, 110, 234, 0.08);
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
  color: #666;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: #1a1a1a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #106eea;
  box-shadow: 0 0 0 3px rgba(16, 110, 234, 0.1);
  background: #f8fbff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Inter', sans-serif;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" 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: 20px;
  padding-right: 40px;
}

/* Error Messages */
.error-message {
  color: #ff4757;
  font-size: 0.85rem;
  display: none;
  margin-top: -0.25rem;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ff4757;
  background: #fff5f5;
}

.form-group.error .error-message {
  display: block;
}

/* Checkbox */
.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #106eea, #3b8af2);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 110, 234, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-submit.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form Status Messages */
.form-status {
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  animation: slideInUp 0.3s ease;
}

.form-status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.form-status.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ff5252;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Map */
.contact-map {
  margin-top: 3rem;
}

.contact-map h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-map iframe {
  max-width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .contact-item {
    padding: 1rem;
    gap: 1rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .contact-form {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .contact-form-wrapper {
    padding: 1.25rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px 12px;
    font-size: 16px; /* Previene zoom en iOS */
  }

  .btn-submit {
    padding: 12px 20px;
  }
}