@charset utf-8;
/*
Theme Name: We Love Martha
Author: Code by Ricardo Juárez	
Author URI: http://rjvv.com/
Version: 1.0
License: GNU/GPL Version 2 or later. http://www.gnu.org/licenses/gpl.html
Copyright: (c) 2022 Ricardo Juárez
*/

:root 	{
	--small: 13.5px;
	--linesmall: 15px;
	--lssmall: 0.0025em;
	--body: 17px;
	--linebody: 20px;
	--medium: 27px;
	--linemedium: 30px;
	--lsmedium: -0.0025em;
	--big: 38px;
	--linebig: 40px;
	--lsbig:-0.0025em;
	--huge: 58px;
	--linehuge: 60px;
	--lshuge:-0.0025em;
	--huge2: 78px;
	--linehuge2: 80px;
	--xhuge: 100px;
	--linexhuge: 100px;
	--xxhuge: 118px;
	--linexxhuge: 120px;
	--lsxxhuge:-0.04em;
	--primary:#FFFFFF;
	--contrast: #000000;
	--gris: #808080;
	--verde: #52FFA1;
	--amarillo: #E6FE53;
	--violeta: #C043FF;
	--naranja: #FF8A48;
	--padb:40px;
	--padm:30px;
	--sans: 'ABCDiatype-Light', Arial, sans-serif;
	 --bg: #000000;
	 --app-height: 100vh;
}

.small{	
		font-size: var(--small);
		line-height: var(--linesmall);
		letter-spacing: var(--lssmall);
			}
	.body{	
		font-size: var(--body) !important;
		line-height: var(--linebody);
		letter-spacing: var(--lsmedium);
			}
	.medium, .portfolio-content .post-content p, .portfolio-content .post-content li{	
		font-size: var(--medium);
		line-height: var(--linemedium);
		letter-spacing: var(--lsmedium);
			}
	.big, .portfolio-content h4{	
		font-size: var(--big);
		line-height: var(--linebig);
		letter-spacing: var(--lsbig);
			}
	.huge, .portfolio-content h3{
		font-size: var(--huge);
		line-height: var(--linehuge);
				letter-spacing: var(--lshuge);
			}
				.huge2{
		font-size: var(--huge2);
		line-height: var(--linehuge2);
				letter-spacing: var(--lshuge);			}

    .xhuge, .portfolio-content h2{	
		font-size: var(--xhuge);
		line-height: var(--linexhuge);
				letter-spacing: var(--lsxxhuge);			}
		
	.xxhuge{	
		font-size: var(--xxhuge);
		line-height: var(--linexxhuge);
				letter-spacing: var(--lsxxhuge);
			}



*{
	-webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
     -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;

}
html, body
{
	overscroll-behavior-block: none;
overscroll-behavior: none;
margin:0;
font-size:100%;
width:100%;
     }
     
     	html { margin-top: 0px !important; }
	* html body { margin-top: 0px !important; }
	@media screen and ( max-width: 782px ) {
		html { margin-top: 0px !important; }
		* html body { margin-top: 0px !important; }
	}
.fader {
}
body {
display: flex;
min-height: 100vh;
flex-direction: column;     
margin:0;
-moz-osx-font-smoothing: grayscale; 
text-rendering:geometricPrecision;
-webkit-font-smoothing: subpixel-antialiased;
font-size: var(--body);
font-family: var(--sans);
color: var(--contrast);
}
#main{
	background-color: white;
	flex:1;
}


h1, h2, h3{
	margin-bottom: 0;
}

.hidden{
	opacity: 0;
}

header{
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
position: fixed;
top: 0;
width: 100%;
z-index: 9999;
mix-blend-mode:difference;
}
header *{
	color: white;
}


.section-title{
	color: white;
mix-blend-mode:difference;
	
}

.header{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--padm) var(--padb);
}

.single footer{
	display: none;
}
strong, b, i, em{
font-weight: 300;
font-style: normal;}

.page-template-home footer{
	background: #F0F0F0;
	position: absolute;
	width: 100%;
	bottom: 0;
}

.bgbottom{

}
.column h1{
	position: relative;
	z-index: 1;
}
.contact-intro{
	padding: 40px 0 60px;
}

.intro{
	padding: 0 var(--padb);
}
footer{
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--primary);
	padding: var(--padm);
}

/* LAYOUT */
.block{
	padding: 0 var(--padb);
	margin: 50px 0px 150px;
}
.wrap{
	flex-wrap: wrap;
}
.columns{
		display: flex;
		justify-content: space-between;
	}
	.contact-box .button{
		background-color: var(--primary);
		}
		.contact-box{
		margin-top: 105px;
	}
	.contact-marquee .marquee__content{
		padding: 20px 0;
	}

.block.center{
	margin: 50px auto 150px;
}
/* 	margin-left: calc(((100% - var(--padb)) / 4) + var(--padb)); */

.intro-cont{
display: grid;
  justify-content: space-between;
  padding: var(--padb) 0 250px;
  grid-template-columns: 1fr 3fr;
}

.notfade, .marquee, .marquee__content{
	cursor: pointer;
}
.meta{
		padding: 0 var(--padb);	
}
.portfolio-content .sectionnav{
padding: var(--padb) 0 calc(var(--padb) * 2)}

.sectionnav{
padding: var(--padb) 0 0}
.padded{
	padding: 0 0px 0 var(--padb);
}
.carrusel_item video{
	height: 600px;
	width: auto;
	}
	.carrusel_item_mobile{
	margin-bottom: 20px;
	position: relative;
}

.intro-cont .column75{
	width: 100%;
}
.column75{
	width: calc(((100% + 13.333px) / 4) * 3);
	flex-basis: calc(((100% + 13.333px) / 4) * 3);
}
.col50{
	width: 50%;
	flex-basis: 50%;
}
.hover-cont.videoload{
	display: contents;
}
#onepagenav, #onepagenav2{
	top: var(--padb);
	z-index: 999999;
}
#onepagenav li, #onepagenav2 li{
	margin-bottom: 5px;
	opacity: 0.3;
	transition: all 0.4s ease;
}
#onepagenav li.current, #onepagenav2 li.current{
opacity: 1;
}
.column25{
	flex-basis: calc((100% + 40px) / 4);
	width: calc((100% + 40px) / 4);
	}
	.column25.padded{
	flex-basis: calc((100% - 40px) / 4);
	width: calc((100% - 40px) / 4);
	}

.column50.padded{
	flex-basis: calc((100% - 40px) / 2);
	width: calc((100% - 40px) / 2);
	margin-left:  calc((100% - 40px) / 4);
	}	
	
.column50{
	flex-basis: calc((100% + 40px) / 2);
	width: calc((100% + 40px) / 2);
	}
.postbox, .full{
	width: 100%;
	height: var(--app-height);
	height: 100vh;
}

.relative{
	position: relative;
	height: 100%;
}

/*
.postbox{
	position: sticky !important;
	top: 0;
}
*/
.page-content{
	display: flex;
	padding: 0 0 var(--padb);
}

.featured{
	z-index: 1;
	position: relative;
	width: 100vw;
	height: 100vh;
		height: var(--app-height);

	display: flex;
	justify-content: center;
	align-items: center;
}
.featured h2{
	position: relative;
	z-index: 1;
	text-align: center;
	color: var(--primary);
}
.featured-img, .cover{
	position: absolute;
	width: 100%;
	height: 100.2%;
	z-index: 0;
}

.single-work .featured-img{
	background-color: var(--primary);	
	}
	.page-template-projects .hover-img{
		position: absolute;
	}

.featured-img img, .featured-img video, .featured-img iframe{
	width: 100%;
	height: 100.2%;
	object-fit:cover;
}


.recently{
	position: fixed;
	z-index: 999;
	height: var(--app-height);
	transition: all 0.7s ease;
	transform: translateY(0%);}
.recently.appear{
	opacity: 1;
}
.recently.slideup{
	transform: translateY(-100%);
}
.recently.slidedown{
	transform: translateY(100%);
}
.section-slider{
	background-color: #52FFA1;
}
.projects-slider .swiper-wrapper{
}
.projects-slider{
padding: 0 var(--padb);
	height: calc(var(--app-height) - 200px);
	margin: 100px 0;
	position: relative;
	overflow: hidden;
}

.projects-slider .videoload{
	width: fit-content;
	border-radius: 40px;
	overflow: hidden;
	margin-bottom: 10px;
		height: calc(100% - 50px);
}
.projects-slider img, .projects-slider video{
	height: 100%;
	width: auto;
}
.projects-slider .swiper-slide{
	width: auto !important;
	text-align: center;
}

.logo{
	max-width: calc(100% - 84px);
}
    .logo.none{
	    display: none;
    }
.fixed{
	position: fixed;
}
.section-title-logo{
	position: fixed;
	top:var(--padm);
	left: var(--padb);
	z-index: 9999;
}
.section-title{
	position: absolute;
	z-index: 999;
	pointer-events: none;
	padding-top: var(--padm);
	top:0;
	padding-bottom: var(--padm);
	margin-left: calc(var(--padb) + 65px);
}
.marquee{
	width: 100vw;
	overflow: hidden;
}
.service{
	display: inline-block;
	width: fit-content;
}
.services .hover-img{
/* 		margin-left: calc(((((100% - var(--padb)) / 4) + var(--padb))) * -1); */

}

.fp-table{
	overflow: hidden;
}

.columns-section .fp-tableCell{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background: white;
}
.fp-table{
	background: white;
	
}
.headline{
	margin: 10px 0;
}
a.underline{
text-decoration: underline;	
}

.services-cont{
	display: flex;
	flex-direction: column;
	padding: var(--padm) var(--padb);
	margin-left: calc(((100% - var(--padb)) / 4) + var(--padb));
	width: calc(((100% - var(--padb)) / 4) * 3);
height: var(--app-height);
}

.services-desc{
	position: absolute;
	bottom: var(--padm);
	opacity: 0;
	transition: all 0.4s ease;
padding-right: var(--padm);}

.services{
	top:var(--padm);
	display: flex;
	flex-direction: column;
		}
		.texthome{
	position: absolute;
	display: flex;
	height: 100%;
	top:0;
	justify-content: flex-end;
	align-items: center;
	padding: var(--padb);
	width: calc(((100% - var(--padb)) / 4) * 3);
	margin-left: calc(((100% - var(--padb)) / 4) + var(--padb));
		}
.textabout{
  margin-left: calc(((100% - var(--padb)) / 4) + var(--padb) + 10px);
  margin-right:  var(--padb);
  margin-top: calc(var(--padb) * 4);
  margin-bottom: calc(var(--padb) * 2);
}

/*
	.projects-featured.section .postbox, .portada .full{
		margin-top: -100.5px;
	}
*/
	
/*
	#scrollhome{
		   scroll-behavior: smooth;
    overflow: auto;
    scroll-snap-type: y mandatory;
	}
	
	
	.projects-featured{
		height: 100vh;
		height: var(--app-height);
		   scroll-behavior: smooth;
    overflow: auto;
    scroll-snap-align: start;
    scroll-snap-type: y mandatory;
}
		.projects-featured .section{
    scroll-snap-align: start;
}
*/

/* TEXTS */
.post-content .wp-video, .post-content iframe, .post-content img{}

.post-content h2, .post-content h3, .post-content h4{}

.portfolio-content .post-content ul, .portfolio-content .post-content ol{
	padding-left: calc(var(--padm) * 2);
}

.post-content ul, .post-content ol{
	padding-left: var(--padb);
	margin-top: var(--padm);
}
.post-content li{
	list-style: disc;
}
.post-content ul, .post-content ol, .post-content p{
	margin-bottom: var(--padm);
}
.post-content *:first-child{
	margin-top: 0;
	}
.post-content *:last-child{
	margin-bottom: 0;
}

.wide-content{
	max-width: 1080px;
	padding: 0 var(--padb);
	margin: 0px auto;
}
.buttons{
	position: absolute;
	display: flex;
	height: 100%;
	top:0;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
		}

.buttons{
	display: flex;
}
.thanks{
	display: inline-block;
	margin-right: 100px;
}
.marquee .button{
	margin-right: 50px;
}
.whitebg{
	background-color: transparent !important;
}
.portfolio-title{
	width: 100vw;
	height: calc(100vh - 90px);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: var(--padb);
	overflow: hidden;
}
.buttons-mobile .button{
	max-width: calc(100vw - 40px);
}


.button{
	transition:all 0.4s ease;
	background: rgba(0, 0, 0, 0.06);
border-radius: 70px;
display: inline-block;
}
.contact_button .small{
	margin-bottom: 10px;
}
.contact_button{
	margin-bottom: 30px;
}
.column{
	position: relative;
	padding: var(--padb);
	    flex-basis: 50%;
}
.big.button{
padding: 30px 40px;
}
.huge.button{
padding: 40px 50px;
}

/* BASICS */
:root {
  --video-width: 100vw;
  --video-height: 100vh;
}
@media (min-aspect-ratio: 16/9) {
  :root {
    --video-height: 56.25vw;
  }
}
@media (max-aspect-ratio: 16/9) {
  :root {
    --video-width: 177.78vh;
  }
}


.contact-color{
	display: flex !important;
	flex-direction: column;
}
.bgbottom{
	background-size: contain;
	flex:1;
	min-height: 300px;
	background-position: center left;
	background-repeat: no-repeat;
}


.featured-img .contain{
--tb-space: 2.5rem;
--lr-calc-space: var(--tb-space) * (16/9);

--lr-space: 2.5rem;
--tb-calc-space: var(--lr-space) / (16/9);
}
.featured-img .contain .iframe {
  width: calc(177.78vh);
  height: calc(100vh);
  box-sizing: border-box;
  padding: var(--tb-space) var(--lr-calc-space);
  

}

  @media (max-aspect-ratio: 16/9) {
  .featured-img .contain .iframe {
  width: calc(100vw);
    height: calc(56.25vw);
    padding: var(--tb-calc-space) var(--lr-space);
  }
}



.featured-img{
	overflow: hidden;
}
.featured-img .columns{
	height: 100%;
}
.featured-img .contain video, .featured-img .contain img{
	object-fit:contain;
}
.featured-img .contain{
	    position: relative;
	      display: flex;
  justify-content: center;
  align-items: center;
    z-index: 2;
    height: 100%;
    width: 100%;
}
.blur{
	backdrop-filter: blur(10px);
}

.featured-img .blurred{
	    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 1;

}


.videocont {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.video-controls {
  position: absolute;
  z-index: 10;
  height: fit-content !important;
  right: 0;
  bottom: 0 !important;
  left: 0;
  width: 100%;
  opacity: 0;
  margin: auto;
  padding: 0 30px 30px;
  transition: all 0.4s ease-in-out;
  background: transparent;
  mix-blend-mode: difference;
  }

  .progress-bar {
    position: relative;
    width: 100%;
    cursor: pointer;
    background: white;
    height: 3px !important;
}
   .progress-bar span {
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 0;
      height: 100%;
    }
    .time-bar {
      z-index: 99 !important;
      margin-top: -9px;
      height: 21px !important;
	  background: transparent;
      border-right: 3px solid white;
    }




.video-background {
  overflow: hidden;
  width: 100vw;
  position: relative;
  height: 100vh;
}
.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--video-width);
  height: var(--video-height);
  transform: translate(-50%, -50%);
}
video{
height: 100%;
width: 100%;
}
.videoImagePlaceholder{
	cursor: pointer;
}
.video-block{
margin: 0px auto;
	max-width: 900px;
}
.video-section{
margin: 50px auto 150px;
}
.video-section .caption{
text-align: center;
}
.placeholder{
	    overflow: hidden;
	position: absolute;
	z-index: 999;
}
.video-container-cinema *{
	width: 100%;
	height: 100%;
	object-fit:cover;
}

.video-container-cinema iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	}

.video-container-cinema {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-container *{
	width: 100%;
	height: 100%;
	object-fit:cover;
}

.video-container iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	}

.video-container {
    position: relative;
    aspect-ratio: var(--proportion);
    overflow: hidden;
}
.cover-img{
	width: 100%;
	height: 100%;
	object-fit:cover;
}
.no-click {
	pointer-events: none;
}
.clickable {
	pointer-events: all;
}
.hover-cont{
	cursor: default !important;
}

.videoImagePlaceholder, .placeholder{
		cursor: pointer;
}


.mobile-caption{
mix-blend-mode: difference;
color: white;
z-index: 999;
position: absolute;	
}
.class1{
	top: 20%;
	left: 20%;
}
.class2{
	top: 40%;
	right: 30%;
	text-align: right;
}
.class3{
	top: 50%;
	left: 30%;
}
.class4{
	top: 70%;
	left: 40%;
}
.class5{
	top: 80%;
	right: 15%;
	text-align: right;
}
.class6{
	top: 15%;
	right: 35%;
	text-align: right;
}
.class7{
	top: 65%;
	left: 25%;
}
.class8{
	top: 75%;
	left: 45%;
}
.class9{
	top: 85%;
	right: 25%;
	text-align: right;
}
.hover-img.hover-txt{
	max-width: 100%;
mix-blend-mode: difference;
color: white;
}
/* Al otro lado del cursor cuando a la derecha no cabe (main.js) */
.hover-img.hover-txt.hover-flip{
	transform: translateX(-100%);
	padding: 10px 10px 0 0;
}
.block-size{
	max-width: 900px;
	margin: 0px auto;
}
.hover-img{
	user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
pointer-events: none;
opacity: 0;
	z-index: 9999;
	padding: 10px 0 0 10px;
	max-width: 200px;
	position: fixed;
	transition: opacity 0.4s ease;
}

.privacy-modal{
	cursor: pointer;
}

.carru-cont{
		position: relative;
	overflow: hidden;
}

.carrusel {
	width: 100%;
	text-align: center;
	position: relative;
	z-index: 260;
/* 	padding-left: calc(50vw - 230px);  */
}

.post_carrusel {
	margin: 0 auto;
	text-align: center;
	position: relative;
}


.carrusel .panel {
	overflow: hidden;
	position: relative;
	padding: calc((100vh - 600px) / 2) var(--padb) calc((100vh - 600px) / 2) var(--padb);
}


.carrusel_item {
	height: 600px;
	position: relative;
	padding-right: var(--padb);
}

.carrusel_item:last-of-type{
	padding-right: 0;
}
.caption{
	margin-top: 5px;
	font-size: var(--small);
}

.carrusel_item img {
	width: auto;
	display: block;
max-height: 600px;
height: auto;
min-height: 600px;
}
.grey{
	background-color: rgba(0,0,0,0.06);
}

.carrusel_item .mute{
		right:  var(--padb);

}

.superindex{
    display: block;
    position: absolute;
    width: 400px;
    text-align: left;
    right: -410px;
    overflow: hidden;
    top: 0;
}

.bottom{
	    position: absolute;
    z-index: 9;
    bottom: var(--padm);
    text-align: center;
    color: var(--primary);
}
.mute{
	mix-blend-mode: difference;
	color: white;
	position: absolute;
	top:0px;
	right: 0px;
	padding: 20px;
	z-index: 99;
	opacity: 0;
	transition: all 0.4s ease;
	cursor: pointer;
	width: 100%;
	height: 100%;
	text-align: right;
}
/* Audio On/Off en escritorio: texto que sigue al cursor, como el Play (main.js) */
.mute.mute-cursor{
	position: fixed;
	top: 0;
	right: auto;
	width: auto;
	height: auto;
	padding: 10px 0 0 10px;
	text-align: left;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.4s ease;   /* .mute anima «all»: el tamaño y la posición irían con retraso */
}
.mute.mute-cursor.is-visible{
	opacity: 1;
}
.mute-box{
	cursor: pointer;
}
/* Barra del reproductor siempre visible sobre el cover, hasta que empieza a reproducirse */
.videocont.is-cover .video-controls{
	opacity: 1;
	z-index: 1000;          /* por encima del póster (.placeholder, z-index 999) */
	pointer-events: none;   /* el clic sigue llegando al póster, que es el que arranca el vídeo */
}

.videoload video{
	position: relative;
	z-index: 1;
}
.videoload{
background-color: var(--bg);
}
/*
.videoload:before {
    content: "Loading Video";
    background-color: var(--contrast);
    color: var(--primary);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 0;
    font-family: var(--mono);
    font-size: 1.17em;
    animation: blink-animation 1s steps(5, start) infinite;
    -webkit-animation: blink-animation 1s steps(5, start) infinite;
}    
*/
.page-load-status{
	position: fixed;
	left: var(--padb);
	bottom:var(--padm); 
	z-index: 99;
	display: none;
}

.nextcover .featured{
	flex-direction: column;
}

.nextcover h2{
	display: none;
}
.nextcover h2.nextp{
	display: block;
	padding: 10px var(--padm);
}
.nextcover{
	position: fixed;
	top:0;
transition: all 0.4s ease;
overflow: hidden;
bottom: 0;
z-index: 0;
}
.nextp{
	display: none;
}
.nextprogress{
height: calc(var(--app-height) * 2);	
}
.nextscroll{
padding: var(--padb);
z-index: 0;
position: relative;
color: var(--primary);
}
.post-single{
	  overflow: hidden;
	background-color: var(--primary);
/* margin-bottom: var(--app-height); */
position: relative;
z-index: 1;
padding-bottom: 0.01px;
}

.boxes{
	margin-bottom: 150px;
}

.app-height{
	height: 100vh;
	height: var(--app-height);
}

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

.moreblock {
	width: var(--ancho);
}.box{
	position: relative;
}
.moreblock{
	margin: 30px 0;	
}
.page-template-more .boxes{
	padding: 90px 40px;	
}
.boxes{
	padding: 30px 40px;
  display: flex;
  flex-direction: column;}
.center{
	margin: 30px auto;
}
.random-right{
margin-left: auto;
}
.subido{
	margin-top: -200px;
	}


#reviews{
	height: var(--app-height);
	position: relative;
}
.review-txt{
opacity:0;
}
.firstreview .review-txt{
animation: review 10s;
}
.numbers {
	position: absolute;
	margin-top: 30px;
	width: 100%;
	left: 0;
	bottom: var(--padm);
}

@keyframes review {
  0% {
opacity: 0;
  }
10% {
opacity: 1;
  }
  90% {
opacity: 1;
  }
  100% {
opacity: 0;
  }}

/* SLIDER */
.slider{
	position: relative;
	overflow: hidden;
}
.swiper-slide{
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

.reviews-title{
	position: absolute;
	z-index: 2;
	top:var(--padb);
	left: var(--padb);
}


.review{
	width: 100vw;
	position: absolute;
	height: 100vh;
	height: var(--app-height);
	padding: var(--padb) 150px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.review .xhuge{
text-align: center;
}
.nexter{
	width: 50%;
	height: 100%;
	cursor: e-resize;
	right: 0;
top:0;
position: absolute;
z-index: 9999;
}
.prever{
	width: 50%;
	height: 100%;
	cursor: w-resize;
	left: 0;
top:0;
position: absolute;
z-index: 9999;
}


/* MENU */

header [id^="menu-main"]{
	display: flex;
}
header [id^="menu-main"] li a{
	margin-left: 25px;
	font-size: var(--big);
	transition: all 0.6s ease;
	line-height: var(--linebig);
	opacity: 0.3;
}
[id^="menu-main"] li.current-menu-item a, [id^="menu-main"] li a:active, [id^="menu-main"] li a:focus{
	opacity: 1;
}

[id^="menu-legal"]{
	display: flex;
}
[id^="menu-legal"] li a{
	margin-right: var(--padb);
}
.icon-menu, .icon-close{
	display: inline-block;
	    font-size: 24px;
	    cursor: pointer;
}
.inverter{
	    mix-blend-mode: difference;
	    color: white;
position: fixed;
z-index: 99999999
	
}

.mobile-menu.icon-close{
	color: var(--contrast);
}

.icon-close{
	    mix-blend-mode: difference;
	    color: white;
position: fixed;
z-index: 99999;
top:var(--padm);
right:var(--padb);	
	}

.menu-hover{
opacity: 0;
transition: all 0.4s ease;
pointer-events: none;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	background-color: var(--primary);
z-index: 999}
.menu-int{
padding: 20px;
	    height: 100vh;
	    height: var(--app-height);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu-int [id^="menu-main"] a{
	font-size: 58px;
	line-height: 60px;
margin-bottom: 5px;
display: inline-block;
}
.menu-int [id^="menu-legal"]{
	display: block;
}
.menu-int [id^="menu-legal"] a{
	font-size: var(--big);
	margin-top: 10px;
	display: inline-block;
	line-height: var(--linebig);
}
.menu-hover.appear{
opacity: 1;
pointer-events: all;}



/* INPUTS */
input[type="checkbox"]
{
     -webkit-appearance: none;
     -moz-appearance: none;
     appearance: none;
     display: inline-block;
     position: relative;
     height: 0px;
     border-radius: 0;
     width: 0px;
     cursor: pointer;     
     outline: none;
     border: none;
     margin: 0;
}

input[type="checkbox"]:checked + label{
	color: #444444;
}
input[type="checkbox"]:hover
{
     background-color: var(--contrast);
}
input[type="checkbox"]:checked
{
background-color: var(--contrast);
}

input[type="submit"]{
	  font-size: var(--body);
	 -webkit-appearance: none;
     -moz-appearance: none;
     appearance: none;
     display: inline-block;
     font-family: var(--sans);
     text-transform: uppercase;
     border: none;
     cursor: pointer;
     cursor: pointer;
     outline: none;
padding: 8px 22px;
background: #E5E5E5;
border-radius: 30px;
margin-left: 20px;
}


input[type="text"],
input[type="tel"], 
input[type="email"], 
input[type="password"],
select,
textarea{
	flex: 1;
	  font-size: var(--body);
	padding: 10px 0px 5px;
	 -webkit-appearance: none;
     -moz-appearance: none;
     appearance: none;
     display: inline-block;
     position: relative;
     background-color: transparent;
     font-family: var(--sans);
     text-transform: uppercase;
     color: var(--primary);
     border: none;
     border-bottom: 1px solid var(--primary);
     border-radius: 0px;
     outline: none;
}
input[type="text"]:focus,
input[type="tel"]:focus, 
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus{
} 



#cookies{
	display: none;
	padding: var(--padb);
	color: var(--contrast);
	align-items: center;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 99999;
	right: 0;
}
.flex{
	display: flex;	
}
.gris{
opacity: 0.3;
}
.firma{
	margin-left: 30px;
opacity: 0.3;
}
.flexi{
	display: flex;
align-items: center;
flex-wrap: wrap;
}
#cookies .button{
margin-top: 10px;
	margin-right: 10px;
background-color: var(--primary);
box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.1);
padding: 15px 20px;}
.boxshadow{
	margin-right: 10px;
margin-top: 10px;
	background-color: var(--primary);
padding: 15px;
	box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.1);
}
.controlclick{
	cursor: pointer;
}

.marquee {
  --gap: 1rem;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}

.marquee__content {
	  animation: scroll 20s linear infinite;
	display: flex;
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: var(--gap);
}


.portfolio-content h2{
	margin-bottom: var(--padb);
}
.portfolio-content h3{
	margin-top: 20px;
	margin-bottom: 20px;
}



.modal{
	height: var(--app-height);
height: 100vh;
	width:100vw;
transition: all 0.6s cubic-bezier(0.76, 0, 0.24, 1);
	z-index: 9999999999999;
	top: 0;
	left: 0;
	background-color: var(--primary);
	position: fixed;
    transform: translateX(-100%);
}
.modal-int{
	overflow: auto;
	height: var(--app-height);
	
}
.modal.open{
	    transform: translateX(0);
	    opacity: 1;
}
.mask.fijado{
	transform: translateX(0) !important;
}

.mask{
	height: var(--app-height);
height: 100vh;
	width:100vw;
	background-color: var(--primary);
	z-index: 9999999999999999;
	top: 0;
	left: 0;
	position: fixed;
	  transition: width 0.2s cubic-bezier(0.76, 0, 0.24, 1);
	 -webkit-transition: width 0.2s cubic-bezier(0.76, 0, 0.24, 1);
    -o-transition: width 0.2s cubic-bezier(0.76, 0, 0.24, 1);
	transition: width 0.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.maskin{
			-webkit-animation: maskin 0.6s forwards cubic-bezier(0.76, 0, 0.24, 1);
		  animation: maskin 0.6s forwards cubic-bezier(0.76, 0, 0.24, 1);
}
.maskout{
		-webkit-animation: maskout 0.6s forwards cubic-bezier(0.76, 0, 0.24, 1);
		  animation: maskout 0.6s forwards cubic-bezier(0.76, 0, 0.24, 1);
}
.maskout0{
    -webkit-transform: translateX(-100%) !important;
        -ms-transform: translateX(-100%) !important;
            transform: translateX(-100%) !important;
}


.unscaled{
  transform:scale(2.0);
  transform-origin:0% 0%;
  width: 50%;
  height: 50%;
}

@-webkit-keyframes maskin {
  from {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  to {
  	-webkit-transform: translateX(0);
  	        transform: translateX(0);
  }
}

@keyframes maskin {
  from {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  to {
  	-webkit-transform: translateX(0);
  	        transform: translateX(0);
  }
}
@-webkit-keyframes maskout {
  from {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  to {
   	-webkit-transform: translateX(100%);
   	        transform: translateX(100%);
  }
}
@keyframes maskout {
  from {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  to {
   	-webkit-transform: translateX(100%);
   	        transform: translateX(100%);
  }
}


@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}
@media all and (-ms-high-contrast:none){}

/* ---------- Proyectos: diseño nuevo (por defecto) ---------- */

.work-new .nextp{
	display: none;
}

.related-item{
	position: relative;
	display: block;
	overflow: hidden;
}
.related-hover{
	position: absolute;
	/* medio píxel de más por cada lado: con anchos con decimales el borde del cover asomaba y parpadeaba */
	inset: -0.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px;
	background: rgba(255, 255, 255, 0.75);
	color: #000;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.related-item:hover .related-hover{
	opacity: 1;
}
.related-marquee{
	display: block;
	width: 100vw;
	background: var(--marquee-bg);
	color: var(--marquee-color);
}
.related-marquee .marquee__content{
	padding: 20px 0;       /* como el marquee de las presentaciones (.contact-marquee) */
	justify-content: flex-start;
}


/* ---------- Plantilla «About new» ---------- */

.about-new .section{
	position: relative;
	min-height: 100vh;
}
.about-new .columns-section{
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: white;
}
.textabout-img img{
	width: 100%;
	height: auto;
	display: block;
}
.page-template-contact footer,
.page-template-about-new footer{
	background: #F0F0F0;
	width: 100%;
	bottom: 0;
}

.textabout-img{
	width: calc(((100% - var(--padb)) / 3) * 2);
	margin-left: 0;
	margin-top: calc(var(--padb) * 2);
}
/* About new: texto e imagen a la izquierda; en escritorio la imagen ocupa menos de la mitad */
.about-new .textabout{
	margin-left: var(--padb);
}
@media only screen and (min-width: 769px) and (pointer: fine) {
	.about-new .textabout-img{
		width: 40%;
	}
}
/* Equipo (repeater de About new): cargo y nombre en dos columnas alineadas a la izquierda */
.about-team{
	display: grid;
	grid-template-columns: minmax(0, 35%) 1fr;
	column-gap: 20px;
	row-gap: 15px;
	padding: 0 var(--padb);
	margin: calc(var(--padb) * 2) 0 calc(var(--padb) * 3);
}
.team-row{   /* sin caja propia: cargo y nombre siguen siendo celdas del grid */
	display: contents;
}
.team-role{
	text-transform: uppercase;
}

/* ---------- Plantilla «Contact» ---------- */
/* Columnas de la portada + barra + footer, todo alineado abajo de la pantalla */
.contact-page{
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* Plantilla «Projects (loop)» (projects-loop.php + js/projects-loop.js): fila horizontal infinita.
   Ancho fijo por proyecto, alto el de su cover; la página no tiene scroll vertical, la rueda mueve la fila */
html:has(body.page-template-projects-loop),
body.page-template-projects-loop{
	height: 100%;
	overflow: hidden;
	overscroll-behavior-x: none;   /* sin el gesto de «atrás» del trackpad al mover en horizontal */
}
.projects-loop{
	position: fixed;
	inset: 0;
	overflow: hidden;
}
.projects-loop-track{
	display: flex;
	align-items: flex-start;
	column-gap: var(--padb);
	padding-left: var(--padb);
	will-change: transform;
}
.loop-item{
	flex: 0 0 auto;
	width: calc(33vw - var(--padb));
}
@media only screen and (min-width: 1920px) {
	.loop-item{
		width: calc(28vw - var(--padb));
	}
}
@media only screen and (min-width: 2560px) {
	.loop-item{
		width: calc(22vw - var(--padb));
	}
}
/* Mismo ancho para todos y alto máximo: en pantallas muy apaisadas los covers más verticales se recortan
   y siempre queda abajo el alto del footer (padding + línea de .loop-copy) */
.projects-loop:not(.related-loop) .loop-media,
.projects-loop:not(.related-loop) .loop-media img{
	max-height: calc(100vh - var(--padm) * 2 - var(--linesmall));
}
.loop-media img,
.loop-media video,
.loop-media iframe{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.loop-media img{
	height: auto;
}
.loop-item:hover .related-hover{
	opacity: 1;
}
.loop-services{   /* «Services Detail», abajo del hover */
	position: absolute;
	left:var(--padb);
	right: var(--padb);
	bottom: 10px;
	text-align: left;
}
/* Relacionados: la misma fila, dentro de la página. Aquí manda el alto: mismo alto para todos y cada ancho
   según la proporción de su cover (--loop-ratio, en single_post_new.php) */
html:has(body.work-new){
	overscroll-behavior-inline: none;   /* sin el gesto de «atrás» del trackpad al mover la fila */
}
.related-loop{
	--rel-h: min(600px, calc(100vh - 140px));   /* cabe en pantalla con el marquee debajo */
	position: relative;
	inset: auto;
}
.related-loop .loop-item{
	height: var(--rel-h);
	width: calc(var(--rel-h) * var(--loop-ratio, 1));
}
.related-loop .loop-media,
.related-loop .loop-media img{
	height: 100%;
}
.loop-cursor.is-visible{
	opacity: 1;
}
.loop-copy{
	position: fixed;
	right: var(--padb);
	bottom: var(--padm);
	z-index: 10;
}
