
/* --- Contenedor de la Tarjeta --- */
.mi-tarjeta-blog {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 400px; 
    margin: 20px auto; 
    background-color: #ffffff;
    border-radius: 20px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mi-tarjeta-blog:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* --- Imagen Superior --- */
.mi-tarjeta-imagen {
    width: 100%;
    height: 220px; 
    overflow: hidden;
}

.mi-tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* --- Contenido de Texto --- */
.mi-tarjeta-contenido {
    padding: 25px 30px 30px 30px; 
}

.mi-tarjeta-contenido h3 {
    margin: 0 0 15px 0; 
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

/* --- Descripción --- */
.mi-tarjeta-contenido p {
    margin: 0 0 20px 0; 
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    
    /* Para limitar a 3 líneas (opcional) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Enlace "Learn More" --- */
.mi-tarjeta-enlace {
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    color: #1453A6; /* Tono naranja */
    transition: color 0.2s ease;
    
    /* Clave para alinear el texto y el icono */
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Espacio entre texto e icono */
}

.mi-tarjeta-enlace:hover {
    color: #543DA8; /* Naranja más oscuro */
}

/* --- Icono Personalizado PNG --- */
.mi-tarjeta-icono {
    width: 16px;  /* Ancho de tu icono */
    height: 16px; /* Alto de tu icono */
    transition: transform 0.2s ease;
}

/* --- Efecto de brinco en el icono --- */
.mi-tarjeta-enlace:hover .mi-tarjeta-icono {
    transform: translate(3px, -3px);
}

/* estilos de tarejtas de cursos y taller pagina de venta */

/* --- Fuentes y Estilos Generales --- */
.simple-course-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fdfdfd;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 350px;
    margin: 20px auto;
    display: block;
    text-decoration: none !important; /* Forzamos a que no haya subrayado */
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- Sección de la Imagen --- */
.simple-course-card .card-image-container {
    position: relative;
}

.simple-course-card .card-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.simple-course-card .card-overlay-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Este es el color dorado/naranja de la etiqueta */
    background-color: #E8A83A; 
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.simple-course-card .card-overlay-tag .icon {
    width: 16px;
    height: 16px;
}

/* --- Sección del Contenido --- */
.simple-course-card .card-content {
    padding: 25px;
}

.simple-course-card .card-category {
    display: inline-block;
    background-color: #ffe5e9; /* Fondo rosa pálido */
    color: #e53e3e; /* Texto rojo/rosa oscuro */
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.simple-course-card .card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-decoration: none !important; /* Quitamos subrayado del título si es un enlace */
}

.simple-course-card .card-description {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 20px 0;
    /* Limita el texto a 3 líneas con puntos suspensivos */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.simple-course-card .card-ratings {
    display: flex;
    align-items: center;
    gap: 10px;
}

.simple-course-card .stars {
    display: flex;
    color: #f6ad55; /* Color de las estrellas llenas */
}

.simple-course-card .stars .icon {
    width: 20px;
    height: 20px;
}

.simple-course-card .rating-text {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

/* ESTILOS DE LAS LECCIONES */

/* --- Contenedor Principal --- */
.curriculum-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Poppins", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
}

/* --- 1. Pestañas de Navegación --- */
.curriculum-tabs {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}
.curriculum-tabs .tab-link {
    border: none; padding: 10px 18px; border-radius: 8px; font-size: 16px;
    font-weight: 600; cursor: pointer; background-color: transparent;
    color: #555; transition: all 0.2s ease;
}
.curriculum-tabs .tab-link:hover { color: #111; }
.curriculum-tabs .tab-link.active {
    background-color: #5A78DB; /* Color naranja */
    color: #fff;
}

/* --- 2. Contenido de las Pestañas --- */
.curriculum-content-wrapper {
    padding: 25px;
}

/* Oculta todos los paneles de contenido por defecto */
.tab-content-panel {
    display: none;
}
/* Muestra solo el panel que tenga la clase 'active' */
.tab-content-panel.active {
    display: block;
}

/* --- 3. Estilos del Acordeón --- */
.accordion-section {
    border-bottom: 1px solid #f0f0f0;
}
.accordion-section:last-child { border-bottom: none; }

.accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; cursor: pointer;
}
.accordion-header .header-title { font-size: 1.2rem; font-weight: 500; color: #333; }
.accordion-header .header-icon {
    font-size: 24px; font-weight: bold; color: #555;
    transition: transform 0.3s ease; /* Animación para el ícono +/- */
}
/* Gira el ícono cuando el acordeón está activo */
.accordion-header.active .header-icon {
    transform: rotate(45deg);
}

/* --- 4. Contenido del Acordeón (Lecciones) --- */
/* Oculto por defecto, se mostrará con JS */
.accordion-content {
    max-height: 0; /* Clave para la animación: altura 0 por defecto */
    overflow: hidden;
    transition: max-height 0.4s ease-out; /* Animación suave de "desglose" */
    padding: 0 0 0 10px; /* Padding izquierdo para la lista */
}

.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-item {
    display: flex; align-items: center; padding: 14px 0;
    gap: 12px; border-top: 1px solid #f7f7f7;
}
.lesson-item .lesson-number { font-size: 14px; color: #888; }
.lesson-item .lesson-icon { width: 20px; height: 20px; }
.lesson-item .lesson-icon.quiz { color: #e53e3e; }
.lesson-details { flex-grow: 1; display: flex; flex-direction: column; }
.lesson-details .lesson-title { font-size: 15px; font-weight: 500; color: #333; }
.lesson-details .lesson-tag { font-size: 12px; font-weight: 600; color: #007bff; margin-top: 4px; }
.lesson-details .lesson-subtext { font-size: 12px; color: #777; margin-top: 4px; }
.lesson-status-icon { width: 20px; height: 20px; margin-left: auto; }
.lesson-item.completed .lesson-status-icon { color: #28a745; }
.lesson-item.locked .lesson-status-icon { color: #f97316; }

/* estilos de la parte de curso individual donde se muestran el precio del curso */

/* --- Contenedor Principal de la Tarjeta --- */
.course-info-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Poppins", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    border-radius: 12px; /* Esquinas redondeadas */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Asegura que el contenido respete los bordes redondeados */
    max-width: 320px;
    margin: 20px auto;
}

/* --- Cabecera con el Precio --- */
.course-price-header {
    background-color: #2798F5; /* Color teal/verde */
    color: #fff;
    padding: 20px 25px;
    text-align: center;
}

.course-price-header .price-label {
    font-size: 20px;
    font-weight: 500;
    margin-right: 8px;
}

.course-price-header .price-amount {
    font-size: 36px;
    font-weight: 700;
}

/* --- Lista de Detalles del Curso --- */
.course-details-list {
    list-style: none;
    padding: 25px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px; /* Espacio entre cada item de la lista */
}

.course-details-list li {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el icono y el texto */
    font-size: 15px;
    color: #555;
}

.course-details-list .icon {
    width: 20px;
    height: 20px;
    color: #aaa; /* Color gris claro para los iconos */
}

/* --- Botón de Compra --- */
.course-buy-button {
    display: block; /* Ocupa todo el ancho */
    background-color: #5A78DB; /* Color naranja */
    color: #fff !important;
    padding: 16px;
    border: none;
    border-bottom-left-radius: 12px; /* Redondeado solo abajo */
    border-bottom-right-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.course-buy-button:hover {
	color: #fff !important;
    background-color: #84A0F0; /* Naranja un poco más oscuro */
}