/* PORTFOLIO */

.courses-section {
    padding: 40px 0;
}

.course-list {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se envuelvan a la siguiente línea */
    gap: 20px; /* Espacio entre las tarjetas */
    justify-content: flex-start; /* Centra las tarjetas si no llenan la fila completa */
}

.course-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra más suave */
    overflow: hidden; /* Para que la imagen no se salga del borde redondeado */
    /* --- CAMBIO CLAVE AQUÍ PARA 4 COLUMNAS --- */
    width: calc(25% - 15px); /* Ancho para 4 columnas con gap de 20px */
    min-width: 600px; /* Ajusta el ancho mínimo si las tarjetas se ven muy pequeñas */
    /* --- FIN CAMBIO CLAVE --- */
    display: flex;
    flex-direction: column; /* Para que el contenido fluya verticalmente */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 600px;
}

.course-card:hover {
    transform: translateY(-5px); /* Pequeño efecto al pasar el ratón */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
    width: 100%;
    height: 300px; /* Ligeramente más pequeña para 4 columnas, ajusta si quieres */
    overflow: hidden;
    background-color: #222; /* Fondo de placeholder si la imagen no carga */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre el área manteniendo la relación de aspecto */
    display: block;
}

.card-content {
    padding: 15px 20px;
    flex-grow: 1; /* Permite que el contenido ocupe el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Empuja el precio hacia abajo si hay espacio */
}

.card-title {
    font-size: 1.05em; /* Ligeramente más pequeña para 4 columnas */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #222;
}

.card-instructor {
    font-size: 0.8em; /* Ligeramente más pequeña */
    color: #666;
    margin-bottom: 10px;
}

.card-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-value {
    font-size: 0.85em; /* Ligeramente más pequeña */
    font-weight: 600;
    color: #e59819;
    margin-right: 5px;
}

.stars .fas {
    color: #f7b000;
    font-size: 0.75em; /* Ligeramente más pequeña */
    margin-right: 2px;
}

.rating-count {
    font-size: 0.75em; /* Ligeramente más pequeña */
    color: #888;
    margin-left: 5px;
}

.card-price {
    font-size: 1.1em; /* Ligeramente más pequeña */
    font-weight: 700;
    color: #333;
    margin-top: auto;
    margin-bottom: 0;
}

.card-badge {
    background-color: #e6f7ed;
    color: #28a745;
    font-size: 0.7em; /* Ligeramente más pequeña */
    font-weight: 600;
    padding: 3px 7px; /* Ligeramente más pequeño */
    border-radius: 4px;
    margin-top: 10px;
    display: inline-block;
}

/* Media Queries para Responsividad */
@media (max-width: 1400px) { /* Ajustamos el breakpoint para 4 columnas */
    .course-card {
        width: calc(33.333% - 13.333px); /* 3 columnas en pantallas medianas-grandes */
        
    }.course-list {
        justify-content: center; /* Centrar las tarjetas en columna */
    }
}

@media (max-width: 992px) {
    .course-card {
        width: calc(50% - 15px); /* 2 columnas en pantallas medianas */
    }.course-list {
        justify-content: center; /* Centrar las tarjetas en columna */
    }
}

@media (max-width: 768px) {
    .course-card {
        width: 100%; /* 1 columna en pantallas pequeñas */
        min-width: 100px; /* Ancho máximo para la tarjeta centrada */
    }
    .course-list {
        justify-content: center; /* Centrar las tarjetas en columna */
    }.card-image-wrapper {
      height: 250px;
    }
}

@media (max-width: 460px) {
  .card-image-wrapper {
      height: 200px;
    }
}

.video-player-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh; /* Ajusta según sea necesario */
  background-color: #f0f2f5;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.video {
  width: 100%;
  display: block;
}

.controls {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  position: absolute;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.video-container:hover .controls,
.video-container .controls:focus-within {
  opacity: 1;
}

.control-btn {
  background-color: var(--ztc-bg-main-bg-1);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background-color: var(--ztc-bg-main-bg-1);
}

.progress-bar {
  flex-grow: 1;
  height: 8px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  margin: 0 15px;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ztc-bg-main-bg-1);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.progress-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.time-display {
  color: white;
  font-size: 0.9em;
  margin-left: 5px;
}

.princing-container {
  position: relative;
}

#floating-btn {
    position: absolute; /* Posiciona el botón relativamente a su contenedor más cercano con 'position: relative' */
    top: 20px; /* Ajusta la posición vertical */
    right: -10px; /* Ajusta la posición horizontal */
    background-color: var(--ztc-bg-main-bg-1); /* Color de fondo del botón */
    color: white; /* Color del texto del botón */
    padding: 10px 20px; /* Espaciado interno del botón */
    border-radius: 5px; /* Bordes redondeados */
    text-decoration: none; /* Elimina el subrayado del enlace */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Sombra suave */
    z-index: 10; /* Asegura que esté por encima de otros elementos dentro del contenedor */
    transition: background-color 0.3s ease; /* Transición suave para el hover */
}

#floating-btn:hover {
  color: white;
}

.video-player-section-iframe{
  width: 50vw;
  height: 30vw;
  border-radius: 10px;
}

@media only screen and (max-width: 700px) {
  .video-player-section-iframe{
    width: 100vw;
    height: 100vw;
  }
}

.img-catalog {
  width: 100%;
  height: 100%;
  background-size:contain;
  background-position: center;
  background-repeat: no-repeat;
}