/**
 * Estilos para el shortcode de cursos en la home
 * Versión sin precios, más minimalista
 */

.lsi-home-container {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.lsi-home-header {
    text-align: center;
    margin-bottom: 40px;
}

.lsi-home-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.lsi-home-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Filtros */
.lsi-home-filters {
    margin-bottom: 30px;
    overflow: hidden;
}

.lsi-home-filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lsi-home-filter-scroll::-webkit-scrollbar {
    display: none;
}

.lsi-home-filter {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #657786;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.lsi-home-filter:hover {
    border-color: #522DD7;
    color: #522DD7;
}

.lsi-home-filter.active {
    background: #522DD7;
    color: white;
    border-color: #522DD7;
}

/* Grid de cursos */
.lsi-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Cards */
.lsi-home-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e1e8ed;
}

.lsi-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #522DD7;
}

.lsi-home-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badges */
.lsi-home-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.lsi-badge-new,
.lsi-badge-popular,
.lsi-badge-complete {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lsi-badge-new {
    background: #e8f5e9;
    color: #2e7d32;
}

.lsi-badge-popular {
    background: #fff3e0;
    color: #ef6c00;
}

.lsi-badge-complete {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Título del curso */
.lsi-home-course-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333 !important;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Forzar color negro para todos los elementos del título */
.lsi-home-card h3,
.lsi-home-card h3 *,
.lsi-home-course-title,
.lsi-home-course-title * {
    color: #333333 !important;
}

/* Info del curso */
.lsi-home-course-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.lsi-home-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #657786;
}

.lsi-icon {
    flex-shrink: 0;
    color: #522DD7;
}

/* Extracto */
.lsi-home-course-excerpt {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

/* Botón CTA */
.lsi-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #522DD7 0%, #6B3EE3 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.lsi-home-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(82, 45, 215, 0.3);
}

.lsi-btn-arrow {
    transition: transform 0.3s ease;
}

.lsi-home-btn:hover .lsi-btn-arrow {
    transform: translateX(4px);
}

/* Footer */
.lsi-home-footer {
    text-align: center;
    margin-top: 40px;
}

.lsi-home-btn-all {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #522DD7;
    border: 2px solid #522DD7;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lsi-home-btn-all:hover {
    background: #522DD7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 45, 215, 0.25);
}

/* Responsive - Diseño compacto para móvil */
@media (max-width: 768px) {
    .lsi-home-container {
        padding: 10px 10px;
    }

    .lsi-home-title {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .lsi-home-subtitle {
        font-size: 13px;
    }

    .lsi-home-header {
        margin-bottom: 20px;
    }

    .lsi-home-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lsi-home-card {
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .lsi-home-card.expanded {
        padding: 15px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    }

    .lsi-home-course-title {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .lsi-home-course-info {
        gap: 6px;
        margin-bottom: 10px;
    }

    .lsi-home-info-item {
        font-size: 12px;
    }

    .lsi-home-badges {
        margin-bottom: 8px;
        gap: 5px;
    }

    .lsi-badge-new,
    .lsi-badge-popular,
    .lsi-badge-complete {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Ocultar elementos en móvil */
    .desktop-only {
        display: none !important;
    }

    /* Botón más compacto */
    .lsi-home-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .lsi-home-btn .lsi-btn-arrow {
        width: 12px;
        height: 12px;
    }

    .lsi-home-filter-scroll {
        padding: 8px 10px;
    }

    .lsi-home-filter {
        padding: 6px 12px;
        font-size: 12px;
    }

}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lsi-home-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.lsi-home-card:nth-child(1) { animation-delay: 0.1s; }
.lsi-home-card:nth-child(2) { animation-delay: 0.15s; }
.lsi-home-card:nth-child(3) { animation-delay: 0.2s; }
.lsi-home-card:nth-child(4) { animation-delay: 0.25s; }
.lsi-home-card:nth-child(5) { animation-delay: 0.3s; }
.lsi-home-card:nth-child(6) { animation-delay: 0.35s; }

/* Estados ocultos para filtros */
.lsi-home-card.hidden {
    display: none;
}

/* Ocultar en desktop lo que solo es para móvil */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Contenedor móvil para duración y botón */
.lsi-home-mobile-footer {
    display: none;
}

@media (max-width: 768px) {
    .lsi-home-mobile-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 10px;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .lsi-mobile-duration {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #666;
        flex-shrink: 0;
    }

    .lsi-icon-small {
        flex-shrink: 0;
        color: #522DD7;
    }

    .lsi-home-btn-mobile {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #522DD7;
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .lsi-home-btn-mobile:hover {
        background: #6B3EE3;
    }

    .lsi-btn-arrow-small {
        flex-shrink: 0;
    }
}