
html{
	scroll-padding-top: 120px;
	scroll-behavior: smooth;
}

/* HEADER */


/* Clases generales */

.bloqueoculto{
	visibility: hidden;
	font-size: 0;
	margin: 0;
	padding: 0;
	position: absolute;
	left: -9999px;
}

.bloqueocultomovil{
	@media screen and (max-width: 768px){
		visibility: hidden;
		font-size: 0;
		margin: 0;
		padding: 0;
		position: absolute;
		left: -9999px;
	}
}

.contenedorocultomovil{
	@media screen and (max-width: 768px){
		display: none;
	}
}

h1 > a,
h2 > a{
	text-decoration: none;
	font-family: unset;
	color: inherit;
}


/* */

.wp-site-blocks{
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 100vh;

	footer{
		margin-top: auto;
	}
}

/* */



/* BLOCKS */

p{
	&.is-style-avline-paragraph-estrecho{
		@media screen and (min-width: 768px){
			max-width: 50%;
		}
	}
}

.wp-block-group{
	&.is-layout-grid.is-style-avline-group-contenedor-menu{
		@media screen and (max-width: 768px){
			display: flex;
			flex-wrap: wrap;
		}
	}
} 

.wp-block-terms-query{
	&.is-style-avline-terms-query-submenu{
		.wp-block-term-template{
			.wp-block-term-name{
								
				a{
					
				}
			}
		}
	}
}

.wp-block-search{
	&.is-style-avline-search-extensible{
		.wp-block-search__inside-wrapper .wp-block-search__input {
			background-color: transparent;
			background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 19L14.65 14.65M17 9C17 13.4183 13.4183 17 9 17C4.58172 17 1 13.4183 1 9C1 4.58172 4.58172 1 9 1C13.4183 1 17 4.58172 17 9Z' stroke='%23172926' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
			background-position: 8px center;
			background-repeat: no-repeat;
			background-size: 18px 18px;
			border: none;
			cursor: pointer;
			height: 36px;
			margin: 4px 0;
			padding-left: 32px;
			box-sizing: border-box;
			transition: width 600ms ease, background-color 400ms ease;
			width: 0;
			min-width: 0;
			overflow: hidden;
		}
		 
		.wp-block-search__inside-wrapper .wp-block-search__input:focus {
			background-color: #fff;
			border: 1px solid var(--wp--preset--color--custom-gray-900);
			border-radius: 16px;
			cursor: text;
			outline: none;
			width: 240px;
		}
		 
		.wp-block-search__inside-wrapper .wp-block-search__input::placeholder {
			opacity: 0;
		}
		 
		.search-form .search-submit,
		.wp-block-search__button {
			display: none;
		}
	}
}

.wp-block-navigation{
	&.is-style-avline-navigation-principal{
		.wp-block-navigation__responsive-container:not(.is-menu-open){
			.wp-block-navigation-item.wp-block-navigation-link,
			.wpml-language-switcher-navigation-block {
				display: none;
			}
			.wp-block-navigation-item.wp-block-ollie-mega-menu{
				display: block;
				
				.wp-block-navigation-item__label{
					display: block;
					background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5v1.5h14V5H5z'%3E%3C/path%3E%3Cpath d='M5 12.8h14v-1.5H5v1.5z'%3E%3C/path%3E%3Cpath d='M5 19h14v-1.5H5V19z'%3E%3C/path%3E%3C/svg%3E");
					background-color: transparent;
					background-position: center;
					background-repeat: no-repeat;
					background-size: 24px 24px;
					border: none;
					cursor: pointer;
					height: 24px;
					width: 24px;
					margin: 0px 0;
					box-sizing: border-box;
					min-width: 0;
					overflow: hidden;
					font-size: 0;
				}
				.wp-block-ollie-mega-menu__toggle-icon{
					display: none;
				}
			}
		}
	}
	.is-style-avline-navigation-breadcrumbs{
		color: var(--wp--preset--color--custom-gray-900);
		font-family: var(--wp--preset--font-family--montserrat);
		font-size: 14px !important;
		font-style: normal;
		font-weight: 400;
		line-height: 1;
		gap: 4px;
		li:after{
			margin: 0 4px;
			content: " › ";
		}
		li:last-item:after{
			display: none;
		}
		a{
			color: var(--wp--preset--color--custom-gray-900);
		}
	}	
}

.wp-block-list{
	&.is-style-avline-list-menu{
		li{
			margin-bottom: 1rem;
			a:hover{
				text-decoration: underline;
			}
		}
	}
} 

.aioseo-breadcrumbs{
	color: var(--wp--preset--color--custom-gray-900);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px !important;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	a{
		color: var(--wp--preset--color--custom-gray-900);
	}
}

.wp-block-query-pagination{
	&.is-style-avline-query-pagination-av{
		a{
			text-decoration: none;
		}
		.wp-block-query-pagination-numbers{
			.page-numbers{
				
				display: inline-block;
				margin: 0 0.5rem;
				
				&.current{
					background-color: var(--wp--preset--color--custom-gray-700);
					color: var(--wp--preset--color--custom-gray-100);
					padding: 0.3rem 0.6rem;
					border-radius: 8px;
				}
			} 
		}
	}
}

.wp-block-post-excerpt__more-link{
	background-color: var(--wp--preset--color--custom-red-500);
	color: var(--wp--preset--color--custom-blanco);
	padding: 0.5rem 1rem;
	text-transform: uppercase;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px !important;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
	border-radius: 32px;
}

.wpml-language-switcher-block{
	flex-wrap: nowrap;
	
	div ul.horizontal-list{
		gap: 8px!important;
	}
	.horizontal-list:before{
		content: "";
		background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 11C21 16.5228 16.5228 21 11 21M21 11C21 5.47715 16.5228 1 11 1M21 11H1M11 21C5.47715 21 1 16.5228 1 11M11 21C13.5013 18.2616 14.9228 14.708 15 11C14.9228 7.29203 13.5013 3.73835 11 1M11 21C8.49872 18.2616 7.07725 14.708 7 11C7.07725 7.29203 8.49872 3.73835 11 1M1 11C1 5.47715 5.47715 1 11 1' stroke='%23172926' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
		background-color: transparent;
		background-position: left;
		background-repeat: no-repeat;
		background-size: 22px 22px;
		border: none;
		cursor: pointer;
		height: 22px;
		width: 22px;
		margin: 0px 0;
		box-sizing: border-box;
		min-width: 0;
		overflow: hidden;
		font-size: 0;
	}		
	@media screen and (max-width: 768px){
		display: none!important;
	}
}


/* g4blocks/slider */
.wp-block-g4blocks-slider{

	/* Logos */
	&.is-style-an_g4_slider{

		//margin: 0 -1rem!important;

		ul.splide__list{
			position: relative;

			li.wp-block-g4blocks-slider-slide{
				display: flex;
				justify-content: center;
				align-items: center;
				padding: 1rem 2rem;

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

				> * {
					margin: 0;
				}


			}
		}

		&.clientes{
			ul.splide__list{
				li.wp-block-g4blocks-slider-slide{
					width: calc(16.6666% - 2.66667rem)!important;

					@media screen and ($media__mobile){
						margin-right: 1.5rem!important;
						width: calc(45.3333% - 2.66667rem)!important;
						padding: 0rem;
					}
					img{
						max-height: 112px;
						filter: invert(0.7);
					}
				}
			}
		}
	}

	/* Logos */
	&.is-style-an-g4-slider-proyectos{
		@media screen and ($media__mobile){
			li.wp-block-g4blocks-slider-slide{
				width: calc(100%)!important;
			}
		}
	}
}

.gform_wrapper{
	& form.formfooter{
		label.gfield_label{
			font-family: var(--wp--preset--font-family--montserrat);
			font-size: 14px !important;
			font-style: normal;
			font-weight: 700;
		}
		
		.gform_fields .gfield .ginput_container_textarea textarea,
		.gform_fields .gfield .ginput_container_name input[type=text],
		.gform_fields .gfield .ginput_container_email input[type=email],
		.gform_fields .gfield .ginput_container_text input[type=text] {
			border-radius: 32px;
			border: 1px solid var(--wp--preset--color--custom-gray-500);
			background: inherit;
			box-shadow: none;
			color: var(--wp--preset--color--custom-gray-700);
			padding: 12px;
		}
		input[type=submit].gform_button {
			border: var(--wp--preset--color--custom-red-500);
			background-color: var(--wp--preset--color--custom-red-500);
			color: var(--wp--preset--color--custom-blanco);
			padding: 0.5rem 1rem;
			text-transform: uppercase;
			text-decoration: none;
			font-family: var(--wp--preset--font-family--montserrat);
			font-size: 14px !important;
			font-style: normal;
			font-weight: 700;
			line-height: 1;
			border-radius: 32px;
		}
		
	}
}


/* FOOTER */

footer{
	margin-top: 0;
}




