/* ============================================================
   Nombre del archivo: modulos/mis-cursos/mis-cursos.css
   Estilos para tarjetas, tabla y layout de "Mis cursos"
   Inspirado en el estilo de Opositadatos
   ============================================================ */

/* ------------------------------
   GRID DE TARJETAS
------------------------------ */
.bazan-grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ------------------------------
   TARJETA DE CURSO
------------------------------ */
.bazan-curso-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 8px solid rgb(0,127,162); /* Color solicitado */
}

/* Imagen */
.bazan-curso-imagen img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Contenido */
.bazan-curso-info {
    padding: 15px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bazan-curso-titulo {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: #222;
}

.bazan-curso-descripcion {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.bazan-curso-fecha {
    font-size: 0.85rem;
    color: #333;
    margin: 0;
}

/* Botón */
.bazan-btn-acceder {
    display: inline-block;
    text-align: center;
    padding: 10px 14px;
    background: #007fa2; /* Turquesa corporativo */
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 5px;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.bazan-btn-acceder:hover {
    background: #005f78; /* Turquesa MUCHO más oscuro → contraste perfecto */
    color: #ffffff; /* Mantener blanco para máxima legibilidad */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}


/* ------------------------------
   TABLA (modo lista)
------------------------------ */
.bazan-tabla-cursos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}

.bazan-tabla-cursos th {
    text-align: left;
    padding: 10px;
    background: rgb(0,127,162);
    color: #fff;
    font-weight: 600;
}

.bazan-tabla-cursos td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.bazan-tabla-descripcion {
    font-size: 0.85rem;
    color: #666;
}

/* ------------------------------
   TOGGLE MODO LISTA
------------------------------ */
.bazan-toggle-lista {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 600px) {
    .bazan-tabla-cursos th:nth-child(2),
    .bazan-tabla-cursos td:nth-child(2) {
        display: none; /* Oculta la fecha en móvil */
    }
}

/* ------------------------------
   BOTÓN HACER DEMO
------------------------------ */

.bazan-btn-demo {
    display: block;
    width: 100%;
    max-width: 350px; /* en escritorio queda más elegante */
    margin: 25px auto 0 auto; /* centrado siempre */
    padding: 14px 20px;
    background: #ffffff;
    color: #007fa2; /* tu color corporativo */
    border: 2px solid #007fa2;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.bazan-btn-demo:hover {
    background: #007fa2;
    color: #ffffff;
}


/*============================================================
   CHECKBOXES DEL MODAL PARA LAS DEMOS
============================================================*/
.bazan-demo-check {
    margin-right: 8px;
    transform: scale(1.2);
}

