/*
Theme Name: Prismo Metals
Author: DonPig
Author URI: https://donpig.com/
Description: Plantilla de wordpress a la medida para Prismo Metals
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
*/

body{
	font-family: Roboto, Helvetica, sans-serif;
	text-align: center;
	margin:0 0 0 0;
	cursor:default;
	font-size: max(0.85em,12px);
	--ggap:0;
}
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: var(--ggap);
}
.grid3{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: var(--ggap);
}
.grid4{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: var(--ggap);
}
.grid5{
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-gap: var(--ggap);
}
.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;
	border-bottom:white solid 1px;
	color: white;
	transition: all 0.25s ease;
}
#topbar,nav{
	display: flex;
	justify-content: space-between;
	align-content: space-between;
	align-items: center;
}
#topbar{
	color:#368;
	background: white;
	padding:2px 2.5%;
}
#topbar iframe{
	border:none;
	min-width: 85%;
	height: 3em;
}
#social_menu{
	display: flex;
	gap:1em;
}
#social_menu a:hover{
	opacity: 0.5;
}

nav{
	padding: 0 15%;
}
#logo img{
	height:6em;
}
#logo img:nth-child(2){
	display:none;
}

menu{ padding: 0; margin: 0; min-width: 70%; }
menu>div>ul,menu>div>ul>li{
	padding: 0; margin: 0;
}
menu>div>ul{
	display: flex;
	justify-content: end;
	align-content: end;
	align-items: start;
	gap:3em;
}
menu>div>ul>li{
	display: block;
	list-style: none;
	line-height: 8em;
	height: 8em;
	overflow: visible;
	transition: all 0.25s ease;
}
menu>div>ul>li>ul{
	width:0;
	height:0;
	overflow: visible;
	line-height: 2em;
	display: none;
	color:#666;
	text-align: left;
	translate:-6em 0;
}
menu>div>ul>li:hover>ul{
	display: block;
	filter: drop-shadow(rgba(0,0,0,0.15) 0 0.25em 0.25em);
}
menu>div>ul>li>ul li{
	background: white;
	padding: 0.5em 2em;
	min-width: 12em;
	display: block;
	list-style: none;
	transition: all 0.25s ease;
}
menu>div>ul>li>ul>li:hover{
	color:#369;
	background: #eee;
}
menu li i.fa-angle-down{
	transition: all 0.25s ease;
	font-size:0.8em;
}
menu li:hover i.fa-angle-down{
	rotate:-180deg;
}

menu>div>ul>li>ul>li>ul{
	position: absolute;
	translate: 100% -2.5em;
	margin: 0;
	padding: 0;
	display: none;
}
menu>div>ul>li>ul>li:hover>ul{
	display: block;
}
menu>div>ul>li>ul>li>ul>li{
	margin: 0 0 0 0;
	padding: 0.5em 1em;
}
menu>div>ul>li>ul>li>ul>li:hover{
	background:#eee;
}

header.scrolled #logo img:nth-child(1){ display: none; }
header.scrolled #logo img:nth-child(2){ display: block; height:4em; }

header.scrolled{
	background: white;
	color: #369;
	box-shadow: rgba(0,0,0,0.5) 0 0 0.5em;
}
header.scrolled menu>div>ul>li{
	line-height: 6em;
	height: 6em;
}
footer{
	background: #222;
	color: #EEE;
	padding: 2.5% 12.5%;
	text-align: left;
	font-weight: 300;
}
footer h4{
	text-transform: uppercase;
	margin: 0 0 1em 0;
}
footer h5{
	font-size: 1em;
	color: #999;
	font-weight: 300;
	margin-bottom: 0;
}
footer div.grid5{
	grid-gap:3em;
	line-height: 1.5em;
}
#footer_sub{
	display: flex;
	justify-content: space-between;
	align-content: space-between;
	align-items: center;
}
footer ul,footer li{
	margin: 0;
	padding: 0;
	display: block;
	list-style: none;
}


#wpadminbar{ opacity: 0; } #wpadminbar:hover{ opacity: 1; }

.gradientLink{
	display: inline-block;
	border-radius: 0.2em;
	padding: 0.25em 1em;
	background: linear-gradient(90deg,#09C,#569);
	color: white;
	margin-top: 1em;
}
.gradientLink:hover{
	background: #EEE;
	color: #069;
}

.recent-post{
	margin-bottom: 2em;
	color:#666;
}
.recent-post h3{
	margin: 0;
	color: #111;
	font-weight: 600;
	font-size: 1.1em;
}
.recent-post .post-date{
	margin: 0.5em 0;
}
.recent-post>div>a{
	text-transform: uppercase;
	color: #246;
	font-size: 0.85em;
	font-weight: 300;
}

.hasunderline{
	background: linear-gradient(#579,#579) left bottom no-repeat;
	background-size: 4em 1px;
}

.homeproject{
	padding-left: 2em;
	border-left:white solid 4px;
	margin-bottom: 1em;
	transition: all .25s ease-in-out !important;
}
.homeproject h4{
	margin: 0;
	font-size: 4em;
}
.homeproject:hover{
	padding-left: 3em;
}
#home_news{
	overflow: hidden;
	max-width: 100%;
}

.mainnews .recent-post{
	margin-bottom: 4em;
}
.mainnews .recent-post h3{
	font-size:1.6em;
	font-weight: 400;
}
.mainnews .recent-post>div>a{
	display: none;
}

#single_content{
	padding: 5% 20%;
	text-align: left;
}

#single_content :is(p,li){
	line-height: 1.6em;
	font-size: 1.2em;
	font-weight: 400;
}

#single .mainheading{
	padding: 15% 5%;
	background: url(images/header.jpg) center bottom;
	background-size: cover;
	color:white;
	text-align: left;
}
#single .mainheading h2{
	margin: 0;
	font-size: 6em;
}
.mainheading img{
	width: 100%;
	display: block;
}
.text-contents h3{
	margin-bottom: 0;
	font-weight: 500;
}
.text-contents h6{
	font-size: 1em;
	margin: 0;
	color: #777;
	font-weight: 400;
}


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

.project_data h2{
	font-size: 2em;
	font-weight: 400;
}
.project_data :is(p,li){
	line-height: 1.5em;
	color: #666;
	font-weight: 300;
}
.project_data :is(b,strong){
	font-weight: 700;
}
.project_data table{
	border:none;
	width:100%;
	border-spacing: 0;
    border-collapse: collapse;
}
.project_data td{
	margin:0;
	padding: 3px;
	line-height: 1.6em;
	font-weight: 300;
	border:black solid 1px;
	color:#666;
}
.project_data a{
	color: #036;
}
.project_data a:hover{
	text-decoration: underline;
}
#newsmenu{
	max-height: 60vh;
	position: sticky;
	top:10em;
	font-weight: 100;
	color: #666;
}
#videos_container{
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	grid-gap:2em !important;
}
#videos_container>div{
	color: #666;
	font-size:0.8em;
}
#videos_container strong:first-child{
	display: block;
}
#videos_container>div>div:nth-child(1),#videos_container>div>div:nth-child(2){
	margin-bottom: 2em;
}
#videos_container .et_pb_text_inner{
	margin: 0.5em auto;
	min-height: 4.5em;
}
#videos_container .et_pb_image_wrap img{
	aspect-ratio: 16 / 9;
	display: block;
}
.youtube-playlist{
	grid-gap:2em;
	margin-bottom: 1.5em;
}
.youtube-playlist h3{
	margin: 0;
	min-height: 3.6em;
}
.youtube-playlist iframe{
	display: block;
	aspect-ratio: 16 / 9;
	background: #999;
}
.youtube-playlist date{
	color:#999;
	font-size: 0.8em;
	text-transform: uppercase;
}
.grid1 .youtube-video{
	margin-bottom: 1em;
}
.youtube-video>div.grid2{
	grid-gap:2em;
}
.youtube-video>div.grid2>div{
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.youtube-playlist.list h3{
	min-height: 0;
	margin-bottom: 1em;
}

#projects_list h2{
	font-weight: 300;
	font-size: 2em;
}
#projects_list p{
	color:#777;
	font-weight: 300;
	font-size: 1.2em;
}
#projects_list a:not(:first-child){
	color: #025;
	text-transform: uppercase;
	font-weight: 300;
}
#projects_list .elementor-widget-button{
	margin-top: 2em;
}

/* 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{
		background: white;
		box-shadow: rgba(0,0,0,0.15) 0 0 0.25em;
	}
	nav{
		color:#369;
		padding: 0 1em;
	}
	#menu_opener{
		float:left;
		width:50px;
		height:40px;
	}
	#menu_opener>div{
		height:2px;
		margin: 4px auto 0 auto;
		background: #369;
		width: 20px;
		position: relative;
		top:0;
		left:0;
		opacity: 1;
		transition: all 0.25s ease;
		rotate:0deg;
	}
	#menu_opener>div:first-child{
		margin-top: 14px;
	}

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


	#topbar{
		display: block;
		height: auto;
		padding: 0 1em 3px 1em;
		text-align: center;
		border-top: #BCD solid 1px;
		position: fixed;
		bottom: 0;
		right: 0;
		left: 0;
	}
	#topbar iframe{
		width: 100%;
	}
	#topbar #social_menu{
		display: none;
	}
	#social_menu{
		justify-content: center;
		align-content: center;
		align-items: center;
	}
	#logo img:nth-child(1){ display: none !important; }
	#logo img:nth-child(2){ display: block !important; }

	menu{
		position: fixed;
		top:40px;
		left:1em;
		right:1em;
		background: #F8F8F8;
		padding: 1em;
		box-shadow: rgba(0,0,0,0.15) 0 0 0.5em;
		text-align: left;
		display: none;
	}
	#logo img{
		height: 40px !important;
	}
	menu>div>ul{
		display: block;
	}
	menu>div>ul>li{
		line-height: 3em;
		height: auto;
		min-height: 3em;
		border-bottom: #BCD solid 1px;
	}
	menu li i.fa-angle-down{
		background: #eee;
		border-radius: 0.5em;
		padding:0.5em;
		font-size: 1em;
	}
	menu>div>ul>li>a{
		display: flex;
		justify-content: space-between;
		align-content: space-between;
		align-items: center;
	}
	menu>div>ul>li>ul{
		height: auto;
		width: auto;
		translate:0 0;
		margin: 0;
		padding: 0;
		box-shadow: none;
		filter:none !important;
		display: none !important;
	}
	menu>div>ul>li>ul>li{
		width: auto;
		background: #EEE;
		translate:0;
	}
	menu>div>ul>li>ul.opened{
		display: block !important;
	}
	menu>div>ul>li:has(.opened) i.fa-angle-down{
		rotate: 180deg;
	}

	.mainnews .recent-post h3{
		font-size:1.25em;
	}
	footer{
		padding: 3em 1em 8em 1em;
		text-align: center;
		font-size: 0.8em;
	}
	footer li a{
		display:block;
		line-height: 3em;
		border-top: #333 solid 1px;
	}
	#footer_sub{
		display: block;
		text-align: center;
		line-height: 2em;
	}
	#single_content{
		padding: 1em;
	}
	#newsmenu{
		position: static;
	}
	#single .mainheading h2{
		font-size: 4em;
		text-align: center;
	}
}