/* =========================================================
   LOGOS HUB ACADEMY
   DETALLE DE CURSO - Desde el catalogo o inicio
========================================================= */

:root {

    --course-purple: #220E7A;
    --course-purple-dark: #170A47;
    --course-purple-deep: #11072F;

    --course-green: #13E8A5;
    --course-green-dark: #0AAD7E;

    --course-white: #FFFFFF;

    --course-soft: #FAF9FC;
    --course-soft-alt: #F5F2FC;
    --course-green-soft: #E9FBF5;

    --course-text: #211C2B;
    --course-muted: #706A78;

    --course-line: #E4E0E8;

}


/* =========================================================
   BASE
========================================================= */

body {

    margin: 0;

    background:
        var(--course-white);

    font-family:
        "Nunito",
        sans-serif;

    color:
        var(--course-text);

}


body *,
body *::before,
body *::after {

    box-sizing:
        border-box;

}


main {

    display:
        block;

}


main a {

    text-decoration:
        none;

}


main img {

    max-width:
        100%;

}


/* =========================================================
   CONTENEDORES DE LA PÁGINA
========================================================= */

.max-w-6xl {

    width:
        min(
            1180px,
            calc(100% - 64px)
        );

    max-width:
        1180px;

    margin-left:
        auto;

    margin-right:
        auto;

}


.max-w-4xl {

    width:
        min(
            900px,
            calc(100% - 64px)
        );

    max-width:
        900px;

    margin-left:
        auto;

    margin-right:
        auto;

}


.max-w-3xl {

    width:
        min(
            760px,
            calc(100% - 64px)
        );

    max-width:
        760px;

    margin-left:
        auto;

    margin-right:
        auto;

}


.max-w-xl {

    max-width:
        600px;

}


.max-w-2xl {

    max-width:
        700px;

}


.max-w-none {

    max-width:
        none;

}


/* =========================================================
   BREADCRUMB
========================================================= */

article > nav {

    width:
        min(
            1180px,
            calc(100% - 64px)
        );

    min-height:
        58px;

    margin:
        0
        auto;

    padding:
        0;

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    border-bottom:
        1px solid
        var(--course-line);

    font-size:
        11px;

    color:
        var(--course-muted);

}


article > nav a {

    font-weight:
        700;

    color:
        var(--course-muted);

}


article > nav a:hover {

    color:
        var(--course-purple);

}


article > nav span {

    color:
        var(--course-purple);

}


/* =========================================================
   HERO DEL CURSO
========================================================= */

article > section:first-of-type {

    position:
        relative;

    overflow:
        visible;

    padding:
        85px
        0
        95px;

    background:
        linear-gradient(
            135deg,
            #F7F4FC 0%,
            #FFFFFF 60%,
            #EFFBF7 100%
        );

    border-bottom:
        1px solid
        var(--course-line);

}


article > section:first-of-type::after {

    content: "";

    position:
        absolute;

    top:
        -220px;

    right:
        -170px;

    width:
        560px;

    height:
        560px;

    border:
        1px solid
        rgba(34, 14, 122, .055);

    border-radius:
        50%;

    pointer-events:
        none;

}


/* =========================================================
   HERO GRID
========================================================= */

article > section:first-of-type
> div {

    position:
        relative;

    z-index:
        2;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(340px, .75fr);

    gap:
        78px;

    align-items:
        start;

}


/* =========================================================
   TAG EJE
========================================================= */

article > section:first-of-type
> div
> div:first-child
> p:first-child {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    margin:
        0
        0
        18px;

    padding:
        7px
        12px;

    border-radius:
        999px;

    background:
        var(--course-purple-soft);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.2px;

    text-transform:
        uppercase;

    color:
        var(--course-purple);

}


/* =========================================================
   H1
========================================================= */

article > section:first-of-type h1 {

    max-width:
        760px;

    margin:
        0
        0
        18px;

    font-size:
        clamp(
            45px,
            5vw,
            68px
        );

    font-weight:
        800;

    line-height:
        1;

    letter-spacing:
        -2.8px;

    color:
        var(--course-purple-dark);

}


/* =========================================================
   DESCRIPCIÓN PRINCIPAL
========================================================= */

article > section:first-of-type
> div
> div:first-child
> p:nth-of-type(2) {

    max-width:
        700px;

    margin:
        0
        0
        10px;

    font-size:
        21px;

    font-weight:
        700;

    line-height:
        1.38;

    color:
        var(--course-text);

}


/* =========================================================
   DESCRIPCIÓN SECUNDARIA / MICROTEXTO
========================================================= */

article > section:first-of-type
> div
> div:first-child
> p:nth-of-type(n+3) {

    max-width:
        650px;

    color:
        var(--course-muted);

    line-height:
        1.7;

}


/* =========================================================
   BADGES HERO
========================================================= */

article > section:first-of-type
.flex.flex-wrap.gap-3 {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin:
        27px
        0;

}


article > section:first-of-type
.flex.flex-wrap.gap-3
span {

    display:
        inline-flex;

    align-items:
        center;

    min-height:
        31px;

    padding:
        0
        11px;

    border:
        1px solid
        rgba(34, 14, 122, .09);

    border-radius:
        999px;

    background:
        var(--course-white);

    font-size:
        10px;

    font-weight:
        700;

    color:
        var(--course-purple-dark);

}


/* =========================================================
   CTA HERO
========================================================= */

article > section:first-of-type
.flex.flex-wrap.gap-4 {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        12px;

    margin:
        28px
        0
        18px;

}


article > section:first-of-type
.flex.flex-wrap.gap-4
a:first-child {

    min-height:
        50px;

    padding:
        0
        22px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        999px;

    background:
        var(--course-purple);

    font-size:
        12px;

    font-weight:
        800;

    color:
        var(--course-white);

    box-shadow:
        0 12px 28px
        rgba(34, 14, 122, .16);

    transition:
        transform .2s ease,
        background .2s ease;

}


article > section:first-of-type
.flex.flex-wrap.gap-4
a:first-child:hover {

    transform:
        translateY(-2px);

    background:
        var(--course-purple-dark);

}


article > section:first-of-type
.flex.flex-wrap.gap-4
a:last-child {

    min-height:
        50px;

    padding:
        0
        22px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(34, 14, 122, .22);

    border-radius:
        999px;

    background:
        var(--course-white);

    font-size:
        12px;

    font-weight:
        800;

    color:
        var(--course-purple);

    transition:
        transform .2s ease,
        border-color .2s ease;

}


article > section:first-of-type
.flex.flex-wrap.gap-4
a:last-child:hover {

    transform:
        translateY(-2px);

    border-color:
        var(--course-purple);

}


/* =========================================================
   MENSAJE DE VENTA
========================================================= */

article > section:first-of-type
.inline-flex.items-start {

    display:
        inline-flex;

    align-items:
        flex-start;

    gap:
        8px;

    max-width:
        650px;

    margin:
        7px
        0
        10px;

    padding:
        11px
        14px;

    border-radius:
        12px;

    background:
        var(--course-green-soft);

    color:
        var(--course-purple-dark);

}


article > section:first-of-type
.inline-flex.items-start p {

    margin:
        0;

}


/* =========================================================
   TARJETA LATERAL
========================================================= */

article > section:first-of-type aside {

    position:
        sticky;

    top:
        95px;

    overflow:
        hidden;

    border:
        1px solid
        var(--course-line);

    border-radius:
        20px;

    background:
        var(--course-white);

    box-shadow:
        0 24px 60px
        rgba(34, 14, 122, .10);

}


/* imagen */

article > section:first-of-type aside
> div:first-child {

    height:
        235px;

    overflow:
        hidden;

    background:
        var(--course-soft);

}


article > section:first-of-type aside img {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;

}


/* cuerpo */

article > section:first-of-type aside
> div:last-child {

    padding:
        28px;

}


article > section:first-of-type aside h3 {

    margin:
        0
        0
        19px;

    font-size:
        17px;

    color:
        var(--course-purple-dark);

}


/* resumen rápido */

article > section:first-of-type aside
> div:last-child
> ul {

    margin:
        0
        0
        22px;

    padding:
        0;

    list-style:
        none;

}


article > section:first-of-type aside
> div:last-child
> ul
> li {

    min-height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    border-bottom:
        1px solid
        var(--course-line);

    font-size:
        12px;

}


article > section:first-of-type aside
> div:last-child
> ul
> li span:first-child {

    color:
        var(--course-muted);

}


article > section:first-of-type aside
> div:last-child
> ul
> li span:last-child {

    font-weight:
        800;

    color:
        var(--course-purple-dark);

}


/* incluye lateral */

article > section:first-of-type aside
.mb-6 {

    margin-bottom:
        25px;

}


article > section:first-of-type aside
.mb-6 > p {

    margin:
        0
        0
        12px;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1.2px;

    text-transform:
        uppercase;

    color:
        var(--course-purple);

}


article > section:first-of-type aside
.mb-6 ul {

    margin:
        0;

    padding:
        0;

    list-style:
        none;

}


article > section:first-of-type aside
.mb-6 li {

    display:
        flex;

    gap:
        8px;

    margin-bottom:
        8px;

    font-size:
        11px;

    line-height:
        1.5;

    color:
        var(--course-muted);

}


/* CTA lateral */

article > section:first-of-type aside
a {

    width:
        100%;

    min-height:
        48px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        0
        18px;

    border-radius:
        999px;

    background:
        var(--course-purple);

    font-size:
        12px;

    font-weight:
        800;

    color:
        var(--course-white);

    transition:
        transform .2s ease,
        background .2s ease;

}


article > section:first-of-type aside
a:hover {

    transform:
        translateY(-2px);

    background:
        var(--course-purple-dark);

}


article > section:first-of-type aside
.text-center {

    text-align:
        center;

}


article > section:first-of-type aside
.text-\[11px\] {

    margin-top:
        12px;

    font-size:
        10px;

    color:
        var(--course-muted);

}


/* =========================================================
   NAVEGACIÓN INTERNA
========================================================= */

article > section:nth-of-type(2) {

    position:
        sticky;

    top:
        0;

    z-index:
        20;

    padding:
        14px
        0;

    background:
        rgba(255, 255, 255, .96);

    border-bottom:
        1px solid
        var(--course-line);

    backdrop-filter:
        blur(10px);

}


article > section:nth-of-type(2)
> div {

    width:
        min(
            1180px,
            calc(100% - 64px)
        );

    margin:
        0
        auto;

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

}


article > section:nth-of-type(2)
span {

    margin-right:
        7px;

    font-size:
        10px;

    font-weight:
        800;

    color:
        var(--course-purple-dark);

}


article > section:nth-of-type(2)
a {

    display:
        inline-flex;

    align-items:
        center;

    min-height:
        32px;

    padding:
        0
        11px;

    border:
        1px solid
        var(--course-line);

    border-radius:
        999px;

    background:
        var(--course-white);

    font-size:
        9px;

    font-weight:
        700;

    color:
        var(--course-purple);

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}


article > section:nth-of-type(2)
a:hover {

    background:
        var(--course-purple);

    border-color:
        var(--course-purple);

    color:
        var(--course-white);

}


/* =========================================================
   SECCIONES GENERALES
========================================================= */

article section[id] {

    scroll-margin-top:
        90px;

}


article section[id] {

    padding:
        100px
        0;

}


article section[id]:nth-of-type(odd) {

    background:
        var(--course-white);

}


article section[id]:nth-of-type(even) {

    background:
        var(--course-soft);

}


article section[id] h2 {

    margin:
        0
        0
        20px;

    font-size:
        clamp(
            30px,
            3vw,
            40px
        );

    line-height:
        1.08;

    letter-spacing:
        -1.2px;

    color:
        var(--course-purple-dark);

}


article section[id] h3 {

    color:
        var(--course-purple-dark);

}


article section[id] p {

    color:
        var(--course-muted);

    line-height:
        1.72;

}


/* =========================================================
   DESCRIPCIÓN GENERAL
========================================================= */

#descripcion
> div {

    display:
        grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(300px, .6fr);

    gap:
        65px;

    align-items:
        start;

}


#descripcion
.prose {

    font-size:
        15px;

    line-height:
        1.8;

    color:
        var(--course-text);

}


#descripcion
.prose p {

    color:
        var(--course-text);

}


/* ideal para ti */

#descripcion
> div
> div:last-child {

    padding:
        27px;

    border:
        1px solid
        rgba(34, 14, 122, .10);

    border-radius:
        17px;

    background:
        var(--course-purple-soft);

}


#descripcion
> div
> div:last-child h3 {

    margin:
        0
        0
        16px;

    font-size:
        16px;

}


#descripcion
> div
> div:last-child ul {

    margin:
        0;

    padding:
        0;

    list-style:
        none;

}


#descripcion
> div
> div:last-child li {

    display:
        flex;

    gap:
        9px;

    margin-bottom:
        10px;

    font-size:
        13px;

    line-height:
        1.55;

    color:
        var(--course-text);

}


/* =========================================================
   APRENDERÁS
========================================================= */

#aprenderas {

    background:
        var(--course-purple-soft);

}


#aprenderas
> div {

    max-width:
        900px;

}


#aprenderas ul {

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        13px;

    margin:
        30px
        0
        0;

    padding:
        0;

    list-style:
        none;

}


#aprenderas li {

    min-height:
        70px;

    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    padding:
        17px;

    border:
        1px solid
        rgba(34, 14, 122, .09);

    border-radius:
        14px;

    background:
        var(--course-white);

    font-size:
        13px;

    line-height:
        1.55;

}


#aprenderas li > span:first-child {

    color:
        var(--course-green-dark);

}


/* =========================================================
   TEMARIO
========================================================= */

#temario
> div {

    width:
        min(
            1180px,
            calc(100% - 64px)
        );

}


#temario
.grid {

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        15px;

}


#temario
.grid > div {

    position:
        relative;

    min-height:
        135px;

    padding:
        23px;

    overflow:
        hidden;

    border:
        1px solid
        var(--course-line);

    border-radius:
        16px;

    background:
        var(--course-soft);

    transition:
        transform .2s ease,
        border-color .2s ease;

}


#temario
.grid > div:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(34, 14, 122, .22);

}


#temario
.grid > div::before {

    content: "";

    position:
        absolute;

    top:
        0;

    left:
        0;

    width:
        3px;

    height:
        100%;

    background:
        var(--course-green);

}


#temario
.grid > div p:first-child {

    margin:
        0
        0
        8px;

    font-size:
        14px;

    font-weight:
        800;

    color:
        var(--course-purple-dark);

}


#temario
.grid > div p:last-child {

    margin:
        0;

    font-size:
        12px;

}


/* =========================================================
   REQUISITOS + INCLUYE
========================================================= */

#requisitos
> div {

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        60px;

}


#requisitos ul {

    margin:
        0;

    padding:
        0;

    list-style:
        none;

}


#requisitos li {

    display:
        flex;

    gap:
        9px;

    margin-bottom:
        11px;

    font-size:
        13px;

    line-height:
        1.55;

    color:
        var(--course-text);

}


#incluye {

    padding:
        27px;

    border:
        1px solid
        rgba(10, 173, 126, .16);

    border-radius:
        17px;

    background:
        var(--course-green-soft);

}


/* =========================================================
   INSTRUCTOR
========================================================= */

#instructor
> div {

    width:
        min(
            900px,
            calc(100% - 64px)
        );

}


#instructor
.grid {

    display:
        grid;

    grid-template-columns:
        150px
        minmax(0, 1fr);

    gap:
        30px;

    align-items:
        start;

}


#instructor
.grid
> div:first-child {

    width:
        150px;

    height:
        150px;

    overflow:
        hidden;

    border-radius:
        18px;

    background:
        var(--course-soft);

}


#instructor img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

}


#instructor h2 {

    margin-bottom:
        12px;

}


#instructor
.text-xs {

    font-size:
        13px;

    line-height:
        1.7;

    color:
        var(--course-muted);

}


/* =========================================================
   FAQ
========================================================= */

#faq
> div {

    width:
        min(
            900px,
            calc(100% - 64px)
        );

}


#faq
.space-y-4 {

    border-top:
        1px solid
        var(--course-line);

}


#faq details {

    border:
        0;

    border-bottom:
        1px solid
        var(--course-line);

    border-radius:
        0;

    background:
        transparent;

}


#faq summary {

    min-height:
        78px;

    display:
        flex;

    align-items:
        center;

    padding:
        20px
        3px;

    list-style:
        none;

    cursor:
        pointer;

    font-size:
        15px;

    font-weight:
        800;

    color:
        var(--course-purple-dark);

    transition:
        color .2s ease,
        padding-left .2s ease;

}


#faq summary::-webkit-details-marker {

    display:
        none;

}


#faq summary::after {

    content:
        "+";

    margin-left:
        auto;

    width:
        32px;

    height:
        32px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--course-line);

    border-radius:
        50%;

    background:
        var(--course-white);

    color:
        var(--course-purple);

    transition:
        transform .22s ease,
        background .22s ease;

}


#faq details[open]
summary {

    color:
        var(--course-purple);

}


#faq details[open]
summary::after {

    transform:
        rotate(45deg);

    background:
        var(--course-green);

}


#faq details > p {

    margin:
        0;

    padding:
        0
        45px
        25px
        3px;

    font-size:
        13px;

    line-height:
        1.7;

    animation:
        courseFaqOpen
        .22s ease
        both;

}


@keyframes courseFaqOpen {

    from {

        opacity:
            0;

        transform:
            translateY(-5px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   FAQ CTA
========================================================= */

#faq
.mt-8 {

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        18px;

    margin-top:
        32px;

}


#faq
.mt-8
a:first-child {

    min-height:
        48px;

    padding:
        0
        21px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        999px;

    background:
        var(--course-purple);

    font-size:
        12px;

    font-weight:
        800;

    color:
        var(--course-white);

}


#faq
.mt-8
a:last-child {

    font-size:
        11px;

    font-weight:
        700;

    color:
        var(--course-muted);

}


#faq
.mt-8
a:last-child:hover {

    color:
        var(--course-purple);

}


/* =========================================================
   CURSO NO ENCONTRADO
========================================================= */

main > section:first-child:last-child {

    padding:
        100px
        0;

}


main > section:first-child:last-child h1 {

    font-size:
        44px;

    color:
        var(--course-purple-dark);

}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1000px) {

    article > section:first-of-type
    > div {

        grid-template-columns:
            1fr;

        gap:
            55px;

    }


    article > section:first-of-type aside {

        position:
            relative;

        top:
            auto;

        max-width:
            650px;

    }


    #descripcion
    > div {

        grid-template-columns:
            1fr;

        gap:
            35px;

    }


    #requisitos
    > div {

        grid-template-columns:
            1fr;

        gap:
            35px;

    }

}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 720px) {

    .max-w-6xl,
    .max-w-4xl,
    .max-w-3xl,
    article > nav,
    article > section:nth-of-type(2)
    > div,
    #temario > div,
    #instructor > div,
    #faq > div {

        width:
            calc(100% - 32px);

    }


    article > section:first-of-type {

        padding:
            65px
            0
            70px;

    }


    article > section:first-of-type
    > div {

        gap:
            42px;

    }


    article > section:first-of-type h1 {

        font-size:
            41px;

        letter-spacing:
            -2px;

    }


    article > section:first-of-type
    > div
    > div:first-child
    > p:nth-of-type(2) {

        font-size:
            18px;

    }


    article > section:first-of-type
    .flex.flex-wrap.gap-4 {

        flex-direction:
            column;

        align-items:
            stretch;

    }


    article > section:first-of-type
    .flex.flex-wrap.gap-4
    a {

        width:
            100%;

    }


    article > section:first-of-type aside
    > div:first-child {

        height:
            205px;

    }


    article > section:nth-of-type(2) {

        position:
            relative;

    }


    article > section:nth-of-type(2)
    span {

        width:
            100%;

        margin-bottom:
            5px;

    }


    article section[id] {

        padding:
            75px
            0;

    }


    #aprenderas ul {

        grid-template-columns:
            1fr;

    }


    #temario
    .grid {

        grid-template-columns:
            1fr;

    }


    #instructor
    .grid {

        grid-template-columns:
            1fr;

    }


    #instructor
    .grid
    > div:first-child {

        width:
            125px;

        height:
            125px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    article > section:first-of-type h1 {

        font-size:
            37px;

    }


    article section[id] h2 {

        font-size:
            31px;

    }


    article > section:first-of-type aside
    > div:last-child {

        padding:
            23px;

    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

main a:focus-visible,
main summary:focus-visible {

    outline:
        3px solid
        rgba(19, 232, 165, .55);

    outline-offset:
        3px;

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior:
            auto !important;

    }


    #temario
    .grid > div,

    article > section:first-of-type
    a,

    #faq summary,

    #faq summary::after {

        transition:
            none;

    }


    #faq details > p {

        animation:
            none;

    }

}