/*
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: 8.3
Requires PHP: 7.4
Version: 1.0.9
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 {
    --gradient-height: 500px;
    background: linear-gradient(180deg, rgba(152, 208, 192, 0.5) 0%, rgba(255, 255, 255, 1) var(--gradient-height)) no-repeat;
}


/* 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);
}


a.arrow::after,
.arrow a::after {
    content: '→';
    color: currentColor;
    transition: color 0.2s ease;
    display: inline-block;
    margin-left: 0.2em;
}

header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 11;
    background-color: rgba(255, 255, 255, 0.85);

}


html:not(.has-modal-open) header.wp-block-template-part {
    backdrop-filter: blur(8px);
}

/* Accordion */


.wp-block-accordion-heading__toggle-icon {
    background: var(--wp--preset--color--accent);
    color: #FFF;
    border-radius: 50%;
}

[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon {
    background: var(--wp--preset--color--accent-2);
}

.wp-block-accordion-heading__toggle-title:hover {
    color: var(--wp--preset--color--accent);
    text-decoration: none !important;
}


/*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;
    flex-wrap: nowrap;

    /* 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(33% - 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: transparent;
    color: var(--wp--preset--color--accent);
    border: 1px solid currentColor;
    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--x-large);
    font-family: monospace;
    padding: 0.1em 0.4em;
    aspect-ratio: 1 / 1;
    line-height: 1;
}


/* 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 label:not(:has(input[type=checkbox]), :has(input[type=radio])) {
    color: var(--wp--preset--color--accent);
    display: block;
    font-size: var(--wp--preset--font-size--small);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.default-forms br {
    display: none;
}

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

@media screen and (max-width: 400px) {
    .default-forms .form-2-col {
        grid-column: span 2;
    }
}


.default-forms :is(input[type=text], 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--base-2);
    background: var(--wp--preset--color--base);
}

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

.default-forms input[type=submit] {
    background-color: var(--wp--preset--color--accent);
    border-radius: 4px;
    border-color: var(--wp--preset--color--accent);
    border-width: 0;
    color: var(--wp--preset--color--contrast);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding-top: 0.6em;
    padding-right: 1em;
    padding-bottom: 0.6em;
    padding-left: 1em;
    text-decoration: none;
}

/* */