/*
Theme Name: Cross Industrial
Theme URI: http://www.faunadiseno.com
Text Domain: cross-industrial
Author: Eugenio Err&aacute;zuriz
Author URI: http://www.faunadiseno.com
Description: Custom Theme para Cross Industrial
Version: 1.0
*/

/* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}
:focus {/* remember to define focus styles! */
	outline: 0;
}
body {
	background: #fff;
	line-height: 1;
}
ol, ul {
	list-style: none;
}
table {/* tables still need 'cellspacing="0"' in the markup */
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	font-weight: normal;
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a img {
	border: 0;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

/* Clearfix */


/* For modern browsers */
.cf:before,
.cf:after {
    content:"";
    display:table;
}

.cf:after {
    clear:both;
}

/* For IE 6/7 (trigger hasLayout) */
.cf {
    zoom:1;
}

* {
	box-sizing: border-box;
}

*:before,
*:after {
	box-sizing: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

/* SOMAV!!
----------------------------------------------- */

.language-chooser {
	display: table;
	position: absolute;
	top: 8px;
	right: 1em;
}

.qtrans_language_chooser {
	text-transform: uppercase;
	display: inline-block;
	width: 30px;
	height: 30px;
	text-align: center;
	line-height: 24px;
	color: #fff;
	border: 3px solid #fff;
	opacity: .8;
	margin-left: .5em;
}

.qtrans_language_chooser.active,
.qtrans_language_chooser:hover {
	opacity: 1;
	background: #fff;
	color: #f53200;
	font-weight: 700;
}

body {
	font-family: "Source Sans Pro", sans-serif;
	font-weight: 300;
	color: #505050;
	background:#f53200 url(images/fondo-body.jpg);
	background-size: 100%;
	background-position: top center;
	background-attachment: fixed;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
	font-weight: 400;
}

p {
	margin-bottom: 1em;
}

figure {
	margin: 0;
	padding: 0;
}

h1 {
	position: relative;
	font-size: 1.750em;
	font-weight: 500;
	margin-bottom: 1em;
}

h2 {
	font-size: 1.250em;
}

hr {
	border: none;
	border-top: 1px solid #f53200;
}


#branding,
#content {
	background-color: #fff;
}

#branding {
	margin-top: 3em;
	padding: 3em 2em 0;
}

.logo-header {
	max-width: 41.667%;
	margin-bottom: 2em;
}

#content {
	padding: 2em;
	overflow: hidden;
}

#primary {
	background-color: #fff;
}

#menu-principal {
	float: right;
	text-transform: uppercase;
	font-weight: 500;
	font-size: .875em;
	width: 58.667%;
	margin-bottom: 2em;
}

#menu-principal li {
	display: inline-block;
	width: calc(25% - 4px - 18.75px);
	vertical-align: top;
	margin-right: 25px;
	line-height: 1.2;
	min-height: 3.2em;
}

#menu-principal li a {
	font-weight: 500;
	transition: all .3s cubic-bezier(.32,.37,.56,.91);
}

#menu-principal li a:hover {
	color: #ec3003;
}

#menu-principal > li > a:hover {
	box-shadow: 0px 5px 0px #ec3003;
}

#menu-principal > li > a {
	display: block;
	min-height: 3.2em;
	padding-bottom: 1em;
	box-shadow: 0px 3px 0px #505050;
}

#menu-principal li:last-of-type {
	margin-right: 0;
	flex-grow: 1;
	flex-basis:20%;
}

ul.sub-menu {
	display: none;
	padding: .5em 0;

	margin-bottom: 0;
	color: #bbb;
}

#menu-principal ul.sub-menu li {
	width: 100%;
	text-align: left;
	border-bottom: 0;
	padding: .5em 0;
	min-height: 0;
}

.home .bajada {
	font-size: 1.875em;
	margin-bottom: 2em;
	width: 58.333%;
	float: right;
	line-height: 1.4;
}

.bajada {
	position: relative;
	font-size: 1.6em;
	line-height: 1.4;	
}

.area {
	clear: both;
	margin: 0 auto 4em;
}

.area-description a {
	color: #f53200;
	transition: all .3s cubic-bezier(.32,.37,.56,.91);
	box-shadow: 0px 0px 0px #f53200;
}

.area-description a:hover {
	box-shadow: 0px 2px 0px #f53200;
}

.area-description a:after {
	content: '\2192';
	margin-left: .5em;
}

.showcase {
	width: 66.666%;
	position: relative;
}

.showcase .gallery {
	margin: 0;
}

.area-description {
	position: relative;
	width: 33.333%;
	overflow: hidden;
	margin-bottom: 2em;
}

.area-description p {
	margin-bottom: 3em;
}

.area:nth-of-type(odd) .showcase,
.area:nth-of-type(odd) .area-description {
	float: right;
}

.area:nth-of-type(even) .showcase,
.area:nth-of-type(even) .area-description {
	float: left;
}

.area:nth-of-type(odd) .showcase {
	padding: 0 2em 1em 1em;
}

.area:nth-of-type(even) .showcase {
	padding: 0 1em 1em 2em;
}


.area:nth-of-type(odd) .area-description {
	left: -1em;
}

.area:nth-of-type(even) .area-description {
	right: -1em;
}

.area-description h1 {
	position: relative;
	line-height: 1.2;
	height: 2.7em;
	margin-bottom: 2em;
	margin-top: 10px;
}

.area-description h1 img {
	position: absolute;
	top: -10px;
}

.area:nth-of-type(odd) .area-description h1 {
	padding-left: 100px;
}

.area:nth-of-type(odd) .area-description h1 img  {
	left: 0;
}

.area:nth-of-type(even) .area-description h1 {
	padding-right: 80px;
}

.area:nth-of-type(even) .area-description h1 img  {
	right: 0;
}

.home .post-info {
	background-color: #ec3003;
	position: absolute;
	width: 45%;
	bottom: 0;
	padding: 1.5em;
	color: #fff;
	-webkit-transform: translate3d(0,0,0);
	font-weight: 600;
}

.home .post-info h2 a:after {
	content: '\2192';
	margin-left: .5em;
}

.home .post-info h2 a {
	box-shadow: 0px 0px 0px #fff;
	transition: all .2s cubic-bezier(.32,.37,.56,.91);
}

.home .post-info h2 a:hover {
	box-shadow: 0px 2px 0px #fff;
}

p.date {
	margin-bottom: 0;
}

.area:nth-of-type(odd) .post-info {
	left: .1em;
}

.area:nth-of-type(even) .post-info {
	right: .1em;
}

.area:nth-of-type(even) .flickity-prev-next-button.previous { left: 1.5em; }
.area:nth-of-type(even) .flickity-prev-next-button.next { left: calc(45px + 1.5em); }

.area:nth-of-type(odd) .flickity-prev-next-button.previous { right: calc(45px + 1.5em); }
.area:nth-of-type(odd) .flickity-prev-next-button.next { right: 1.5em; }

.gallery-cel {
	width: 100%; /* full width */
	height: 350px; /* height of carousel */
	padding: 1em;
}

.gallery-cel figure {
	position: absolute;
	width: calc(100% - 2em);
	height: calc(100% - 2em);
	overflow: hidden;
}

.gallery-cel figure img {
	position: absolute;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

#menu-principal-1 {
	float: right;
	width: 58.667%;
	margin-left: 8.333%;
	margin-bottom: 0!;
}

#menu-principal-1 ul.sub-menu {
	display: block;
	text-transform: uppercase;
	margin-top: .5em;
}

#menu-principal-1 ul.sub-menu li{
	display: block;
	width: 100%;
	padding-bottom: 0;
	border-bottom: none;
	text-transform: none;
}

#menu-principal-1 li {
	float: left;
	margin-right: 25px;
	vertical-align: top;
	padding-bottom: .5em;
	width: 20%;
	line-height: 1.2;
	text-transform: uppercase;
	margin-bottom: 1em;
}

#menu-principal-1 > li > a:first-child {
	display: block;
	height: 3em;
	margin-bottom: 1.5em;
	padding-bottom: .5em;
	box-shadow: 0px 3px 0px #fff;
	transition: all .2s cubic-bezier(.32,.37,.56,.91);
}

#menu-principal-1 > li > a:hover{
	box-shadow: 0px 5px 0px #fff;
	transition: all .2s cubic-bezier(.32,.37,.56,.91);
}

.unit-description {
	position: relative;
	float: right;
	width: 58.667%;
	margin-bottom: 3.5em;
}

#sub-units {
  	clear: both;	
}

#content #sub-units ul {
	margin: 0;
}

#sub-units ul a {
	display: block;
}

#sub-units ul a:hover > figure {
	transform: scale(.95) translate3d(0,0,0);
}

#sub-units ul li {
  	list-style-type: none;
  	width: calc(25% - 18.75px);
  	margin-right: 25px;
  	display: inline-block;
  	vertical-align: top;
  	text-align: center;
  	margin-bottom: 2em;
}

#sub-units ul li:nth-of-type(4n) {
  	margin-right: 0px;
}

#sub-units ul li figure {
	position: relative;
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
	margin-bottom: 1em;
	transition: all .2s cubic-bezier(.32,.37,.56,.91);
	transform: translate3d(0,0,0);
}

#sub-units ul li img{
	position: absolute;
  	width: 100%;
  	height: 100%;
  	left: 0;
  	top: 0;
  	background-color: #eee;
  	border-radius: 50%;
  	object-fit: cover;
  	border: 1px solid #eee
}

.logo-area-fondo {
	position: absolute;
	z-index: 0;
	opacity: .05;
	margin-left: -40%;
	width: 20em;
	top: -2em;
}

#content ul {
	list-style-type: disc;
	margin: 1em 0 1em 1.2em;
}

#content ul ul {
	list-style-type: circle;
}

#content ol {
	list-style-type: decimal;
	margin: 1em 0 1em 1.2em;
}

#content .ficha ol,
#content .ficha ul {
	margin-top: 0;
}

#content li {
	margin-bottom: .5em;
}

#archive-content {
	clear: both;
}

.featured-content,
.normal-content {
	margin-bottom: 1.5em;
}

.unit-post,
.unit-featured-post {
	margin-bottom: 1.5em;
}

.unit-post {
	display: inline-block;
	width: calc(33.333% - 4px - 16.666px);
	margin-right: 25px;
	vertical-align: top;
}

.unit-post figure {
	position: relative;
	width: 100%;
	padding-top: 100%;
	margin-bottom: 1em;
}

.unit-post figure img {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	object-fit: cover;
}

.unit-post:nth-of-type(3n) {
	margin-right: 0;
}

.wp-pagenavi {
	padding-top: 1em;
	border-top: 1px solid #ccc;
	text-align: right;
}

.wp-pagenavi a,
.wp-pagenavi span {
	margin-left: .7em;
}

.wp-pagenavi span.current {
	opacity: .5;
}

.unit-featured-post {
	position: relative;
}

.unit-featured-post .post-meta {
	width: 60%;
	position: relative;
	float: left;
}

.unit-featured-post figure {
	position: relative;
	width: 40%;
	float: left;
	padding-top: 40%;
	margin-bottom: 1em;
	border-radius: 50%;
	overflow: hidden;
}

.unit-featured-post figure img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.unit-featured-post .post-info {
	position: relative;
	float: right;
	width: 55%;
}

.post-info h2 a {
	transition: all .3s cubic-bezier(.32,.37,.56,.91);
	box-shadow: 0px 0px 0px #000;
}

.post-info h2 a:hover {
	transition: all .3s cubic-bezier(.32,.37,.56,.91);
	box-shadow: 0px 2px 0px #000;
}

.unit-featured-post .post-excerpt {
	float: left;
	width: 40%;
	padding-left: 25px;
	padding-top: 3em;
}

/* Singles */

.single #content,
.page #content {
	position: relative;
	padding-left: 41.667%;
}

figure.featured-image {
	position: absolute;
	left: 2em;
	top: 2.8em;
	width: 33.334%;
	height: auto;
	background: transparent;
}

.caption {
	font-size: .875em;
	font-style: italic;
	margin-bottom: 0;
}

figcaption {
	text-align: right;
}

/* Flexible Content */

.ficha {
	margin: 2em 0;
	padding: 1em 0;
	border-top: 1px dotted #ccc;
	border-bottom: 1px dotted #ccc;
}

.ficha-item {
	margin-bottom: 1em;
}

.ficha div.key,
.ficha div.value
 {
	float: left;
}

.ficha div.key {
	width: 20%;
	font-weight: 600;
	line-height: 1.2;
}

.ficha div.value {
	width: 80%;
	padding-left: 25px;
}

.video-embed{
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
	margin: 2em 0;
}

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

.gallery {
	position: relative;
	margin: 2em 0;
}

.gallery a.gallery-item {
	display: inline-block;
	max-width: calc(25% - 11.25px);
	margin-right: 8px;
	width: 150px;
	vertical-align: top;
}

.gallery a img {
	display: block;
	margin-bottom: .5em;
}

/* Footer */

footer {
	padding: 3em 2em 2em;
	background-color: #4f504f;
	color: #fff;	
}

.logo-footer {
	margin-bottom: 2em;
}

.col-footer {
	width: 33%;
	float: right;
}

.col-footer,
#menu-principal-1 {
	font-size: .875em;
	margin-bottom: 3em;
}

footer hr {
	clear: both;
	border-top: 1px solid #999;
}

p.legal {
	clear: both;
	font-size: .875em;
}

p.legal img {
	vertical-align: middle;
}

footer .sub-menu li a {
	font-weight: 300;
}

/* Flickity */

.flickity-enabled {
  position: relative;
}

.flickity-enabled:focus { outline: none; }

.flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
          tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
  position: absolute;
  bottom: calc(-45px + 1.5em);
  width: 45px;
  height: 45px;
  border: none;
  background: #f53200;
  cursor: pointer;
}

.flickity-prev-next-button:hover { background: #bf2700; }

.flickity-prev-next-button:focus {
  outline: none;
  box-shadow: 0 0 0 5px #09F;
}

.flickity-prev-next-button:active {
  filter: alpha(opacity=60); /* IE8 */
  opacity: 0.6;
}

.flickity-prev-next-button:disabled {
  filter: alpha(opacity=30); /* IE8 */
  opacity: 0.3;
  cursor: auto;
}

.flickity-prev-next-button svg {
  position: absolute;
  left: 25%;
  top: 25%;
  width: 50%;
  height: 50%;
}

.flickity-prev-next-button .arrow {
  fill: #fff;
}

/* color & size if no SVG - IE8 and Android 2.3 */
.flickity-prev-next-button.no-svg {
  color: #fff;
  font-size: 24px;
}

@media screen and (max-width:900px) {

	.logo-header {
		max-width: none;
	}
	
	#menu-principal {
		float: none;
		width: 100%;
	}
	
	.home .bajada,
	.bajada {
		width: 100%;
		font-size: 1.5em;
		margin-bottom: 2em;
	}
	
	.showcase {
		width: 100%;
	}
	
	.area-description {
		width: 100%;
		overflow: hidden;	
	}
	
	.unit-description {
		float: none;
		width: 100%;
		margin-bottom: 3.5em;
	}
	
	.area:nth-of-type(odd) .showcase,
	.area:nth-of-type(odd) .area-description, 
	.area:nth-of-type(even) .showcase,
	.area:nth-of-type(even) .area-description {
		float: none;
		right: 0;
		left: 0;
	}

	.area:nth-of-type(odd) .showcase, 
	.area:nth-of-type(even) .showcase {
		padding: 0;
	}
	
	.gallery-cel {
		padding: 0;
	}
	
	.gallery-cel figure {
		width: 100%;
		height: 100%;
	}
	
	.area-description h1 {
		position: relative;
		line-height: 1.2;
		height: 2.7em;
		margin-bottom: 1em;
	}

	.area:nth-of-type(odd) .area-description h1,.area:nth-of-type(even) .area-description h1 {
		padding-left: 100px;
	}
	
	.area:nth-of-type(odd) .area-description h1 img,
	.area:nth-of-type(even) .area-description h1 img  {
		left: 0;
	}
	
	.area:nth-of-type(odd) .post-info,
	.area:nth-of-type(even) .post-info 
	 {
		left: 0em;
		right: auto;
	}
	
	.area:nth-of-type(even) .post-info {
		right: 0em;
	}
	
	.area:nth-of-type(even) .flickity-prev-next-button.previous,
	.area:nth-of-type(odd) .flickity-prev-next-button.previous { 
		right: 45px;
		left: auto; 
	}
	
	.area:nth-of-type(even) .flickity-prev-next-button.next,
	.area:nth-of-type(odd) .flickity-prev-next-button.next { 
		right: 0em;
		left: auto; 
	}
	
	.flickity-prev-next-button {
	  bottom: -44px;
	}
	
	.logo-area-fondo {
		right: -4em;
	}
	
	.col-footer {
		width: 100%;
		float: none;
		clear: both;
	}
	
	#menu-principal-1 {
		float: none;
		width: 100%;
		margin-left: 0;
	}
	
	#menu-principal-1 > li {
		width: calc(50% - 12.5px);
		
	}
	
	#menu-principal-1 > li:nth-of-type(2n) {
		margin-right: 0;
	}

	#menu-principal-1 > li:nth-of-type(3n) {
		margin-right: 25px;
		
	}
}

@media screen and (max-width:600px) {

	#menu-principal li {
		display: block;
		width: 100%;
		margin-bottom: 1em;
		margin-right: 0;
		line-height: 1.2;
		min-height: 0;
	}
	
	#menu-principal ul.sub-menu li {
		margin-bottom: 0;
	}
	
	#menu-principal li a {
		min-height: 0;
	}
	
	#menu-principal-1 > li {
		width: 100%;
	}
	
	#menu-principal-1 > li:nth-child(3) {
		margin-right: 20%;
	}
	
	#menu-principal-1 > li > a:first-child {
		box-shadow: 0px 2px 0px #fff;
		min-height: 0;
		height: auto;
	}
	
	.gallery-cel {
		width: 100%;
		height: auto;
	}
	
	.home .post-info {
		width: 100%;
		position: relative;
		padding-bottom: 2em;
	}
	
	.gallery-cel figure {
		position: relative!important;
		width: 100%;
		height: auto;
		line-height: 0;
		overflow: hidden;
	}
	
	.gallery-cel figure img {
		position: relative!important;
		height: auto;
		width: 100%;
		object-fit: cover;
	}
	
	.area-description h1 {
		padding-right: 0!important;
	}
	
	.area-description p {
		margin-bottom: 1em;
	}
	
	.area:nth-of-type(odd) .area-description {
		left: auto;
	}
	
	.area:nth-of-type(even) .area-description {
		right: auto;
	}
	
	#sub-units ul li {
	  	width: calc(50% - 12.5px);
	}
	
	#sub-units ul li:nth-of-type(2n) {
	  	margin-right: 0;
	}
	
	.unit-featured-post .post-meta {
		width: 100%;
		float: none;
	}
	
	.unit-featured-post figure {
		position: relative;
		width: 100%;
		float: none;
		padding-top: 40%;
		margin-bottom: 1em;
		border-radius: 0%;
	}
	
	.unit-featured-post .post-info {
		position: relative;
		float: none;
		width: 100%;
	}
	
	.unit-featured-post .post-excerpt {
		float: none;
		width: 100%;
		padding-left: 0;
		padding-top: 1.5em;
	}
	
	.single #content,
	.page #content {
		position: relative;
		padding-left: 2em;
	}
	
	figure.featured-image {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		height: auto;
		background: transparent;
	}
	
	p.bajada {
		margin-bottom: 1em;
	}
	
	.logo-footer {
		margin-left: -.5em;
	}

}

@media screen and (min-width:1400px) {
	header#branding,
	#primary, 
	footer {
		padding-left: 10%;
		padding-right: 10%;
	}

}