/*
Theme Name: Blank Full
Theme URI: 
Author: Xavier Soler | Entorno Digital SAU
Author URI: 
Description: Tema para Entorno digital
Requires at least: 7.1
Tested up to: 7.2
Requires PHP: 7.4
Version: 1.0.92
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blankfull
Tags: grid-layout, wide-blocks, full-site-editing, full-width-template, 
*/


/* Styles shared with block editor are located in "assets/css/shared.css" */

strong {
    font-weight: 700;
}

body:not(.home) main {
    padding-top: 4em;
}


/* ANIMATIONS */

.has-animations [class*="animation--init"] :where(h1, h2, h3, h4, h5, h6, li, p, .wp-block-buttons) {
    opacity: 0;
    transform: translateY(1em);
}


.has-animations .animation--end :where(h1, h2, h3, h4, h5, h6, li, p, .wp-block-buttons) {
    opacity: 1;
    transition: all 0.6s ease;
    transform: translateY(0);
}


.has-animations .animation--end :where(p) {
    transition-delay: 0.4s;
}

.has-animations .animation--end :where(.wp-block-buttons) {
    transition-delay: 0.8s;
}

/* Media query for mobile */
@media screen and (min-width: 601px) {
    .only-mobile {
        display: none !important
    }
}

@media screen and (max-width: 600px) {
    .no-mobile {
        display: none !important
    }
}


/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 1.5em;
    right: 1.5em;
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    background-color: var(--wp--preset--color--base-2);
    color: var(--wp--preset--color--accent);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show-button {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--wp--preset--color--base);
    transform: translateY(-3px);
}

.hero-split {
    grid-template-rows: auto 1fr;
    grid-auto-rows: auto;
}



.padding-lateral-global {
    padding-inline: clamp(20px, 2.917vw + 10.667px, 48px) !important;
}

/* STYLES */

ul.wp-block-list {
    padding-left: 1.5em;

}

ul.wp-block-list li {
    padding-block-end: 0.4em;
}

ul.wp-block-list li::marker {
    color: var(--wp--preset--color--accent);
    font-size: 18px;
}


ul.wp-block-list.is-style-list-line {
    /* padding-left: 3em; */
}

ul.wp-block-list[class*="is-style-list-line"] li::marker {
    content: "__";
}

ul.wp-block-list[class*="is-style-list-line"] li {
    padding-left: 0.4em;
}


ul.is-style-list-check li {
    display: block;
    margin-block-end: 1.2em;
    line-height: 1.4;
}

ul.is-style-list-round-check-underline li,
.ul.is-style-list-line-underline li {
    border-bottom: 1px solid var(--wp--preset--color--base-2);
}


ul.is-style-list-check li::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 12px;
    background-color: var(--wp--preset--color--accent);
    mask-image: url("data:image/svg+xml,%3Csvg width='14' height='12' viewBox='0 0 14 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.1503 0.299557C12.3989 -0.0315431 12.8689 -0.0983067 13.2001 0.150143C13.5312 0.398733 13.598 0.868681 13.3496 1.19995L5.84955 11.1999C5.7191 11.3737 5.51942 11.4824 5.30268 11.4978C5.08595 11.5131 4.87331 11.4337 4.71967 11.28L0.21967 6.78003C-0.0732233 6.48713 -0.0732233 6.01237 0.21967 5.71948C0.512563 5.42659 0.987323 5.42659 1.28022 5.71948L5.16889 9.60815L12.1503 0.299557Z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    margin-right: 0.5em;
}

ul.wp-block-list[class*="is-style-list-round-check"] {
    list-style-image: url("data:image/svg+xml,%3Csvg width='17' height='17' fill='%23CC1616' viewBox='0 0 17 17' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.0625 0a8.0625 8.0625 0 1 0 0 16.125A8.0625 8.0625 0 1 0 8.0625 0ZM4.87014 8.77686L5.42844 8.2071L6.87718 9.63579L9.94356 6.58085L10.5105 7.15061L6.87718 10.7696L4.87014 8.77686Z'/%3E%3C/svg%3E");

    /* list-style-image: url(/wp-content/themes/blankfull/assets/images/list-round-check.png); */
    list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath fill='%23e63946' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
    list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='0.75em' height='0.75em' viewBox='0 0 24 24'%3E%3Cpath fill='%23e63946' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}



/* ul.is-style-list-dot li::before {
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;

} */

/*  MENU */


/* .menu-ico a {
    background: yellow;
    position: relative;
    flex-direction: column;
    padding-left: 80px !important;


}

.menu-ico a .wp-block-navigation-item__label::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--wp--preset--color--accent-2);
    position: absolute;
    left: 10px;
    top: 10px;
    border-radius: 8px;
}


.menu-ico .wp-block-navigation-item__description {
    display: initial;
} */


.home .seccion-resultados-probados {
    background-color: var(--wp--preset--color--base) !important;
}

.home .banner-cadencia {
    background-color: var(--wp--preset--color--base-2) !important;
}

.hero-split {
    column-gap: 6em;
}


/* MENUS */

.menu-desktop {
    @media (width < 1000px) {
        display: none !important;
    }
}

.menu-mobile {
    @media (width > 1000px) {
        display: none !important;
    }
}

.menu-mobile .has-child>a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    /* apunta hacia abajo */
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.menu-mobile .has-child.open>a::after {
    transform: rotate(-135deg);
    /* apunta hacia arriba */
}

.menu-desktop .wp-block-navigation__container>.wp-block-navigation-submenu,
.menu-desktop .wp-block-navigation__container>.wp-block-navigation-item>a {
    padding: 0.5em 0.8em;
}


.menu-desktop .wp-block-navigation__container>.wp-block-navigation-submenu:hover,
.menu-desktop .wp-block-navigation__container>.wp-block-navigation-item>a:hover {
    background-color: var(--wp--preset--color--base-2);
    color: var(--wp--preset--color--accent);
}


.menu-desktop .wp-block-navigation__container>.current-menu-ancestor,
.menu-desktop .wp-block-navigation__container>.current-menu-item>a.wp-block-navigation-item__content {
    color: var(--wp--preset--color--accent);
    border-bottom: 2px solid currentColor;
}

.menu-mobile.wp-block-navigation__container {
    justify-content: stretch !important;
}

.menu-mobile .has-child>a {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.menu-mobile>li {
    width: 100%;
}

/* header .wp-block-navigation-submenu:hover,
header .current-menu-item:hover {
    background-color: var(--wp--preset--color--base-2);
} */

.menu-ico.wp-block-navigation-link {
    padding-block: 0.5em;
    border-bottom: 1px solid var(--wp--preset--color--base-2);
}

.menu-ico>a.wp-block-navigation-item__content {
    display: grid !important;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
        "icon label"
        "icon desc";
    column-gap: 16px;
    align-items: center;
    padding: 1.2em !important;
    border-radius: 12px;
    text-decoration: none;
}


.wp-block-navigation-submenu:not(.menu-ico) a.wp-block-navigation-item__content {
    border-radius: 8px;
}


.menu-ico>a::before {
    content: "";
    grid-area: icon;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--wp--preset--color--base-3);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-manipuladores-ingravidos.png);
}


.menu-ico .wp-block-navigation-item__label {
    grid-area: label;
    font-size: 16px;
    color: #111;
    align-self: end;
}

.menu-ico .wp-block-navigation-item__description {
    grid-area: desc;
    font-size: 14px;
    color: #555;
    align-self: start;
    display: initial;
}

ul.wp-block-navigation-submenu a:hover {
    background: var(--wp--preset--color--base-2);
}


.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
    padding: 1.4em;
    border-radius: 16px;
    border: none;

}


.menu-desktop.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container.submenu-ico,
.menu-desktop.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container.submenu-ico {
    min-width: 500px !important;
    margin-left: -100px;
}

.ico-manipuladores-vacio>a::before {
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-manipuladores-vacio.png);

}

.ico-puente-guia>a::before {
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-puente-guia.png);

}

.ico-carretilla>a::before {
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-carretilla.png);

}

.ico-cajas>a::before {
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-cajas.png);

}

.ico-sacos>a::before {
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-sacos.png);

}

.ico-bobinas>a::before {
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-bobinas.png);

}

.ico-bidones>a::before {
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-bidones.png);

}

.ico-paneles>a::before {
    background-image: url(/wp-content/themes/blankfull/assets/images/ico-paneles.png);

}




/* FORMS */

.default-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--style--block-gap);
    padding-bottom: 1em;
}

.default-forms p {
    margin-block-start: 0;
    margin-block-end: 0;
}


.default-forms .wpcf7-list-item {
    margin-left: 0;
}

.default-forms label:not(:has(input[type=checkbox]), :has(input[type=radio])) {
    display: block;
    font-size: var(--wp--preset--font-size--x-s);
    padding-bottom: 0.2em;
}

.default-forms br {
    display: none;
}

.default-forms .form-1-col {
    grid-column: span 2;
}

.default-forms :is(input[type=text], input[type=tel], input[type=email], textarea, select) {
    width: 100%;
    font-family: var(--wp--preset--font-family--text);
    font-size: inherit;
    padding: calc(var(--wp--style--block-gap) / 2);
    border: 1px solid var(--wp--preset--color--contrast-6);
    border-radius: 6px;
}

.dark-form :is(input[type=text], input[type=tel], input[type=email], textarea, select) {
    background: rgba(255, 255, 255, 0.15);
    color: var(--wp--preset--color--base);
    border: none;
}


.default-forms input:focus,
.default-forms textarea:focus {
    box-shadow: 0 0 20px rgba(0 0 0 / 10%);
    outline: none;
    border-color: var(--wp--preset--color--contrast);
    border-width: 1px;
}

.default-forms input::placeholder,
.default-forms textarea::placeholder {
    opacity: 0.5;
}

.dark-form input::placeholder,
.dark-form textarea::placeholder {
    color: var(--wp--preset--color--base);
}

.default-forms textarea {
    max-height: 7em;
}

.default-forms button.submit-button,
.default-forms input[type=submit] {
    background-color: var(--wp--preset--color--accent);
    border-radius: 2em;
    border: none;
    color: var(--wp--preset--color--base);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--l);
    line-height: inherit;
    padding: 0.6em 1em 0.6em 1em;
    text-decoration: none;
    display: block;
    width: stretch;
    appearance: none;
}



.dark-form button.submit-button,
.dark-form input[type=submit] {
    background-color: var(--wp--preset--color--contrast);
}

.logos-wrapper {
    column-gap: 4em;
    row-gap: 2em;

    @media (max-width: 500px) {
        column-gap: 2em;
        row-gap: 1em;
    }

}


.logos-wrapper figure {
    max-width: 100px !important;

    @media (max-width: 500px) {
        max-width: 90px;
    }
}


/*scroll*/

.scroll-slider {
    position: relative;
}

.scroll-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* opcional: ocultar scrollbar */
    scrollbar-width: none;
}

.scroll-slider__track::-webkit-scrollbar {
    display: none;
}

.scroll-slider__slide {

    flex: 0 0 100%;
    scroll-snap-align: start;

    @media (min-width: 750px) {
        flex: 0 0 calc(25% - var(--wp--style--block-gap) / 2);
    }

}


/* Flechas */

.scroll-slider__btn__wrapper {
    display: flex;
    gap: 0.2em;
    justify-content: end;
}

.scroll-slider__btn {
    /* position: absolute;
    top: 50%;
    transform: translateY(-50%); */
    z-index: 2;
    cursor: pointer;
    border-radius: 1em;
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    /* border: 1px solid currentColor; */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--wp--preset--font-size--h-3);
    font-family: monospace;
    padding: 0.1em 0.4em;
}

.scroll-slider__btn--prev {
    left: 10px;
    /* transform: rotate(180deg); */
}

.scroll-slider__btn--next {
    right: 10px;
}

/* quotes */

.wp-block-pullquote blockquote p::before {
    content: "";
    width: 2em;
    aspect-ratio: 1;
    background-color: var(--wp--preset--color--accent);
    line-height: 1em;
    display: block;
    background: url(/wp-content/themes/blankfull/assets/images/quotes.webp) center center no-repeat;
    background-size: contain;
    margin-bottom: 0.5em;
}

.wp-block-pullquote p {
    margin-block-end: 0.5em;
}