/**
 * GW Blueprint - Main Stylesheet
 * 
 * This file contains base styles and utilities for the theme
 */

/* CSS Variables for easy customization */
/* Reset and Base Styles */
:root{
	--header-height: 78px;
}
* {
	box-sizing: border-box;
}
body {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	overflow-x: clip;
}

/* Typography */
p:last-child,
ul:last-child,
ol:last-child{
	margin-bottom: 0;
}
ul:empty,
ol:empty,
li:empty,
p:empty{
	display: none;
}
img{
	max-width: 100%;
	border:none;
	outline:none;
}

input,
select,
textarea,
button{
	outline: none;
}
::-webkit-scrollbar {
	width: 5px;
}
::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.wp-element-button,
.button{
	--btnColor: var(--wp--preset--color--custom-color-500);
	--btnColorHover: color-mix(in srgb, var(--btnColor) 85%, #000000);
	--btnTextColor: var(--wp--preset--color--neutral-white);
	--btnTextColorHover: var(--wp--preset--color--neutral-white);
	background: var(--btnColor);
	color: var(--btnTextColor);

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap:10px;
	cursor: pointer;
	transition: all 0.3s;

	&:hover{
		background: var(--btnColorHover);
		color: var(--btnTextColorHover);
	}
}
.is-style-outline .wp-element-button{
	background: none;
	border: 1px solid var(--btnColor);
	color: var(--btnColor);

	&:hover{
		background: var(--btnColor);
		color: var(--btnTextColorHover);
	}
}

.button{
	border:none;
	padding:16px 24px;
	font-size: 18px;
	border-radius: 99px;
}

.wp-block-image{
	max-width: 100%;
	height: auto;
}

/** BUTTON COLORS **/
.is-style-secondary-fill .wp-element-button,
.is-style-secondary-outline .wp-element-button{
	--btnColor: var(--wp--preset--color--neutral-500);
	--btnColorHover: color-mix(in srgb, var(--btnColor) 85%, #000000);
	--btnTextColor: var(--wp--preset--color--neutral-white);
	--btnTextColorHover: var(--wp--preset--color--neutral-white);
}

.is-style-secondary-outline .wp-element-button{
	background: none;
	border: 1px solid var(--btnColor);
	color: var(--btnTextColor);
	border-radius: 0;

	&:hover{
		background: var(--btnColorHover);
		color: var(--btnTextColorHover);
	}
}

.is-style-white-fill .wp-element-button,
.is-style-white-outline .wp-element-button{
	--btnColor: var(--wp--preset--color--neutral-white);
	--btnColorHover: color-mix(in srgb, var(--btnColor) 85%, #000000);
	--btnTextColor: var(--wp--preset--color--neutral-500);
	--btnTextColorHover: var(--wp--preset--color--neutral-500);
}

.is-style-white-outline .wp-element-button{
	background: none;
	border: 1px solid var(--btnColor);
	color: var(--btnColor);
	border-radius: 0;

	&:hover{
		background: var(--btnColor);
		color: var(--btnTextColorHover);
	}
}

/*** PLAY BUTTON ***/
.play_button{
	display: block;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgY2xhc3M9IiI+PGc+PHBhdGggZD0iTTIyLjQgMjU2Vjg5LjdjMC02OC45IDc0LjYtMTEyIDEzNC4yLTc3LjVsMTQ0LjEgODMuMiAxNDQuMSA4My4yYzU5LjcgMzQuNCA1OS43IDEyMC42IDAgMTU1bC0xNDQuMSA4My4yTDE1Ni42IDUwMEM5NyA1MzQuMyAyMi40IDQ5MS4zIDIyLjQgNDIyLjR6IiBmaWxsPSIjZmZmZmZmIiBvcGFjaXR5PSIxIiBkYXRhLW9yaWdpbmFsPSIjMDAwMDAwIiBjbGFzcz0iIj48L3BhdGg+PC9nPjwvc3ZnPg==);
    background-size: 35px;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s;

	&:hover{
		background-color: rgba(255, 255, 255, 0.3);
		transform: scale(1.1);
	}
}

/*** LINK WRAPPER STYLES ***/
.link_wrapper {
	color: currentColor;
	text-decoration: none;
	display: flex;
}
.link_wrapper > .wp-block-group{
	width: 100%;
}

.whyus_list img{
	width: 32px !important;
	min-width: 32px !important;
}

/*** SEPARATOR STYLES ***/
.wp-block-separator.is-style-title-decoration {
	border: none;
    border-top: 5px solid;
    width: 60px;
}

/*** HELPERS ***/
.w-100{
	width: 100%;
}
.service_icon{
	min-width: 52px;
}
.rank-math-html-sitemap{
	padding:64px 0;
}
.is-style-checklist{
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;

	li{
		position: relative;
		padding-left: 45px;
		font-weight: 400;
		line-height: 40px;
		&::before{
			content: '';
			position: absolute;
			top: 2px;
			left: 0;
			width: 36px;
            height: 36px;
			background-image: url(../images/check_icon.svg);
			background-size: contain;
			background-repeat: no-repeat;
			background-position: center;
		}
	}
	a{
		text-decoration: none;
	}
}
.is-style-timeslist{
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;

	li{
		position: relative;
		padding-left: 45px;
		font-weight: 400;
		line-height: 40px;
		&::before{
			content: '';
			position: absolute;
			top: 2px;
			left: 0;
			width: 36px;
            height: 36px;
			background-image: url(../images/times.svg);
			background-size: contain;
			background-repeat: no-repeat;
			background-position: center;
		}
	}
	a{
		text-decoration: none;
	}
}

.wp-block-accordion-item{
	border:1px solid var(--wp--preset--color--neutral-300);
	border-radius: 12px;
	padding: 16px;
}
.add_to_cart_button{
	width: 100%;
	--btnColor: var(--wp--preset--color--neutral-500);
}

/*** GRAVITY FORMS ***/
.gform_description:empty,
.gform_heading{
	display: none !important;
}
.form_wrapper{
	--fields-bg-color: var(--wp--preset--color--neutral-white);
	--fields-border-color: var(--wp--preset--color--neutral-300);
	--fields-text-color: var(--wp--preset--color--neutral-500);
	--fields-border-radius: 5px;
	--fields-padding: 10px 20px;
	--fields-height: 50px;
}
.form_wrapper .gform_wrapper.gravity-theme input[type=text],
.form_wrapper .gform_wrapper.gravity-theme input[type=email],
.form_wrapper .gform_wrapper.gravity-theme input[type=password],
.form_wrapper .gform_wrapper.gravity-theme input[type=tel],
.form_wrapper .gform_wrapper.gravity-theme input[type=number],
.form_wrapper .gform_wrapper.gravity-theme select,
.form_wrapper .gform_wrapper.gravity-theme textarea{
    border: 1px solid var(--fields-border-color);
    background: var(--fields-bg-color);
	color: var(--fields-text-color);
	border-radius: var(--fields-border-radius);
    height: var(--fields-height);
    padding: var(--fields-padding);
}
.form_wrapper .gform_wrapper.gravity-theme .gfield_label{
	display: block;
	font-size: var(--wp--preset--font-size--md);
	font-weight: 400;
	margin-bottom: 10px;
	font-weight: normal;
}
.form_wrapper .gform_wrapper.gravity-theme .gform_fields {
	grid-row-gap: var(--wp--preset--spacing--ml);
}
.form_wrapper .gform_footer{
	justify-content: center;
	padding: 0 !important;
	margin-top:30px !important;
}
.form_wrapper .gform_footer .button{
	margin:0 !important;
}

.sidebar_form_wrapper .gfield_consent_label{
	font-size: 13px;
	line-height: 1.2;
}
.sidebar_form_wrapper .gfield_consent_label a{
	color: var(--wp--preset--color--custom-color-500);
}

/*** HEADER ***/
header.wp-block-template-part{
	height: var(--header-height);
}
#header_wrapper{
	position: relative;
	height: var(--header-height);
	z-index: 99;
}
#header_wrapper{
	position: fixed;
	width: 100%;
}
.float_active #header_wrapper{
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
#header_main {
	position: relative;
    height: var(--header-height);
    padding-block: 0 !important;
    display: flex;
    align-items: center;
    z-index: 9;
}
#header_main .wp-block-columns{
	width: 100%;
}
.header_menu {
  font-family: "Helvetica Now Display", Sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.logo_wrapper {
	position: relative;
	flex-basis: clamp(160px, 19vw, 480px) !important;
    flex-grow: inherit !important;
    height: auto;
}
@media (max-width: 1024px) { .logo_wrapper{ width: 100%; max-width: 280px; } }

.custom-logo-link,
.logo_wrapper img{
	width: auto;
    height: auto;
    max-height: var(--header-height);
}
.wp-block-site-logo{
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(160px, 19vw, 480px);
}

/* Desktop (≥1024px) */
#header_main{ --font-size: 0.833333vw;}
#header_main .sub-menu a  { --font-size: 0.770833vw; }   /* 0.925 × 0.833333 */

/* Móvil / tablet (<1024px) */
@media (max-width: 1023.98px) {
	#header_main a           { --font-size: 3.72093vw; }
	#header_main .sub-menu a { --font-size: 3.4419vw; }    /* 0.925 × 3.72093 */
}

.menu_open #header_main{
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#header_main .wp-element-button{
	font-size: var(--font-size);
    background: #000;
    padding-inline: 22px;
    padding-block: 13px;
}


/*** HEADER MENU ***/
.header_menu{
	list-style: none;
	display: flex;
    padding: 0;
    margin: 0;
    gap: 30px;
	color: var(--wp--preset--color--neutral-500);
	font-size: var(--font-size);
	font-weight: 400;
}
.header_menu li{
	position: relative;
}
.header_menu > li > a{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
    text-decoration: none;
    color: currentColor;
	padding: 7px 0;
    transition: all 0.3s;
}
.header_menu > li > a:hover,
.header_menu > li.current_page_item > a{
	color: var(--wp--preset--color--custom-color-500);
}
.header_menu .menu-item-has-children > a::after{
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgNDUxLjg0NyA0NTEuODQ3IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48Zz48cGF0aCBkPSJNMjI1LjkyMyAzNTQuNzA2Yy04LjA5OCAwLTE2LjE5NS0zLjA5Mi0yMi4zNjktOS4yNjNMOS4yNyAxNTEuMTU3Yy0xMi4zNTktMTIuMzU5LTEyLjM1OS0zMi4zOTcgMC00NC43NTEgMTIuMzU0LTEyLjM1NCAzMi4zODgtMTIuMzU0IDQ0Ljc0OCAwbDE3MS45MDUgMTcxLjkxNSAxNzEuOTA2LTE3MS45MDljMTIuMzU5LTEyLjM1NCAzMi4zOTEtMTIuMzU0IDQ0Ljc0NCAwIDEyLjM2NSAxMi4zNTQgMTIuMzY1IDMyLjM5MiAwIDQ0Ljc1MUwyNDguMjkyIDM0NS40NDljLTYuMTc3IDYuMTcyLTE0LjI3NCA5LjI1Ny0yMi4zNjkgOS4yNTd6IiBmaWxsPSIjMDAwMDAwIiBvcGFjaXR5PSIxIiBkYXRhLW9yaWdpbmFsPSIjMDAwMDAwIj48L3BhdGg+PC9nPjwvc3ZnPg==);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.header_menu .sub-menu{
	position: absolute;
	top: 100%;
	left: 0;
	width: 200px;
	display: flex;
	flex-direction: column;
	list-style: none;
	padding:0;
	background: var(--wp--preset--color--neutral-white);
	color: var(--wp--preset--color--neutral-500);
	transform: translateY(10px);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}
.header_menu > li:hover .sub-menu{
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}
.header_menu .sub-menu li{
	margin: 0;
	padding:5px 15px;
	transition: all 0.3s;
}
.header_menu .sub-menu li:hover,
.header_menu .sub-menu .current_page_item{
	background: rgba(0, 0, 0, 0.1)
}
.header_menu .sub-menu a{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 0;
	gap: 5px;
	text-decoration: none;
    color: currentColor;
}

/*** MOBILE MENU COMPONENT ***/
#menu_trigger{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	cursor: pointer;
}
#menu_trigger::after{
	content: '';
    position: absolute;
    top: calc(50% - 1px);
    left: calc(50% - 15px);
    width: 30px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
    transition: all 0.5s;
}
.menu_open #menu_trigger::after{
	transform: translateX(100%);
	opacity: 0;
}
#menu_trigger i{
	position: relative;
    display: block;
    width: 30px;
    height: 20px;
}
#menu_trigger i::before{
	content: '';
	position: absolute;
	top:0;
	left: 0;
	width: 100%;
	height: 3px;
    border-radius: 99px;
	background:currentColor;
	transition:all 0.5s;
}
.menu_open #menu_trigger i::before{
	transform: translate(0px, 9px) rotate(45deg);
}
#menu_trigger i::after{
	content: '';
	position: absolute;
	bottom:0;
	left: 0;
	width: 100%;
	height: 3px;
    border-radius: 99px;
	background:currentColor;
	transition:all 0.5s;
}
.menu_open #menu_trigger i::after{
	transform: translate(0px, -8px) rotate(-45deg);
}

/*** MOBILE MENU ***/
.menu_open{
	overflow: hidden;
}
#mobile_menu_wrapper{
	position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
	clip-path: inset(0 0 100% 0);
    transition: all 0.3s;
}
.menu_open #mobile_menu_wrapper{
	clip-path: inset(0 0 0 0);
}
#mobile_menu{
	width: 100%;
    flex-direction: column;
    padding: 0;
    list-style: none;
    max-height: calc(100vh - var(--header-height));
    overflow: auto;
}
#mobile_menu li a{
	display: block;
	padding: 10px 15px;
	color:  var(--wp--preset--color--neutral-500);
	text-decoration: none;
	text-transform: uppercase;
}
#mobile_menu .current-menu-item > a,
#mobile_menu .current-menu-item > span > a{
	color: var(--wp--preset--color--custom-color-500)
}
#mobile_menu li a:hover{
	color: var(--wp--preset--color--custom-color-500);
}
#mobile_menu .sub-menu{
	list-style: none;
    padding: 10px 0;
    margin: 0;
    display: none;
    background: rgba(0, 0, 0, 0.1);
}
.sub_menu_trigger_wrapper{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-right: 15px;
}
.sub_menu_trigger_wrapper i{
	display: inline-block;
	position: relative;
	width: 25px;
	height: 25px;
	background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgNDUxLjg0NyA0NTEuODQ3IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48Zz48cGF0aCBkPSJNMjI1LjkyMyAzNTQuNzA2Yy04LjA5OCAwLTE2LjE5NS0zLjA5Mi0yMi4zNjktOS4yNjNMOS4yNyAxNTEuMTU3Yy0xMi4zNTktMTIuMzU5LTEyLjM1OS0zMi4zOTcgMC00NC43NTEgMTIuMzU0LTEyLjM1NCAzMi4zODgtMTIuMzU0IDQ0Ljc0OCAwbDE3MS45MDUgMTcxLjkxNSAxNzEuOTA2LTE3MS45MDljMTIuMzU5LTEyLjM1NCAzMi4zOTEtMTIuMzU0IDQ0Ljc0NCAwIDEyLjM2NSAxMi4zNTQgMTIuMzY1IDMyLjM5MiAwIDQ0Ljc1MUwyNDguMjkyIDM0NS40NDljLTYuMTc3IDYuMTcyLTE0LjI3NCA5LjI1Ny0yMi4zNjkgOS4yNTd6IiBmaWxsPSIjMDAwMDAwIiBvcGFjaXR5PSIxIiBkYXRhLW9yaWdpbmFsPSIjMDAwMDAwIj48L3BhdGg+PC9nPjwvc3ZnPg==);
	background-size: 15px;
	background-position: center;
	background-repeat: no-repeat;
	transform: rotate(0deg);
	transition: all 0.3s;
}
.open .sub_menu_trigger_wrapper i{
	transform: rotate(180deg);
}

/*** FOOTER ***/
footer.wp-block-template-part{
	margin: 0 !important;
}
.footer_menu a{
	text-decoration: none;
}

/*** COMPONENTS ***/

.map-wrapper{
	position: relative;
	height: 100%;
}
.map-wrapper iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/* Dual Marquee Carousel */
.dual-marquee-carousel {
	overflow: hidden;
}
.dual-marquee-carousel__title {
	margin: 0 0 2rem;
	text-align: center;
}
.dual-marquee-carousel__rows {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.dual-marquee-carousel__track {
	overflow: hidden;
	width: 100%;
}
.dual-marquee-carousel__scroll {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: dual-marquee-scroll var(--marquee-duration, 70s) linear infinite;
}
.dual-marquee-carousel__track--reverse .dual-marquee-carousel__scroll {
	animation-direction: reverse;
}
.dual-marquee-carousel__group {
	display: flex;
	flex-shrink: 0;
	gap: 24px;
}
.dual-marquee-carousel__slide {
	margin: 0;
	flex-shrink: 0;
	width: clamp(220px, 24vw, 320px);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--neutral-white, #fff) 35%, transparent);
	border-radius: 12px;
	overflow: hidden;
}
.dual-marquee-carousel__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@keyframes dual-marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.dual-marquee-carousel__scroll {
		animation: none;
	}
}

/*** PAGINATION ***/
.wp-block-query-pagination{
	--pg-size: 44px;
	--pg-gap: 8px;
	--pg-color: var(--wp--preset--color--neutral-500);
	--pg-border: var(--wp--preset--color--neutral-300);
	--pg-active-bg: var(--wp--preset--color--custom-color-500);
	--pg-active-color: var(--wp--preset--color--neutral-white);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pg-gap);
	margin-top: 40px;
}

.wp-block-query-pagination-numbers{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pg-gap);
}

/* Cada item: números, prev y next comparten el mismo look */
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--pg-size);
	height: var(--pg-size);
	padding: 0 12px;
	border: 1px solid var(--pg-border);
	border-radius: 5px;
	color: var(--pg-color);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: all 0.3s;
}

/* Hover sobre items clicables (los <a>) */
a.page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover{
	border-color: var(--pg-active-bg);
	color: var(--pg-active-bg);
}

/* Página actual */
.wp-block-query-pagination .page-numbers.current{
	background: var(--pg-active-bg);
	border-color: var(--pg-active-bg);
	color: var(--pg-active-color);
}

/* Puntos suspensivos: sin caja ni borde */
.wp-block-query-pagination .page-numbers.dots{
	min-width: auto;
	padding: 0 4px;
	border: 0;
	color: var(--pg-color);
}

/* Flechas prev/next */
.wp-block-query-pagination .is-arrow-chevron{
	font-size: 18px;
	line-height: 1;
}

/*** MEDIA QUERIES ***/
@media (max-width: 1320px) {
}

@media (max-width: 992px) {
	:root {
		--header-height: 80px;
	}
	#header_main {
		padding-block: 16px !important;
	}
	#footer_text{
		flex-direction: column;
		text-align: center;
	}
	.logo_wrapper{
		justify-content: start;
	}
	.wp-block-query-pagination{
		--pg-size: 38px;
		--pg-gap: 6px;
	}
}


/*** Adaptive grid (Specialized Programs y grids de servicios) ***/
/* 2 o 4 items -> 500px ; 3, 5 o mas -> 350px (default) */
.adaptive-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
}
.adaptive-grid:has(> :nth-child(2):last-child),
.adaptive-grid:has(> :nth-child(4):last-child) {
	grid-template-columns: repeat(auto-fill, minmax(min(500px, 100%), 1fr));
}
