/* Cursos y Eventos Page Specific Styles */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/placeholder.svg?height=600&width=1200") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.6;
}

/* Filter Section */
.filter-section {
  background: #f8f9fa;
  padding: 40px 0;
  border-bottom: 1px solid #e9ecef;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-tab {
  background: white;
  border: 2px solid #dc143c;
  color: #dc143c;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.filter-tab:hover,
.filter-tab.active {
  background: #dc143c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.filter-categories {
  display: flex;
  justify-content: center;
}

.category-filter {
  background: white;
  border: 2px solid #dc143c;
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  min-width: 200px;
}

.category-filter:focus {
  outline: none;
  border-color: #8b0000;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

/* Enhanced search section styling */
.search-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 500px;
  width: 100%;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-container:focus-within {
  border-color: #dc143c;
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.2);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 20px;
  font-size: 1rem;
  background: transparent;
  color: #333;
}

.search-input::placeholder {
  color: #999;
  font-weight: 400;
}

.search-btn {
  background: #dc143c;
  border: none;
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: #8b0000;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: #999;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 5px;
}

.clear-search-btn:hover {
  background: #f0f0f0;
  color: #dc143c;
}

/* Cursos Section */
.cursos-section {
  padding: 80px 0;
  background: white;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #333;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #8b0000, #dc143c);
  border-radius: 2px;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: start;
}

.curso-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.curso-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.curso-thumbnail {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.curso-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.curso-card:hover .curso-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 20, 60, 0.9);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: #8b0000;
  transform: translate(-50%, -50%) scale(1.1);
}

.curso-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.curso-info {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.curso-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.3;
}

.curso-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
  flex: 1;
}

.curso-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* Enhanced pricing and button styling */
.curso-price {
  margin-bottom: 15px;
  text-align: center;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc143c;
}

.price-free {
  font-size: 1.2rem;
  font-weight: 700;
  color: #28a745;
  background: #e8f5e8;
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
}

.curso-dates {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #dc143c, #8b0000);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  margin-top: auto;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* Eventos Section */
.eventos-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: start;
}

.evento-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  gap: 25px;
  border: 1px solid #f0f0f0;
  height: 100%;
  align-items: flex-start;
}

.evento-date {
  background: linear-gradient(135deg, #8b0000, #dc143c);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 80px;
  height: fit-content;
}

.evento-date .day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.evento-date .month {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 5px;
  opacity: 0.9;
}

.evento-info {
  flex: 1;
}

.evento-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.evento-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.evento-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.evento-time,
.evento-participants {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.evento-time svg,
.evento-participants svg {
  color: #dc143c;
}

.evento-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #dc143c;
  color: #dc143c;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: #dc143c;
  color: white;
  transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .filter-tabs {
    gap: 10px;
  }

  .filter-tab {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .search-container {
    max-width: 100%;
    margin: 0 20px;
  }

  .cursos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .eventos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .evento-card {
    flex-direction: column;
    text-align: center;
  }

  .evento-date {
    align-self: center;
  }

  .evento-meta {
    justify-content: center;
  }

  .evento-actions {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .curso-info {
    padding: 20px;
  }

  .evento-card {
    padding: 20px;
  }

  .filter-tabs {
    flex-direction: column;
    align-items: center;
  }

  .search-container {
    margin: 0 10px;
  }

  .cursos-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .eventos-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hidden class for filtering */
.hidden {
  display: none !important;
}
