/* ============================================================
   SECCIÓN: MATERIALES VIRTUALES — Tema Dharma
   ============================================================ */
.virtuales-section {
  padding: 0 30px;
  text-align: center;
  /* background: var(--bg); */
  color: var(--text-color);
  /* box-shadow: inset 0 0 80px rgba(123, 76, 148, 0.08); */
}

.virtuales-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
  color: var(--color-principal);
  text-shadow: 0 2px 10px rgba(123, 76, 148, 0.1);
}

/* === GRID PRINCIPAL === */
.virtuales-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* === BASE CARD === */
.virtual-card {
  width: 290px;
  height: 300px;
  /*border-radius: 18px;*/
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.virtual-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.05) saturate(1.1);
  box-shadow: 0 2px 10px var(--color-principal-hover);
}

/* === Overlays de texto === */

/* === IMÁGENES INDIVIDUALES === */
.card-charlas {
  background-image: url('../img/virtuales/virtual-1.webp');
  background-size: cover;
}

.card-cursos {
  background-image: url('../img/virtuales/virtual-2.webp');
  background-size: cover ;
  background-repeat: no-repeat;
  background-color: var(--bg);
}

.card-didactico {
  background-image: url('../img/virtuales/virtual-3.webp');
  background-size: cover;
}

/* === SELECTOR DE AÑOS === */
.years-selector {
  margin-top: 4rem;
}

.years-selector h3 {
  font-weight: 400;
  color: var(--color-principal);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.years-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.years-buttons a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-principal);
  border-radius: 10px;
  color: var(--color-principal);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  min-width: 100px;
  box-shadow: var(--shadow-soft);
}

.years-buttons a:hover {
  background: var(--color-principal-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--glow-subtle);
}


@media (max-width: 940px) {
  .virtual-card {
  width: 250px;
  height: 250px;
  }
}



/* === RESPONSIVO === */
@media (max-width: 768px) {
  .virtuales-grid {
    flex-wrap: wrap;
    align-items: center;
  }

  .virtual-card {
    width: 280px;
    height: 280px;
  }

  .years-buttons a {
    padding: 0.6rem 1rem;
  }
}


@media (max-width: 469px) {
  /* Ocultar carrusel y mostrar hero */

  .virtuales-section {
    padding: 0
  }
}