/**
 * Jerarquía LMS - Estilos Públicos
 * Compatible con Genesis Monochrome Pro
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --jlms-primary: #374151;
    --jlms-primary-light: #4B5563;
    --jlms-primary-dark: #1F2937;
    --jlms-text: #374151;
    --jlms-text-light: #6B7280;
    --jlms-text-muted: #9CA3AF;
    --jlms-border: #E5E7EB;
    --jlms-bg: #FFFFFF;
    --jlms-bg-light: #F9FAFB;
    --jlms-radius: 0.5rem;
    --jlms-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --jlms-shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Reset - Quitar mayúsculas del tema Monochrome Pro
   ========================================================================== */

.jlms-lesson-view,
.jlms-course-view,
.jlms-courses-archive,
.jlms-dashboard,
.jlms-my-courses {
    text-transform: none !important;
}

.jlms-lesson-view *,
.jlms-course-view *,
.jlms-courses-archive *,
.jlms-dashboard *,
.jlms-my-courses * {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ==========================================================================
   Ícono del Árbol de la Vida
   ========================================================================== */

.jlms-tree-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35em;
    opacity: 0.85;
}

.jlms-meta-sefirah {
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   Botones
   ========================================================================== */

.jlms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--jlms-primary);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--jlms-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none !important;
}

.jlms-button:hover {
    background-color: var(--jlms-primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.jlms-button-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.625rem 1.25rem !important;
    background-color: #fff !important;
    color: #374151 !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.jlms-button-secondary:hover {
    background-color: #F9FAFB !important;
    border-color: #9CA3AF !important;
    color: #374151 !important;
}

/* ==========================================================================
   Vista de Lección - Layout Principal
   ========================================================================== */

.jlms-lesson-view {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    min-height: calc(100vh - 60px);
    max-width: 100%;
    margin: 0;
    padding-bottom: 70px;
}

.jlms-lesson-main {
    padding: 2rem;
    max-width: 900px;
}

.jlms-lesson-sidebar {
    background: var(--jlms-bg-light);
    border-left: 1px solid var(--jlms-border);
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    right: 0;
}

.jlms-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--jlms-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--jlms-bg);
}

.jlms-sidebar-title {
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--jlms-text-light);
    margin: 0;
    font-weight: 600;
}

.jlms-module {
    border-bottom: 1px solid var(--jlms-border);
}

.jlms-module-title {
    padding: 0.875rem 1rem;
    margin: 0;
    font-size: 0.8rem !important;
    font-weight: 700;
    background: var(--jlms-bg);
    color: var(--jlms-text);
    text-transform: none !important;
}

.jlms-lessons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jlms-lesson-item {
    border-top: 1px solid var(--jlms-border);
}

.jlms-lesson-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--jlms-text);
    transition: all 0.2s;
    font-size: 0.875rem;
}

.jlms-lesson-item a:hover {
    background: var(--jlms-bg);
}

.jlms-lesson-item.jlms-lesson-current a {
    background: var(--jlms-bg);
    border-left: 3px solid var(--jlms-primary);
    font-weight: 600;
}

.jlms-lesson-item.jlms-lesson-completed .jlms-lesson-status {
    color: var(--jlms-primary);
}

.jlms-lesson-status {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    color: var(--jlms-text-muted);
}

.jlms-lesson-item .jlms-lesson-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: normal;
}

.jlms-lesson-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--jlms-text-muted);
}

.jlms-lesson-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--jlms-text-muted);
}

.jlms-lesson-type {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--jlms-text-muted);
}

/* ==========================================================================
   Video Player
   ========================================================================== */

.jlms-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--jlms-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.jlms-video-container iframe,
.jlms-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.jlms-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--jlms-text-light);
    margin-bottom: 1rem;
}

.jlms-breadcrumb a {
    color: var(--jlms-text-light);
    text-decoration: none;
}

.jlms-breadcrumb a:hover {
    color: var(--jlms-primary);
}

/* ==========================================================================
   Navegación de lección
   ========================================================================== */

.jlms-lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--jlms-border);
    gap: 1rem;
}

.jlms-nav-prev,
.jlms-nav-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--jlms-text);
    border: 1px solid var(--jlms-border);
    border-radius: var(--jlms-radius);
    transition: all 0.2s;
    font-size: 0.875rem;
}

.jlms-nav-prev:hover,
.jlms-nav-next:hover {
    border-color: var(--jlms-primary);
    color: var(--jlms-primary);
}

.jlms-mark-complete {
    text-transform: none !important;
}

/* ==========================================================================
   Menú de Navegación Tabs (inferior izquierdo)
   ========================================================================== */

.jlms-bottom-nav {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    z-index: 9990 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.jlms-nav-tabs {
    display: inline-flex !important;
    background: #fff !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
    overflow: visible !important;
    border: 1px solid #E5E7EB !important;
}

.jlms-nav-tab {
    display: inline-block !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.8125rem !important;
    color: #6B7280 !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.jlms-nav-tab:not(:last-child) {
    border-right: 1px solid #E5E7EB !important;
}

.jlms-nav-tab:hover {
    color: #374151 !important;
    background: #F9FAFB !important;
}

.jlms-nav-tab-active {
    color: #374151 !important;
    background: #F3F4F6 !important;
    font-weight: 600 !important;
}

.jlms-nav-tab-disabled {
    color: #9CA3AF !important;
    cursor: default !important;
    opacity: 0.5 !important;
}

.jlms-nav-tab-disabled:hover {
    background: transparent !important;
    color: #9CA3AF !important;
}

/* Ocultar en modo enfoque */
body.jlms-focus-mode .jlms-bottom-nav {
    display: none !important;
}

/* ==========================================================================
   Barra de Progreso Flotante
   ========================================================================== */

.jlms-floating-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--jlms-bg-light);
    z-index: 99999;
}

.jlms-floating-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--jlms-text-muted), var(--jlms-primary));
    transition: width 0.7s ease;
}

/* ==========================================================================
   Modo Enfoque
   ========================================================================== */

body.jlms-focus-mode .site-header,
body.jlms-focus-mode .site-footer,
body.jlms-focus-mode .nav-primary,
body.jlms-focus-mode .genesis-nav-menu,
body.jlms-focus-mode header.entry-header {
    display: none !important;
}

body.jlms-focus-mode .jlms-lesson-view {
    min-height: 100vh;
    padding-bottom: 0;
}

body.jlms-focus-mode .jlms-bottom-nav {
    display: none;
}

.jlms-exit-focus {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 99999 !important;
    padding: 0.75rem 1.5rem !important;
    background: var(--jlms-primary) !important;
    border: none !important;
    border-radius: var(--jlms-radius) !important;
    box-shadow: var(--jlms-shadow-lg) !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    color: #fff !important;
}

/* ==========================================================================
   Archive de Cursos (Grid)
   ========================================================================== */

.jlms-courses-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.jlms-archive-header {
    margin-bottom: 2rem;
    text-align: center;
}

.jlms-archive-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.jlms-archive-description {
    color: var(--jlms-text-light);
}

.jlms-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.jlms-course-card {
    background: #fff;
    border: 1px solid var(--jlms-border);
    border-radius: var(--jlms-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.jlms-course-card:hover {
    box-shadow: var(--jlms-shadow-lg);
    transform: translateY(-2px);
}

.jlms-course-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.jlms-course-thumb {
    position: relative;
    height: 180px;
    background: var(--jlms-bg-light);
    overflow: hidden;
}

.jlms-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jlms-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jlms-text-muted);
    font-size: 3rem;
}

.jlms-course-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--jlms-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 0.25rem;
}

.jlms-badge-free {
    background: #059669;
}

.jlms-course-card .jlms-course-content {
    padding: 1.25rem;
}

.jlms-course-category {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--jlms-text-muted);
    margin-bottom: 0.5rem;
}

.jlms-course-card .jlms-course-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--jlms-text);
}

.jlms-course-excerpt {
    font-size: 0.875rem;
    color: var(--jlms-text-light);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.jlms-course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--jlms-text-muted);
}

.jlms-course-progress {
    margin-top: 0.75rem;
}

.jlms-mini-progress-bar {
    height: 4px;
    background: var(--jlms-bg-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.jlms-mini-progress {
    height: 100%;
    background: var(--jlms-primary);
    border-radius: 2px;
}

.jlms-progress-label {
    font-size: 0.75rem;
    color: var(--jlms-text-muted);
}

/* ==========================================================================
   Vista de Curso Individual
   ========================================================================== */

.jlms-course-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.jlms-course-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    padding: 3rem 0;
    align-items: start;
}

.jlms-course-hero-content .jlms-course-category {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.jlms-course-main-title {
    font-size: 2.25rem;
    margin: 0 0 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.jlms-course-description {
    font-size: 1.125rem;
    color: var(--jlms-text-light);
    margin-bottom: 1.5rem;
}

.jlms-course-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.jlms-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--jlms-text-light);
}

.jlms-course-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.jlms-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--jlms-radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.jlms-badge-completed {
    background: #D1FAE5;
    color: #065F46;
    border: none;
}

.jlms-progress-text {
    font-size: 0.875rem;
    color: var(--jlms-text-light);
}

.jlms-course-hero-image {
    border-radius: var(--jlms-radius);
    overflow: hidden;
}

.jlms-course-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.jlms-course-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding-bottom: 4rem;
}

.jlms-course-section {
    margin-bottom: 3rem;
}

.jlms-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--jlms-border);
}

/* Instructores */
.jlms-instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.jlms-instructor-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--jlms-bg-light);
    border-radius: var(--jlms-radius);
    border: 1px solid var(--jlms-border);
}

.jlms-instructor-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--jlms-border);
}

.jlms-instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jlms-instructor-info {
    flex: 1;
    min-width: 0;
}

.jlms-instructor-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jlms-text);
}

.jlms-instructor-title {
    display: block;
    font-size: 0.875rem;
    color: var(--jlms-primary);
    margin-bottom: 0.5rem;
}

.jlms-instructor-bio {
    margin: 0;
    font-size: 0.875rem;
    color: var(--jlms-text-light);
    line-height: 1.5;
}

.jlms-course-curriculum {
    margin-top: 1rem;
}

.jlms-curriculum-module {
    border: 1px solid var(--jlms-border);
    border-radius: var(--jlms-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.jlms-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--jlms-bg-light);
}

.jlms-module-header .jlms-module-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.jlms-module-meta {
    font-size: 0.8rem;
    color: var(--jlms-text-light);
}

.jlms-curriculum-lessons {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jlms-curriculum-lesson {
    border-top: 1px solid var(--jlms-border);
}

.jlms-curriculum-lesson a,
.jlms-curriculum-lesson .jlms-lesson-locked {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.jlms-curriculum-lesson a:hover {
    background: var(--jlms-bg-light);
}

.jlms-curriculum-lesson .jlms-lesson-status {
    width: 24px;
    margin-right: 0.75rem;
    text-align: center;
}

.jlms-curriculum-lesson.completed .jlms-lesson-status {
    color: var(--jlms-primary);
}

.jlms-curriculum-lesson.locked {
    opacity: 0.6;
}

.jlms-curriculum-lesson .jlms-lesson-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jlms-curriculum-lesson .jlms-lesson-title {
    font-size: 0.9rem;
}

.jlms-curriculum-lesson .jlms-lesson-duration {
    font-size: 0.8rem;
    color: var(--jlms-text-muted);
}

.jlms-preview-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: var(--jlms-bg-light);
    border-radius: 0.25rem;
    color: var(--jlms-text-light);
    margin-left: 0.75rem;
}

.jlms-course-progress-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--jlms-bg-light);
    border-radius: var(--jlms-radius);
}

.jlms-progress-bar-container {
    height: 8px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.jlms-progress-bar {
    height: 100%;
    background: var(--jlms-primary);
    border-radius: 4px;
}

.jlms-progress-text {
    font-size: 0.875rem;
    color: var(--jlms-text-light);
}

.jlms-course-sidebar .jlms-course-card {
    position: sticky;
    top: 2rem;
    box-shadow: none;
}

.jlms-card-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.jlms-card-price .jlms-price {
    font-size: 2rem;
    font-weight: 700;
}

.jlms-button-full {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.jlms-course-includes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jlms-course-includes li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--jlms-border);
    font-size: 0.875rem;
}

.jlms-course-includes li:first-child {
    border-top: none;
}

.jlms-course-includes li.jlms-sefirah-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    margin: 0.5rem -1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border-top: none;
    color: #5a4a78;
}

.jlms-course-includes li.jlms-sefirah-highlight .jlms-tree-icon {
    color: #764ba2;
    flex-shrink: 0;
}

.jlms-course-includes li.jlms-sefirah-highlight strong {
    display: inline;
    color: #5a4a78;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.jlms-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.jlms-dashboard-header {
    margin-bottom: 2rem;
}

.jlms-dashboard-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.jlms-dashboard-welcome {
    color: var(--jlms-text-light);
}

.jlms-continue-widget {
    margin-bottom: 2rem;
}

.jlms-continue-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--jlms-border);
    border-radius: var(--jlms-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.jlms-continue-link:hover {
    border-color: var(--jlms-primary);
    box-shadow: var(--jlms-shadow);
}

.jlms-continue-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-right: 1.5rem;
    background: var(--jlms-bg-light);
}

.jlms-continue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jlms-continue-content {
    flex: 1;
}

.jlms-continue-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--jlms-text-muted);
    margin-bottom: 0.25rem;
}

.jlms-continue-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.jlms-continue-meta {
    font-size: 0.875rem;
    color: var(--jlms-text-light);
}

.jlms-continue-arrow {
    font-size: 1.5rem;
    color: var(--jlms-text-muted);
    margin-left: 1rem;
}

/* ==========================================================================
   Widget: Próxima Sefirah a Desbloquear
   ========================================================================== */

.jlms-next-sefirah-widget {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--jlms-border);
    border-radius: var(--jlms-radius);
    margin-bottom: 2rem;
}

.jlms-widget-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--jlms-text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.jlms-next-sefirah-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.jlms-next-sefirah-icon {
    flex-shrink: 0;
    color: var(--jlms-primary);
    opacity: 0.7;
}

.jlms-next-sefirah-icon svg {
    display: block;
}

.jlms-next-sefirah-info {
    flex: 1;
}

.jlms-next-sefirah-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jlms-text);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.jlms-next-sefirah-hebrew {
    font-weight: 400;
    color: var(--jlms-text-light);
    font-size: 1rem;
}

.jlms-next-sefirah-description {
    font-size: 0.9rem;
    color: var(--jlms-text-light);
    margin: 0;
    line-height: 1.5;
}

.jlms-next-sefirah-progressbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.jlms-next-sefirah-progressbar-track {
    flex: 1;
    height: 8px;
    background: var(--jlms-bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.jlms-next-sefirah-progressbar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--jlms-primary-light), var(--jlms-primary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.jlms-next-sefirah-progress-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    min-width: 80px;
}

.jlms-next-sefirah-percent {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--jlms-primary);
    text-align: right;
}

.jlms-next-sefirah-lessons-count {
    font-size: 0.7rem;
    color: var(--jlms-text-muted);
    text-align: right;
}

.jlms-next-sefirah-courses {
    margin-bottom: 1.25rem;
}

.jlms-courses-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--jlms-text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.jlms-courses-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jlms-courses-list .jlms-course-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--jlms-border);
}

.jlms-courses-list .jlms-course-item:last-child {
    border-bottom: none;
}

.jlms-courses-list .jlms-course-status {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: var(--jlms-text-muted);
    font-size: 0.875rem;
}

.jlms-courses-list .jlms-course-item.completed .jlms-course-status {
    color: #10B981;
}

.jlms-courses-list .jlms-course-link {
    flex: 1;
    color: var(--jlms-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.jlms-courses-list .jlms-course-link:hover {
    color: var(--jlms-primary);
}

.jlms-courses-list .jlms-course-item.completed .jlms-course-link {
    color: var(--jlms-text-muted);
    text-decoration: line-through;
}

.jlms-courses-list .jlms-course-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: #EEF2FF;
    color: #4F46E5;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.jlms-next-sefirah-action {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* Widget: Todas las sefirot completadas */
.jlms-all-complete-widget {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1px solid #A7F3D0;
    border-radius: var(--jlms-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.jlms-complete-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.jlms-complete-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #065F46;
    margin: 0 0 0.5rem 0;
}

.jlms-complete-text {
    font-size: 0.9rem;
    color: #047857;
    margin: 0;
    line-height: 1.5;
}

.jlms-widget-title {
    font-size: 0.65rem;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--jlms-text-light);
    margin: 0;
    font-weight: 600;
}

/* ==========================================================================
   Árbol Sefirótico
   ========================================================================== */

.jlms-tree-widget {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--jlms-border);
    border-radius: var(--jlms-radius);
    margin-bottom: 2rem;
}

.jlms-sefirot-tree {
    max-width: 380px;
    margin: 0 auto;
}

.jlms-tree-container {
    position: relative;
    z-index: 1;
}

.jlms-tree-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
}

/* Tooltip del árbol (posicionado con JS) */
.jlms-tree-tooltip {
    position: absolute;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid var(--jlms-border);
    border-radius: 0.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    text-align: center;
    z-index: 10000;
    transform: translateX(-50%);
}

.jlms-tree-tooltip .jlms-tooltip-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jlms-text);
}

.jlms-tree-tooltip .jlms-tooltip-desc {
    display: block;
    font-size: 0.7rem;
    color: var(--jlms-text-light);
    margin-top: 0.125rem;
}

.jlms-tree-tooltip .jlms-tooltip-progress {
    font-size: 0.65rem;
    color: var(--jlms-primary);
    margin-top: 0.25rem;
    font-weight: 600;
}

.jlms-tree-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jlms-border);
    text-align: center;
}

.jlms-legend-column strong {
    display: block;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.125rem;
    color: var(--jlms-text);
    font-weight: 600;
}

.jlms-legend-column span {
    display: block;
    font-size: 0.65rem !important;
    color: var(--jlms-text-light);
    margin-bottom: 0.25rem;
    font-weight: normal;
    white-space: nowrap;
}

.jlms-legend-column small {
    display: block;
    font-size: 0.65rem !important;
    color: var(--jlms-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Notificaciones
   ========================================================================== */

.jlms-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: var(--jlms-radius);
    box-shadow: var(--jlms-shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.jlms-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.jlms-notification-icon {
    font-size: 1.5rem;
}

.jlms-notification-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.jlms-notification-content span {
    font-size: 0.875rem;
    color: var(--jlms-text-light);
}

/* Tipos de notificación */
.jlms-notification-error {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
}

.jlms-notification-error .jlms-notification-content {
    color: #B91C1C;
}

.jlms-notification-success {
    background: #F0FDF4;
    border-left: 4px solid #22C55E;
}

.jlms-notification-success .jlms-notification-content {
    color: #166534;
}

.jlms-notification-info {
    background: #EFF6FF;
    border-left: 4px solid #3B82F6;
}

.jlms-notification-info .jlms-notification-content {
    color: #1E40AF;
}

/* ==========================================================================
   Estados vacíos
   ========================================================================== */

.jlms-no-courses,
.jlms-login-required {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--jlms-bg-light);
    border-radius: var(--jlms-radius);
}

.jlms-no-courses p,
.jlms-login-required p {
    color: var(--jlms-text-light);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Reproductor de Audio/Meditación - Estilo Minimalista
   ========================================================================== */

.jlms-meditation-player {
    background: #f8f9fa;
    border-radius: var(--jlms-radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--jlms-border);
}

.jlms-meditation-title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    color: var(--jlms-text-light);
}

.jlms-meditation-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.jlms-meditation-play {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.jlms-meditation-play:focus,
.jlms-meditation-play:active,
.jlms-meditation-play:focus-visible {
    outline: none;
    background: transparent;
    box-shadow: none;
}

/* Icono Play (triángulo) */
.jlms-meditation-play::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--jlms-primary);
    transition: all 0.15s ease;
}

/* Icono Pause (dos barras) */
.jlms-meditation-play.playing::before {
    width: 6px;
    height: 20px;
    border: none;
    background: var(--jlms-primary);
    margin-left: 0;
    box-shadow: 10px 0 0 var(--jlms-primary);
}

.jlms-meditation-play:hover::before {
    border-color: transparent transparent transparent #1f2937;
}

.jlms-meditation-play.playing:hover::before {
    background: #1f2937;
    box-shadow: 10px 0 0 #1f2937;
}

.jlms-meditation-progress {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.jlms-meditation-progress-bar {
    height: 100%;
    background: var(--jlms-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.jlms-meditation-time {
    font-size: 0.8rem;
    color: var(--jlms-text-light);
    font-variant-numeric: tabular-nums;
    min-width: 85px;
    text-align: right;
}

/* Selector de Frecuencias - Estilo Texto Minimalista */
.jlms-frequency-selector {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--jlms-border);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.jlms-frequency-label {
    font-size: 0.75rem;
    color: var(--jlms-text-muted);
    margin-right: 0.75rem;
}

.jlms-frequency-selector button {
    padding: 0.35rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--jlms-text-light);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jlms-frequency-selector button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--jlms-text);
}

.jlms-frequency-selector button.active {
    background: var(--jlms-primary);
    color: #fff;
}

/* Indicador de frecuencia activa */
.jlms-frequency-indicator {
    font-size: 0.7rem;
    color: var(--jlms-text-muted);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.jlms-frequency-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jlms-primary);
    animation: pulse-freq 2s infinite;
}

@keyframes pulse-freq {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .jlms-lesson-view {
        grid-template-columns: 1fr;
    }
    
    .jlms-lesson-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;
        width: 300px;
        border-left: none;
        border-right: 1px solid var(--jlms-border);
        z-index: 9995;
        transition: left 0.3s ease;
    }
    
    .jlms-lesson-sidebar.open {
        left: 0;
    }
    
    .jlms-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9994;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .jlms-sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .jlms-course-hero,
    .jlms-course-body {
        grid-template-columns: 1fr;
    }
    
    .jlms-course-hero-image {
        order: -1;
    }
    
    .jlms-course-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .jlms-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .jlms-continue-link {
        flex-direction: column;
        text-align: center;
    }
    
    .jlms-continue-thumb {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .jlms-continue-arrow {
        display: none;
    }
    
    .jlms-tree-legend {
        grid-template-columns: 1fr;
    }
    
    .jlms-bottom-nav-item {
        padding: 0.5rem 0.75rem;
        min-width: 60px;
    }
    
    .jlms-bottom-nav-label {
        font-size: 0.6rem;
    }
}

/* ==========================================================================
   WooCommerce Mi Cuenta - Mis Cursos
   ========================================================================== */

.jlms-wc-my-courses {
    padding: 1rem 0;
}

.jlms-wc-my-courses h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--jlms-text);
}

/* Estado vacío */
.jlms-wc-no-courses {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--jlms-bg-light);
    border-radius: var(--jlms-radius);
    border: 1px dashed var(--jlms-border);
}

.jlms-wc-no-courses-icon {
    font-size: 3rem;
    color: var(--jlms-text-muted);
    margin-bottom: 1rem;
}

.jlms-wc-no-courses-icon .dashicons {
    width: 48px;
    height: 48px;
    font-size: 48px;
}

.jlms-wc-no-courses p {
    color: var(--jlms-text-light);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de cursos */
.jlms-wc-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Tarjeta de curso */
.jlms-wc-course-card {
    background: #fff;
    border: 1px solid var(--jlms-border);
    border-radius: var(--jlms-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.jlms-wc-course-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.jlms-wc-course-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.jlms-wc-course-thumb {
    position: relative;
    height: 140px;
    background: var(--jlms-bg-light);
    overflow: hidden;
}

.jlms-wc-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jlms-wc-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jlms-text-muted);
}

.jlms-wc-thumb-placeholder .dashicons {
    font-size: 2.5rem;
    width: 40px;
    height: 40px;
}

/* Badges */
.jlms-wc-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    color: #fff;
}

.jlms-wc-badge-complete {
    background: #059669;
}

.jlms-wc-badge-exclusive {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Info del curso */
.jlms-wc-course-info {
    padding: 1rem;
}

.jlms-wc-course-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--jlms-text);
    line-height: 1.3;
}

/* Barra de progreso */
.jlms-wc-course-progress {
    margin-bottom: 0.75rem;
}

.jlms-wc-progress-bar {
    height: 6px;
    background: var(--jlms-bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.jlms-wc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--jlms-primary-light), var(--jlms-primary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.jlms-wc-progress-text {
    font-size: 0.75rem;
    color: var(--jlms-text-muted);
}

/* Acción */
.jlms-wc-course-action {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--jlms-primary);
    transition: color 0.2s ease;
}

.jlms-wc-course-card:hover .jlms-wc-course-action {
    color: var(--jlms-primary-dark);
}

/* Footer */
.jlms-wc-courses-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--jlms-border);
}


/* ==========================================================================
   WooCommerce Mi Cuenta - Diseño Sidebar
   ========================================================================== */

/* Container principal */
.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 1.5rem !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 1.5rem 1rem !important;
    align-items: start !important;
}

/* Navegación Sidebar */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #E5E7EB !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: fit-content !important;
    position: sticky !important;
    top: 2rem !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

/* Contenido Principal */
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #E5E7EB !important;
    padding: 2rem !important;
    min-height: 300px !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
}

/* Lista del menú */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #E5E7EB !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none !important;
}

/* Links del menú */
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.875rem 1.25rem !important;
    text-decoration: none !important;
    color: #4B5563 !important;
    font-size: 0.9rem !important;
    border-left: 3px solid transparent !important;
    transition: all 0.15s ease !important;
    background: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: #F9FAFB !important;
    color: #111827 !important;
    border-left-color: #D1D5DB !important;
}

/* Estado activo - MÁS VISIBLE */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: #F3F4F6 !important;
    border-left-color: #374151 !important;
    color: #111827 !important;
    font-weight: 600 !important;
}

/* Iconos Dashicons monocromáticos */
.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
    font-family: 'dashicons' !important;
    font-size: 16px !important;
    width: 18px !important;
    line-height: 1 !important;
    color: inherit !important;
    opacity: 0.6 !important;
    speak: never !important;
    -webkit-font-smoothing: antialiased !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
    opacity: 0.9 !important;
}

/* Iconos específicos */
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f226" !important; }
.woocommerce-MyAccount-navigation-link--mis-cursos a::before { content: "\f118" !important; }
.woocommerce-MyAccount-navigation-link--soporte-cursos a::before { content: "\f125" !important; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f174" !important; }
.woocommerce-MyAccount-navigation-link--memberships a::before,
.woocommerce-MyAccount-navigation-link--members-area a::before { content: "\f484" !important; }
.woocommerce-MyAccount-navigation-link--subscriptions a::before { content: "\f463" !important; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f316" !important; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f230" !important; }
.woocommerce-MyAccount-navigation-link--payment-methods a::before { content: "\f482" !important; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f107" !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f497" !important; }

/* Logout separado */
.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0.5rem !important;
    border-top: 2px solid #E5E7EB !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #9CA3AF !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    color: #DC2626 !important;
    background: #FEF2F2 !important;
    border-left-color: #DC2626 !important;
}

/* Títulos de sección */
.woocommerce-account .woocommerce-MyAccount-content > h2:first-child,
.woocommerce-account .woocommerce-MyAccount-content > h3:first-child {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 0 0 1.25rem 0 !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #E5E7EB !important;
    color: #111827 !important;
}

/* Tablas */
.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.woocommerce-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.woocommerce-account table th {
    background: #F9FAFB !important;
    padding: 0.75rem !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: #6B7280 !important;
    border-bottom: 1px solid #E5E7EB !important;
}

.woocommerce-account table td {
    padding: 0.75rem !important;
    border-bottom: 1px solid #E5E7EB !important;
    vertical-align: middle !important;
    font-size: 0.9rem !important;
}

/* Botones */
.woocommerce-account .woocommerce-Button,
.woocommerce-account .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.625rem 1.25rem !important;
    background: #374151 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button:hover {
    background: #1F2937 !important;
    color: #fff !important;
}

/* Formularios */
.woocommerce-account .woocommerce-form-row {
    margin-bottom: 1rem !important;
}

.woocommerce-account .woocommerce-form-row label {
    display: block !important;
    margin-bottom: 0.375rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
}

.woocommerce-account .woocommerce-form-row input[type="text"],
.woocommerce-account .woocommerce-form-row input[type="email"],
.woocommerce-account .woocommerce-form-row input[type="password"],
.woocommerce-account .woocommerce-form-row select,
.woocommerce-account .woocommerce-form-row textarea {
    width: 100% !important;
    padding: 0.625rem 0.875rem !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    transition: border-color 0.15s ease !important;
}

.woocommerce-account .woocommerce-form-row input:focus,
.woocommerce-account .woocommerce-form-row select:focus,
.woocommerce-account .woocommerce-form-row textarea:focus {
    outline: none !important;
    border-color: #374151 !important;
}

/* Mensajes */
.woocommerce-account .woocommerce-message {
    padding: 0.875rem 1rem !important;
    background: #ECFDF5 !important;
    border-left: 3px solid #10B981 !important;
    border-radius: 6px !important;
    margin-bottom: 1rem !important;
    color: #065F46 !important;
    font-size: 0.9rem !important;
}

.woocommerce-account .woocommerce-error {
    padding: 0.875rem 1rem !important;
    background: #FEF2F2 !important;
    border-left: 3px solid #EF4444 !important;
    border-radius: 6px !important;
    margin-bottom: 1rem !important;
    color: #991B1B !important;
    font-size: 0.9rem !important;
}

/* ==========================================================================
   Pestaña Soporte
   ========================================================================== */

.jlms-wc-soporte {
    padding: 0 !important;
}

.jlms-wc-soporte-header {
    margin-bottom: 1.25rem !important;
}

.jlms-wc-soporte-header h2 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.375rem 0 !important;
    color: #111827 !important;
}

.jlms-wc-soporte-header p {
    color: #6B7280 !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
}

.jlms-wc-soporte-form {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
}

/* Notice cuando no está configurado */
.jlms-wc-soporte-notice {
    text-align: center !important;
    padding: 1.5rem !important;
    color: #6B7280 !important;
}

.jlms-wc-soporte-notice p {
    margin: 0 0 0.75rem 0 !important;
}

.jlms-wc-soporte-notice .jlms-admin-notice {
    background: #FEF3C7 !important;
    border: 1px solid #FCD34D !important;
    border-radius: 6px !important;
    padding: 0.875rem !important;
    margin-top: 0.75rem !important;
    font-size: 0.85rem !important;
    color: #92400E !important;
}

.jlms-wc-soporte-notice .jlms-admin-notice a {
    color: #92400E !important;
    font-weight: 500 !important;
}

/* Estilos para Gravity Forms dentro de Soporte */
.jlms-wc-soporte .gform_wrapper {
    margin: 0 !important;
}

.jlms-wc-soporte .gform_wrapper .gfield {
    margin-bottom: 1rem !important;
}

.jlms-wc-soporte .gform_wrapper .gfield_label {
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 0.375rem !important;
    font-size: 0.875rem !important;
}

.jlms-wc-soporte .gform_wrapper input[type="text"],
.jlms-wc-soporte .gform_wrapper input[type="email"],
.jlms-wc-soporte .gform_wrapper textarea,
.jlms-wc-soporte .gform_wrapper select {
    width: 100% !important;
    padding: 0.625rem 0.875rem !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    background: #fff !important;
}

.jlms-wc-soporte .gform_wrapper input:focus,
.jlms-wc-soporte .gform_wrapper textarea:focus,
.jlms-wc-soporte .gform_wrapper select:focus {
    outline: none !important;
    border-color: #374151 !important;
}

.jlms-wc-soporte .gform_wrapper textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.jlms-wc-soporte .gform_wrapper .gform_button {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.75rem 1.5rem !important;
    background: #374151 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.jlms-wc-soporte .gform_wrapper .gform_button:hover {
    background: #1F2937 !important;
}

.jlms-wc-soporte .gform_wrapper .gfield_required {
    color: #DC2626 !important;
}

/* ==========================================================================
   RESPONSIVE - Móvil
   ========================================================================== */

@media (max-width: 768px) {
    /* Una sola columna */
    .woocommerce-account .woocommerce {
        display: block !important;
        padding: 1rem !important;
    }
    
    /* Navegación como lista vertical compacta */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0 !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation li {
        border-bottom: 1px solid #E5E7EB !important;
        border-right: 1px solid #E5E7EB !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(2n) {
        border-right: none !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation li a {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.8rem !important;
        border-left: none !important;
        justify-content: flex-start !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation li a::before {
        font-size: 14px !important;
        width: 16px !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
        background: #F3F4F6 !important;
        border-left: none !important;
    }
    
    /* Logout ocupa toda la fila */
    .woocommerce-MyAccount-navigation-link--customer-logout {
        grid-column: 1 / -1 !important;
        margin-top: 0 !important;
        border-top: none !important;
    }
    
    /* Contenido */
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 1.25rem !important;
        min-height: auto !important;
    }
    
    /* Cursos grid */
    .jlms-wc-courses-grid {
        grid-template-columns: 1fr !important;
    }
    
    .jlms-wc-course-thumb {
        height: 150px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation li {
        border-right: none !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation li a {
        padding: 0.875rem 1rem !important;
    }
}

/* ==========================================================================
   Prerequisitos de Cursos
   ========================================================================== */

.jlms-prerequisites-block {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
}

.jlms-prereq-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.jlms-prereq-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #D97706;
}

.jlms-prerequisites-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #92400E;
    margin: 0 0 0.5rem 0;
}

.jlms-prerequisites-block > p {
    color: #B45309;
    margin: 0 0 1.5rem 0;
}

.jlms-prereq-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.jlms-prereq-item {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.jlms-prereq-item:last-child {
    margin-bottom: 0;
}

.jlms-prereq-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.jlms-prereq-title {
    font-weight: 500;
    color: #1F2937;
}

.jlms-prereq-item a:hover .jlms-prereq-title {
    color: #D97706;
}

.jlms-prereq-progress {
    font-size: 0.8rem;
    color: #6B7280;
}

.jlms-prereq-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.jlms-prereq-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #D97706);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.jlms-prerequisites-block .jlms-button {
    background: #D97706;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.2s ease;
}

.jlms-prerequisites-block .jlms-button:hover {
    background: #B45309;
}

/* ==========================================================================
   Botón de Certificado
   ========================================================================== */

.jlms-button-certificate {
    background: linear-gradient(135deg, #c9a227 0%, #a38520 100%) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.jlms-button-certificate:hover {
    background: linear-gradient(135deg, #a38520 0%, #8b7119 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.jlms-button-certificate .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
