body {
    font-size: 1rem;
    font-weight: 400;
    color: #171717;
}
a {
    font-size: 1rem;
    font-weight: 400;
    color: #171717;
}
a:hover {
    font-size: 1rem;
    font-weight: 400;
    color: #222222;
}
button {
    font-size: 1rem;
    font-weight: 400;
    color: #171717;
}

small a,
small a:hover {
    font-size: 100%;
}

a:focus {
    outline: none;
}

.dropdown-menu {
    z-index: 1020;
}




.cms-heading-band h1, .cms-heading-band h2, .cms-heading-band h3, .cms-heading-band h4 { margin: 0; }
.heading-default.cms-heading-band h1,
.heading-default.cms-heading-band h2,
.heading-default.cms-heading-band h3,
.heading-default.cms-heading-band h4 {
    font-weight: 500;
    padding: 0 10px 0 10px;
}

.heading-default.cms-heading-band .cms-band-font-size {
    font-size: 25px!important;
}

.heading-default.cms-heading-band .cms-band-text-transform {
    text-transform: uppercase!important;
}

.heading-default.cms-heading-band .cms-band-height {
    line-height: 100px!important;
}

.heading-default.cms-heading-band .cms-band-primary-color {
    color: #ffffff!important;
}

.heading-default.cms-heading-band .cms-band-text-align {
    text-align: center!important;
}

.heading-default.cms-heading-band .cms-heading-inner h1 .cms-icon-left {
    width: 2rem;
    height: 2rem;
    margin-right: .5rem;
    margin-bottom: 2px;
}

.heading-default.cms-heading-band .heading_colored_bottom_line h2 {
    display: inline-block;
    padding: 0;margin: 0;
}

.heading-default.cms-heading-band .cms-heading-inner h1 .cms-icon-left img {
    height: 37.5px;
    width: auto
}
.heading-default.cms-heading-band .cms-heading-inner h1 .cms-icon-left i {
    font-size: 23px;
}
.heading-default.cms-heading-band .cms-heading-inner h1 .cms-icon-right {
    float: right;
}
.heading-default.cms-heading-band .cms-heading-inner h1 .cms-icon-right img {
    width: 25px;
    height: 25px;
}
.heading-default.cms-heading-band .cms-heading-inner h1 .cms-icon-right i {
    font-size: 23px;
}
.heading-default.cms-heading-band .cms-heading-inner h1 .cms-icon-right a {
    color: #ffffff;
}

.heading-default.cms-heading-band .cms-parallax {
    background: rgba(0, 0, 0, 0) url("/images/band-system/heading-background.png") no-repeat fixed 100% center;
    background-size: cover;
}

.heading-default.cms-heading-band .cms-band-primary-color,
.heading-default.band_breadcrumb_heading .breadcrumb > li + li:before {
    color: #ffffff!important;
    font-size: 14px;
}

.heading-default.cms-heading-band .cms-white-background-with-bottom-line .cms-heading-inner h1.cms-band-primary-color {
    color: #ffffff}


.heading-default.cms-heading-band .heading_colored_bottom_line.cms-band-third-color {
    border: none!important;
}

.heading-default.cms-heading-band .cms-white-background-with-bottom-line .cms-band-border-height {
    border-bottom-style: solid;
}


@media (max-width: 1024px) {
    .heading-default.cms-heading-band .cms-heading-inner h1.cms-band-font-size {
        font-size: 20px;
    }
    .heading-default.cms-heading-band .cms-heading-inner h1.cms-band-height {
        line-height: 80px;
    }
}
@media (max-width: 768px) {
    .heading-default.cms-heading-band .cms-heading-inner h1.cms-band-font-size {
        font-size: 17.5px;
    }
    .heading-default.cms-heading-band .cms-heading-inner h1.cms-band-height {
        line-height: 70px;
    }
}
@media (max-width: 500px) {
    .heading-default.cms-heading-band .cms-heading-inner h1.cms-band-font-size {
        font-size: 14px;
    }
    .heading-default.cms-heading-band .cms-heading-inner h1.cms-band-height {
        line-height: 55px;
    }
}




ul.nav  ul.nav {
    margin-left: 1rem;
}

.rotate-90 {
    transform: rotate(-90deg)
}

.text-top-to-bottom {
    width: 1rem;
    word-wrap: break-word;
    line-height: .9;
    text-align: center;
    font-weight: 600;
}

.hide-before-build {
    display: none !important;
}

/* select2 bug fix */
.select2-container,
.select2-container li:only-child,
.select2-container input:placeholder-shown {
    width: 100% !important;
}
.flex-section-container[data-id="5665"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5665 {
        background-color: #4472c4;
        }



.flex-section[data-id="7596"] {
                                            padding: 0 0 0 0;
            
    }






.flex-section.social-media-icons[data-id="7596"] a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    margin-left: 0.5rem;
}

.flex-section[data-id="7597"] {
                                            padding: 0 0 0 0;
            
    }






.flex-section.sign-up-login[data-id="7597"] .sign-up-login-wrapper {
    text-align: right;
}
.flex-section[data-id="7597"],
.flex-section[data-id="7597"] a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
}
.flex-section.sign-up-login[data-id="7597"] .dropdown-menu {
    background-color: rgba(34, 38, 44, 1);
}
.flex-section.sign-up-login[data-id="7597"] .dropdown-item:hover,
.flex-section.sign-up-login[data-id="7597"] .dropdown-item:focus {
    background-color: rgba(0, 0, 0, .5);
}


.sign-up-login.modal-dialog .left-column {
    padding-top: 2rem;
}
.sign-up-login.modal-dialog .middle-column {
    padding-top: 1.5rem;
}
.sign-up-login.modal-dialog .middle-column h4 {
    margin-top: 1rem;
    padding: 0.5rem;
    color: white;
    background-color: rgba(0, 0, 0, .6);
    text-align: center;
}
.sign-up-login.modal-dialog .right-column {
    padding-top: 2rem;
}

.sign-up-login.modal-dialog .modal-content {
    background-color: rgba(33, 30, 30, 1);
}

.sign-up-login.modal-dialog .g-recaptcha {
    margin: 0 auto;display: table; -webkit-transform: scale(0.77);
    -moz-transform: scale(0.77);
    -ms-transform: scale(0.77);
    -o-transform: scale(0.77);
    transform: scale(0.77);
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    transform-origin: 0 0;
}

.flex-section.sign-up-login[data-id="7597"] .menu-text {
    text-wrap: wrap;word-break: break-word;
    line-break: normal;
    hyphens: auto;
    overflow-wrap: break-word;
}
.flex-section-container[data-id="5666"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5666 {
        }



.flex-section[data-id="7598"] {
                                            padding: 10px 10px 10px 10px;
            
    }






.flex-section[data-id="7599"] {
            margin-top: 10px;
                        margin-bottom: 10px;
                        padding: 5px 5px 5px 5px;
            
    }





.flex-section.slogan[data-id="7599"] .text {
    font-weight: 600;
    text-align: center;
}
.flex-section[data-id="7600"] {
                                            padding: 5px 5px 5px 5px;
            
    }





.flex-section.language-currency[data-id="7600"] {
    text-align: right;
}
.flex-section.language-currency[data-id="7600"] .flag-wrapper,
.flex-section.language-currency[data-id="7600"] .symbol-wrapper {
    display: inline-block;
    font-size: 1rem;
    width: 2rem;
    height: 1.5rem;
    margin: 0;
}

.flex-section.language-currency[data-id="7600"] .symbol-wrapper a {
    color: #007bff;
    background-color: #f8f9fa;
    border-color: #007bff;
}
.flex-section.language-currency[data-id="7600"] .symbol-wrapper a.active {
    color: #f8f9fa;
    background-color: #007bff;
    border-color: #f8f9fa;
}
.flex-section-container[data-id="5667"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5667 {
        background-color: #4472c4;
        }



.flex-section[data-id="7601"] {
                                            padding: 0 0 0 0;
            
    }






.flex-section.navbar-menu[data-id="7601"] .dropdown-item:hover,
.flex-section.navbar-menu[data-id="7601"] .dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.5);
}
.flex-section.navbar-menu[data-id="7601"] .navbar-toggler {
    color: #fff;
}
.flex-section.navbar-menu[data-id="7601"] a.nav-link {
    color: #fff;
}
.flex-section.navbar-menu[data-id="7601"] .dropdown-menu .dropdown-item {
    color: #ffffff;
}
.flex-section.navbar-menu[data-id="7601"] .dropdown-menu {
    margin: 0;
    background-color: #4472c4;
}

@media only screen and (min-width:992px) {
    .flex-section.navbar-menu[data-id="7601"] .dropdown:hover .dropdown-menu {
        display: block;
    }
    .flex-section.navbar-menu[data-id="7601"] .dropdown-submenu {
        position: relative !important;
    }
    .flex-section.navbar-menu[data-id="7601"] .dropdown-submenu>.dropdown-menu {
        top: 0 !important;
        left: 100% !important;
        margin-top: -6px !important;
        margin-left: -1px !important;
        border-radius: 0 !important;
    }
}
.flex-section-container[data-id="5668"] {
                                            padding: 0 0 0 0;
    }
.flex-section-container[data-id="5668"] {
        }



.flex-section[data-id="7602"] {
                                            padding: 0 0 0 0;
            
    }





.flex-section.page-slider[data-id="7602"] {
    display: block;
}
.flex-section.page-slider[data-id="7602"] .camera_caption {
    top: 40%;
}
.flex-section-container[data-id="5669"] {
                                            padding: 0 0 0 0;
    }
.flex-section-container[data-id="5669"] {
        }



.flex-section[data-id="7603"] {
                                            padding: 0 0 0 0;
            background-color: #ffffff;
        
    }





.flex-section.general-slider[data-id="7603"] {
    display: block;
}
.flex-section.general-slider[data-id="7603"] .camera_caption {
    top: 40%;
}
.flex-section-container[data-id="5670"] {
                                            padding: 0 0 0 0;
    }
.flex-section-container[data-id="5670"] {
        }



.flex-section[data-id="7604"] {
                                            padding: 1rem 0 0 0;
            background-color: #ffffff;
        
    }





.flex-section.page-text[data-id="7604"] .text {
    margin-top: 1.5rem;
}
@media (max-width: 768px) {
    .flex-section.page-text[data-id="7604"] .main-image {
        width: 100%;
    }
}
@media (min-width: 769px) {
    .flex-section.page-text[data-id="7604"] .main-image {
        width: 50%;
    }
}
@media (min-width: 1200px) {
    .flex-section.page-text[data-id="7604"] .main-image {
        width: 40%;
    }
}
@media (min-width: 1440px) {
    .flex-section.page-text[data-id="7604"] .main-image {
        width: 40%;
    }
}

.flex-section.page-text[data-id="7604"] button[type="button"].read-more {
    border: 0;
    outline: none;
    background-color: transparent;
    font-weight: 600;
    text-decoration: underline;
}
.flex-section.page-text[data-id="7604"] svg.cms-icon-left path,
.flex-section.page-text[data-id="7604"] svg.cms-icon-left polygon {
    fill: #ffffff;
}


.flex-section-container[data-id="5671"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5671 {
        }



.flex-section[data-id="7605"] {
                                            padding: 0 0 0 0;
            
    }





.flex-section.sponsors[data-id="7605"] .sponsor-image {
    border: 1px solid #999;
    background: #ffffff;
    box-shadow: 0 4px 2px -2px #c3c2c2;
    -o-box-shadow: 0 4px 2px -2px #c3c2c2;
    -ms-box-shadow: 0 4px 2px -2px #c3c2c2;
    -moz-box-shadow: 0 4px 2px -2px #c3c2c2;
    -webkit-box-shadow: 0 4px 2px -2px #c3c2c2;
    transition: all 0.3s ease-out 0s;
}
.flex-section.sponsors[data-id="7605"] .sponsor-image:hover {
    box-shadow: 0 8px 6px -6px #777;
    -o-box-shadow: 0 8px 6px -6px #777;
    -ms-box-shadow: 0 8px 6px -6px #777;
    -moz-box-shadow: 0 8px 6px -6px #777;
    -webkit-box-shadow: 0 8px 6px -6px #777;
    cursor: pointer;
}
.flex-section-container[data-id="5672"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5672 {
        background-color: #4472c4;
        }



.flex-section[data-id="7606"] {
                                            padding: 0 0 0 0;
            
    }






.flex-section.navbar-menu[data-id="7606"] .dropdown-item:hover,
.flex-section.navbar-menu[data-id="7606"] .dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.5);
}
.flex-section.navbar-menu[data-id="7606"] .navbar-toggler {
    color: #fff;
}
.flex-section.navbar-menu[data-id="7606"] a.nav-link {
    color: #fff;
}
.flex-section.navbar-menu[data-id="7606"] .dropdown-menu .dropdown-item {
    color: #fff;
}
.flex-section.navbar-menu[data-id="7606"] .dropdown-menu {
    margin: 0;
    background-color: #1a6f9a;
}

@media only screen and (min-width:992px) {
    .flex-section.navbar-menu[data-id="7606"] .dropdown:hover .dropdown-menu {
        display: block;
    }
    .flex-section.navbar-menu[data-id="7606"] .dropdown-submenu {
        position: relative !important;
    }
    .flex-section.navbar-menu[data-id="7606"] .dropdown-submenu>.dropdown-menu {
        top: 0 !important;
        left: 100% !important;
        margin-top: -6px !important;
        margin-left: -1px !important;
        border-radius: 0 !important;
    }
}
.flex-section-container[data-id="5673"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5673 {
        background-color: #009900;
        }



.flex-section[data-id="7607"] {
                                            padding: 1rem 1rem 1rem 1rem;
            
    }





.flex-section.info-bar[data-id="7607"],
.flex-section.info-bar[data-id="7607"] a{
    color: #fff;
}
.flex-section.info-bar[data-id="7607"] i.fa,
.flex-section.info-bar[data-id="7607"] i.fab {
    font-size: 3rem;
}
.flex-section-container[data-id="5674"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5674 {
        background-color: #4472c4;
        }



.flex-section[data-id="7608"] {
                                            padding: 0 0 0 0;
            
    }






.flex-section.nav-menu[data-id="7608"],
.flex-section.nav-menu[data-id="7608"] a {
    font-size: 1rem;
    text-decoration: none;
}
.flex-section[data-id="7609"] {
                                            padding: 0 0 0 0;
            
    }






.flex-section.nav-menu-enriched[data-id="7609"],
.flex-section.nav-menu-enriched[data-id="7609"] a {
    font-size: 1rem;
    text-decoration: none;
}

.flex-section.nav-menu-enriched[data-id="7609"] .wrapper {
    padding: .5rem 1rem 0 .5rem;
    border-bottom: 1px #0d94f2 solid;
    min-height: 2rem;
}
.flex-section.nav-menu-enriched[data-id="7609"] .wrapper img.nav-icon {
    width: 2rem;
    height: 2rem;
}
.flex-section.nav-menu-enriched[data-id="7609"] .wrapper a.nav-link {
    padding: 0 .5rem;
}
.flex-section.nav-menu-enriched[data-id="7609"] .wrapper a.nav-link.parent-menu {
    border-bottom: 1px solid white;
}
.flex-section-container[data-id="5675"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5675 {
        background-color: rgba(0, 153, 0, 0.7);
        }



.flex-section[data-id="7610"] {
                                            padding: 1rem 0 0 0;
            
        color: #ffffff;
    }
.flex-section[data-id="7610"] h1,
.flex-section[data-id="7610"] h2,
.flex-section[data-id="7610"] h3,
.flex-section[data-id="7610"] h4,
.flex-section[data-id="7610"] h5,
.flex-section[data-id="7610"] h6 {
    color: #ffffff;
}

.flex-section[data-id="7610"] a {
    color: #ffffff;
}

.flex-section[data-id="7610"] a:hover {
    color: #4472c4;
}




.flex-section.copyright-footer[data-id="7610"] {
}
.flex-section-container[data-id="5676"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-5676 {
        }



.flex-section[data-id="7611"] {
                                            padding: 0 0 0 0;
            
    }






.flex-section.scroll-to-top[data-id="7611"] {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    text-decoration: none;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    display: none;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1000;
}
.flex-section.scroll-to-top[data-id="7611"] i {
    color: #fff;
    margin: 0;
    position: relative;
    left: 13px;
    top: 13px;
    font-size: 30px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.flex-section.scroll-to-top[data-id="7611"]:hover {
    background: rgba(0, 0, 0, 0.9);
}
.flex-section.scroll-to-top[data-id="7611"]:hover i {
    color: #fff;
    /*top: 5px;*/

}
.flex-section-container[data-id="1362"] {
                                            padding: 0 0 0 0;
    }
.fluid-wrapped-1362 {
        }



.flex-section[data-id="1824"] {
                                            padding: 0 0 0 0;
            
    }





/* ===================================================================
   School Education Courses — CSS BLINDADO (listado + vista individual)
   -------------------------------------------------------------------
   Todo cuelga del doble scope:
     .flex-section.school-education-courses[data-id="X"] .sec-root
   Ningún selector de tag genérico colgando directamente del scope.
   Cada h1/p/a/img/ul/table va precedido por una clase sec-* explícita.
   Los tags genéricos de HTML que viene del ORM viven solo dentro de
   .sec-rich-text.
   Sustituye $container_section->getId() al generar el CSS final.
   =================================================================== */


/* ============ RAÍZ (.sec-root) ============ */
.flex-section.school-education-courses[data-id="1824"] .sec-root {
    --sec-primary:         #8B1A3B;
    --sec-primary-dark:    #6d0f2b;
    --sec-primary-soft:    #f4e3e9;
    --sec-on-primary:      #ffffff;

    --sec-bg-cream:        #f9f6f0;
    --sec-card-bg:         #ffffff;

    --sec-text:            #2a2a2a;
    --sec-text-muted:      #6c6c6c;
    --sec-text-light:      #8a8a8a;

    --sec-border:          #e6e1d7;
    --sec-border-soft:     #efece5;

    --sec-radius:          .375rem;
    --sec-radius-lg:       .5rem;
    --sec-radius-xl:       .875rem;
    --sec-shadow-sm:       0 .25rem .75rem rgba(0,0,0,.05);
    --sec-shadow-lg:       0 1rem 2rem rgba(0,0,0,.12);

    --sec-font:            "Open Sans", system-ui, -apple-system, Arial, sans-serif;

    font-family: var(--sec-font);
    font-weight: 400;
    color: var(--sec-text);
    background: var(--sec-bg-cream);
    line-height: 1.5;
    box-sizing: border-box;
}
.flex-section.school-education-courses[data-id="1824"] .sec-root *,
.flex-section.school-education-courses[data-id="1824"] .sec-root *::before,
.flex-section.school-education-courses[data-id="1824"] .sec-root *::after {
    box-sizing: border-box;
}

/* Utilidades internas */
.flex-section.school-education-courses[data-id="1824"] .sec-hidden { display: none !important; }
.flex-section.school-education-courses[data-id="1824"] .sec-clearfix::after { content: ""; display: table; clear: both; }

/* Icono SVG base */
.flex-section.school-education-courses[data-id="1824"] .sec-icon {
    width: 1.05em;
    height: 1.05em;
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}
.flex-section.school-education-courses[data-id="1824"] .sec-icon-sm { width: .9em; height: .9em; }


/* ============ .sec-rich-text  (único estilado de tags genéricos) ============ */
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text {
    font-size: 1rem;
    line-height: 1.7;
    color: inherit;
}
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text p {
    margin: 0 0 1rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text p:last-child { margin-bottom: 0; }
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text ul,
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text li {
    margin-bottom: .35rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text a {
    color: var(--sec-primary);
    text-decoration: underline;
}
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text a:hover {
    color: var(--sec-primary-dark);
}
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: var(--sec-radius);
}
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text h1,
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text h2,
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text h3,
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text h4,
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text h5,
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text h6 {
    margin: 1.25rem 0 .75rem;
    font-family: var(--sec-font);
    font-weight: 500;
    line-height: 1.3;
}
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text strong { font-weight: 500; }
.flex-section.school-education-courses[data-id="1824"] .sec-rich-text em { font-style: italic; }


/* ============ CONTAINER + NOTICE + EMPTY ============ */
.flex-section.school-education-courses[data-id="1824"] .sec-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
}
@media (min-width: 1200px) {
    .flex-section.school-education-courses[data-id="1824"] .sec-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.flex-section.school-education-courses[data-id="1824"] .sec-notice {
    padding: .75rem 1rem;
    font-size: .9rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-notice-inner {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-notice-text { line-height: 1.4; }
.flex-section.school-education-courses[data-id="1824"] .sec-notice-danger {
    background: #fde8ea;
    color: #842029;
    border-bottom: 1px solid #f5c2c7;
}
.flex-section.school-education-courses[data-id="1824"] .sec-notice-success {
    background: #d1e7dd;
    color: #0f5132;
    border-radius: var(--sec-radius);
    margin-top: 1rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-empty {
    padding: .5rem;
    text-align: center;
    color: var(--sec-text-light);
}


/* ================================================================
   ============ LISTADO DE CURSOS (grid de tarjetas) ==============
   ================================================================ */

.flex-section.school-education-courses[data-id="1824"] .sec-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
@media (min-width: 768px) {
    .flex-section.school-education-courses[data-id="1824"] .sec-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}
@media (min-width: 1200px) {
    .flex-section.school-education-courses[data-id="1824"] .sec-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
        padding: 2.5rem 2rem;
    }
}

/* Tonos por tarjeta */
.flex-section.school-education-courses[data-id="1824"] .sec-course-card[data-tone="burgundy"] {
    --card-tone:      #8B1A3B;
    --card-tone-dark: #6d0f2b;
    --card-tone-soft: #f4e3e9;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card[data-tone="teal"] {
    --card-tone:      #1F5146;
    --card-tone-dark: #143A32;
    --card-tone-soft: #e3ece9;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card[data-tone="amber"] {
    --card-tone:      #A64B1F;
    --card-tone-dark: #7A3715;
    --card-tone-soft: #efe5de;
}

.flex-section.school-education-courses[data-id="1824"] .sec-course-card {
    display: flex;
    flex-direction: column;
    background: var(--sec-card-bg);
    border-radius: var(--sec-radius-xl);
    overflow: hidden;
    box-shadow: var(--sec-shadow-sm);
    transition: box-shadow .25s ease, transform .25s ease;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card:hover {
    box-shadow: var(--sec-shadow-lg);
    transform: translateY(-2px);
}

/* ---- Cabecera coloreada ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-head {
    position: relative;
    background: var(--card-tone);
    color: var(--sec-on-primary);
    padding: 1.25rem 1.5rem 1.5rem;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-head-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,.045) 0 2px,
    transparent 2px 22px);
    pointer-events: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-head-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .75rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-badge {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: 1.3px;
    font-weight: 500;
    padding: .3rem .7rem;
    background: rgba(0,0,0,.22);
    border-radius: 999px;
    text-transform: uppercase;
    color: var(--sec-on-primary);
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-num {
    font-family: var(--sec-font);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    opacity: .35;
    line-height: 1;
    color: var(--sec-on-primary);
    align-self: flex-start;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-thumb {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.25);
    margin-bottom: .85rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-title {
    position: relative;
    margin: 0 0 .35rem;
    font-family: var(--sec-font);
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 400;
    font-style: italic;
    color: var(--sec-on-primary);
    letter-spacing: -.2px;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-subtitle {
    position: relative;
    margin: 0;
    font-size: .82rem;
    line-height: 1.4;
    color: rgba(255,255,255,.85);
    font-weight: 400;
}

/* ---- Cuerpo blanco ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-description {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--sec-text-muted);
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-prereq {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: 0;
    padding: .6rem .8rem;
    font-size: .78rem;
    line-height: 1.4;
    background: var(--card-tone-soft);
    color: var(--card-tone-dark);
    border-radius: var(--sec-radius);
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-prereq strong { font-weight: 500; }

/* ---- Pie (precio + acciones) ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--sec-border-soft);
    flex-wrap: wrap;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-price {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-price-from {
    font-size: .62rem;
    letter-spacing: 1.4px;
    font-weight: 500;
    color: var(--sec-text-light);
    text-transform: uppercase;
    margin-bottom: .25rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-price-amount {
    font-family: var(--sec-font);
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--card-tone);
    letter-spacing: -.5px;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-price-free {
    font-family: var(--sec-font);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--card-tone);
    text-transform: uppercase;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-card-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}


/* ============ BOTONES (compartidos) ============ */
.flex-section.school-education-courses[data-id="1824"] .sec-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--sec-radius);
    font-family: var(--sec-font);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .3px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .1s;
    line-height: 1.2;
    white-space: nowrap;
}
/* Primario → toma el tono de la tarjeta (card-tone) si existe, si no el primary global */
.flex-section.school-education-courses[data-id="1824"] .sec-button-primary {
    background: var(--card-tone, var(--sec-primary));
    color: var(--sec-on-primary);
    border-color: var(--card-tone, var(--sec-primary));
}
.flex-section.school-education-courses[data-id="1824"] .sec-button-primary:hover {
    background: var(--card-tone-dark, var(--sec-primary-dark));
    border-color: var(--card-tone-dark, var(--sec-primary-dark));
    color: var(--sec-on-primary);
    text-decoration: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-button-primary:active { transform: translateY(1px); }

.flex-section.school-education-courses[data-id="1824"] .sec-button-outline {
    background: transparent;
    color: var(--sec-text);
    border-color: var(--sec-border);
}
.flex-section.school-education-courses[data-id="1824"] .sec-button-outline:hover {
    background: var(--sec-bg-cream);
    color: var(--sec-text);
    text-decoration: none;
}


/* ============ DROPDOWN DE ENROL ============ */
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-dropdown {
    position: relative;
}
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-dropdown > summary {
    list-style: none;
    cursor: pointer;
}
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-dropdown > summary::-webkit-details-marker { display: none; }
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-dropdown > summary::marker { content: ""; }
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-menu {
    position: absolute;
    bottom: calc(100% + .5rem);
    right: 0;
    min-width: 240px;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--sec-border);
    border-radius: var(--sec-radius-lg);
    box-shadow: var(--sec-shadow-lg);
    padding: .75rem 0 .5rem;
    z-index: 20;
}
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-menu-title {
    margin: 0 1rem .5rem;
    font-size: .7rem;
    letter-spacing: 1.2px;
    font-weight: 500;
    color: var(--sec-text-light);
    text-transform: uppercase;
}
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .55rem 1rem;
    color: var(--sec-text);
    text-decoration: none;
    font-size: .85rem;
    transition: background .15s, color .15s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-option:hover {
    background: var(--card-tone-soft, var(--sec-primary-soft));
    color: var(--card-tone-dark, var(--sec-primary));
    text-decoration: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-option-label { flex: 1; min-width: 0; }
.flex-section.school-education-courses[data-id="1824"] .sec-enrol-option-price {
    font-weight: 500;
    color: var(--card-tone, var(--sec-primary));
    white-space: nowrap;
}


/* ================================================================
   ============ VISTA INDIVIDUAL (hero + sidebar + lección) =========
   (se mantiene aquí para compatibilidad con course.html.php)
   ================================================================ */

/* ---- HERO ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-hero {
    position: relative;
    background: linear-gradient(135deg, var(--sec-primary) 0%, var(--sec-primary-dark) 100%);
    color: var(--sec-on-primary);
    padding: 3.5rem 0 4.5rem;
    overflow: hidden;
}
.flex-section.school-education-courses[data-id="1824"] .sec-hero-pattern {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,.04) 0 2px,
    transparent 2px 28px);
    pointer-events: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 992px) {
    .flex-section.school-education-courses[data-id="1824"] .sec-hero-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 3rem;
    }
}

.flex-section.school-education-courses[data-id="1824"] .sec-hero-topmeta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-badge-new {
    display: inline-block;
    background: var(--sec-on-primary);
    color: var(--sec-primary);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: .35rem .7rem;
    border-radius: 999px;
    text-transform: uppercase;
}
.flex-section.school-education-courses[data-id="1824"] .sec-breadcrumb-label {
    font-size: .7rem;
    letter-spacing: 1.5px;
    opacity: .85;
    text-transform: uppercase;
    font-weight: 500;
}
.flex-section.school-education-courses[data-id="1824"] .sec-breadcrumb-label .sec-dot { margin: 0 .25rem; }

.flex-section.school-education-courses[data-id="1824"] .sec-course-figure {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.2);
    margin-bottom: 1rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-figure-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-title {
    margin: 0 0 1rem;
    font-family: var(--sec-font);
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.5px;
    color: inherit;
}
.flex-section.school-education-courses[data-id="1824"] .sec-course-intro {
    margin: 0 0 1.5rem;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 620px;
    opacity: .95;
    font-weight: 300;
}

.flex-section.school-education-courses[data-id="1824"] .sec-tag-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    letter-spacing: 1.2px;
    padding: .4rem .75rem;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    text-transform: uppercase;
    font-weight: 500;
    color: var(--sec-on-primary);
}

.flex-section.school-education-courses[data-id="1824"] .sec-lesson-progress {
    margin-top: 1.5rem;
    padding: .9rem 1.15rem;
    background: rgba(255,255,255,.1);
    border-left: 3px solid var(--sec-on-primary);
    border-radius: var(--sec-radius);
    font-size: .9rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-progress-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-progress-strong { font-weight: 500; }
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-progress-of { opacity: .8; }
.flex-section.school-education-courses[data-id="1824"] .sec-inactivity-flag {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    color: #ffd18a;
}

/* ---- Tarjeta lateral ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-side-card {
    background: var(--sec-card-bg);
    color: var(--sec-text);
    border-radius: var(--sec-radius-lg);
    box-shadow: var(--sec-shadow-lg);
    padding: 1.5rem;
    align-self: start;
}
.flex-section.school-education-courses[data-id="1824"] .sec-guarantee {
    display: flex;
    gap: .75rem;
    padding: .9rem;
    background: var(--sec-primary-soft);
    border-left: 3px solid var(--sec-primary);
    border-radius: var(--sec-radius);
    margin-bottom: 1.25rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-guarantee-icon {
    font-size: 1.15rem;
    color: var(--sec-primary);
    line-height: 1;
    flex-shrink: 0;
}
.flex-section.school-education-courses[data-id="1824"] .sec-guarantee-title {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: .15rem;
    color: var(--sec-text);
}
.flex-section.school-education-courses[data-id="1824"] .sec-guarantee-text {
    margin: 0;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--sec-text-muted);
}
.flex-section.school-education-courses[data-id="1824"] .sec-side-eyebrow {
    margin: 0 0 .5rem;
    font-family: var(--sec-font);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: 1.4px;
    color: var(--sec-text-light);
    text-transform: uppercase;
}
.flex-section.school-education-courses[data-id="1824"] .sec-feature-list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--sec-border-soft);
}
.flex-section.school-education-courses[data-id="1824"] .sec-feature-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 0;
    font-size: .875rem;
    border-bottom: 1px solid var(--sec-border-soft);
    color: var(--sec-text);
}
.flex-section.school-education-courses[data-id="1824"] .sec-feature-ico {
    color: var(--sec-primary);
    width: 1.25rem;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
}
.flex-section.school-education-courses[data-id="1824"] .sec-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    margin: 0 0 1.25rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-meta-th,
.flex-section.school-education-courses[data-id="1824"] .sec-meta-td {
    padding: .55rem 0;
    border-bottom: 1px solid var(--sec-border-soft);
    vertical-align: top;
    background: transparent;
    text-align: left;
    font-weight: 400;
}
.flex-section.school-education-courses[data-id="1824"] .sec-meta-th {
    color: var(--sec-text-muted);
    width: 44%;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-meta-td {
    color: var(--sec-text);
    font-weight: 500;
    text-align: right;
}
.flex-section.school-education-courses[data-id="1824"] .sec-meta-ico {
    color: var(--sec-text-light);
    display: inline-flex;
    width: 1rem;
    justify-content: center;
    flex-shrink: 0;
}
.flex-section.school-education-courses[data-id="1824"] .sec-progress-wrap { margin-bottom: 1.25rem; }
.flex-section.school-education-courses[data-id="1824"] .sec-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--sec-text-muted);
    margin-bottom: .35rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-progress-track {
    height: 6px;
    background: var(--sec-border-soft);
    border-radius: 999px;
    overflow: hidden;
}
.flex-section.school-education-courses[data-id="1824"] .sec-progress-fill {
    display: block;
    height: 100%;
    background: var(--sec-primary);
    transition: width .4s ease;
}
.flex-section.school-education-courses[data-id="1824"] .sec-card-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--sec-border-soft);
}
.flex-section.school-education-courses[data-id="1824"] .sec-card-footer-hint {
    margin: 0 0 .25rem;
    font-size: .8rem;
    color: var(--sec-text-muted);
}
.flex-section.school-education-courses[data-id="1824"] .sec-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--sec-primary);
    font-weight: 500;
    font-size: .875rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-card-cta:hover {
    border-bottom-color: var(--sec-primary);
    color: var(--sec-primary);
    text-decoration: none;
}


/* ============ TARJETA DE COMPRA (vista curso sin matricular) ============ */
.flex-section.school-education-courses[data-id="1824"] .sec-buy-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--sec-border-soft);
    text-align: center;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-eyebrow {
    margin-bottom: .75rem;
    text-align: center;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-price-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-price-from {
    font-size: .62rem;
    letter-spacing: 1.4px;
    font-weight: 500;
    color: var(--sec-text-light);
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-price-amount {
    font-family: var(--sec-font);
    font-size: 2.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--sec-primary);
    letter-spacing: -.5px;
    line-height: 1;
}

.flex-section.school-education-courses[data-id="1824"] .sec-buy-list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-item { list-style: none; }
.flex-section.school-education-courses[data-id="1824"] .sec-buy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .9rem;
    background: var(--sec-primary);
    color: var(--sec-on-primary);
    border-radius: var(--sec-radius);
    text-decoration: none;
    font-size: .875rem;
    transition: background .2s, transform .1s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-link:hover {
    background: var(--sec-primary-dark);
    color: var(--sec-on-primary);
    text-decoration: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-link:active { transform: translateY(1px); }

.flex-section.school-education-courses[data-id="1824"] .sec-buy-link-body {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
    flex: 1;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-link-label {
    font-weight: 500;
    line-height: 1.2;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-link-note {
    font-size: .7rem;
    letter-spacing: .5px;
    opacity: .85;
    text-transform: uppercase;
    font-weight: 400;
}
.flex-section.school-education-courses[data-id="1824"] .sec-buy-link-price {
    font-weight: 500;
    font-size: .95rem;
    white-space: nowrap;
}

.flex-section.school-education-courses[data-id="1824"] .sec-buy-guarantee {
    margin-bottom: 1.25rem;
}


/* ============ BLOQUEO (temario sin matricular) ============ */
.flex-section.school-education-courses[data-id="1824"] .sec-locked-hint {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1rem;
    background: var(--sec-primary-soft);
    border-left: 3px solid var(--sec-primary);
    border-radius: var(--sec-radius);
    color: var(--sec-primary-dark);
    font-size: .875rem;
    margin-bottom: 1rem;
    max-width: 860px;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-link-static {
    cursor: default;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-item.sec-lesson-locked .sec-lesson-link:hover {
    background: transparent;
    color: var(--sec-text);
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-item.sec-lesson-locked .sec-lesson-bullet {
    color: var(--sec-text-light);
}


/* ---- TABS ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-tabs-wrap {
    background: var(--sec-bg-cream);
    border-bottom: 1px solid var(--sec-border);
}
.flex-section.school-education-courses[data-id="1824"] .sec-tab-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-tab-list::-webkit-scrollbar { display: none; }
.flex-section.school-education-courses[data-id="1824"] .sec-tab-item { list-style: none; }
.flex-section.school-education-courses[data-id="1824"] .sec-tab {
    display: inline-block;
    color: var(--sec-text-light);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1.1rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-tab:hover {
    color: var(--sec-text);
    text-decoration: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-tab.is-active {
    color: var(--sec-primary);
    border-bottom-color: var(--sec-primary);
}

/* ---- MAIN (vista individual) ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-block {
    margin-bottom: 3rem;
    scroll-margin-top: 5rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-eyebrow {
    margin: 0 0 .35rem;
    font-family: var(--sec-font);
    font-size: .7rem;
    letter-spacing: 1.6px;
    color: var(--sec-primary);
    font-weight: 500;
    text-transform: uppercase;
}
.flex-section.school-education-courses[data-id="1824"] .sec-block-title {
    margin: 0 0 1.25rem;
    font-family: var(--sec-font);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.25;
    font-style: italic;
    color: var(--sec-text);
}
.flex-section.school-education-courses[data-id="1824"] .sec-block-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--sec-text);
    max-width: 780px;
}
.flex-section.school-education-courses[data-id="1824"] .sec-class-callout {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--sec-primary-soft);
    border-left: 3px solid var(--sec-primary);
    border-radius: var(--sec-radius);
}
.flex-section.school-education-courses[data-id="1824"] .sec-callout-title {
    margin: 0 0 .5rem;
    font-family: var(--sec-font);
    font-style: italic;
    font-weight: 500;
    font-size: 1.4rem;
}

/* ---- VISTA LECCIÓN (grid 2 cols + sidebar) ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 992px) {
    .flex-section.school-education-courses[data-id="1824"] .sec-lesson-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 2.5rem;
    }
}
.flex-section.school-education-courses[data-id="1824"] .sec-crumbs-list {
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .825rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-crumbs-item { color: var(--sec-text-muted); }
.flex-section.school-education-courses[data-id="1824"] .sec-crumbs-link {
    color: inherit;
    text-decoration: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-crumbs-link:hover { color: var(--sec-primary); }
.flex-section.school-education-courses[data-id="1824"] .sec-crumbs-item + .sec-crumbs-item::before {
    content: "/";
    margin-right: .4rem;
    color: var(--sec-text-light);
}
.flex-section.school-education-courses[data-id="1824"] .sec-crumbs-current {
    color: var(--sec-text);
    font-weight: 500;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-title {
    margin: 0 0 1.25rem;
    font-family: var(--sec-font);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 400;
    font-style: italic;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-body {
    font-size: 1rem;
    line-height: 1.75;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-h {
    margin: 1.5rem 0 .75rem;
    font-family: var(--sec-font);
    font-size: 1.35rem;
    font-weight: 500;
    font-style: italic;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-html {
    margin-bottom: 1.25rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-download-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1rem;
    background: var(--sec-primary-soft);
    color: var(--sec-primary);
    border-radius: var(--sec-radius);
    font-weight: 500;
    font-size: .875rem;
    margin: .5rem 0;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-download-link:hover {
    background: var(--sec-primary);
    color: var(--sec-on-primary);
    text-decoration: none;
}

/* ---- CUESTIONARIO ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-quiz-card {
    background: #fff;
    border: 1px solid var(--sec-border);
    border-radius: var(--sec-radius-lg);
    padding: 1.25rem;
    margin: 1.25rem 0;
}
.flex-section.school-education-courses[data-id="1824"] .sec-quiz-form.is-locked {
    pointer-events: none;
    opacity: .75;
}
.flex-section.school-education-courses[data-id="1824"] .sec-quiz-footer {
    text-align: right;
    margin-top: 1rem;
}

/* ---- SIDEBAR STICKY ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-side-sticky {
    position: sticky;
    top: 1rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-side-title {
    margin: 0 0 1rem;
    font-family: var(--sec-font);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--sec-primary);
}

/* ---- ACCORDION (<details>/<summary>) ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-item {
    background: #fff;
    border: 1px solid var(--sec-border);
    border-radius: var(--sec-radius-lg);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-item:hover {
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.04);
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-item[open] {
    border-color: var(--sec-primary);
    box-shadow: 0 .25rem .75rem rgba(139,26,59,.08);
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    font-size: .95rem;
    color: var(--sec-text);
    user-select: none;
    transition: background .2s, color .2s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-summary::-webkit-details-marker { display: none; }
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-summary::marker { content: ""; }
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-summary:hover {
    background: var(--sec-bg-cream);
    color: var(--sec-primary);
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-item[open] .sec-accordion-summary {
    background: var(--sec-primary-soft);
    color: var(--sec-primary);
    border-bottom: 1px solid var(--sec-border-soft);
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-number {
    font-family: var(--sec-font);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--sec-primary);
    opacity: .5;
    font-weight: 400;
    min-width: 2.25rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-title { flex: 1; min-width: 0; }
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-meta {
    font-size: .75rem;
    color: var(--sec-text-muted);
    white-space: nowrap;
    font-weight: 400;
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-caret {
    display: inline-flex;
    color: var(--sec-text-light);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-item[open] .sec-accordion-caret {
    transform: rotate(180deg);
    color: var(--sec-primary);
}
.flex-section.school-education-courses[data-id="1824"] .sec-accordion-body { background: #fdfcf9; }

/* ---- LISTA DE LECCIONES (dentro del accordion) ---- */
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-item {
    border-bottom: 1px solid var(--sec-border-soft);
    list-style: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-item:last-child { border-bottom: none; }
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1.25rem .75rem 3.25rem;
    font-size: .875rem;
    color: var(--sec-text);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-link:hover {
    background: var(--sec-primary-soft);
    color: var(--sec-primary);
    text-decoration: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-item.is-current .sec-lesson-link {
    background: var(--sec-primary-soft);
    color: var(--sec-primary);
    font-weight: 500;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-bullet {
    color: var(--sec-border);
    display: inline-flex;
    flex-shrink: 0;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-bullet.is-done { color: var(--sec-primary); }
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-name { flex: 1; min-width: 0; }
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-time,
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-pct {
    font-size: .72rem;
    color: var(--sec-text-muted);
    white-space: nowrap;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-lesson-pct {
    min-width: 2.4rem;
    justify-content: flex-end;
}
.flex-section.school-education-courses[data-id="1824"] .sec-class-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .35rem;
    padding: .6rem 1.25rem;
    border-top: 1px solid var(--sec-border-soft);
    color: var(--sec-primary);
    font-weight: 500;
    font-size: .825rem;
    text-decoration: none;
    transition: background .15s;
}
.flex-section.school-education-courses[data-id="1824"] .sec-class-link:hover {
    background: var(--sec-primary-soft);
    color: var(--sec-primary-dark);
    text-decoration: none;
}
.flex-section.school-education-courses[data-id="1824"] .sec-side-sticky .sec-accordion-summary {
    padding: .75rem 1rem;
    font-size: .875rem;
}
.flex-section.school-education-courses[data-id="1824"] .sec-side-sticky .sec-lesson-link {
    padding: .6rem 1rem .6rem 2.5rem;
    font-size: .825rem;
}


/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .flex-section.school-education-courses[data-id="1824"] .sec-side-sticky {
        position: static;
    }
}
@media (max-width: 575.98px) {
    .flex-section.school-education-courses[data-id="1824"] .sec-hero {
        padding: 2.5rem 0 3rem;
    }
    .flex-section.school-education-courses[data-id="1824"] .sec-tab-list { gap: 1rem; }
    .flex-section.school-education-courses[data-id="1824"] .sec-side-card { padding: 1.25rem; }
    .flex-section.school-education-courses[data-id="1824"] .sec-lesson-link { padding-left: 2.5rem; }

    /* Listado: el pie pasa a columna para que los botones no se apilen mal */
    .flex-section.school-education-courses[data-id="1824"] .sec-course-card-footer {
        align-items: flex-start;
    }
}

