* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.header h1 {
  font-size: 3rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
  font-size: 1.2rem;
  color: #718096;
}

.search-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.search-form h2 {
  color: #4a5568;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a5568;
}

.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s ease;
}

.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.loading-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e2e8f0;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.results-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.results-header h2 {
  color: #4a5568;
  margin-bottom: 1.5rem;
  text-align: center;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.summary-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.summary-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-section {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-section h3 {
  color: #4a5568;
  margin-bottom: 1rem;
  text-align: center;
}

.chart-section canvas {
  max-height: 300px;
}

.jobs-list {
  margin-top: 2rem;
}

.jobs-list h3 {
  color: #4a5568;
  margin-bottom: 1rem;
  text-align: center;
}

.jobs-container {
  display: grid;
  gap: 1rem;
}

.job-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
}

.job-card h4 {
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.job-card .job-company {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.job-card .job-location {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.job-card .job-salary {
  color: #38a169;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.job-card .job-source {
  background: #e2e8f0;
  color: #4a5568;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
}

.error-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.error-message {
  color: #e53e3e;
}

.error-message h3 {
  margin-bottom: 1rem;
}

.retry-btn {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
}

.retry-btn:hover {
  background: #c53030;
}
/* Nueva sección para cursos de Coursera */
.coursera-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
  margin-bottom: 2rem; /* Añadido para espacio con el footer */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
}

.coursera-section h2 {
  color: #4a5568;
  margin-bottom: 1rem;
}

.coursera-section p {
  color: #718096;
  margin-bottom: 2rem;
}

.course-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.course-category {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #764ba2; /* Color distintivo para la sección de cursos */
}

.course-category h3 {
  color: #764ba2;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.courses-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-card {
  background: #f7fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-align: left;
  transition: transform 0.2s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.course-card h4 {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.course-card a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.course-card a:hover {
  text-decoration: underline;
}

.course-card p {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 0.5rem;
}

.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  margin-top: 2rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .charts-container,
  .course-categories {
    grid-template-columns: 1fr;
  }

  .chart-section canvas {
    max-height: 250px;
  }

  .results-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }

  .search-section,
  .results-section,
  .coursera-section {
    padding: 1rem;
  }

  .charts-container,
  .course-categories {
    gap: 1rem;
  }

  .chart-section,
  .course-category {
    padding: 1rem;
  }
}
