/* Tutor IA Banner */
.tk-tutor-ia-banner {
    display: flex;
    background: linear-gradient(135deg, #f0e7ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    align-items: center;
    max-height:350px;
}

.tk-tutor-ia-left {
    flex: 1;
    max-width: 300px;
    z-index: 2;
}

.tk-tutor-ia-left img {
    max-width: 600px;
    height: auto;
    display: block;
    position:relative;
    left:-75px;
   
}

.tk-tutor-ia-right {
    flex: 1.5;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.tk-tutor-ia-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111e35;
    margin: 0 0 16px 0;
    line-height: 1.1;
}

.tk-tutor-ia-content p {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 24px;
}

.tk-tutor-ia-right .button-secondary {
    background-color: #0051ba;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    width: fit-content;
}

.tk-tutor-ia-right .button-secondary:hover {
    background-color: #004195;
}

.tk-tutor-ia-footer {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 14px;
    font-weight: 700;
    color: #232323;
    letter-spacing: 0.05em;
    font-family:"Barlow", san-serif!important;
}

.mejor-puntuacion{width:100%;display:block;padding:8px;margin-bottom:16px;background-color: #22C55E1A;border-radius:400px;color:#16A34A;font-size:16px;}
.wrapper-puntuacion{display:flex;flex-direction:column;padding:16px;}

@media (max-width: 991px) {
    .tk-tutor-ia-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .tk-tutor-ia-right {
        padding-left: 0;
        margin-top: 20px;
    }

    .tk-tutor-ia-right .button-secondary {
        margin: 0 auto;
    }

    .tk-tutor-ia-footer {
        position: static;
        margin-top: 24px;
    }
}

/* Dashboard Courses Styles */
.tk-dashboard-courses {
    margin-bottom: 40px;
    font-family: 'Inter', 'Barlow', sans-serif;
}

.tk-dashboard-courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tk-dashboard-courses-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111e35;
    margin: 0;
}

.tk-dashboard-courses-header a {
    color: #4f8ef7;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.tk-dashboard-courses-header a:hover {
    text-decoration: underline;
}

.tk-dashboard-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

@media (max-width: 991px) {
    .tk-dashboard-courses-grid {
        grid-template-columns: 1fr;
    }
}

.tk-course-card {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.tk-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.1);
}

.tk-course-image {
    width: 160px;
    min-width: 160px;
    background-size: cover;
    background-position: center;
    border-right: 1px solid #f1f5f9;
}

@media (max-width: 500px) {
    .tk-course-card {
        flex-direction: column;
    }

    .tk-course-image {
        width: 100%;
        height: 150px;
    }
}

.tk-course-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tk-course-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111e35;
    margin: 0 0 12px 0!important;
    line-height: 1.2;
}

.tk-course-content h3 a {
    color: inherit;
    text-decoration: none;
}

.tk-course-last-lesson {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
}

.tk-course-last-lesson strong {
    color: #374151;
}

.tk-course-last-lesson a {
    color: #4f8ef7;
    text-decoration: none;
    font-weight: 500;
}

.tk-course-progress-container {
    margin-top: auto;
}

.tk-course-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tk-course-progress-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tk-course-progress-percentage {
    font-size: 14px;
    font-weight: 800;
    color: #7c3aed;
}

.tk-course-progress-bar {
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.tk-course-progress-fill {
    height: 100%;
    background: #7c3aed;
    border-radius: 5px;
    transition: width 1s ease-out;
}

/* Dashboard Bottom Grid (Favorites + Collections) */
.tk-dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .tk-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
.tk-tutor-ia-banner {max-height:fit-content;}
.dashboard-juegos{gap:16px;display:flex;}
}

.tk-dashboard-section-title {
    font-size: 28px;
    color: #111e35;
    margin: 0 0 20px 0;
}

/* Micro-lecciones Favoritas */
.tk-micro-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tk-micro-card {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.tk-micro-card:hover {
    transform: translateY(-2px);
}

.tk-micro-image {
    width: 150px;
    min-width: 150px;
    background-size: cover;
    background-position: center;
}

.tk-micro-content {
    padding: 24px;
    flex-grow: 1;
}

.tk-micro-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0051ba;
    margin: 0 0 8px 0 !important;
    padding: 0px !important;
}

.tk-micro-content h3 a {
    color: inherit;
    text-decoration: none;
}

.tk-micro-excerpt {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 !important;
}

/* Colecciones */
.tk-collections-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    padding: 8px;
}

.tk-collections-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tk-collection-item {
    padding: 8px 0px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tk-collection-item:last-child {
    border-bottom: none;
}

.tk-collection-name {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.tk-collection-count {
    font-size: 14px;
    color: #6b7280;
}

.tk-no-data-msg {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #232323;
    text-align: center;
    border: 1px solid #ccc;
}