/* =========================================
   ESTILOS DEL CARRUSEL / CATÁLOGO
   ========================================= */

.catalogo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

/* Botones de navegación (Flechas) */
.btn-nav {
  background-color: var(--buttons);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.btn-nav:hover {
  background-color: var(--nav-elements);
  transform: scale(1.1);
}

/* Contenedor fijo de la tarjeta para evitar saltos */
.curso-slider {
  display: flex;
  gap: 30px;
  width: 670px;
  height: 380px;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.curso-slider.fade-out {
  opacity: 0;
}

/* Tarjeta del curso */
.card-curso {
  flex: 0 0 320px;
  height: 400px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--secondary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-curso img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay (Texto que aparece al hacer Hover) */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 55, 40, 0.85); /* var(--text) con opacidad */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 30px;
  box-sizing: border-box;
}

.card-overlay h3 {
  color: var(--primary);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

/* Efectos al pasar el mouse */
.card-curso:hover img {
  transform: scale(1.1);
}

.card-curso:hover .card-overlay {
  opacity: 1;
}
