/**
 * Témini — estilos de componentes y plantilla
 */

/* Fuentes por defecto */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: auto;

    @media only screen and (max-width: 1440px) {
        font-size: 15px;
    }

    @media only screen and (max-width: 767px) {
        font-size: 14px;
    }

    @media only screen and (max-width: 580px) {
        font-size: 13px;
    }
}

h1,
#Subheader .title,
.h1,
.column_heading.h1 .title {
    font-family: var(--font-titles);
    font-size: var(--h1);
    line-height: 1.2;
    font-weight: 600;
}

h2,
.h2,
.column_heading.h2 .title {
    font-family: var(--font-titles);
    font-size: var(--h2);
    line-height: 1.2;
    font-weight: 600;
}

h3,
.h3,
.column_heading.h3 .title {
    font-family: var(--font-titles);
    font-size: var(--h3);
    line-height: 1.2;
    font-weight: 600;
}

h4,
.h4,
.column_heading.h4 .title {
    font-family: var(--font-titles);
    font-size: var(--h4);
    line-height: 1.2;
    font-weight: 600;
}

h5,
.h5,
.column_heading.h5 .title {
    font-family: var(--font-titles);
    font-size: var(--h5);
    line-height: 1.2;
    font-weight: 600;
}

h6,
.h6,
.column_heading.h6 .title {
    font-family: var(--font-titles);
    font-size: var(--h6);
    line-height: 1.2;
    font-weight: 600;
}

body,
p,
.medium,
.column_heading.medium .title {
    font-family: var(--font-text);
    font-size: var(--p-m);
    line-height: 1.6;
    font-weight: 400;
}

.lead,
.lead p,
.big,
.big p,
.column_heading.big .title {
    font-family: var(--font-text);
    font-size: var(--p-l);
    line-height: 1.4;
    font-weight: 400;
}

.extrabig,
.extrabig p,
.column_heading.extrabig .title {
    font-family: var(--font-text);
    font-size: var(--p-xl);
    line-height: 1.4;
    font-weight: 400;
}

.small,
.small p,
.column_heading.small .title,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-description {
    font-family: var(--font-text);
    font-size: var(--p-s);
    line-height: 1.2;
    font-weight: 400;
}

#menu>ul>li>a,
#overlay-menu ul li a,
.mfn-header-menu {
    font-family: var(--font-text);
    font-size: var(--a-nav);
    line-height: 1.4;
    font-weight: 400;
}

/* Espaciados por defecto */
@media only screen and (max-width: 767px) {
    .content_wrapper .mcb-column-inner {
        margin: 0;
    }
}

.lateral-pad.section,
.lateral-pad>.mcb-wrap-inner,
.lateral.pad>.mcb-column-inner {
    padding-left: var(--lateral-pad);
    padding-right: var(--lateral-pad);
}

.pad-xl.section,
.pad-xl>.mcb-wrap-inner,
.pad-xl>.mcb-column-inner {
    padding-top: var(--size-xl);
    padding-bottom: var(--size-xl);
}

.pad-xl-top.section,
.pad-xl-top>.mcb-wrap-inner,
.pad-xl-top>.mcb-column-inner {
    padding-top: var(--size-xl);
}

.pad-xl-bottom.section,
.pad-xl-bottom>.mcb-wrap-inner,
.pad-xl-bottom>.mcb-column-inner {
    padding-bottom: var(--size-xl);
}

.mar-xl.section,
.mar-xl>.mcb-wrap-inner,
.mar-xl>.mcb-column-inner {
    margin-top: var(--size-xl);
    margin-bottom: var(--size-xl);
}

.mar-xl-top.section,
.mar-xl-top>.mcb-wrap-inner,
.mar-xl-top>.mcb-column-inner {
    margin-top: var(--size-xl);
}

.mar-xl-bottom.section,
.mar-xl-bottom>.mcb-wrap-inner,
.mar-xl-bottom>.mcb-column-inner {
    margin-bottom: var(--size-xl);
}

.pad-l.section,
.pad-l>.mcb-wrap-inner,
.pad-l>.mcb-column-inner {
    padding-top: var(--size-l);
    padding-bottom: var(--size-l);
}

.pad-l-top.section,
.pad-l-top>.mcb-wrap-inner,
.pad-l-top>.mcb-column-inner {
    padding-top: var(--size-l);
}

.pad-l-bottom.section,
.pad-l-bottom>.mcb-wrap-inner,
.pad-l-bottom>.mcb-column-inner {
    padding-bottom: var(--size-l);
}

.pad-l-lateral.section,
.pad-l-lateral>.mcb-wrap-inner,
.pad-l-lateral>.mcb-column-inner {
    padding-left: var(--size-l);
    padding-right: var(--size-l);
}

.mar-l.section,
.mar-l>.mcb-wrap-inner,
.mar-l>.mcb-column-inner {
    margin-top: var(--size-l);
    margin-bottom: var(--size-l);
}

.mar-l-top.section,
.mar-l-top>.mcb-wrap-inner,
.mar-l-top>.mcb-column-inner {
    margin-top: var(--size-l);
}

.mar-l-bottom.section,
.mar-l-bottom>.mcb-wrap-inner,
.mar-l-bottom>.mcb-column-inner {
    margin-bottom: var(--size-l);
}

.mar-l-lateral.section,
.mar-l-lateral>.mcb-wrap-inner,
.mar-l-lateral>.mcb-column-inner {
    margin-left: var(--size-l);
    margin-right: var(--size-l);
}

.pad-m.section,
.pad-m>.mcb-wrap-inner,
.pad-m>.mcb-column-inner {
    padding-top: var(--size-m);
    padding-bottom: var(--size-m);
}

.pad-m-top.section,
.pad-m-top>.mcb-wrap-inner,
.pad-m-top>.mcb-column-inner {
    padding-top: var(--size-m);
}

.pad-m-bottom.section,
.pad-m-bottom>.mcb-wrap-inner,
.pad-m-bottom>.mcb-column-inner {
    padding-bottom: var(--size-m);
}

.mar-m.section,
.mar-m>.mcb-wrap-inner,
.mar-m>.mcb-column-inner {
    margin-top: var(--size-m);
    margin-bottom: var(--size-m);
}

.mar-m-top.section,
.mar-m-top>.mcb-wrap-inner,
.mar-m-top>.mcb-column-inner {
    margin-top: var(--size-m);
}

.mar-m-bottom.section,
.mar-m-bottom>.mcb-wrap-inner,
.mar-m-bottom>.mcb-column-inner {
    margin-bottom: var(--size-m);
}

.pad-s.section,
.pad-s>.mcb-wrap-inner,
.pad-s>.mcb-column-inner {
    padding-top: var(--size-s);
    padding-bottom: var(--size-s);
}

.pad-s-top.section,
.pad-s-top>.mcb-wrap-inner,
.pad-s-top>.mcb-column-inner {
    padding-top: var(--size-s);
}

.pad-s-bottom.section,
.pad-s-bottom>.mcb-wrap-inner,
.pad-s-bottom>.mcb-column-inner {
    padding-bottom: var(--size-s);
}

.mar-s.section,
.mar-s>.mcb-wrap-inner,
.mar-s>.mcb-column-inner {
    margin-top: var(--size-s);
    margin-bottom: var(--size-s);
}

.mar-s-top.section,
.mar-s-top>.mcb-wrap-inner,
.mar-s-top>.mcb-column-inner {
    margin-top: var(--size-s);
}

.mar-s-bottom.section,
.mar-s-bottom>.mcb-wrap-inner,
.mar-s-bottom>.mcb-column-inner {
    margin-bottom: var(--size-s);
}

.pad-xs.section,
.pad-xs>.mcb-wrap-inner,
.pad-xs>.mcb-column-inner {
    padding-top: var(--size-xs);
    padding-bottom: var(--size-xs);
}

.pad-xs-top.section,
.pad-xs-top>.mcb-wrap-inner,
.pad-xs-top>.mcb-column-inner {
    padding-top: var(--size-xs);
}

.pad-xs-bottom.section,
.pad-xs-bottom>.mcb-wrap-inner,
.pad-xs-bottom>.mcb-column-inner {
    padding-bottom: var(--size-xs);
}

.mar-xs.section,
.mar-xs>.mcb-wrap-inner,
.mar-xs>.mcb-column-inner {
    margin-top: var(--size-xs);
    margin-bottom: var(--size-xs);
}

.mar-xs-top.section,
.mar-xs-top>.mcb-wrap-inner,
.mar-xs-top>.mcb-column-inner {
    margin-top: var(--size-xs);
}

.mar-xs-bottom.section,
.mar-xs-bottom>.mcb-wrap-inner,
.mar-xs-bottom>.mcb-column-inner {
    margin-bottom: var(--size-xs);
}

/* Botones */
.button,
.wc-block-components-button:not(.is-link),
.woocommerce a.added_to_cart,
.wp-block-button__link,
button,
input[type=button],
input[type=reset],
input[type=submit] {
    font-size: var(--a-btn);
    line-height: 1.4;
    font-weight: 400;
    padding: .83em 1.39rem;
    gap: .44em;
    border-width: 0;
    border-radius: 1000px;
    transition: all .3s ease;

    .button_icon {
        line-height: 0;

        i {
            font-size: 1em;
            transition: all .3s ease;
        }
    }
}

.button,
.widget a.button,
.wp-block-button__link,
button,
input[type=button],
input[type=reset] {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);

    i {
        color: var(--white);
    }
}

.button:hover,
.widget a.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type=button]:hover,
input[type=reset]:hover,
.button-animation-slide .button:before {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--white);

    i {
        color: var(--white);
    }
}

.button.button_theme,
a.button.button_theme,
input[type=submit] {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);

    i {
        color: var(--white);
    }
}

.button.button_theme:hover,
a.button.button_theme:hover,
input[type=submit]:hover,
.button-animation-slide .button_theme:before {
    background: var(--primary);
    color: var(--white);
    border-color: var(--white);

    i {
        color: var(--white);
    }
}

.button.action_button,
a.button.action_button {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);

    i {
        color: var(--primary);
    }
}

.button.action_button:hover,
a.button.action_button:hover,
.button-animation-slide .action_button:before {
    background: var(--primary);
    color: var(--white);
    border-color: var(--white);

    i {
        color: var(--white);
    }
}

/* Clases auxiliares */
.decorative {
    font-family: var(--font-decorative);
}

.primary,
.column_heading.primary .title {
    color: var(--primary);
}

.secondary,
.column_heading.secondary .title {
    color: var(--secondary);
}

.complementary-1,
.column_heading.complementary-1 .title {
    color: var(--complementary-1);
}

.complementary-2,
.column_heading.complementary-2 .title {
    color: var(--complementary-2);
}

.black,
.column_heading.black .title {
    color: var(--black);
}

.white,
.column_heading.white .title {
    color: var(--white);
}

/* Navegación entre páginas fluida */
@view-transition {
    navigation: auto;
}

.container {
    view-transition-name: page;
}

::view-transition-old(page) {
    animation: fade 0.2s linear forwards;
}

::view-transition-new(page) {
    animation: fade 0.3s linear reverse;
}

/* FIX: Slick slider */
.slick-list {
    width: 100%;
}

.slick-track {
    display: flex;
}

/* FIX: Hotspot */
.mfn-image-hotspot .hotspot-point {
    transform: translate(-50%, -50%);
}

/* Otros estilos generales */
.validate_email_against_bot,
.screen-reader-text {
    display: none;
}

.mobile-side-slide {
    overflow-x: clip !important;
}

p:empty {
    margin: 0;
    display: none;
    visibility: hidden;
    opacity: 0;
}

a {
    transition: all .3s ease;

    &:hover {
        text-decoration: none;
    }
}

.admin-bar .full-screen .section_wrapper {
    min-height: calc(100dvh - var(--admin-bar-height));
}

.style-simple,
.style-simple .mfn-header-tmpl {
    --mfn-column-gap-bottom: 0;
    --mfn-column-gap-top: 0;
    --mfn-column-gap-right: 0;
    --mfn-column-gap-left: 0;
}

.the_content_wrapper {
    width: 100%;
    margin: 0;
}

.has_content .the_content_wrapper {
    margin-bottom: 0;
}

.section_wrapper,
.container,
.four.columns .widget-area,
.mfn-header-tmpl .section_wrapper,
.mfn-footer-tmpl .mcb-section .section_wrapper {
    max-width: var(--container-width) !important;
    padding-left: var(--lateral-pad) !important;
    padding-right: var(--lateral-pad) !important;
}

@media only screen and (max-width: 767px) {
    .mfn-footer-tmpl .mcb-section:not(.full-width) {
        padding-left: 0;
        padding-right: 0;
    }
}


/*********************************\
            COMPLIANZ
\*********************************/
/* Cookies button */
body #cmplz-manage-consent .cmplz-manage-consent {
    background: var(--primary);
    right: 8px !important;
    left: auto;
    font-size: 0;
    line-height: 0;
    color: var(--white);
    bottom: 10px !important;
    padding: 0;
    width: var(--cookie-button-size);
    height: var(--cookie-button-size);
    border-radius: var(--cookie-button-radius);
    min-width: 0px;
    box-shadow: var(--cookie-button-shadow);

    &:before {
        content: "\e901";
        font-family: 'temini';
        font-size: calc(var(--cookie-button-size) * 0.6);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    &:hover:before {
        transform: translate(-50%, -50%);
    }
}

/* Cookies banner */
#cmplz-cookiebanner-container {
    .cmplz-body {
        scrollbar-width: none;
    }

    .cmplz-cookiebanner {
        grid-row-gap: 5px;
        padding: var(--size-s);
    }

    .cmplz-header,
    .cmplz-divider-header {
        display: none;
    }

    p {
        margin: 0;
        font-size: var(--p-s);
    }

    .cmplz-buttons .cmplz-btn {
        letter-spacing: 0;
        font-size: var(--p-s) !important;
        line-height: 1.2 !important;
        text-transform: uppercase;
        justify-content: center;
        height: auto;
    }

    .cmplz-categories .cmplz-category {
        &:not(:last-child) {
            margin-bottom: 5px;
        }

        .cmplz-category-header .cmplz-category-title {
            font-size: var(--p-s);
            line-height: 1;
            font-weight: 500;
        }

        .cmplz-category-header .cmplz-always-active {
            font-size: calc(var(--p-s) * 0.8);
            line-height: 1;
        }
    }
}

/* Complianz documents */
#cmplz-document {
    --pd: 3rem 0;
    max-width: 100%;
    padding: var(--pd);
    text-align: justify;

    @media (width >=1025px) {
        --pd: 8rem 0;
    }

    p,
    li,
    td {
        font-size: var(--p-m);
        line-height: 1.4;
        font-weight: 400;
    }

    h2,
    h3,
    h4 {
        font-weight: 600;
        border: 0;
        padding: 0;
        margin: 0 0 var(--size-m);
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(2rem, 2.6vw, 3rem);
        margin-top: var(--size-m);

        &:first-child {
            margin-top: 0;
        }
    }

    h3 {
        font-size: clamp(1.5rem, 2.6vw, 2rem);
    }

    h4 {
        font-size: clamp(1rem, 2.6vw, 1.5rem);
        font-weight: 700;
    }
}


/*********************************\
             HEADER
\*********************************/
/* Subheader por defecto */
#Subheader {
    overflow: visible;
    padding: var(--size-l) 0;

    ul.breadcrumbs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;

        li {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            color: var(--black);
            text-decoration: none;
            width: fit-content;
            gap: 10px;

            a {
                color: var(--black);
            }

            span {
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0;
                opacity: 1;

                i {
                    line-height: 0;

                    &::before {
                        font-family: 'temini';
                        content: "\e90d";
                    }
                }
            }
        }
    }
}


/*********************************\
              FOOTER
\*********************************/
/* Back to top */
#back_to_top.sticky {
    bottom: calc(var(--cookie-button-size) + 16px);
    right: 8px !important;
    width: var(--cookie-button-size);
    height: var(--cookie-button-size);
    font-size: calc(var(--cookie-button-size) * 0.6) !important;
    line-height: 1;
    padding: 0;
    border-radius: var(--cookie-button-radius);
    box-shadow: var(--cookie-button-shadow);
    background: var(--primary);
    border: 0;

    i {
        color: var(--white);
    }

    &:before {
        content: none;
    }
}

/*Kit digital*/
body #mfn-footer-template .financiacion {
    display: grid;
    grid-template-columns: 1fr 1fr 5fr;
    gap: var(--size-m);
    text-align: left;
    align-items: center;

    &>div {
        line-height: 0;

        img {
            max-height: 50px;
            width: auto;
        }

        p {
            font-size: var(--p-s);
            line-height: 1.2;
            margin-bottom: 0;
        }
    }

    @media only screen and (max-width: 959px) {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 5px;

        &>div:last-child {
            grid-column: 1 / span 2;
        }
    }
}

/* Accesibilidad */
body #pojo-a11y-toolbar {
    top: auto !important;
    bottom: calc(var(--cookie-button-size) + 20px) !important;

    .pojo-a11y-toolbar-toggle a {
        font-size: calc(var(--cookie-button-size) * 0.6);
        padding: 8px;
        border-radius: 100px;
        box-shadow: var(--cookie-button-shadow);
    }

    .pojo-a11y-toolbar-overlay p.pojo-a11y-toolbar-title {
        line-height: 1.2;
    }

    &.pojo-a11y-toolbar-left .pojo-a11y-toolbar-toggle {
        left: 190px;
        bottom: 0;
    }

    &.pojo-a11y-toolbar-right .pojo-a11y-toolbar-toggle {
        right: 190px;
        bottom: 0;
    }
}


/*********************************\
          FLUENT FORMS
\*********************************/
.fluentform {
    .ff-el-group.politicas {
        margin: 0;

        p {
            font-size: var(--p-s);
            line-height: 1.4;
            opacity: .6;
            color: var(--black);
        }
    }
}


/*********************************\
               BLOG
\*********************************/
/* Archive - Paginación */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--size-m);
    margin-top: var(--size-l);

    .pages {
        margin: 0;
        background-image: unset;
        background-color: unset;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;

        a.page {
            --page-size: 36px;

            border-radius: 50%;
            width: var(--page-size);
            height: var(--page-size);
            line-height: var(--page-size);
            font-size: var(--a-nav);
            border: 1px solid var(--black);
            color: var(--black);
            margin: 0;
            font-weight: 400;

            &:hover,
            &.active {
                background-color: var(--primary);
                color: var(--black);
                border-color: var(--primary);
            }

            &:before {
                content: none;
            }

            &.next_page,
            &.prev_page {
                font-size: 0;
                color: transparent;
                width: var(--page-size);
                height: var(--page-size);
                line-height: var(--page-size);
                transition: all 1s ease;
                position: relative;

                &:before {
                    font-family: 'temini';
                    font-size: calc(var(--page-size) * 0.8);
                    color: var(--black);
                }
            }

            &.next_page {
                &:before {
                    content: "\e906";
                }

                &:hover {
                    transform: translateX(10px);
                }
            }

            &.prev_page {
                &:before {
                    content: "\e90a";
                }

                &:hover {
                    transform: translateX(-10px);
                }
            }
        }
    }
}

/* Single - Tag cloud */
.column_tag_cloud .mfn-tag-cloud {
    gap: 5px;

    &:before {
        content: "";
        font-family: 'temini';
        content: "\e910";
        font-size: var(--size-l);
        line-height: 1;
        color: var(--black);
        width: var(--size-l);
        height: var(--size-l);
    }

    li a {
        background-color: var(--primary);
        color: var(--black);
        line-height: 1;
        padding: 7px 15px;
        transition: all .3s ease;
        border-radius: 100px;
        display: inline-flex;
        align-items: center;
        justify-content: center;

        &:hover {
            transform: scale(1.02);
        }
    }
}

/* Single - Share */
.cont-share {
    border-top: 1px solid var(--black);
    margin-top: var(--size-m);
    padding-top: var(--size-m);

    .mcb-wrap-inner {
        align-items: center;

        .one.column {
            width: fit-content;
        }
    }

    .mfn-share-post .mfn-share-post-button {
        border: unset;
        padding: 0;
        border-radius: 0;
        color: var(--black);
        font-size: var(--a-nav);
        transition: all .3s ease;

        &:hover {
            transform: translateY(-5px);
        }
    }
}


/*********************************\
               404
\*********************************/
#error-404 {
    .back-404 {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: -1;

        .title {
            color: var(--light-grey);
        }
    }
}

.admin-bar #error-404 .section_wrapper>.wrap>.mcb-wrap-inner {
    min-height: calc(100dvh - var(--admin-bar-height));
}


/*********************************\
            RESPONSIVE
\*********************************/
@media only screen and (max-width: 1239px) {}

@media only screen and (max-width: 1024px) {}

@media only screen and (max-width: 959px) {

    /* FIX: Desactivar delay de animaciones */
    body .animate {
        animation-delay: 0ms !important;
    }

    /* FIX: Ocultar botón de accesibilidad al abrir el menú lateral */
    html.mfn-header-tmpl-burger-sidebar-opened #pojo-a11y-toolbar {
        display: none;
    }
}

@media only screen and (max-width: 767px) {}

@media only screen and (max-width: 480px) {}

@media only screen and (max-width: 320px) {}