@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600&family=Quicksand:wght@400;600&display=swap');

.temario-page {
  font-family: 'Quicksand', sans-serif;
  background: #f8f9fa;
}

/* Sección Hero */
.temario-hero {
  position: relative;
  height: 60vh;
  background: #f3f4f6;
  overflow: hidden;
}

.temario-hero .overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.temario-hero h1, .temario-hero h3 {
  z-index: 2;
}

/* Botones de categorías */
.btn-category {
  font-weight: 600;
  border-radius: 50px;
  background: var(--btn-color);
  color: #fff !important;
  padding: 10px 24px;
  transition: all 0.3s ease;
  border: none;
}

.btn-category:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

/* Tarjetas de materias */
.subject-card {
  background: var(--bg-color);
  border: none;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.subject-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.subject-card:hover::after {
  opacity: 1;
}

.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsividad */
@media (max-width: 768px) {
  .temario-hero h1 {
    font-size: 1.8rem;
  }

  .btn-category {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .subject-card h3 {
    font-size: 0.85rem;
  }
}
.btn-category.active {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
  opacity: 0.9;
}

.tema-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-category.active {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

/* Animación suave para mostrar/ocultar */
.tema-item {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0);
}

.fade-out {
  opacity: 0 !important;
  transform: translateY(10px);
}
