
label.error{
    color: #990000 !important;
}
input.error{
    border: 1px solid #990000 !important;
}
select.error{
    border: 1px solid #990000 !important;
}

/* Contenedor general */
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
  }

  /* Card futurista mejorada */
  .course-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 18px;
    background: rgba(20, 25, 40, 0.85); /* fondo más oscuro */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(140%);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
  }

  .course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  }

  /* Brillo decorativo */
  .course-card::before {
    content: "";
    position: absolute;
    left: -40%;
    top: -40%;
    width: 180%;
    height: 160%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 160, 255, 0.1), transparent 30%),
                radial-gradient(circle at 80% 80%, rgba(255, 0, 180, 0.08), transparent 40%);
    pointer-events: none;
    mix-blend-mode: screen;
  }

  /* Encabezado */
  .course-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    z-index: 2;
  }

  .course-badge {
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    color: #00eaff;
    background: rgba(0, 200, 255, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.2);
  }

  .course-title {
    font-size: 17px;
    font-weight: 700;
    color: #f0f8ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    z-index: 2;
  }

  .course-desc {
    font-size: 14px;
    color: #d0e6ff;
    line-height: 1.4;
    margin-bottom: 12px;
    z-index: 2;
  }

  /* Contenedor del video (sin línea gris) */
  .tiktok-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 175%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000; /* negro puro para eliminar la línea gris */
    margin-top: auto;
    z-index: 1;
  }

  .tiktok-wrap iframe,
  .tiktok-wrap blockquote {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
  }

  /* Footer */
  .course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    z-index: 2;
  }

  .btn-ghost {
    border: 1px solid rgba(0, 200, 255, 0.4);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    background: rgba(0, 200, 255, 0.08);
    color: #aeefff;
    cursor: pointer;
    transition: all .2s ease;
  }

  .btn-ghost:hover {
    background: rgba(0, 200, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
  }

  .small-meta {
    font-size: 12px;
    color: #88b8ff;
  }

  @media (max-width:600px){
    .tiktok-wrap { padding-bottom: 190%; }
    .course-title { font-size: 15px; }
  }