/* Estilos para la sección de contacto */
.contact-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
  min-height: calc(100vh - 80px); /* Ajusta según la altura de tu header */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header de la sección */
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: #2D2D2D;
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contenido principal */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

/* Tarjetas de información */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 120, 212, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #0078D4;
}

.info-card h3 {
  font-size: 1.25rem;
  color: #2D2D2D;
  margin-bottom: 0.75rem;

}

.whatsapp-link:hover .whatsapp-icon {
  animation: bounce 0.5s ease;
}

.info-card p {
  color: #666;
  font-size: 1rem;
}

/* Formulario de contacto */
.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  color: #2D2D2D;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0078D4;
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: #0078D4;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-button:hover {
  background: #006cbd;
  transform: translateY(-2px);
}

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

/* Spinner para el botón */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

.submit-button.loading .spinner {
  display: block;
}


.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  font-weight: 500;
}

.whatsapp-link:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Agregar un estilo para cuando está activo (click) */
.whatsapp-link:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .whatsapp-link {
      padding: 0.875rem 1.25rem;
      justify-content: center;
  }
}

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

/* Responsive */
@media (max-width: 992px) {
  .contact-content {
      grid-template-columns: 1fr;
      gap: 2rem;
  }

  .contact-info {
      flex-direction: row;
      flex-wrap: wrap;
  }

  .info-card {
      flex: 1 1 calc(33.333% - 1rem);
      min-width: 250px;
  }
}

@media (max-width: 768px) {
  .section-title {
      font-size: 2rem;
  }

  .form-grid {
      grid-template-columns: 1fr;
  }

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

  .info-card {
      flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
      font-size: 1.75rem;
  }

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