/* Estilos adicionales para cursos y casos clínicos */

.courses-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.courses-hero h2 {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.courses-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.featured-courses {
  padding: 80px 0;
  background: white;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.course-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #f0f0f0;
}

.course-card.featured {
  border: 2px solid #e67e22;
  transform: scale(1.02);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.course-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #e67e22;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.course-image {
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-content {
  padding: 30px;
}

.course-content h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.course-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.course-highlights {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.highlight {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.highlight i {
  color: #2c5aa0;
  font-size: 1.2rem;
}

.highlight span {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

.course-topics h4 {
  color: #2c5aa0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.course-topics ul {
  list-style: none;
  padding: 0;
}

.course-topics li {
  padding: 8px 0;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 20px;
}

.course-topics li:before {
  content: "✓";
  color: #e67e22;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.course-price {
  text-align: center;
  margin: 25px 0;
  padding: 20px;
  background: linear-gradient(135deg, #2c5aa0, #667eea);
  border-radius: 10px;
  color: white;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.price-note {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 5px;
}

.course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.workshops {
  padding: 80px 0;
  background: #f8f9fa;
}

.workshops-timeline {
  max-width: 800px;
  margin: 40px auto 0;
}

.workshop-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.workshop-item:hover {
  transform: translateX(10px);
}

.workshop-date {
  background: #2c5aa0;
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  min-width: 80px;
  display: flex;
  flex-direction: column;
}

.workshop-date .month {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

.workshop-date .day {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 5px;
}

.workshop-content h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.workshop-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.workshop-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.workshop-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #555;
}

.workshop-meta i {
  color: #e67e22;
}

.instructor-info {
  padding: 80px 0;
  background: white;
}

.instructor-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.instructor-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.instructor-details h2 {
  color: #2c5aa0;
  margin-bottom: 10px;
}

.instructor-details h3 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 5px;
}

.instructor-title {
  color: #e67e22;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 30px;
}

.instructor-credentials h4 {
  color: #2c5aa0;
  margin-bottom: 15px;
}

.instructor-credentials ul {
  list-style: none;
  padding: 0;
}

.instructor-credentials li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.instructor-credentials i {
  color: #e67e22;
  width: 20px;
}

.instructor-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.instructor-stats .stat {
  text-align: center;
}

.instructor-stats .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c5aa0;
  display: block;
}

.instructor-stats .label {
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
}

.testimonials {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.testimonials h2 {
  color: #2c5aa0;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial:before {
  content: '"';
  font-size: 4rem;
  color: #2c5aa0;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.testimonial-content p {
  font-style: italic;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 5px;
}

.testimonial-author span {
  color: #666;
  font-size: 0.9rem;
}

.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #2c5aa0 0%, #667eea 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #2c5aa0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design para nuevas páginas */
@media (max-width: 768px) {
  .courses-hero h1 {
    font-size: 2.5rem;
  }

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

  .instructor-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .instructor-image {
    order: -1;
  }

  .instructor-stats {
    justify-content: center;
  }

  .workshop-item {
    flex-direction: column;
    text-align: center;
  }

  .workshop-date {
    align-self: center;
  }

  .course-highlights {
    flex-direction: column;
    gap: 15px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-features {
    flex-direction: column;
    align-items: center;
  }

  .course-actions {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-buttons {
    justify-content: center;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* Estilos para Sección de Docentes */
.teachers-section .teacher-card {
  cursor: pointer;
}

.teachers-section .teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(44, 90, 160, 0.2) !important;
}

.teachers-grid {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Responsive para tarjetas de docentes */
@media (max-width: 968px) {
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .teachers-section h2 {
    font-size: 2rem !important;
  }
}

@media (max-width: 768px) {
  .teachers-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .teachers-section {
    padding: 3rem 0 !important;
  }

  .teacher-card .teacher-image {
    height: 250px !important;
  }

  .teachers-section h2 {
    font-size: 1.8rem !important;
  }

  .teachers-section .section-header p {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .teacher-card .teacher-content {
    padding: 1rem !important;
  }

  .teacher-card h3 {
    font-size: 1.2rem !important;
  }

  .teacher-card .teacher-image {
    height: 220px !important;
  }
}
