
/**
 * NextPing Lesson Builder 2.1.2
 * ---------------------------------------------------------
 * PRINCIPIO DE SEGURIDAD:
 * Este archivo NO cambia la geometría del Focus Mode.
 * No establece width, left, right, transform, margin-left,
 * grid-template-columns ni position sobre los contenedores
 * estructurales .ld-focus-sidebar, .ld-focus-main,
 * .ld-focus-content o .ld-focus-header.
 *
 * LearnDash conserva íntegramente su distribución y lógica.
 * El plugin aporta únicamente identidad visual NextPing.
 */

:root{
    --nplb-accent:#2463eb;
    --nplb-accent-dark:#164ec7;
    --nplb-navy:#102247;
    --nplb-text:#40516d;
    --nplb-muted:#6f7f98;
    --nplb-bg:#eef4fa;
    --nplb-card:#fff;
    --nplb-soft:#f7faff;
    --nplb-border:#dce6f1;
    --nplb-radius:18px;
    --nplb-video-radius:15px;
    --nplb-button-radius:11px;
    --nplb-content-padding:32px;
    --nplb-shadow:0 14px 36px rgba(21,52,93,.10);
    --nplb-shadow-soft:0 6px 18px rgba(21,52,93,.07);
}

/* Base visual, sin modificar el layout de LearnDash */
body.nplb-active{
    background:var(--nplb-bg);
    color:var(--nplb-text);
}

body.nplb-active .learndash-wrapper{
    color:var(--nplb-text);
}

body.nplb-active .learndash-wrapper a{
    transition:color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* =========================================================
   CABECERA NATIVA DEL FOCUS MODE
   ========================================================= */

body.nplb-active .learndash-wrapper .ld-focus-header{
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--nplb-border);
    box-shadow:0 5px 20px rgba(17,43,78,.07);
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-brand-logo{
    padding:8px 14px;
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress{
    color:var(--nplb-navy);
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-heading{
    font-weight:800;
    letter-spacing:.015em;
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-bar{
    background:#e4ebf4;
    border-radius:999px;
    overflow:hidden;
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-bar-percentage{
    background:linear-gradient(90deg,var(--nplb-accent),#4b80f3);
    border-radius:999px;
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions{
    gap:8px;
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-action a{
    border-radius:var(--nplb-button-radius);
    font-weight:800;
    box-shadow:0 5px 14px rgba(36,99,235,.14);
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-action a:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(36,99,235,.20);
}

/* =========================================================
   BARRA LATERAL: SOLO ESTÉTICA INTERNA
   ========================================================= */

body.nplb-active .learndash-wrapper .ld-focus-sidebar{
    background:#f6f9fd;
    border-right:1px solid var(--nplb-border);
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading{
    background:linear-gradient(135deg,var(--nplb-accent),#285de0);
    color:#fff;
    box-shadow:0 7px 20px rgba(36,99,235,.18);
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading h3,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading a{
    color:#fff;
    font-weight:800;
    letter-spacing:-.01em;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-expand-button{
    border-color:rgba(255,255,255,.55);
    background:rgba(255,255,255,.10);
    color:#fff;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-focus-sidebar-trigger{
    background:var(--nplb-accent);
    border-color:#fff;
    box-shadow:0 4px 13px rgba(36,99,235,.28);
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation{
    background:#f6f9fd;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item{
    border-color:#e2e9f2;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-section-heading{
    color:var(--nplb-navy);
    font-weight:800;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview{
    border-radius:12px;
    transition:background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview:hover{
    background:#fff;
    box-shadow:var(--nplb-shadow-soft);
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-is-current-item > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-current > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar a[aria-current="page"]{
    background:#edf4ff;
    border-color:#bed3ff;
    box-shadow:inset 3px 0 0 var(--nplb-accent), 0 5px 15px rgba(36,99,235,.08);
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item{
    border:0;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item-preview{
    border-radius:10px;
    color:#243858;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item-preview:hover{
    background:#fff;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-is-current-item .ld-topic-title,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-current .ld-topic-title,
body.nplb-active .learndash-wrapper .ld-focus-sidebar a[aria-current="page"] .ld-topic-title{
    color:var(--nplb-accent-dark);
    font-weight:800;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-status-icon{
    box-shadow:none;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-status-complete{
    background:#16a36a;
    border-color:#16a36a;
    color:#fff;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-status-incomplete{
    background:#fff;
    border-color:#cbd7e6;
}

/* Scrollbar discreta sin mover el panel */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation::-webkit-scrollbar{
    width:7px;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation::-webkit-scrollbar-track{
    background:transparent;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation::-webkit-scrollbar-thumb{
    background:#aebbd0;
    border-radius:999px;
    border:2px solid #f6f9fd;
}

/* =========================================================
   CONTENIDO: TARJETAS Y TIPOGRAFÍA, SIN ANCHOS NI POSICIONES
   ========================================================= */

body.nplb-active .learndash-wrapper .learndash_content_wrap{
    background:var(--nplb-card);
    border:1px solid var(--nplb-border);
    border-radius:var(--nplb-radius);
    box-shadow:var(--nplb-shadow);
}

body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{
    color:var(--nplb-navy);
    letter-spacing:-.035em;
    line-height:1.08;
    font-weight:850;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap > h1::before,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title::before{
    content:"";
    display:block;
    width:46px;
    height:4px;
    margin-bottom:18px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--nplb-accent),#73a0ff);
}

body.nplb-active .learndash-wrapper .ld-breadcrumbs{
    background:#f4f8ff;
    border:1px solid #dce8f8;
    border-radius:12px;
    color:var(--nplb-text);
}

body.nplb-active .learndash-wrapper .ld-breadcrumbs a{
    color:var(--nplb-accent-dark);
    font-weight:750;
}

body.nplb-active .learndash-wrapper .ld-progress{
    color:var(--nplb-text);
}

body.nplb-active .learndash-wrapper .ld-progress .ld-progress-heading{
    font-weight:800;
    color:var(--nplb-navy);
}

body.nplb-active .learndash-wrapper .ld-progress .ld-progress-bar{
    background:#dfe7f1;
    border-radius:999px;
    overflow:hidden;
}

body.nplb-active .learndash-wrapper .ld-progress .ld-progress-bar-percentage{
    background:linear-gradient(90deg,var(--nplb-accent),#4b80f3);
    border-radius:999px;
}

body.nplb-active .learndash-wrapper .ld-status-complete{
    color:#11885a;
    font-weight:800;
}

body.nplb-active .learndash-wrapper .ld-tabs{
    border-color:var(--nplb-border);
}

body.nplb-active .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab{
    color:var(--nplb-muted);
    font-weight:750;
}

body.nplb-active .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active{
    color:var(--nplb-accent);
}

body.nplb-active .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active::after{
    background:var(--nplb-accent);
}

/* Vídeos y medios */
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe,
body.nplb-active .learndash-wrapper .learndash_content_wrap video,
body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-video,
body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed{
    border-radius:var(--nplb-video-radius);
    overflow:hidden;
    box-shadow:0 12px 30px rgba(10,30,60,.13);
}

body.nplb-active .learndash-wrapper .learndash_content_wrap img{
    border-radius:12px;
}

/* Contenido de lección/tema */
body.nplb-active .learndash-wrapper .ld-lesson-list,
body.nplb-active .learndash-wrapper .ld-table-list{
    border-color:var(--nplb-border);
    border-radius:14px;
    overflow:hidden;
}

body.nplb-active .learndash-wrapper .ld-table-list .ld-table-list-header{
    background:#f5f8fc;
    color:var(--nplb-navy);
}

body.nplb-active .learndash-wrapper .ld-table-list .ld-table-list-item{
    border-color:#e8eef5;
}

body.nplb-active .learndash-wrapper .ld-table-list .ld-table-list-item:hover{
    background:#f8fbff;
}

/* =========================================================
   BOTONES NATIVOS: SOLO APARIENCIA
   ========================================================= */

body.nplb-active .learndash-wrapper .ld-button,
body.nplb-active .learndash-wrapper .learndash_mark_complete_button,
body.nplb-active .learndash-wrapper input[type="submit"].learndash_mark_complete_button{
    border-radius:var(--nplb-button-radius);
    font-weight:800;
    letter-spacing:-.01em;
}

body.nplb-active .learndash-wrapper .ld-button:not(.ld-button-transparent),
body.nplb-active .learndash-wrapper .learndash_mark_complete_button{
    background:linear-gradient(135deg,var(--nplb-accent),var(--nplb-accent-dark));
    box-shadow:0 7px 18px rgba(36,99,235,.20);
}

body.nplb-active .learndash-wrapper .ld-button:not(.ld-button-transparent):hover,
body.nplb-active .learndash-wrapper .learndash_mark_complete_button:hover{
    background:linear-gradient(135deg,#2d6df0,#164ec7);
    box-shadow:0 10px 24px rgba(36,99,235,.27);
    transform:translateY(-1px);
}

body.nplb-active .learndash-wrapper .ld-content-actions{
    border-color:var(--nplb-border);
}

body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action a{
    border-radius:var(--nplb-button-radius);
    font-weight:800;
}

/* Opciones del panel */
body.nplb-hide-breadcrumbs .learndash-wrapper .ld-breadcrumbs{display:none!important;}
body.nplb-hide-progress .learndash-wrapper .ld-progress{display:none!important;}
body.nplb-hide-comments .ld-focus-comments,
body.nplb-hide-comments .nplb-article-comments{display:none!important;}

/* =========================================================
   COMENTARIOS EDITORIALES NEXTPING
   ========================================================= */

body.nplb-active .ld-focus-comments:has(.nplb-article-comments){
    background:transparent;
    border:0;
    box-shadow:none;
}

body.nplb-active .nplb-article-comments{
    margin-top:20px;
    padding:28px;
    background:#fff;
    border:1px solid var(--nplb-border);
    border-radius:var(--nplb-radius);
    box-shadow:var(--nplb-shadow-soft);
    color:var(--nplb-text);
}

body.nplb-active .nplb-thread-summary{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding-bottom:16px;
    border-bottom:1px solid #e8eef5;
}

body.nplb-active .nplb-thread-summary h2{
    margin:0;
    color:var(--nplb-navy);
    font-size:22px;
    line-height:1.2;
    font-weight:850;
}

body.nplb-active .nplb-thread-summary p{
    margin:5px 0 0;
    color:var(--nplb-muted);
    font-size:13px;
}

body.nplb-active .nplb-thread-list{
    margin-top:4px;
}

body.nplb-active .nplb-thread-conversation{
    padding:20px 0;
    border-bottom:1px solid #edf1f6;
}

body.nplb-active .nplb-thread-conversation:last-child{
    border-bottom:0;
}

body.nplb-active .nplb-thread-comment{
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:11px;
    align-items:start;
}

body.nplb-active .nplb-thread-avatar{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:1px solid #d7e2f0;
    border-radius:50%;
    background:#fff;
    box-shadow:0 4px 12px rgba(15,38,71,.10);
}

body.nplb-active .nplb-thread-avatar img{
    width:42px;
    height:42px;
    max-width:none;
    object-fit:cover;
    border-radius:50%;
    transform:scale(1.17);
}

body.nplb-active .nplb-thread-header{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
}

body.nplb-active .nplb-thread-author,
body.nplb-active .nplb-thread-author a{
    color:var(--nplb-navy);
    font-weight:850;
    text-decoration:none;
}

body.nplb-active .nplb-thread-author-badge{
    padding:2px 6px;
    border-radius:999px;
    background:var(--nplb-accent);
    color:#fff;
    font-size:8px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.05em;
}

body.nplb-active .nplb-thread-date{
    color:#8190a6;
    font-size:11px;
    text-decoration:none;
}

body.nplb-active .nplb-thread-text{
    margin-top:7px;
    color:var(--nplb-text);
    font-size:14.5px;
    line-height:1.65;
}

body.nplb-active .nplb-thread-text p:last-child{
    margin-bottom:0;
}

body.nplb-active .nplb-thread-actions{
    display:flex;
    gap:10px;
    margin-top:7px;
}

body.nplb-active .nplb-thread-actions a,
body.nplb-active .nplb-replies-toggle{
    color:var(--nplb-accent-dark);
    font-size:12.5px;
    font-weight:800;
    text-decoration:none;
}

body.nplb-active .nplb-replies-toggle{
    display:inline-flex;
    align-items:center;
    gap:5px;
    margin:8px 0 0 53px;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
}

body.nplb-active .nplb-replies-toggle svg{
    width:15px;
    height:15px;
    stroke:currentColor;
    transition:transform .2s ease;
}

body.nplb-active .nplb-replies-toggle[aria-expanded="true"] svg{
    transform:rotate(180deg);
}

body.nplb-active .nplb-comment-replies{
    margin:10px 0 0 52px;
    padding-left:18px;
    border-left:2px solid #dbe7fb;
}

body.nplb-active .nplb-comment-replies .nplb-thread-comment{
    grid-template-columns:34px minmax(0,1fr);
    padding:12px 0;
}

body.nplb-active .nplb-comment-replies .nplb-thread-avatar{
    width:34px;
    height:34px;
}

body.nplb-active .nplb-comment-replies .nplb-thread-avatar img{
    width:34px;
    height:34px;
    transform:scale(1.18);
}

body.nplb-active .nplb-thread-form{
    margin-top:18px;
    padding-top:20px;
    border-top:1px solid #e8eef5;
}

body.nplb-active .nplb-thread-form .comment-reply-title{
    margin:0 0 14px;
    color:var(--nplb-navy);
    font-size:20px;
    font-weight:850;
}

body.nplb-active .nplb-thread-form .logged-in-as,
body.nplb-active .nplb-thread-form .comment-notes{
    color:var(--nplb-muted);
    font-size:12px;
}

body.nplb-active .nplb-thread-form textarea,
body.nplb-active .nplb-thread-form input[type="text"],
body.nplb-active .nplb-thread-form input[type="email"],
body.nplb-active .nplb-thread-form input[type="url"]{
    width:100%;
    border:1px solid #cfdbea;
    border-radius:12px;
    background:#f9fbfe;
    color:var(--nplb-navy);
    box-shadow:inset 0 1px 2px rgba(15,38,71,.03);
}

body.nplb-active .nplb-thread-form textarea{
    min-height:112px;
    padding:14px 16px;
    resize:vertical;
}

body.nplb-active .nplb-thread-form textarea:focus,
body.nplb-active .nplb-thread-form input:focus{
    outline:0;
    border-color:#82a8ff;
    box-shadow:0 0 0 4px rgba(36,99,235,.10);
}

body.nplb-active .nplb-comment-submit{
    border:0;
    border-radius:var(--nplb-button-radius);
    padding:11px 18px;
    background:linear-gradient(135deg,var(--nplb-accent),var(--nplb-accent-dark));
    color:#fff;
    font-weight:850;
    box-shadow:0 7px 18px rgba(36,99,235,.18);
    cursor:pointer;
}

/* =========================================================
   RESPONSIVE: SOLO ESCALA VISUAL INTERNA
   ========================================================= */

@media(max-width:1024px){
    body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{
        font-size:clamp(28px,4vw,42px);
    }

    body.nplb-active .nplb-article-comments{
        padding:22px;
    }
}

@media(max-width:768px){
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions{
        gap:4px;
    }

    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-action a{
        box-shadow:none;
    }

    body.nplb-active .learndash-wrapper .learndash_content_wrap{
        border-radius:14px;
        box-shadow:0 9px 25px rgba(21,52,93,.08);
    }

    body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{
        font-size:clamp(25px,7.5vw,34px);
    }

    body.nplb-active .nplb-article-comments{
        padding:17px 14px;
        border-radius:14px;
    }

    body.nplb-active .nplb-thread-summary h2{
        font-size:19px;
    }

    body.nplb-active .nplb-thread-comment{
        grid-template-columns:36px minmax(0,1fr);
        gap:8px;
    }

    body.nplb-active .nplb-thread-avatar,
    body.nplb-active .nplb-thread-avatar img{
        width:36px;
        height:36px;
    }

    body.nplb-active .nplb-replies-toggle{
        margin-left:44px;
    }

    body.nplb-active .nplb-comment-replies{
        margin-left:10px;
        padding-left:11px;
    }
}

/* Accesibilidad */
@media(prefers-reduced-motion:reduce){
    body.nplb-active *,
    body.nplb-active *::before,
    body.nplb-active *::after{
        transition-duration:.01ms!important;
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
    }
}


/* =========================================================
   V2.1.0 PREMIUM — REFINAMIENTO SEGURO DEL FOCUS MODE
   Ninguna regla de esta sección modifica la geometría base.
   ========================================================= */

/* Sidebar editorial compacta */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading{
    padding-top:14px;
    padding-bottom:14px;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading h3{
    margin:0;
    font-size:15px;
    line-height:1.3;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation .ld-lesson-item{
    margin:0;
    padding:4px 8px;
    border-bottom:1px solid #e6edf5;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation .ld-lesson-item:last-child{
    border-bottom:0;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-section-heading{
    margin:7px 4px 3px;
    font-size:10px;
    line-height:1.25;
    letter-spacing:.09em;
    text-transform:uppercase;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview{
    min-height:0;
    margin:0;
    padding:9px 10px;
    border:1px solid transparent;
    border-radius:10px;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-title,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-title a{
    color:#263b5d;
    font-size:12.5px;
    line-height:1.38;
    font-weight:750;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list{
    margin:2px 0 5px;
    padding:0 3px 0 7px;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item-preview{
    min-height:0;
    margin:1px 0;
    padding:7px 8px;
    border:1px solid transparent;
    font-size:12px;
    line-height:1.35;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item-preview:hover{
    border-color:#e1e9f3;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-status-icon{
    flex:0 0 18px;
    width:18px;
    height:18px;
    min-width:18px;
    font-size:9px;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-expand-button{
    min-width:28px;
    min-height:28px;
    padding:5px;
    border-radius:8px;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-is-current-item > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-current > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar a[aria-current="page"]{
    background:linear-gradient(90deg,#eaf2ff,#f6f9ff);
    border-color:#bfd2fb;
    box-shadow:inset 3px 0 0 var(--nplb-accent),0 5px 14px rgba(36,99,235,.07);
}

/* Contenido y espaciado */
body.nplb-active .learndash-wrapper .learndash_content_wrap{
    padding:clamp(18px,3vw,var(--nplb-content-padding));
}

body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{
    margin-top:4px;
    margin-bottom:14px;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap > h1::before,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title::before{
    width:40px;
    height:3px;
    margin-bottom:14px;
}

body.nplb-active .learndash-wrapper .ld-breadcrumbs{
    margin:0 0 14px;
    padding:8px 11px;
    min-height:0;
    font-size:11.5px;
    line-height:1.35;
    box-shadow:none;
}

body.nplb-active .learndash-wrapper .ld-breadcrumbs .ld-status{
    padding:4px 8px;
    border-radius:999px;
    font-size:9px;
    letter-spacing:.04em;
}

body.nplb-active .learndash-wrapper .ld-progress{
    margin-top:10px;
    margin-bottom:16px;
}

body.nplb-active .learndash-wrapper .ld-progress .ld-progress-heading{
    margin-bottom:7px;
    font-size:11.5px;
}

body.nplb-active .learndash-wrapper .ld-progress .ld-progress-bar{
    height:7px;
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress{
    margin:0;
}

body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress .ld-progress-bar{
    height:6px;
}

body.nplb-active .learndash-wrapper .ld-tabs-content,
body.nplb-active .learndash-wrapper .ld-tab-content{
    color:var(--nplb-text);
    line-height:1.72;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap p{
    margin-top:0;
    margin-bottom:1.05em;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap h2,
body.nplb-active .learndash-wrapper .learndash_content_wrap h3,
body.nplb-active .learndash-wrapper .learndash_content_wrap h4{
    color:var(--nplb-navy);
    letter-spacing:-.02em;
}

/* Vídeos premium sin imponer dimensiones */
body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed__wrapper,
body.nplb-active .learndash-wrapper .learndash_content_wrap .mejs-container,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-video{
    overflow:hidden;
    border:1px solid rgba(15,43,82,.10);
    border-radius:var(--nplb-video-radius);
    background:#07172f;
    box-shadow:0 16px 38px rgba(10,30,60,.15);
}

body.nplb-active .learndash-wrapper .learndash_content_wrap iframe,
body.nplb-active .learndash-wrapper .learndash_content_wrap video{
    display:block;
    max-width:100%;
}

/* Botones y navegación */
body.nplb-active .learndash-wrapper .ld-content-actions{
    gap:10px;
    margin-top:22px;
    padding-top:18px;
}

body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action a,
body.nplb-active .learndash-wrapper .ld-content-actions .learndash_mark_complete_button{
    min-height:42px;
    padding-top:10px;
    padding-bottom:10px;
}

body.nplb-active .learndash-wrapper .ld-button.ld-button-transparent{
    color:var(--nplb-accent-dark);
    border:1px solid #cbdafa;
    background:#f6f9ff;
}

body.nplb-active .learndash-wrapper .ld-button.ld-button-transparent:hover{
    color:var(--nplb-accent-dark);
    border-color:#a9c2f6;
    background:#edf4ff;
}

body.nplb-hide-top-navigation .learndash-wrapper .ld-focus-header .ld-content-actions{
    display:none!important;
}

/* Bloques didácticos: shortcodes */
body.nplb-active .nplb-learning-box{
    --nplb-box-accent:#2463eb;
    --nplb-box-soft:#eef4ff;
    display:flex;
    align-items:flex-start;
    gap:13px;
    margin:22px 0;
    padding:17px 18px;
    border:1px solid color-mix(in srgb,var(--nplb-box-accent) 28%,#fff);
    border-left:4px solid var(--nplb-box-accent);
    border-radius:14px;
    background:linear-gradient(135deg,var(--nplb-box-soft),#fff 72%);
    box-shadow:0 7px 20px rgba(21,52,93,.06);
}

body.nplb-active .nplb-learning-box--recuerda{--nplb-box-accent:#7c3aed;--nplb-box-soft:#f4efff;}
body.nplb-active .nplb-learning-box--ejemplo{--nplb-box-accent:#0f8c67;--nplb-box-soft:#ecfbf6;}
body.nplb-active .nplb-learning-box--laboratorio{--nplb-box-accent:#d97706;--nplb-box-soft:#fff7e8;}

body.nplb-active .nplb-learning-box__icon{
    display:grid;
    place-items:center;
    flex:0 0 34px;
    width:34px;
    height:34px;
    border-radius:10px;
    background:var(--nplb-box-accent);
    color:#fff;
    font-size:15px;
    font-weight:900;
    box-shadow:0 5px 13px color-mix(in srgb,var(--nplb-box-accent) 24%,transparent);
}

body.nplb-active .nplb-learning-box__content{min-width:0;}
body.nplb-active .nplb-learning-box__title{
    display:block;
    margin:0 0 4px;
    color:var(--nplb-box-accent);
    font-size:14px;
    line-height:1.3;
    font-weight:850;
}
body.nplb-active .nplb-learning-box__body{color:#344761;line-height:1.62;}
body.nplb-active .nplb-learning-box__body > :last-child{margin-bottom:0;}

/* Bloques didácticos: estilos de core/group */
body.nplb-active .is-style-nplb-importante,
body.nplb-active .is-style-nplb-recuerda,
body.nplb-active .is-style-nplb-ejemplo,
body.nplb-active .is-style-nplb-laboratorio{
    --nplb-box-accent:#2463eb;
    margin:22px 0;
    padding:45px 18px 17px;
    border:1px solid #d5e2f5;
    border-left:4px solid var(--nplb-box-accent);
    border-radius:14px;
    background:#f7faff;
    box-shadow:0 7px 20px rgba(21,52,93,.06);
}
body.nplb-active .is-style-nplb-recuerda{--nplb-box-accent:#7c3aed;background:#faf7ff;}
body.nplb-active .is-style-nplb-ejemplo{--nplb-box-accent:#0f8c67;background:#f4fcf9;}
body.nplb-active .is-style-nplb-laboratorio{--nplb-box-accent:#d97706;background:#fffaf1;}
body.nplb-active .is-style-nplb-importante::before,
body.nplb-active .is-style-nplb-recuerda::before,
body.nplb-active .is-style-nplb-ejemplo::before,
body.nplb-active .is-style-nplb-laboratorio::before{
    display:block;
    margin:-31px 0 10px;
    color:var(--nplb-box-accent);
    font-size:13px;
    font-weight:850;
    letter-spacing:.02em;
}
body.nplb-active .is-style-nplb-importante::before{content:"Importante";}
body.nplb-active .is-style-nplb-recuerda::before{content:"Recuerda";}
body.nplb-active .is-style-nplb-ejemplo::before{content:"Ejemplo";}
body.nplb-active .is-style-nplb-laboratorio::before{content:"Laboratorio";}

/* Comentarios v2.1 */
body.nplb-comments-ready .learndash-wrapper .ld-focus-comments{
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
}

body.nplb-active .nplb-article-comments{
    margin-top:22px;
    padding:24px;
}

body.nplb-active .nplb-thread-conversation{
    padding:17px 0;
}

body.nplb-active .nplb-thread-avatar{
    border:2px solid #fff;
    outline:1px solid #d6e1ef;
    background:#f5f8fc;
}

body.nplb-active .nplb-thread-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    transform:none;
}

body.nplb-active .nplb-replies-toggle{
    margin-top:10px;
    padding:6px 10px;
    border:1px solid #d5e2f8;
    border-radius:999px;
    background:#f4f8ff;
    line-height:1;
}

body.nplb-active .nplb-replies-toggle:hover,
body.nplb-active .nplb-replies-toggle[aria-expanded="true"]{
    border-color:#b8cdf8;
    background:#eaf2ff;
}

body.nplb-active .nplb-comment-replies{
    margin-top:12px;
    border-left-color:#c9dafb;
}

body.nplb-active .nplb-thread-form{
    margin-top:14px;
    padding:18px;
    border:1px solid #e1e9f3;
    border-radius:14px;
    background:#f9fbfe;
}

body.nplb-active .nplb-thread-form .comment-reply-title{
    font-size:18px;
}

body.nplb-active .nplb-thread-form textarea{
    background:#fff;
}

@media(max-width:768px){
    body.nplb-active .learndash-wrapper .learndash_content_wrap{
        padding:18px 14px;
    }

    body.nplb-active .learndash-wrapper .ld-breadcrumbs{
        padding:7px 9px;
        font-size:10.5px;
    }

    body.nplb-active .learndash-wrapper .ld-content-actions{
        gap:7px;
        margin-top:18px;
        padding-top:14px;
    }

    body.nplb-active .nplb-learning-box{
        gap:10px;
        margin:17px 0;
        padding:14px;
    }

    body.nplb-active .nplb-learning-box__icon{
        flex-basis:30px;
        width:30px;
        height:30px;
        border-radius:9px;
    }

    body.nplb-active .nplb-thread-form{
        padding:14px 12px;
    }
}

@supports not (color:color-mix(in srgb,#000 50%,#fff)){
    body.nplb-active .nplb-learning-box{border:1px solid #d5e2f5;border-left:4px solid var(--nplb-box-accent);}
    body.nplb-active .nplb-learning-box__icon{box-shadow:0 5px 13px rgba(21,52,93,.14);}
}


/* =========================================================
   V2.1.2 PREMIUM — CORRECCIÓN VISUAL SEGURA BASADA EN FOCUS MODE REAL
   Mantiene la estructura y la lógica nativa de LearnDash.
   ========================================================= */

body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions{
    align-items:center!important;justify-content:flex-end!important;gap:9px!important;margin:0!important;padding:0 12px!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action{
    flex:0 0 auto!important;width:auto!important;margin:0!important;padding:0!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action .ld-button{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
    width:auto!important;min-width:180px!important;max-width:230px!important;min-height:38px!important;
    margin:0!important;padding:9px 15px!important;border:1px solid #c7d7f5!important;border-radius:10px!important;
    background:#fff!important;color:var(--nplb-accent-dark)!important;font-size:12px!important;line-height:1.2!important;
    font-weight:800!important;text-shadow:none!important;opacity:1!important;box-shadow:0 4px 12px rgba(31,75,145,.10)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action .ld-button *,
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action .ld-button .ld-icon{
    color:inherit!important;fill:currentColor!important;opacity:1!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action:first-child .ld-button:hover{
    border-color:#9db9ee!important;background:#f4f8ff!important;color:#123f9d!important;box-shadow:0 7px 17px rgba(31,75,145,.15)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action:last-child .ld-button{
    border-color:var(--nplb-accent)!important;background:linear-gradient(135deg,var(--nplb-accent),var(--nplb-accent-dark))!important;
    color:#fff!important;box-shadow:0 7px 17px rgba(36,99,235,.23)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action:last-child .ld-button:hover{
    border-color:#174fc9!important;background:linear-gradient(135deg,#3170f1,#1347bd)!important;color:#fff!important;
    box-shadow:0 9px 21px rgba(36,99,235,.29)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-button[aria-disabled="true"],
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-button.ld-disabled{
    opacity:.62!important;cursor:not-allowed!important;box-shadow:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-button:focus-visible{
    outline:3px solid rgba(36,99,235,.25)!important;outline-offset:2px!important;
}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress{padding:7px 12px!important;}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-heading{margin-bottom:5px!important;font-size:10.5px!important;line-height:1.2!important;}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress .ld-progress-bar{height:5px!important;}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-section-heading{
    margin:8px 6px 4px!important;font-size:10.5px!important;line-height:1.3!important;letter-spacing:.075em!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview{position:relative!important;padding:9px 10px!important;}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview.nplb-has-expander{padding-right:39px!important;}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-title,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-title a,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview-heading{
    color:#213958!important;font-size:13px!important;line-height:1.38!important;font-weight:750!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-topic-title,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-topic-title a{
    font-size:12.4px!important;line-height:1.38!important;font-weight:700!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .nplb-sidebar-expander{
    position:absolute!important;top:50%!important;right:8px!important;bottom:auto!important;left:auto!important;
    width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;margin:0!important;padding:0!important;
    transform:translateY(-50%)!important;border:1px solid #c8d8f4!important;border-radius:8px!important;
    background:#f2f6ff!important;color:var(--nplb-accent-dark)!important;box-shadow:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button:hover{
    border-color:#a9c2f2!important;background:#e8f0ff!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button .ld-icon{
    color:inherit!important;font-size:9px!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-expanded::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-expanded .ld-table-list::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-expanded .ld-table-list-items::before{
    display:none!important;content:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-expanded{
    margin:2px 3px 6px!important;padding:6px 6px 8px!important;border:1px solid #e1e8f1!important;border-radius:11px!important;
    background:#eef3f8!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-expanded .ld-topic-list,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-expanded .ld-table-list{
    margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item-preview{
    margin:2px 0!important;padding:8px 9px!important;border:1px solid transparent!important;border-radius:9px!important;background:rgba(255,255,255,.76)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item-preview:hover{
    border-color:#d8e3f1!important;background:#fff!important;box-shadow:0 4px 10px rgba(21,52,93,.06)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-is-current-item .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-current .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list a[aria-current="page"]{
    border-color:#bcd0f8!important;background:linear-gradient(90deg,#edf4ff,#fff)!important;
    box-shadow:inset 3px 0 0 var(--nplb-accent),0 4px 11px rgba(36,99,235,.08)!important;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{
    margin-bottom:12px!important;font-size:clamp(29px,2.35vw,38px)!important;line-height:1.13!important;
}
body.nplb-active .learndash-wrapper .ld-breadcrumbs{
    margin-bottom:12px!important;padding:7px 10px!important;border-color:#dbe6f4!important;border-radius:10px!important;
    background:#f7faff!important;font-size:11px!important;line-height:1.3!important;
}
body.nplb-active .learndash-wrapper .ld-breadcrumbs a{color:#164fae!important;font-weight:750!important;}
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-tabs-content,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-tab-content,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-content{
    font-size:15.5px!important;line-height:1.72!important;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-media-shell{
    position:relative!important;overflow:hidden!important;margin-top:22px!important;margin-bottom:25px!important;
    border:1px solid rgba(16,40,76,.16)!important;border-radius:var(--nplb-video-radius)!important;background:#07172f!important;
    box-shadow:0 17px 38px rgba(10,30,60,.17),0 2px 8px rgba(10,30,60,.08)!important;isolation:isolate!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap p.nplb-media-shell--fit{
    display:table!important;width:auto!important;max-width:100%!important;margin-right:auto!important;margin-left:auto!important;padding:0!important;line-height:0!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-premium-media{
    display:block!important;max-width:100%!important;margin:0!important;border:0!important;border-radius:inherit!important;background:#07172f!important;box-shadow:none!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe.nplb-premium-media--standalone{
    margin:22px auto 25px!important;border:1px solid rgba(16,40,76,.16)!important;border-radius:var(--nplb-video-radius)!important;
    box-shadow:0 17px 38px rgba(10,30,60,.17),0 2px 8px rgba(10,30,60,.08)!important;
}
body.nplb-active #ast-scroll-top,
body.nplb-active .ast-scroll-to-top-right,
body.nplb-active .ast-scroll-to-top-left{display:none!important;}

@media (max-width:1180px){
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action .ld-button{
        min-width:145px!important;max-width:185px!important;padding-right:12px!important;padding-left:12px!important;
    }
}
@media (max-width:900px){
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions{gap:6px!important;padding-right:8px!important;padding-left:8px!important;}
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action .ld-button{
        min-width:112px!important;max-width:142px!important;min-height:36px!important;padding:8px 10px!important;font-size:11px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-title,
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-title a{font-size:12.7px!important;}
}
@media (max-width:600px){
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action .ld-button{
        width:38px!important;min-width:38px!important;max-width:38px!important;min-height:36px!important;padding:8px!important;font-size:0!important;border-radius:9px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action .ld-button .ld-icon{
        margin:0!important;font-size:12px!important;
    }
    body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{font-size:clamp(25px,7.5vw,32px)!important;}
    body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-tabs-content,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-tab-content,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-content{font-size:15px!important;}
    body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-media-shell{
        margin-top:18px!important;margin-bottom:20px!important;border-radius:12px!important;box-shadow:0 11px 27px rgba(10,30,60,.14)!important;
    }
}

/* =========================================================
   V2.1.3 PREMIUM — LIMPIEZA DEFINITIVA DEL SIDEBAR
   Corrige el texto azul desbordado de los controles nativos
   de expansión sin reemplazar ni interceptar su comportamiento.
   ========================================================= */

body.nplb-active .learndash-wrapper .ld-focus-sidebar,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-list{
    overflow-x:hidden!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation *,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview{
    box-sizing:border-box!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview-heading,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-title{
    min-width:0!important;
    max-width:100%!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview-heading,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-title,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-title a{
    overflow-wrap:anywhere!important;
    word-break:normal!important;
}

/* El botón completo mantiene el clic nativo, pero queda reducido al icono. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .nplb-sidebar-expander{
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
    width:26px!important;
    min-width:26px!important;
    max-width:26px!important;
    height:26px!important;
    min-height:26px!important;
    max-height:26px!important;
    padding:0!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:transparent!important;
    font-size:0!important;
    line-height:0!important;
    text-indent:-9999px!important;
    white-space:nowrap!important;
    box-shadow:none!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button::after{
    display:none!important;
    content:none!important;
}

/* El texto permanece en el DOM para compatibilidad, pero no puede desbordarse. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button .ld-text{
    position:absolute!important;
    overflow:hidden!important;
    width:1px!important;
    height:1px!important;
    margin:-1px!important;
    padding:0!important;
    border:0!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
}

/* Astra aplica el azul directamente al icono; se neutraliza aquí. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button .ld-icon,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .nplb-sidebar-expander .ld-icon{
    display:grid!important;
    place-items:center!important;
    position:static!important;
    overflow:hidden!important;
    width:24px!important;
    min-width:24px!important;
    height:24px!important;
    min-height:24px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #c9d8f2!important;
    border-radius:8px!important;
    background:#f3f7ff!important;
    color:var(--nplb-accent-dark)!important;
    font-size:9px!important;
    line-height:1!important;
    text-indent:0!important;
    opacity:1!important;
    box-shadow:none!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button:hover .ld-icon,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button:focus-visible .ld-icon{
    border-color:#9eb9eb!important;
    background:#e9f1ff!important;
    color:#103f9f!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button:focus-visible{
    outline:3px solid rgba(36,99,235,.22)!important;
    outline-offset:2px!important;
}

/* Evita cualquier fragmento residual a la derecha del título. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview.nplb-has-expander{
    overflow:hidden!important;
    padding-right:42px!important;
}

body.nplb-active .nplb-hide-floating-reader{
    display:none!important;
}


/* =========================================================
   V2.2.1 PREMIUM — PULIDO DISCRETO SOBRE LA BASE ESTABLE 2.1.3
   Mantiene la composición original de LearnDash.
   ========================================================= */

/* Fondo general suave: sin degradados ni tarjetas anidadas. */
body.nplb-active .learndash-wrapper .ld-focus-main{
    background:#f4f7fb!important;
}

body.nplb-active .learndash-wrapper .ld-focus-content{
    background:transparent!important;
}

/* Tarjeta principal: blanca, limpia y con profundidad muy ligera. */
body.nplb-active .learndash-wrapper .learndash_content_wrap{
    background:#fff!important;
    border:1px solid #dfe7f0!important;
    border-radius:16px!important;
    box-shadow:0 10px 28px rgba(16,40,76,.065)!important;
}

/* No se añaden líneas decorativas nuevas al título. */
body.nplb-active .learndash-wrapper .learndash_content_wrap > h1::before,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title::before{
    display:none!important;
    content:none!important;
}

/* Breadcrumb más limpio, manteniendo el formato original. */
body.nplb-active .learndash-wrapper .ld-breadcrumbs{
    background:#f7f9fc!important;
    border-color:#e0e8f1!important;
    box-shadow:none!important;
}

/* Texto de la lección con contraste cómodo, sin alterar tamaños globales. */
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-content,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-tabs-content,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-tab-content{
    color:#435570!important;
}

/* Vídeo: acabado premium discreto. */
body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-media-shell,
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe.nplb-premium-media--standalone{
    border-color:rgba(16,40,76,.13)!important;
    box-shadow:0 12px 28px rgba(10,30,60,.13)!important;
}

/* Listas y cuestionarios: solo un borde y sombra muy suaves. */
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-table-list,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-lesson-list{
    background:#fff!important;
    border-color:#dfe7f0!important;
    border-radius:14px!important;
    box-shadow:0 6px 18px rgba(16,40,76,.045)!important;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-table-list .ld-table-list-header,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-lesson-list .ld-table-list-header{
    background:#f7f9fc!important;
    border-bottom-color:#e6edf5!important;
}

/* Navegación inferior integrada, sin convertirla en una tarjeta grande. */
body.nplb-active .learndash-wrapper .ld-content-actions{
    margin-top:26px!important;
    padding-top:20px!important;
    border-top:1px solid #e3eaf2!important;
}

body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action .ld-button,
body.nplb-active .learndash-wrapper .ld-content-actions .learndash_mark_complete_button,
body.nplb-active .learndash-wrapper .ld-content-actions input[type="submit"].learndash_mark_complete_button{
    border-radius:11px!important;
}

body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action .ld-button.ld-button-transparent,
body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action a.ld-button.ld-button-transparent{
    background:#f8faff!important;
    border-color:#d8e3f2!important;
    color:var(--nplb-navy)!important;
    box-shadow:0 5px 14px rgba(16,40,76,.05)!important;
}

body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action .ld-button.ld-button-transparent:hover,
body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action a.ld-button.ld-button-transparent:hover{
    background:#fff!important;
    border-color:#b9cdec!important;
    color:var(--nplb-accent-dark)!important;
}

/* El botón para plegar el sidebar puede sobresalir sin quedar recortado. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar{
    overflow-x:visible!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-list{
    overflow-x:hidden!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-focus-sidebar-trigger{
    z-index:20!important;
}

/* Comentarios: una única tarjeta, sin la cabecera duplicada de LearnDash. */
body.nplb-comments-ready .learndash-wrapper .ld-focus-comments{
    margin-top:24px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

body.nplb-active .nplb-article-comments{
    border-color:#dfe7f0!important;
    border-radius:16px!important;
    box-shadow:0 8px 22px rgba(16,40,76,.055)!important;
}

body.nplb-active .nplb-thread-form{
    background:#f8fafc!important;
    border-color:#e2e9f1!important;
}

/* Reproductores flotantes identificados por JavaScript. */
body.nplb-active .nplb-hide-floating-reader{
    display:none!important;
}

@media(max-width:768px){
    body.nplb-active .learndash-wrapper .learndash_content_wrap{
        border-radius:14px!important;
        box-shadow:0 8px 22px rgba(16,40,76,.06)!important;
    }

    body.nplb-active .learndash-wrapper .ld-content-actions{
        margin-top:21px!important;
        padding-top:16px!important;
    }
}

/* =========================================================
   V2.2.2 PREMIUM — MARCO PRINCIPAL MÁS BONITO Y CERCANO
   Integra título y contenido dentro de un mismo contenedor
   visual, con más presencia y menos separación del sidebar.
   ========================================================= */

body.nplb-active .learndash-wrapper .ld-focus-main{
    background:#eef3f8!important;
    padding:16px 24px 28px 16px!important;
}

body.nplb-active .learndash-wrapper .ld-focus-content{
    position:relative!important;
    margin:16px 20px 26px 8px!important;
    padding:26px 28px 28px!important;
    background:#ffffff!important;
    border:1px solid #dde6f1!important;
    border-radius:24px!important;
    box-shadow:0 18px 42px rgba(16,40,76,.075)!important;
}

/* El título, breadcrumbs y contenido deben sentirse dentro del mismo marco. */
body.nplb-active .learndash-wrapper .learndash_content_wrap{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
}

body.nplb-active .learndash-wrapper .ld-focus-content > h1,
body.nplb-active .learndash-wrapper .ld-focus-content .entry-title,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-breadcrumbs,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-progress,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-topic-status,
body.nplb-active .learndash-wrapper .ld-focus-content > .learndash_content_wrap,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-content-actions,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-focus-comments{
    max-width:1120px!important;
}

body.nplb-active .learndash-wrapper .ld-focus-content > h1,
body.nplb-active .learndash-wrapper .ld-focus-content .entry-title,
body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{
    margin-top:2px!important;
    margin-bottom:14px!important;
}

body.nplb-active .learndash-wrapper .ld-breadcrumbs{
    margin-bottom:16px!important;
}

body.nplb-active .learndash-wrapper .ld-topic-status{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:wrap!important;
    gap:12px 18px!important;
    margin:0 0 18px!important;
    padding-right:2px!important;
}

body.nplb-active .learndash-wrapper .ld-topic-status > :last-child{
    padding-right:8px!important;
}

/* El vídeo queda dentro del marco con aire lateral, sin tocar bordes. */
body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-media-shell,
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe.nplb-premium-media--standalone,
body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed__wrapper,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-video{
    margin-top:18px!important;
    margin-bottom:22px!important;
    border-radius:18px!important;
    box-shadow:0 12px 30px rgba(10,30,60,.14)!important;
}

/* Contenido y bloques internos ligeramente más grandes visualmente. */
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-table-list,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-lesson-list{
    border-radius:16px!important;
}

body.nplb-active .learndash-wrapper .ld-content-actions{
    margin-top:28px!important;
    padding-top:20px!important;
}

body.nplb-comments-ready .learndash-wrapper .ld-focus-comments,
body.nplb-active .nplb-article-comments{
    max-width:1120px!important;
}

@media(max-width:1024px){
    body.nplb-active .learndash-wrapper .ld-focus-main{
        padding:14px 18px 24px 14px!important;
    }

    body.nplb-active .learndash-wrapper .ld-focus-content{
        margin:14px 14px 22px 6px!important;
        padding:22px 22px 24px!important;
        border-radius:20px!important;
    }
}

@media(max-width:768px){
    body.nplb-active .learndash-wrapper .ld-focus-main{
        padding:10px 10px 18px!important;
    }

    body.nplb-active .learndash-wrapper .ld-focus-content{
        margin:10px 8px 18px 4px!important;
        padding:18px 14px 20px!important;
        border-radius:16px!important;
        box-shadow:0 10px 24px rgba(16,40,76,.07)!important;
    }

    body.nplb-active .learndash-wrapper .ld-topic-status{
        gap:10px!important;
    }

    body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-media-shell,
    body.nplb-active .learndash-wrapper .learndash_content_wrap iframe.nplb-premium-media--standalone,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed__wrapper,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-video{
        margin-top:16px!important;
        margin-bottom:18px!important;
        border-radius:14px!important;
    }
}

/* =========================================================
   V2.2.3 PREMIUM — PROPORCIONES TIPO BLOG CON SIDEBAR
   El sidebar permanece intacto. El marco de la lección queda
   centrado dentro del área restante y utiliza mejor el ancho.
   ========================================================= */

body.nplb-active .learndash-wrapper .ld-focus-main{
    padding:16px 0 30px!important;
    overflow-x:hidden!important;
}

body.nplb-active .learndash-wrapper .ld-focus-content{
    box-sizing:border-box!important;
    width:calc(100% - 72px)!important;
    max-width:var(--nplb-content-width,1060px)!important;
    margin:16px auto 28px!important;
    padding:28px 30px 30px!important;
}

/* Todo el contenido pertenece al mismo lienzo, sin columnas internas estrechas. */
body.nplb-active .learndash-wrapper .ld-focus-content > h1,
body.nplb-active .learndash-wrapper .ld-focus-content > .entry-title,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-breadcrumbs,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-progress,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-topic-status,
body.nplb-active .learndash-wrapper .ld-focus-content > .learndash_content_wrap,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-content-actions,
body.nplb-active .learndash-wrapper .ld-focus-content > .ld-focus-comments,
body.nplb-active .learndash-wrapper .learndash_content_wrap,
body.nplb-active .learndash-wrapper .nplb-article-comments{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
}

/* El vídeo crece con el lienzo y conserva una proporción profesional. */
body.nplb-active .learndash-wrapper .learndash_content_wrap p.nplb-media-shell--fit,
body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-media-shell{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap iframe.nplb-premium-media,
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe.nplb-premium-media--standalone,
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe[src*="youtube.com"],
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe[src*="youtu.be"],
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe[src*="vimeo.com"]{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    aspect-ratio:16 / 9!important;
}

body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed,
body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed__wrapper,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-video,
body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-video{
    width:100%!important;
    max-width:100%!important;
}

/* Mantiene la lectura cómoda aunque el marco sea más ancho. */
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-content,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-tabs-content,
body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-tab-content{
    width:100%!important;
    max-width:none!important;
}

@media(max-width:1180px){
    body.nplb-active .learndash-wrapper .ld-focus-content{
        width:calc(100% - 48px)!important;
        padding:25px 26px 28px!important;
    }
}

@media(max-width:900px){
    body.nplb-active .learndash-wrapper .ld-focus-content{
        width:calc(100% - 30px)!important;
        margin:14px auto 24px!important;
        padding:22px 20px 24px!important;
        border-radius:19px!important;
    }
}

@media(max-width:768px){
    body.nplb-active .learndash-wrapper .ld-focus-main{
        padding:9px 0 18px!important;
    }

    body.nplb-active .learndash-wrapper .ld-focus-content{
        width:calc(100% - 16px)!important;
        margin:9px auto 18px!important;
        padding:18px 14px 20px!important;
        border-radius:15px!important;
    }
}

/* =========================================================
   V2.2.4 PREMIUM — LIENZO 20 % MÁS ANCHO Y SIDEBAR LIMPIO
   Mantiene el centrado de la v2.2.3 y elimina cualquier
   línea azul residual en la cabecera de las lecciones.
   ========================================================= */

@media(min-width:1181px){
    body.nplb-active .learndash-wrapper .ld-focus-content{
        width:calc(100% - 44px)!important;
        max-width:1270px!important;
        margin:16px auto 28px!important;
        padding:30px 34px 32px!important;
    }
}

/* Cabeceras de lección del sidebar: sin líneas decorativas azules. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview-heading,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-title{
    border-left:0!important;
    text-decoration:none!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview::after,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview-heading::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview-heading::after,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-title::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-title::after{
    display:none!important;
    content:none!important;
    width:0!important;
    height:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}

/* El padre expandido queda limpio; el tema actual conserva su tarjeta activa. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.ld-expanded > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview[aria-expanded="true"]{
    border-color:transparent!important;
    background:transparent!important;
    box-shadow:none!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-title a,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-title span{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    text-decoration:none!important;
}

/* Protege el resaltado premium del tema realmente seleccionado. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-is-current-item .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-current .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list a[aria-current="page"]{
    border-color:#bcd0f8!important;
    background:linear-gradient(90deg,#edf4ff,#fff)!important;
    box-shadow:inset 3px 0 0 var(--nplb-accent),0 4px 11px rgba(36,99,235,.08)!important;
}

@media(max-width:1180px) and (min-width:901px){
    body.nplb-active .learndash-wrapper .ld-focus-content{
        width:calc(100% - 36px)!important;
        max-width:1120px!important;
    }
}

/* =========================================================
   V2.2.5 PREMIUM — ACABADO FINAL DE NAVEGACIÓN Y VÍDEO
   Ajustes exclusivamente visuales. No altera la lógica nativa.
   ========================================================= */

/* Navegación superior: elimina la línea/separador central residual. */
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions,
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions::before,
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions::after,
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-action,
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-action::before,
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-action::after{
    border-left:0!important;
    border-right:0!important;
    background-image:none!important;
    box-shadow:none!important;
}

/* Evita que una columna intermedia vacía deje una raya visible. */
body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-action:empty{
    display:none!important;
    width:0!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
}

/* Vídeo ligeramente más contenido, centrado y sin recorte. */
@media(min-width:901px){
    body.nplb-active .learndash-wrapper .learndash_content_wrap p.nplb-media-shell--fit,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-media-shell,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed__wrapper,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-video,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-video,
    body.nplb-active .learndash-wrapper .learndash_content_wrap iframe.nplb-premium-media--standalone{
        width:91%!important;
        max-width:91%!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
}

/* Sidebar: el bloque padre abierto queda neutro, sin línea ni franja azul. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.ld-expanded > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item > .ld-lesson-item-preview:hover{
    border-color:transparent!important;
    border-left:0!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item > .ld-lesson-item-preview::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item > .ld-lesson-item-preview::after,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview-heading::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview-heading::after{
    display:none!important;
    content:none!important;
    border:0!important;
    background:none!important;
    box-shadow:none!important;
}

/* Oculta solo barras/progreso internos del encabezado padre del sidebar. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview > .ld-progress,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-lesson-item-progress,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-progress-bar,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-progress-bar-percentage{
    display:none!important;
}

/* El tema realmente seleccionado conserva una selección limpia, sin barra gruesa. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-is-current-item .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-current .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list a[aria-current="page"]{
    border:1px solid #bfd2f7!important;
    background:#f2f7ff!important;
    box-shadow:0 4px 12px rgba(36,99,235,.07)!important;
}

/* Espaciado final ligeramente más compacto. */
body.nplb-active .learndash-wrapper .ld-content-actions{
    margin-top:24px!important;
    padding-top:17px!important;
}

body.nplb-active .nplb-article-comments{
    margin-bottom:0!important;
}

body.nplb-active .nplb-thread-form{
    margin-bottom:0!important;
}

@media(max-width:900px){
    body.nplb-active .learndash-wrapper .learndash_content_wrap p.nplb-media-shell--fit,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .nplb-media-shell,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed__wrapper,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-video,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-video,
    body.nplb-active .learndash-wrapper .learndash_content_wrap iframe.nplb-premium-media--standalone{
        width:100%!important;
        max-width:100%!important;
    }
}

/* =========================================================
   V2.2.6 PREMIUM — PADRE ABIERTO COMPLETAMENTE NEUTRO
   Elimina el azul residual de la fila padre sin tocar el
   tema activo, el check verde ni el control desplegable.
   ========================================================= */

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview:hover,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview:focus,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview:focus-within{
    border:0!important;
    border-color:transparent!important;
    border-left:0!important;
    outline:0!important;
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    filter:none!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview::after,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-item-preview-heading::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-item-preview-heading::after,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title::after,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title a::before,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title a::after{
    display:none!important;
    content:none!important;
    width:0!important;
    height:0!important;
    border:0!important;
    background:none!important;
    box-shadow:none!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-item-preview-heading,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title a,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title span,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-primary-color{
    border:0!important;
    outline:0!important;
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    text-decoration:none!important;
}

body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title a,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-title span{
    color:#263b5d!important;
}

/* Oculta cualquier indicador lineal interno, pero conserva iconos y flecha. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-progress,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-lesson-item-progress,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-progress-bar,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview .ld-progress-bar-percentage,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral > .ld-lesson-item-preview [class*="progress"]:not(.ld-status-icon){
    display:none!important;
}

/* El tema realmente activo continúa siendo el único resaltado azul. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral .ld-topic-list .ld-is-current-item .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral .ld-topic-list .ld-current .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-parent-neutral .ld-topic-list a[aria-current="page"]{
    border:1px solid #bfd2f7!important;
    background:#f2f7ff!important;
    box-shadow:0 4px 12px rgba(36,99,235,.07)!important;
}

/* =========================================================
   AJUSTES VISUALES CONFIGURABLES · RAMA 2.3
   ========================================================= */
@media (min-width: 769px){
 body.nplb-active .learndash-wrapper .ld-focus-sidebar{width:var(--nplb-sidebar-width)}
 body.nplb-active .learndash-wrapper .ld-focus-main{margin-left:var(--nplb-sidebar-width)}
}
body.nplb-active .learndash-wrapper .ld-focus-content{max-width:var(--nplb-layout-width);padding-left:var(--nplb-page-gap);padding-right:var(--nplb-page-gap)}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation{padding-left:var(--nplb-sidebar-padding);padding-right:var(--nplb-sidebar-padding)}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading{min-height:var(--nplb-sidebar-header-height);display:flex;align-items:center}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-topic-list .ld-table-list-item-preview{min-height:var(--nplb-sidebar-item-height);margin-bottom:var(--nplb-sidebar-item-gap);border-radius:var(--nplb-sidebar-item-radius)}
body.nplb-active .learndash-wrapper .ld-focus-header{min-height:var(--nplb-progress-height)}
body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-bar{width:var(--nplb-progress-bar-width);height:var(--nplb-progress-bar-height)}
body.nplb-active .learndash-wrapper .learndash_content_wrap{max-width:var(--nplb-content-width);padding:var(--nplb-content-padding);margin-left:auto;margin-right:auto}
body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{font-size:var(--nplb-title-size)}
body.nplb-active .learndash-wrapper .learndash_content_wrap,
body.nplb-active .learndash-wrapper .learndash_content_wrap p,
body.nplb-active .learndash-wrapper .learndash_content_wrap li{font-size:var(--nplb-content-font-size);line-height:var(--nplb-content-line-height)}
body.nplb-active .learndash-wrapper .learndash_content_wrap iframe,
body.nplb-active .learndash-wrapper .learndash_content_wrap video,
body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-video,
body.nplb-active .learndash-wrapper .learndash_content_wrap .wp-block-embed{margin-top:var(--nplb-video-spacing);margin-bottom:var(--nplb-video-spacing)}
body.nplb-active .learndash-wrapper .ld-content-actions{gap:var(--nplb-actions-gap)}
body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action a,
body.nplb-active .learndash-wrapper .learndash_mark_complete_button{min-height:var(--nplb-actions-height)}
@media(max-width:768px){
 body.nplb-active .learndash-wrapper .ld-focus-content{padding-left:16px;padding-right:16px}
 body.nplb-active .learndash-wrapper .learndash_content_wrap{padding:clamp(18px,5vw,var(--nplb-content-padding))}
 body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
 body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{font-size:clamp(28px,8vw,var(--nplb-title-size))}
}

/* =========================================================
   V2.4.0 — LESSON EXPERIENCE PREMIUM
   Solo presentación. LearnDash conserva navegación, progreso,
   permisos, cuestionarios y finalización nativos.
   ========================================================= */

/* Cabecera editorial */
body.nplb-active .learndash-wrapper .learndash_content_wrap{
    overflow:visible;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{
    margin:0 0 12px!important;
    font-size:clamp(30px,var(--nplb-title-size),44px)!important;
    line-height:1.12!important;
    letter-spacing:-.035em!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap > h1::before,
body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title::before{
    width:56px!important;height:4px!important;margin-bottom:14px!important;border-radius:999px!important;
}
body.nplb-active .learndash-wrapper .ld-breadcrumbs{
    margin:0 0 18px!important;padding:9px 12px!important;border:1px solid #e1e9f3!important;
    border-radius:10px!important;background:#f8faff!important;box-shadow:none!important;
}
body.nplb-active .learndash-wrapper .ld-lesson-status,
body.nplb-active .learndash-wrapper .ld-topic-status{
    margin:0 0 22px!important;padding:13px 15px!important;border:1px solid #e1e9f3!important;
    border-radius:12px!important;background:linear-gradient(135deg,#fbfdff,#f6f9ff)!important;
}

/* Contenido editorial */
body.nplb-active .learndash-wrapper .ld-tab-content,
body.nplb-active .learndash-wrapper .ld-tabs-content{
    font-size:var(--nplb-content-font-size)!important;
    line-height:var(--nplb-content-line-height)!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap h2{
    margin:34px 0 15px!important;font-size:clamp(25px,2.1vw,32px)!important;line-height:1.18!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap h3{
    margin:28px 0 12px!important;font-size:clamp(21px,1.7vw,26px)!important;line-height:1.22!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap p,
body.nplb-active .learndash-wrapper .learndash_content_wrap ul,
body.nplb-active .learndash-wrapper .learndash_content_wrap ol{
    margin-bottom:1.25em!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap img{
    border-radius:14px!important;box-shadow:0 10px 28px rgba(15,38,71,.09)!important;
}

/* Código Cisco / terminal */
body.nplb-active .learndash-wrapper .learndash_content_wrap pre{
    position:relative;margin:24px 0!important;padding:48px 20px 20px!important;overflow:auto!important;
    border:1px solid #19375f!important;border-radius:14px!important;background:#07172f!important;
    color:#dcecff!important;box-shadow:0 16px 36px rgba(7,23,47,.20)!important;
    font:500 14px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;
}
body.nplb-active .learndash-wrapper .learndash_content_wrap pre::before{
    content:"Cisco IOS";position:absolute;left:18px;top:13px;color:#76a7ff;font:800 11px/1.2 inherit;
    letter-spacing:.08em;text-transform:uppercase;
}
body.nplb-active .nplb-code-copy{
    position:absolute;right:12px;top:9px;z-index:2;min-height:30px!important;padding:6px 10px!important;
    border:1px solid rgba(255,255,255,.16)!important;border-radius:8px!important;background:rgba(255,255,255,.08)!important;
    color:#fff!important;font-size:11px!important;font-weight:800!important;cursor:pointer;
}
body.nplb-active .nplb-code-copy:hover{background:rgba(255,255,255,.15)!important;transform:none!important;}

/* Tarjetas de cuestionario dentro de lecciones/temas */
body.nplb-active .learndash-wrapper .ld-table-list.nplb-quiz-card,
body.nplb-active .learndash-wrapper .ld-lesson-list.nplb-quiz-card{
    margin:24px 0!important;border:1px solid #dce6f1!important;border-radius:15px!important;
    background:linear-gradient(135deg,#fff,#f7faff)!important;box-shadow:0 10px 28px rgba(15,38,71,.07)!important;
    overflow:hidden!important;
}
body.nplb-active .nplb-quiz-card .ld-table-list-header{
    padding:17px 19px!important;background:#f1f6ff!important;border-bottom:1px solid #dce6f1!important;
}
body.nplb-active .nplb-quiz-card .ld-table-list-item-preview{
    min-height:62px!important;padding:15px 19px!important;
}

/* Navegación inferior como tarjetas */
body.nplb-active .learndash-wrapper .ld-content-actions.nplb-smart-navigation{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    align-items:stretch!important;gap:12px!important;margin-top:30px!important;padding-top:24px!important;
}
body.nplb-active .nplb-smart-navigation .ld-content-action{display:flex!important;min-width:0!important;}
body.nplb-active .nplb-smart-navigation .ld-content-action:first-child{justify-content:flex-start!important;}
body.nplb-active .nplb-smart-navigation .ld-content-action:last-child{justify-content:flex-end!important;}
body.nplb-active .nplb-smart-navigation .ld-content-action > a,
body.nplb-active .nplb-smart-navigation .ld-content-action > .ld-button{
    width:100%!important;min-height:66px!important;padding:13px 16px!important;border:1px solid #dbe5f1!important;
    border-radius:13px!important;background:#fff!important;color:var(--nplb-navy)!important;
    box-shadow:0 7px 20px rgba(15,38,71,.055)!important;transition:.2s ease!important;
}
body.nplb-active .nplb-smart-navigation .ld-content-action > a:hover,
body.nplb-active .nplb-smart-navigation .ld-content-action > .ld-button:hover{
    border-color:#bcd0f6!important;background:#f7faff!important;transform:translateY(-2px)!important;
    box-shadow:0 11px 25px rgba(36,99,235,.10)!important;
}
body.nplb-active .nplb-smart-navigation .ld-content-action:nth-child(2){align-items:center!important;justify-content:center!important;}
body.nplb-active .nplb-smart-navigation .ld-content-action:nth-child(2) form,
body.nplb-active .nplb-smart-navigation .ld-content-action:nth-child(2) .learndash_mark_complete_button{
    min-height:46px!important;white-space:nowrap!important;
}

/* Sidebar tipo Learning Panel */
body.nplb-active .learndash-wrapper .ld-focus-sidebar{
    border-right:1px solid #dbe5f0!important;background:#f7faff!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading{
    background:linear-gradient(135deg,var(--nplb-accent),var(--nplb-accent-dark))!important;
    box-shadow:0 10px 25px rgba(36,99,235,.18)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-table-list-item-preview{
    transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview:hover,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-table-list-item-preview:hover{
    transform:translateX(2px)!important;
}

/* Comentarios: acabado editorial */
body.nplb-active .nplb-thread-avatar{width:44px!important;height:44px!important;}
body.nplb-active .nplb-thread-form textarea{min-height:150px!important;}
body.nplb-active .nplb-thread-actions a{display:inline-flex;align-items:center;min-height:30px;padding:5px 8px;border-radius:7px;}
body.nplb-active .nplb-thread-actions a:hover{background:#eef4ff;}

/* Microinteracciones */
body.nplb-active .nplb-premium-media,
body.nplb-active .nplb-media-shell{transition:transform .22s ease,box-shadow .22s ease;}
body.nplb-active .nplb-media-shell:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(10,30,60,.18)!important;}

@media(max-width:1024px){
    body.nplb-active .learndash-wrapper .ld-content-actions.nplb-smart-navigation{
        grid-template-columns:1fr 1fr!important;
    }
    body.nplb-active .nplb-smart-navigation .ld-content-action:nth-child(2){grid-column:1/-1;grid-row:2;}
}

@media(max-width:768px){
    body.nplb-active .learndash-wrapper .learndash_content_wrap > h1,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .entry-title{
        font-size:clamp(27px,8vw,34px)!important;
    }
    body.nplb-active .learndash-wrapper .ld-content-actions.nplb-smart-navigation{
        grid-template-columns:1fr!important;gap:9px!important;
    }
    body.nplb-active .nplb-smart-navigation .ld-content-action,
    body.nplb-active .nplb-smart-navigation .ld-content-action:nth-child(2){grid-column:1!important;grid-row:auto!important;}
    body.nplb-active .nplb-smart-navigation .ld-content-action > a,
    body.nplb-active .nplb-smart-navigation .ld-content-action > .ld-button{min-height:54px!important;}
    body.nplb-active .learndash-wrapper .learndash_content_wrap pre{padding:46px 14px 16px!important;font-size:12.5px!important;}
    body.nplb-active .nplb-thread-avatar{width:38px!important;height:38px!important;}
}


/* =========================================================
   V2.4.1 — SIGUIENTE ACTIVIDAD
   El bloque que LearnDash muestra al final de un tema no es un
   microquiz incrustado: es el siguiente elemento del recorrido.
   Se presenta como actividad enlazada sin alterar su URL ni estado.
   ========================================================= */
body.nplb-active .learndash-wrapper .ld-table-list.nplb-quiz-card,
body.nplb-active .learndash-wrapper .ld-lesson-list.nplb-quiz-card{
    margin:initial!important;
    border:initial!important;
    border-radius:initial!important;
    background:initial!important;
    box-shadow:initial!important;
    overflow:initial!important;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-heading{
    margin:34px 0 14px!important;
    color:var(--nplb-navy)!important;
    font-size:clamp(24px,2vw,30px)!important;
    line-height:1.2!important;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card{
    position:relative;
    margin:0 0 24px!important;
    overflow:hidden!important;
    border:1px solid #dce6f1!important;
    border-radius:15px!important;
    background:linear-gradient(135deg,#ffffff 0%,#f7faff 100%)!important;
    box-shadow:0 10px 28px rgba(15,38,71,.065)!important;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card::before{
    content:"Siguiente actividad";
    display:block;
    padding:14px 18px 8px;
    color:#2563eb;
    font-size:11px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:.07em;
    text-transform:uppercase;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card::after{
    content:"›";
    position:absolute;
    right:20px;
    top:50%;
    color:#7f91a9;
    font-size:28px;
    line-height:1;
    transform:translateY(-12%);
    pointer-events:none;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card .ld-table-list-header{
    display:none!important;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card .ld-table-list-items,
body.nplb-active .learndash-wrapper .nplb-next-activity-card .ld-table-list-item,
body.nplb-active .learndash-wrapper .nplb-next-activity-card .ld-table-list-item-preview{
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card .ld-table-list-item-preview{
    min-height:70px!important;
    padding:8px 56px 18px 18px!important;
    color:var(--nplb-navy)!important;
    font-size:16px!important;
    font-weight:700!important;
    line-height:1.4!important;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card a{
    color:var(--nplb-navy)!important;
    text-decoration:none!important;
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card:hover{
    border-color:#bfd2f6!important;
    box-shadow:0 14px 32px rgba(36,99,235,.10)!important;
    transform:translateY(-1px);
}
body.nplb-active .learndash-wrapper .nplb-next-activity-card{
    transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease!important;
}
body.nplb-active .nplb-next-activity-meta{
    display:block;
    margin-top:5px;
    color:#6f7f94;
    font-size:13px;
    font-weight:500;
}
@media(max-width:768px){
    body.nplb-active .learndash-wrapper .nplb-next-activity-card::before{padding:13px 15px 7px;}
    body.nplb-active .learndash-wrapper .nplb-next-activity-card .ld-table-list-item-preview{
        min-height:64px!important;padding:8px 46px 16px 15px!important;font-size:15px!important;
    }
    body.nplb-active .learndash-wrapper .nplb-next-activity-card::after{right:15px;font-size:25px;}
}

/* =========================================================
   V2.4.2 — VISTA DE LECCIÓN / TEMA EN ESCRITORIO
   ========================================================= */

/* El siguiente cuestionario ya está indicado en ambas navegaciones.
   No se repite como bloque dentro del contenido del tema. */
body.nplb-active .nplb-route-block-removed,
body.nplb-active [hidden].nplb-route-block-removed{
    display:none!important;
}

/* Barra superior de progreso integrada */
@media (min-width:1025px){
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress{
        position:relative!important;
        display:grid!important;
        grid-template-columns:auto minmax(150px,var(--nplb-progress-bar-width)) auto!important;
        grid-template-rows:auto auto!important;
        column-gap:12px!important;
        align-items:center!important;
        min-width:440px!important;
        padding:8px 16px 7px!important;
        border-right:1px solid #e4ebf4!important;
        background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress::before{
        content:"Progreso del curso";
        grid-column:1/-1;
        margin-bottom:2px;
        color:#6b7890;
        font-size:9px;
        font-weight:800;
        line-height:1;
        letter-spacing:.07em;
        text-transform:uppercase;
    }
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-heading{
        display:contents!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-stats{
        grid-column:1!important;
        grid-row:2!important;
        margin:0!important;
        color:#1e54de!important;
        font-size:11px!important;
        font-weight:800!important;
        white-space:nowrap!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-bar{
        grid-column:2!important;
        grid-row:2!important;
        width:100%!important;
        margin:0!important;
        background:#e4eaf2!important;
        border-radius:999px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-progress-label{
        grid-column:3!important;
        grid-row:2!important;
        margin:0!important;
        color:#40516a!important;
        font-size:10px!important;
        font-weight:700!important;
        white-space:nowrap!important;
    }
}

/* Navegación inferior convertida en tarjetas de recorrido */
body.nplb-active .learndash-wrapper .ld-content-actions.nplb-smart-navigation{
    gap:14px!important;
}
body.nplb-active .nplb-smart-navigation .ld-content-action > a.nplb-route-nav-card,
body.nplb-active .nplb-smart-navigation .ld-content-action > .ld-button.nplb-route-nav-card{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
    min-height:78px!important;
    padding:14px 17px!important;
    text-align:left!important;
    overflow:hidden!important;
}
body.nplb-active .nplb-smart-navigation .nplb-route-nav-card.is-next{
    align-items:flex-end!important;
    text-align:right!important;
}
body.nplb-active .nplb-route-nav-direction{
    display:block;
    margin-bottom:5px;
    color:#2563eb;
    font-size:11px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:.045em;
    text-transform:uppercase;
}
body.nplb-active .nplb-route-nav-title{
    display:block;
    width:100%;
    overflow:hidden;
    color:#14223b;
    font-size:14px;
    font-weight:750;
    line-height:1.35;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* Estado de finalización más humano */
body.nplb-active .nplb-smart-navigation .ld-content-action:nth-child(2),
body.nplb-active .nplb-smart-navigation .ld-content-action:nth-child(2) button,
body.nplb-active .nplb-smart-navigation .ld-content-action:nth-child(2) input{
    font-weight:750!important;
}

/* Sidebar: conservar respiración, afinando solo unos píxeles */
@media (min-width:1025px){
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview,
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-table-list-item-preview{
        margin-bottom:6px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview:hover,
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-table-list-item-preview:hover{
        transform:translateX(2px)!important;
        box-shadow:0 6px 16px rgba(36,99,235,.075)!important;
    }
}

/* Comentarios estilo conversación, sin tarjetas anidadas */
@media (min-width:769px){
    body.nplb-active .nplb-article-comments{
        padding:24px 26px!important;
    }
    body.nplb-active .nplb-thread-item,
    body.nplb-active .nplb-comment-item,
    body.nplb-active .comment-list > li{
        padding-top:16px!important;
        padding-bottom:16px!important;
    }
    body.nplb-active .nplb-thread-avatar,
    body.nplb-active .comment-author .avatar{
        width:46px!important;
        height:46px!important;
        border:2px solid #fff!important;
        box-shadow:0 4px 12px rgba(15,38,71,.10)!important;
    }
    body.nplb-active .nplb-thread-actions,
    body.nplb-active .reply{
        margin-top:7px!important;
    }
    body.nplb-active .nplb-thread-actions a,
    body.nplb-active .reply a{
        min-height:28px!important;
        padding:4px 8px!important;
        color:#2457f5!important;
        background:transparent!important;
        border-radius:7px!important;
        font-size:11px!important;
        font-weight:750!important;
    }
    body.nplb-active .nplb-thread-actions a:hover,
    body.nplb-active .reply a:hover{
        background:#edf3ff!important;
    }
    body.nplb-active .children{
        margin-top:10px!important;
        margin-left:31px!important;
        padding-left:18px!important;
        border-left:2px solid #dce7f5!important;
    }
}

/* Formulario de comentario como componente NextPing */
body.nplb-active .nplb-thread-form,
body.nplb-active .comment-respond{
    padding:22px 24px!important;
    border:1px solid #dfe7f1!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%)!important;
    box-shadow:none!important;
}
body.nplb-active .nplb-thread-form h2,
body.nplb-active .nplb-thread-form h3,
body.nplb-active .comment-respond .comment-reply-title{
    margin:0 0 15px!important;
    color:#14223b!important;
    font-size:19px!important;
    font-weight:750!important;
    line-height:1.3!important;
}
body.nplb-active .nplb-thread-form textarea,
body.nplb-active .comment-respond textarea{
    min-height:132px!important;
    padding:15px 16px!important;
    border:1px solid #ced9e7!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:inset 0 1px 2px rgba(15,38,71,.025)!important;
    resize:vertical!important;
}
body.nplb-active .nplb-thread-form textarea:focus,
body.nplb-active .comment-respond textarea:focus{
    border-color:#7fa5ff!important;
    box-shadow:0 0 0 3px rgba(36,99,243,.10)!important;
    outline:0!important;
}
body.nplb-active .nplb-thread-form input[type="submit"],
body.nplb-active .comment-respond input[type="submit"],
body.nplb-active .comment-respond button[type="submit"]{
    min-height:38px!important;
    padding:9px 17px!important;
    border-radius:9px!important;
}

@media(max-width:768px){
    body.nplb-active .nplb-route-nav-title{white-space:normal;font-size:13px;}
}

/* =========================================================
   V2.4.3 — LECCIÓN PREMIUM Y RECORRIDO LIMPIO
   Solo presentación: LearnDash conserva datos y comportamiento.
   ========================================================= */

/* Ocultación robusta del bloque redundante que anuncia el quiz siguiente */
body.nplb-active .nplb-redundant-next-quiz,
body.nplb-active .nplb-redundant-next-quiz[hidden]{display:none!important;}

/* El encabezado híbrido "Lección Content" deja de ocupar espacio */
body.nplb-active .nplb-lesson-content-heading-removed,
body.nplb-active .nplb-lesson-content-heading-removed[hidden]{display:none!important;}

/* Compactar la cabecera y el inicio del contenido */
@media (min-width:1025px){
 body.nplb-active .learndash_content_wrap > h1:first-child,
 body.nplb-active .learndash_content_wrap > h2:first-child{margin-bottom:16px!important;}
 body.nplb-active .learndash_content_wrap .ld-breadcrumbs{margin-bottom:18px!important;}
 body.nplb-active .learndash_content_wrap .ld-status{margin-bottom:18px!important;}
}

/* Panel de temas de la lección */
body.nplb-active .nplb-lesson-topics-panel{
 position:relative;
 margin:20px 0 8px!important;
 padding:18px 20px 8px!important;
 border:1px solid #dfe7f1!important;
 border-radius:14px!important;
 background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important;
 box-shadow:0 8px 22px rgba(15,38,71,.045)!important;
 overflow:hidden!important;
}
body.nplb-active .nplb-lesson-topics-panel .ld-table-list-header,
body.nplb-active .nplb-lesson-topics-panel .ld-lesson-topic-list-header{
 margin:0 0 10px!important;
 padding:0 0 12px!important;
 border-bottom:1px solid #e8eef5!important;
 background:transparent!important;
 color:#14223b!important;
}
body.nplb-active .nplb-lesson-topics-panel .ld-table-list-items,
body.nplb-active .nplb-lesson-topics-panel .ld-lesson-topic-list{
 border:0!important;
 background:transparent!important;
}
body.nplb-active .nplb-lesson-topics-panel .ld-table-list-item,
body.nplb-active .nplb-lesson-topics-panel .ld-topic-list-item{
 margin:0!important;
 border:0!important;
 border-bottom:1px solid #edf1f6!important;
 background:transparent!important;
}
body.nplb-active .nplb-lesson-topics-panel .ld-table-list-item:last-child,
body.nplb-active .nplb-lesson-topics-panel .ld-topic-list-item:last-child{border-bottom:0!important;}
body.nplb-active .nplb-lesson-topics-panel .ld-table-list-item-preview,
body.nplb-active .nplb-lesson-topics-panel .ld-topic-list-item-preview{
 min-height:58px!important;
 padding:13px 4px!important;
 border:0!important;
 border-radius:9px!important;
 transition:background .18s ease,transform .18s ease!important;
}
body.nplb-active .nplb-lesson-topics-panel .ld-table-list-item-preview:hover,
body.nplb-active .nplb-lesson-topics-panel .ld-topic-list-item-preview:hover{
 background:#f5f8ff!important;
 transform:translateX(2px)!important;
}

/* Progreso interno de la lección, derivado del estado visual nativo */
body.nplb-active .nplb-lesson-progress{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 gap:8px 12px;
 align-items:center;
 margin:0 0 14px;
 padding:13px 15px;
 border:1px solid #e1e9f3;
 border-radius:11px;
 background:#f7faff;
}
body.nplb-active .nplb-lesson-progress-label{
 color:#14223b;font-size:13px;font-weight:800;line-height:1.25;
}
body.nplb-active .nplb-lesson-progress-value{
 color:#2457f5;font-size:12px;font-weight:800;white-space:nowrap;
}
body.nplb-active .nplb-lesson-progress-track{
 grid-column:1/-1;height:5px;overflow:hidden;border-radius:999px;background:#e2e9f2;
}
body.nplb-active .nplb-lesson-progress-fill{
 display:block;height:100%;border-radius:inherit;background:#2d63f3;transition:width .35s ease;
}

/* Navegación inferior en tarjetas, incluso si la clase inicial no llegó a aplicarse */
body.nplb-active .learndash-wrapper .ld-content-actions:not(.ld-focus-header *){
 gap:14px!important;
}
body.nplb-active .learndash-wrapper .ld-content-actions .nplb-route-nav-card{
 border:1px solid #dfe7f1!important;
 border-radius:12px!important;
 background:#fff!important;
 box-shadow:0 5px 15px rgba(15,38,71,.045)!important;
 transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
body.nplb-active .learndash-wrapper .ld-content-actions .nplb-route-nav-card:hover{
 transform:translateY(-2px)!important;
 border-color:#bed1ff!important;
 box-shadow:0 9px 22px rgba(36,99,243,.10)!important;
}

/* Estado completado más claro */
body.nplb-active .nplb-completion-humanised{color:#2457f5!important;font-weight:800!important;}

/* Menos hueco entre navegación, volver al curso y comentarios */
@media (min-width:769px){
 body.nplb-active .learndash-wrapper .ld-content-actions{margin-top:18px!important;margin-bottom:12px!important;}
 body.nplb-active .learndash-wrapper .ld-content-actions + .ld-course-step-back{margin-top:8px!important;margin-bottom:20px!important;}
 body.nplb-active .nplb-article-comments{margin-top:20px!important;}
 body.nplb-active .comment-respond{padding:18px 20px!important;border-color:#e2e9f2!important;}
 body.nplb-active .comment-respond textarea{min-height:116px!important;}
}

@media(max-width:768px){
 body.nplb-active .nplb-lesson-topics-panel{padding:14px 14px 5px!important;border-radius:12px!important;}
 body.nplb-active .nplb-lesson-progress{padding:11px 12px;}
}

/* =========================================================
   V2.4.4 — PULIDO FINAL DE ESCRITORIO
   Un solo contenedor para comentarios y espaciado refinado.
   ========================================================= */

/* El bloque general de comentarios es la única tarjeta. */
body.nplb-active .nplb-article-comments{
    overflow:hidden!important;
}

/* El formulario continúa dentro del mismo bloque, sin tarjeta anidada. */
body.nplb-active .nplb-article-comments .nplb-thread-form,
body.nplb-active .nplb-article-comments .comment-respond,
body.nplb-active .nplb-article-comments #respond{
    margin:18px 0 0!important;
    padding:20px 0 0!important;
    border:0!important;
    border-top:1px solid #e7edf5!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
body.nplb-active .nplb-article-comments .comment-form{
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
body.nplb-active .nplb-article-comments .comment-reply-title{
    margin:0 0 12px!important;
    font-size:18px!important;
}
body.nplb-active .nplb-article-comments textarea{
    min-height:112px!important;
    border-radius:10px!important;
}
body.nplb-active .nplb-article-comments .form-submit{
    margin:10px 0 0!important;
}

/* Comentarios como filas limpias del mismo panel. */
body.nplb-active .nplb-article-comments .comment-list,
body.nplb-active .nplb-article-comments .nplb-thread-list{
    margin:0!important;
    padding:0!important;
}
body.nplb-active .nplb-article-comments .comment,
body.nplb-active .nplb-article-comments .nplb-thread-comment,
body.nplb-active .nplb-article-comments .nplb-comment-item{
    background:transparent!important;
    border-radius:0!important;
    box-shadow:none!important;
}

/* Cabecera y contenido ligeramente más compactos en escritorio. */
@media (min-width:1025px){
    body.nplb-active .learndash-wrapper .ld-focus-content > .ld-focus-content-container{
        padding-top:30px!important;
        padding-bottom:34px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-content h1{
        margin-bottom:12px!important;
    }
    body.nplb-active .learndash-wrapper .ld-breadcrumbs{
        margin-bottom:20px!important;
    }
    body.nplb-active .learndash-wrapper .ld-content-actions{
        margin-top:16px!important;
    }
}

/* Estado completado con lectura natural, sin aspecto de etiqueta técnica. */
body.nplb-active .learndash-wrapper .ld-status-complete,
body.nplb-active .learndash-wrapper .ld-status-complete *{
    text-transform:none!important;
    letter-spacing:0!important;
}

/* Botones de navegación superior con mejor área visual. */
@media (min-width:1025px){
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-button{
        min-height:44px!important;
    }
}


/* =========================================================
   V2.4.5 — MANTENIMIENTO: ALTURA DINÁMICA DE COMENTARIOS
   Corrige el max-height inline de LearnDash al desplegar hilos.
   No modifica la funcionalidad ni el diseño del sistema.
   ========================================================= */
body.nplb-active .learndash-wrapper .ld-focus-comments,
body.nplb-active .learndash-wrapper #ld-comments,
body.nplb-active .learndash-wrapper #ld-comments.ld-expanded,
body.nplb-active .learndash-wrapper #ld-comments-wrapper,
body.nplb-active .learndash-wrapper .ld-focus-comments__comments,
body.nplb-active .learndash-wrapper .nplb-article-comments,
body.nplb-active .learndash-wrapper .nplb-thread-list,
body.nplb-active .learndash-wrapper .nplb-thread-conversation,
body.nplb-active .learndash-wrapper .nplb-comment-replies,
body.nplb-active .learndash-wrapper .nplb-thread-form,
body.nplb-active .learndash-wrapper #respond,
body.nplb-active .learndash-wrapper .comment-respond{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
}

/* Anula el overflow hidden introducido en el pulido visual anterior. */
body.nplb-active .nplb-article-comments{
    overflow:visible!important;
}

/* Las respuestas anidadas crecen en el flujo normal del documento. */
body.nplb-active .nplb-comment-replies:not([hidden]){
    display:block!important;
    visibility:visible!important;
    max-height:none!important;
    overflow:visible!important;
}

/* Evita que metadatos estrechos se partan palabra por palabra. */
body.nplb-active .nplb-comment-meta,
body.nplb-active .nplb-comment-date,
body.nplb-active .comment-metadata,
body.nplb-active .comment-metadata time{
    min-width:0!important;
    width:auto!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
}

/* =========================================================
   V2.5.0 — CIERRE ESTABLE Y PULIDO RESPONSIVE
   Ajustes exclusivamente visuales. No altera la lógica de LearnDash.
   ========================================================= */

/* Interacciones discretas y consistentes. */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-table-list-item-preview,
body.nplb-active .learndash-wrapper .ld-content-actions a,
body.nplb-active .learndash-wrapper .ld-focus-sidebar-trigger,
body.nplb-active .learndash-wrapper .ld-expand-button{
    transition:transform .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease,opacity .18s ease!important;
}

/* Foco visible para navegación por teclado. */
body.nplb-active .learndash-wrapper a:focus-visible,
body.nplb-active .learndash-wrapper button:focus-visible,
body.nplb-active .learndash-wrapper input:focus-visible,
body.nplb-active .learndash-wrapper textarea:focus-visible{
    outline:3px solid rgba(36,99,235,.25)!important;
    outline-offset:3px!important;
}

/* Respuestas anidadas robustas también en anchuras pequeñas. */
body.nplb-active .nplb-comment-replies,
body.nplb-active .children{
    min-width:0!important;
    width:auto!important;
}
body.nplb-active .nplb-comment-replies .comment-body,
body.nplb-active .children .comment-body,
body.nplb-active .nplb-comment-replies .nplb-comment-content,
body.nplb-active .children .nplb-comment-content{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
}
body.nplb-active .nplb-comment-replies .comment-author,
body.nplb-active .children .comment-author,
body.nplb-active .nplb-comment-replies .comment-metadata,
body.nplb-active .children .comment-metadata{
    min-width:0!important;
    max-width:100%!important;
}

@media (max-width:768px){
    /* En móvil las migas repiten información y consumen demasiado alto. */
    body.nplb-active .learndash-wrapper .ld-breadcrumbs{
        display:none!important;
    }

    /* Cabecera móvil más equilibrada. */
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-brand-logo{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        padding:6px 9px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-brand-logo img{
        width:auto!important;
        max-width:58px!important;
        max-height:48px!important;
        transform:scale(1.10);
        transform-origin:center;
    }
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-mobile-nav,
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-mobile-nav-trigger,
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-focus-sidebar-trigger{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
    }

    /* Área táctil cómoda para anterior/siguiente. */
    body.nplb-active .learndash-wrapper .ld-focus-header .ld-content-actions .ld-content-action .ld-button{
        min-height:46px!important;
    }
    body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action a,
    body.nplb-active .learndash-wrapper .ld-content-actions .ld-content-action button{
        min-height:46px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
    }

    /* Drawer más fluido sin cambiar el mecanismo nativo. */
    body.nplb-active .learndash-wrapper .ld-focus-sidebar{
        transition:transform .28s cubic-bezier(.22,.61,.36,1),box-shadow .28s ease,visibility .28s ease!important;
        box-shadow:10px 0 34px rgba(11,32,63,.16)!important;
        will-change:transform;
    }
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation{
        -webkit-overflow-scrolling:touch;
        overscroll-behavior:contain;
    }

    /* Comentarios: mejor aprovechamiento del ancho y jerarquía clara. */
    body.nplb-active .nplb-article-comments{
        border-radius:14px!important;
    }
    body.nplb-active .nplb-comment-replies,
    body.nplb-active .children{
        margin-left:12px!important;
        padding-left:14px!important;
    }
    body.nplb-active .nplb-comment-replies .comment-body,
    body.nplb-active .children .comment-body{
        padding-right:0!important;
    }
    body.nplb-active .nplb-article-comments .comment-reply-title{
        font-size:20px!important;
        line-height:1.25!important;
    }
    body.nplb-active .nplb-article-comments textarea{
        min-height:132px!important;
    }

    /* Tarjetas visualmente ligeras en pantallas táctiles. */
    body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-table-list,
    body.nplb-active .learndash-wrapper .learndash_content_wrap .ld-lesson-list,
    body.nplb-active .nplb-article-comments{
        box-shadow:0 7px 20px rgba(16,40,76,.05)!important;
    }
}

@media (hover:hover) and (pointer:fine){
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview:hover,
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-table-list-item-preview:hover{
        transform:translateX(2px)!important;
    }
}

@media (prefers-reduced-motion:reduce){
    body.nplb-active .learndash-wrapper *,
    body.nplb-active .learndash-wrapper *::before,
    body.nplb-active .learndash-wrapper *::after{
        scroll-behavior:auto!important;
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
        transition-duration:.01ms!important;
    }
}


/* =========================================================
   V2.6.1 — SIDEBAR JERÁRQUICA DESPLEGABLE
   Categoría > módulo/lección > contenidos
   ========================================================= */
body.nplb-active .learndash-wrapper .ld-focus-sidebar.nplb-hierarchical-sidebar .ld-course-navigation{
    padding-bottom:18px!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-group{
    margin:0 0 8px!important;
    border:1px solid #e0e8f2!important;
    border-radius:12px!important;
    background:#fff!important;
    overflow:hidden!important;
    box-shadow:0 2px 8px rgba(15,38,71,.035)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-group.has-current{
    border-color:#c8d9fa!important;
    box-shadow:0 4px 13px rgba(36,87,245,.075)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-toggle{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:100%!important;
    min-height:42px!important;
    margin:0!important;
    padding:10px 11px 10px 13px!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    color:#193353!important;
    box-shadow:none!important;
    font:inherit!important;
    text-align:left!important;
    cursor:pointer!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-toggle:hover{
    background:#f7faff!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-toggle:focus-visible{
    position:relative!important;
    z-index:2!important;
    outline:3px solid rgba(36,87,245,.22)!important;
    outline-offset:-3px!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-title{
    min-width:0!important;
    color:inherit!important;
    font-size:10.5px!important;
    line-height:1.35!important;
    font-weight:850!important;
    letter-spacing:.065em!important;
    text-transform:uppercase!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-chevron{
    position:relative!important;
    flex:0 0 25px!important;
    width:25px!important;
    height:25px!important;
    border:1px solid #ccdaf1!important;
    border-radius:8px!important;
    background:#f3f7ff!important;
    transition:transform .2s ease,background .2s ease,border-color .2s ease!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-chevron::before{
    content:""!important;
    position:absolute!important;
    left:8px!important;
    top:7px!important;
    width:7px!important;
    height:7px!important;
    border-right:2px solid #2457f5!important;
    border-bottom:2px solid #2457f5!important;
    transform:rotate(45deg)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-group.is-open .nplb-section-chevron{
    transform:rotate(180deg)!important;
    background:#eaf1ff!important;
    border-color:#b8cdf6!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content{
    padding:0 7px 7px!important;
    border-top:1px solid #edf2f7!important;
    background:#f8fafd!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content[hidden]{
    display:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content > .ld-lesson-item{
    margin:7px 0 0!important;
    border:1px solid #e3eaf3!important;
    border-radius:10px!important;
    background:#fff!important;
    overflow:hidden!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content > .ld-lesson-item > .ld-lesson-item-preview{
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    transition:background .18s ease,border-color .18s ease!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content > .ld-lesson-item > .ld-lesson-item-preview.nplb-module-row{
    cursor:pointer!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content > .ld-lesson-item > .ld-lesson-item-preview:hover{
    background:#f7faff!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content > .ld-lesson-item.ld-is-current-lesson,
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content > .ld-lesson-item:has([aria-current="page"]){
    border-color:#bad0fb!important;
    box-shadow:0 4px 12px rgba(36,87,245,.08)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content .ld-lesson-item-expanded{
    margin:0!important;
    padding:5px 6px 7px!important;
    border:0!important;
    border-top:1px solid #e8eef6!important;
    border-radius:0!important;
    background:#eef3f8!important;
    box-shadow:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content .ld-topic-list .ld-table-list-item-preview{
    margin:3px 0!important;
}
@media (prefers-reduced-motion: reduce){
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-chevron{transition:none!important;}
}
@media (max-width:767px){
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-toggle{
        min-height:48px!important;
        padding:11px 12px 11px 14px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-title{
        font-size:11px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-chevron{
        flex-basis:28px!important;width:28px!important;height:28px!important;
    }
    body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-chevron::before{
        left:9px!important;top:8px!important;
    }
}


/* =========================================================
   V2.6.1 — CONTROL ROBUSTO DE MÓDULOS
   El estado visible depende de la clase propia y del atributo hidden.
   ========================================================= */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-expanded[hidden]{
    display:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-module-open > .ld-lesson-item-expanded{
    display:block!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item:not(.nplb-module-open) > .ld-lesson-item-expanded{
    display:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item.nplb-module-open > .ld-lesson-item-preview .ld-expand-button{
    transform:rotate(180deg)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item-preview .ld-expand-button{
    transition:transform .2s ease!important;
}


/* =========================================================
   V2.6.2 — ACORDEÓN INTERNO ROBUSTO
   Selectores independientes de wrappers intermedios de LearnDash.
   ========================================================= */
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content .ld-lesson-item .nplb-module-panel{
    overflow:hidden!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content .ld-lesson-item:not(.nplb-module-open) .nplb-module-panel{
    display:none!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .nplb-section-content .ld-lesson-item.nplb-module-open .nplb-module-panel{
    display:block!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item .ld-expand-button[aria-expanded="true"]{
    transform:rotate(180deg)!important;
}
body.nplb-active .learndash-wrapper .ld-focus-sidebar .ld-lesson-item .ld-expand-button[aria-expanded="false"]{
    transform:rotate(0deg)!important;
}
