/*
Theme Name: Eva Elcano
Theme URI: 
Author: Marta Torre
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eva-elcano
Tags: 
*/

/* GLOBAL
========================================================= */

html {
	scroll-behavior: smooth;
}

.current-menu-item a {
	text-decoration: underline;
}

.card-shadow {
	box-shadow: 0 0 15.3px 0 rgba(0, 0, 0, 0.15);
}

.nav-desktop {
	display: none !important;
}

/* Icono hamburguesa personalizado */
.wp-block-navigation__responsive-container-open svg {
	display: none;
}

.wp-block-navigation__responsive-container-open {
	background-image: url("data:image/svg+xml,%3Csvg width='32' height='23' viewBox='0 0 32 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M29.3599 21L1.99986 21' stroke='%2385C4FF' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M29.3599 11.1201L1.99986 11.1201' stroke='%2385C4FF' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M29.3599 2L1.99986 2' stroke='%2385C4FF' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	width: 32px;
	height: 23px;
}
#header-mobile .custom-logo{
 width: 60px;
}
#header-mobile .wp-block-navigation-item__content {
	font-weight: 700;
}

/* Buttons
========================================================= */

.wp-block-button .wp-block-button__link,
.gform_button.button {
	transition: opacity var(--wp--custom--transition--duration, 0.3s) ease;
}

.wp-block-button .wp-block-button__link:hover,
.gform_button.button:hover {
	opacity: 0.7;
}

/* Forms
========================================================= */
.gform_fields {
	gap: 1rem !important;
}
.gform_button.button {
	border-radius: 50px !important;
	background: #EA9759;
	box-shadow: 2px 2px 5.3px 0 rgba(0, 0, 0, 0.25) !important;
	margin: 0 auto !important;
	padding-left: 2rem;
	padding-right: 2rem;
}

label:not(.gfield_consent_label) {
	font-weight: 700 !important;
}

input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	border-radius: 2px;
	border: 1px solid #DEDFDD;
	background: #F8F8F8;
	box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

input[type="checkbox"]:checked {
	background: #F8F8F8;
	border-color: #DEDFDD;
}

.gfield_required_asterisk {
	color: #3a3a3a !important;
}

.card-form {
	box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

/* Portfolio filtros
========================================================= */
.portfolio-filtros {
	display: flex;
	gap: 1rem;
	justify-content: center;
	padding-bottom: 1.5rem;
	flex-wrap: wrap;
}

.portfolio-filtros a {
	border-radius: 50px;
	background: #85C4FF;
	box-shadow: 2px 2px 5.3px 0 rgba(0, 0, 0, 0.25);
}

.portfolio-filtros a.active {
	background: #EA9759;
}

/* Newsletter popup
========================================================= */
#newsletter-popup-wrap {
	position: fixed;
	inset: 0;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

#newsletter-popup-wrap.visible {
	opacity: 1;
	pointer-events: auto;
}

#newsletter-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(133, 196, 255, 0.50);
}

#newsletter-popup {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 36px;
	background: #FFF;
	box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
	padding: 2.5rem;
	width: 90%;
	max-width: 480px;
	text-align: center;
}

#newsletter-popup-close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	background: none;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	color: #3a3a3a;
	line-height: 1;
	padding: 0;
}


#newsletter-popup h2 {
	color: var(--wp--preset--color--primary);
	margin-bottom: 1rem !important;
	margin-top: 0;
}
#newsletter-popup .gform_heading {
	padding-bottom: 1rem;
}
#newsletter-popup form {
	display: flex !important;
	align-items: center;
	gap: 1rem;
	justify-content: center;
}
#newsletter-popup .gform-footer {
	margin-top: 0;
}
#newsletter-popup input:not(.gform_button) {
	border-radius: 6px;
	border: 1px solid #DEDFDD;
}
#newsletter-popup .gform-footer input {
	background-color: var(--wp--preset--color--secondary);
}

/* Scroll to top
========================================================= */
#scroll-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #85C4FF;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	box-shadow: 2px 2px 5.3px 0 rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, background 0.3s ease;
	z-index: 999;
}

#scroll-top.visible {
	opacity: 1;
	pointer-events: auto;
}

#scroll-top:hover {
	background: #EA9759;
}

@media (max-width: 600px) {
	.is-layout-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}	
	.is-layout-grid.mobile-reverse-grid {
		display: flex;
		flex-direction: column-reverse;
	}
	.mobile-margin-auto {
		margin: 0 auto !important;
	}
	.portfolio-filtros {
		justify-content: space-between;
	}

	.portfolio-filtros .wp-block-button {
		display: flex;
	}
	.portfolio-filtros .wp-block-button a {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

@media (max-width: 400px) {
		.portfolio-filtros {
			justify-content: center;
		}

	.portfolio-filtros .wp-block-button {
		display: flex;
		flex: 0 0 calc(50% - 0.5rem);
	}
	.portfolio-filtros .wp-block-button a {
		width: 100%;
		justify-content: center;
	}
}

@media (min-width: 600px) {
	#header-mobile {
		display: none;
	}
	.home__unete {
		background: linear-gradient(to right, var(--wp--preset--color--primary) 50%, var(--wp--preset--color--secondary) 50%);
	}
	.nav-desktop {
		display: flex !important;
	}
}