/*
Theme Name: WebCo
Author: DonPig
Author URI: https://donpig.com/
Description: Plantilla de wordpress para el sitio WebCo
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: DonPigTemplate
*/
:root{
	--teal:#00739a;
	--navy:#024;
	--high:#00CEEF;
	--pink:#F63;
}
body{
	font-family: Raleway, Poppins, Helvetica, sans-serif;
	text-align: center;
	margin:0 0 0 0;
	cursor:default;
	font-size: max(1vw,12px);
	color:#024;
	background: #EEE url(images/bg.svg?cache=2) center top;
	background-size: 100px auto;
	overflow-x: hidden;
}
input[type="button"],button{
	border:none;
	background:none;
	font-size:1em;
	cursor:pointer;
}
img{
	border:none;
}
a{
	color: inherit;
	text-decoration: none;
}
*[onclick],*[href]{
	cursor: pointer;
}
textarea{
	resize:none;
}
.clr{
	clear:both;
}
.columnas2{
	-webkit-column-count:2;
	-moz-column-count:2;
	column-count:2;
}
.columnas3{
	-webkit-column-count:3;
	-moz-column-count:3;
	column-count:3;
}
.columnas4{
	-webkit-column-count:4;
	-moz-column-count:4;
	column-count:4;
}
.columnas5{
	-webkit-column-count:5;
	-moz-column-count:5;
	column-count:5;
}
.grid2{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 0;
}
.grid3{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 0;
}
.grid4{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 0;
}
.grid5{
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-gap: 0;
}
.flex{
	display: flex;
	flex-flow: row wrap;
	align-content: space-between;
	justify-content: space-between;
}
.flex>*{
	flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    text-align: center;
}

.site_error>div{
	margin: 0 auto;
	padding: 0.5em;
	color: #C44;
	border:#C44 solid 1px;
	background: #EDD;
	text-align: center;
	width: 50%;
	min-width: 280px;
	border-radius: 0.15em;
	font-weight:600;
}
.site_error{
	position: fixed;
	top:-20em;
	opacity: 0;
	z-index: 10;
	width: 100%;
	
	-webkit-animation: siteError 5s 1;
	-moz-animation: siteError 5s 1;
	animation: siteError 5s 1;
}

.site_success>div{
	margin: 0 auto;
	padding: 0.5em;
	color: #494;
	border:#494 solid 1px;
	background: #DED;
	text-align: center;
	width: 50%;
	min-width: 280px;
	border-radius: 0.15em;
	font-weight:600;
}
.site_success{
	position: fixed;
	top:-20em;
	opacity: 0;
	z-index: 10;
	width: 100%;
	
	-webkit-animation: siteError 5s 1;
	-moz-animation: siteError 5s 1;
	animation: siteError 5s 1;
}

@keyframes siteError{
	0%{opacity:1;top:5em;}
	90%{opacity:1}
	99%{opacity:0;top:5em;}
	100%{opacity:0;top:-20em;}
}

.hide_me{
	height: 0;
	width: 0;
	overflow: hidden;
	opacity: 0;
	font-size: 1px;
}

a,input,button,*[onclick],*[href]{
	transition: all .25s ease-in-out;
	cursor: pointer;
}

/* GENERALES */

header{
	position: fixed;
	top:0;
	left:0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-content: space-between;
	align-items: center;
	padding: 1em 2.5%;
	font-weight: 600;
	background: linear-gradient(0deg,rgba(255,255,255,0),rgba(255,255,255,0.5));
	transition: all 0.25s ease;
}
header.scrolled{
	background:rgba(255,255,255,0.85);
	backdrop-filter: blur(3px);
	padding: 0.25em 2.5%;
	box-shadow: rgba(0,0,0,0.3) 0 0 0.5em;
}
header :is(menu,ul,li){
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	justify-content: end;
	align-content: end;
	align-items: center;
}
header menu{
	min-width: 60%;
}
header ul{
	gap:2em;
	min-width: 100%;
}
header menu>div{
	width: 100% !important;
}
#logo{
	opacity: 0;
	transition: all 0.25s ease;
}
header.scrolled #logo{
	opacity: 1;
}

footer{
	background: #046;
	color:white;
}

#monogram{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-content: center;
	align-items: start;
	box-sizing: border-box;
	padding-top: 2.5em;
}
#monogram svg,#monogram svg *{
	transition: all 0.25s linear;
}
#monogram svg{
	position: relative;
	left: -27.5%;
	width: 50%;
}
#monogram[data-step="1"] svg{
	left:30%;
	width:30%;
	opacity:0.7;
	animation:Wstep1 8s infinite;
	animation-timing-function: linear;
}
@keyframes Wstep1{
	0%{ transform:rotateY(0deg); filter:brightness(1); }
	25%{ filter:brightness(0.6); }
	50%{ filter:brightness(1); }
	75%{ filter:brightness(0.6); }
	100%{ transform:rotateY(360deg); filter:brightness(1); }
}

#monogram[data-step="2"] svg{
	left:27.5%;
	top:25vh;
	width:50%;
	opacity:0.5;
	animation:none;
}

#monogram[data-step="3"] svg{
	left:0%;
	width:25%;
	opacity:0.7;
	animation:Wstep1 8s infinite;
	animation-timing-function: linear;
}
#monogram[data-step="4"] svg{
	opacity: 0.35;
}

#content h1,#content h2,#content h3,#content h4,#content h5,#content p,#content img,#content a,#content li{
	position: relative;
	top: 2em;
	opacity: 0;
	transition: all 0.5s ease-in-out;
}
#content footer *{
	top:0 !important;
	opacity: 1 !important;
}

#services_home{
	min-height: 600vh;
}
#services_home>div:nth-child(2){
	position: sticky;
	top:6em;
}
#services_home .custom-elements-slider{
	display: flex;
	justify-content: start;
	align-content: start;
	align-items: center;
	gap:2em;
	height:80vh;
	position: relative;
	transition: all 0.2s linear;
}
#services_home .custom-elements-slider .custom-element-item{
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background: white;
	padding: 2em;
	gap:1em;
	min-width: 35%;
	box-shadow: rgba(0,0,0,0.3) 0 0.25em 0.5em;
	
}
#services_home .custom-element-item p{
	margin: 0;
}
#services_home .custom-element-item h4{
	text-transform: uppercase;
	font-size: 1em;
	font-weight: 800;
	letter-spacing: 0.15em;
	margin: 0;
	color: var(--teal);
}
#services_home .custom-element-item h3{
	margin: 1em auto;
	font-size: 1.5em;
	text-wrap: balance;
}
#services_home .custom-element-item .element-content>a{
	display: block;
	background: var(--teal);
	color: white;
	text-transform: uppercase;
	text-align: center;
	font-weight: 800;
	padding: 1em;
	border-radius: 1em;
	letter-spacing: 0.1em;
	margin-top: 2em;
}

#trabajamos_steps{
	counter-reset: tsteps;
}
#trabajamos_steps .elementor-widget-text-editor:nth-child(2n-1):before{
	counter-increment: tsteps;
	content: counter(tsteps);
	position: absolute;
	font: inherit;
	font-size: 10em;
	color: var(--high);
	font-weight: 800;
	translate:-0.65em 0.35em;
}
#trabajamos_steps .elementor-widget-text-editor:nth-child(2n):after{
	counter-increment: tsteps;
	content: counter(tsteps);
	position: absolute;
	font: inherit;
	font-size: 10em;
	color: var(--high);
	font-weight: 800;
	translate:65vw -0.65em;
}

#portafolio_home{
	min-height: 800vh;
}
#portafolio_home>div>div:nth-child(2){
	position: sticky;
	top:6em;
}
#portafolio_home .custom-elements-slider{
	display: flex;
	justify-content: start;
	align-content: start;
	align-items: center;
	gap:2em;
	height:80vh;
	position: relative;
	transition: all 0.2s linear;
}

#portafolio_home .custom-elements-slider .custom-element-item{
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background: white;
	gap:1em;
	min-width: 20vw;
	max-width: 20vw;
	box-shadow: rgba(0,0,0,0.3) 0 0.25em 0.5em;
	position: absolute;
	transition: all 0.5s linear;
}
#portafolio_home .element-content{
	padding: 1em;
}
#portafolio_home .element-content h4{
	margin: 0 0 0.5em 0;
	text-align: center;
	font-size: 1.25em;
}
#portafolio_home .element-excerpt{
	font-size: 0.8em;
	min-height: 6em;
}

#portafolio_home .custom-element-item.negative{
	z-index: -20;
	filter: brightness(0.6);
	scale:0.8;
	opacity: 0.8;
	margin-left: -10%;
}

#portafolio_home .custom-element-item .element-content>a{
	display: block;
	background: var(--teal);
	color: white;
	text-transform: uppercase;
	text-align: center;
	font-weight: 800;
	padding: 1em;
	border-radius: 1em;
	letter-spacing: 0.1em;
	margin-top: 2em;
}

#contacto form{
	text-align: left;
}
#contacto form :is(input,textarea,select){
	background: rgba(255,255,255,0.5);
	border-radius: 0;
	border:none;
	border-bottom: var(--teal) solid 1px;
}
#contacto form button{
	padding-inline: 4em;
	border-radius: 2em;
	text-transform: uppercase;
	font: inherit;
	font-weight: 700;
	background: var(--teal);
}

#single_header img{
	max-width: 100%;
	max-height: 40vh;
	border-radius: 1em;
	margin-top: 4em;
}
#single_content{
	padding: 5%;
	margin: 2em 10%;
	background: white;
	border-radius: 1em;
	box-shadow: rgba(0,0,0,0.3) 0 0.25em 0.5em;
	min-height: 50vh;
	text-align: left;
}
#single_content :is(p,li){
	line-height: 1.5em;
}
#single_content img{
	max-width: 100%;
	margin-bottom: 1em;
}

#portafolio_main .custom-elements-slider{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 2em;
}
#portafolio_main img{
	width: 100%; display: block;
}
#portafolio_main .custom-element-item .element-content>a{
	color: var(--teal);
	letter-spacing: 0.1em;
}
#portafolio_main .custom-element-item{
	background: white;
	border-radius: 0.25em;
	overflow: hidden;
	box-shadow: rgba(0,0,0,0.3) 0 0.25em 0.5em;
}
#portafolio_main .element-content{
	padding:1em;
}
#portafolio_main .element-content h4{
	margin: 0;
	font-size: 1.25em;
}
#portafolio_main .element-excerpt{
	margin: 1em 0;
	font-size: 0.8em;
}

#whatsapp_link{
	float: right;
	position: fixed;
	bottom: 1em;
	right: 1em;
	color: white;
	z-index: 5;
}
#whatsapp_link>i.fa{
	font-size: 3em;
	background: #00ae41;
	width: 1.4em;
	height: 1.4em;
	line-height: 1.4em;
	border-radius: 2em;
	text-align: center;
	transition: all .25s ease-in-out;
}
#whatsapp_link>i.fa:hover{
	background: white;
	color: #49C87A;
	box-shadow: #49C87A 0 0 0 3px;
}



/* MODAL */

#modal{
	background:rgba(0,0,0,0.8);
	position:fixed;
	display:none;
	top:0;
	left:0;
	bottom:0;
	right:0;
	z-index:10;
	text-align:center;
}


/* RESPONSIVO */

.mobile_only{
	display:none !important;
}

@media all and (max-width:960px){
	.mobile_only{
		display:block !important;
	}
	.desktop_only{
		display:none !important;
	}
	.columnas2,.columnas3{
		-webkit-column-count:1;
		-moz-column-count:1;
		column-count:1;
	}
	.columnas4{
		-webkit-column-count:2;
		-moz-column-count:2;
		column-count:2;
	}
	.columnas5{
		-webkit-column-count:3;
		-moz-column-count:3;
		column-count:3;
	}
	.grid2,.grid3,.grid4,.grid5,.flex{
		display: block;
	}
	.grid2mobile{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.grid3mobile{
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}
	
	header{
		height:60px;
		padding: 0 1em;
		background: white;
		box-shadow: rgba(0,0,0,0.15) 0 0 0.25em;
	}
	#menu_opener{
		float:left;
		margin: 5px;
		width:50px;
		height:50px;
	}
	#menu_opener>div{
		height:2px;
		margin: 4px auto 0 auto;
		background: var(--teal);
		width: 36px;
		position: relative;
		opacity: 1;
		rotate: 0deg;
		left:0;
		top:0;
		transition: all 0.25s ease;
	}
	#menu_opener>div:first-child{
		margin-top: 14px;
	}

	#menu_opener.opened>div:nth-child(1){ top:9px; rotate:45deg; }
	#menu_opener.opened>div:nth-child(4){ top:-9px; rotate:-45deg; }
	#menu_opener.opened>div:nth-child(2){ left:50px; opacity: 0; }
	#menu_opener.opened>div:nth-child(3){ left:-50px; opacity: 0; }

	#logo{
		opacity: 1 !important;
	}
	#logo img{
		height: 40px;
	}

	header>menu{
		position: fixed;
		top:60px;
		background: rgba(0,60,90,0.95);
		backdrop-filter: blur(3px);
		color:white;
		left:0;
		right:0;
		line-height: 2em;
		font-size: 1.25em;
		text-transform: uppercase;
		padding: 2em !important;
		display: none;
	}
	menu ul{
		flex-direction: column;
	}

	#monogram{
		padding-top: 80px;
	}


	#services_home .custom-elements-slider .custom-element-item{
		min-width: 90vw;
	}
	#portafolio_home .custom-elements-slider .custom-element-item{
		min-width: 80vw;
	}
	#single_header{
		background: white;
		padding: 0 0 1em 0;
	}
	#single_header img{
		margin: 60px 0 0 0;
		border-radius: 0;
		max-height: none;
	}
	#single_content{
		margin: 0;
		box-shadow: none;
		border-radius: 0;
		padding: 1em;
	}
	#single_content img{
		width: 100%;
		margin: 0 auto;
		display: block;
		margin-bottom: 1em;
	}

	#portafolio_main .custom-elements-slider{
		grid-template-columns: repeat(1, 1fr);
	}
	div[data-id="17c4d7e"] h1{
		padding-top: 2em;
	}
}