/*
Theme Name: Carrera
Author: Horacio Lorente
Author URI: http://horaciolorente.com/
*/


/* FONTS */

@import url(http://fonts.googleapis.com/css?family=Karla:400,400italic,700italic,700);
@import url(http://fonts.googleapis.com/css?family=Playfair+Display:400,700,900,400italic,700italic,900italic);

.karla {
	font-family: 'Karla', sans-serif;
}

.playfair {
	font-family: 'Playfair Display', serif;
}

body, html {
	height: 100%;
	font-family: 'Karla', sans-serif;
	/*font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-webkit-font-smoothing: antialiased;*/
	color: #000;
}

/* PRESETS */

.full-w {
	width: 100%;
	overflow: hidden;
}

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

.absolute {
	position: absolute;
}

.fixed {
	position: fixed;
}

.relative {
	position: relative;
}

.center-absolute {
	top: 50%;
	left: 50%;
}

.hidden {
	display: none;
}

.inline-block {
	display: inline-block;
}

.bg-white {
	background: #FFF;
}

.black {
	color: #000;
}

.white {
	color: #FFF;
}

.uppercase {
	text-transform: uppercase;
}

.margin-0 {
	margin: 0;
}

.padding-0 {
	padding: 0;
}

.padding-v-25 {
	padding: 25px 0;
}

.margin-v-25 {
	margin: 25px 0;
}

.padding-v-50 {
	padding: 50px 0;
}

.margin-v-50 {
	margin: 50px 0;
}

ul {
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
	line-height: 150%;
}

h2 {
	font-size: 24px;
}

h4 {
	font-size: 18px;
}

h5 {
	font-size: 14px;
}

p {
	font-size: 12px;
}

.small {
	font-size: 11px;
}

.line-inter {
  border-top: 1px solid #FFF;
  height: 1px;
  display: inline-block;
  width: 90px;
  margin: 0 5px 0 1px;
  vertical-align: middle;
}



/* ALL TRANSITIONS */

a, a:hover, a:focus {
	color: #000;
	text-decoration: none;
	transition: all .5 ease;
	-webkit-transition: all .5 ease;
	-moz-transition: all .5 ease;
	outline: none;
}

/* TRANSITION LOAD */

/*
 * CSS Animations
 * Don't forget to add vendor prefixes!
 */
.m-scene .scene_element {
  animation-duration: 0.25s;
  transition-timing-function: ease-in;
  animation-fill-mode: both;
}

.m-scene .scene_element--fadein {
  animation-name: fadeIn;
}

.m-scene.is-exiting .scene_element {
  animation-direction: alternate-reverse;
}

/*
 * Keyframes
 */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  visibility: hidden;
}

.transition-load {
    animation: fadein 1.5s;
    -moz-animation: fadein 1.5s; /* Firefox */
    -webkit-animation: fadein 1.5s; /* Safari and Chrome */
    -o-animation: fadein 1.5s; /* Opera */
}
@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-moz-keyframes fadein { /* Firefox */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-webkit-keyframes fadein { /* Safari and Chrome */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-o-keyframes fadein { /* Opera */
    from {
        opacity:0;
    }
    to {
        opacity: 1;
    }
}

 /* STRUCTURE */

 /* HEADER */

.navbar {
	border: none;
}

.navbar-default,
.index .navbar-default {
	background: #FFF;
	border-radius: 0;
}

.navbar-default .navbar-nav > li > a {
	color: #BDBDBD;
	font-size: 14px;
}

.navbar-default .navbar-nav > li > a:hover {
	color: #BDBDBD;
}

.navbar-default .navbar-nav > li > a:hover:after,
.navbar-default .navbar-nav > li.current-menu-item > a:after {
	color: #5fc3d9;
}

.navbar-default .navbar-nav > li > a:after {
	content: "●";
	color: #FFF;
	text-align: center;
	font-size: 8px;
	display: block;
	line-height: 1.4;
}

.navbar-default .navbar-nav > li.current-menu-item > a {
	color: #BDBDBD;
}

.navbar-default .navbar-nav > .active >a, .navbar-default .navbar-nav > .active > a:hover, 
.navbar-default .navbar-nav >.active > a:focus {
	background: none;
		color: #BDBDBD;
 }

header.index .navbar-default {
	border-top: 3px solid #5fc3d9;
}

header.index #menu-main {
	float: none;
	max-width: 525px;
}

header.pages .navbar {
	padding: 50px 0 50px 0;
	margin: 0;
}

header.pages .brand {
	margin-right: 40px;
	float: left;
	max-width: 200px;
}

header.full .brand {
	width: 45px;
	height: 45px;
	opacity: .5;
}

header .brand.mobile,
.iso-brand.modal-w {
	width: 45px;
	height: 45px;
	opacity: .5;
	position: relative;
	display: block;
	z-index: 99999;
}

	.iso-brand.modal-w {
		margin: 50px 0 50px 0;
	}

header.animateIt {
    position:fixed;
    top:-108px;
    left: 0;
    right: 0;
    z-index:999;
    transition: 0.5s top ease;
}

body.down header.animateIt {
    top:0;
}	

.lang {
	width: 100px;
}

.lang.index {
	right: 15px;
  	top: 13px;
}

.lang.pages {
	float: right;
	margin-top: 12px;
}

.qtranxs_widget ul li.lang-es {
	float: left;
	margin-right: 10px;
}

.qtranxs_widget ul li.lang-en {
	float: right;
	margin-left: 15px;
}

.lang .qtranxs_language_chooser li a {
	font-size: 10px;
}

.lupa-header {
	float: left;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	opacity: 0.3;
}

.lupa-header:hover {
  	opacity: 0.7;
}

#qtranslate-2 {
	float: right;
}

/* FOOTER */

footer.intro {
	padding: 50px 0;
}

footer.intro .redes-cont {
	max-width: 235px;
	padding: 25px 0;
}

footer.intro .redes-cont a {
	margin: 0 10px;
}

footer.intro .redes-cont a:hover {
	margin: 0 10px;
	text-decoration: underline;
}


/* FRONT PAGE */


.cover-index-cont {
	min-height: 100%;
	min-width: 100%;
	position: fixed;
 }

 .cover-index-cont .slides {
 	width: 100%;
 	height: 100%;
 	display: block;
	-webkit-background-size: cover!important;
	-moz-background-size: cover!important;
	-o-background-size: cover!important;
	background-size: cover!important;
	position: absolute;
 }

.cover-index-cont .logo {
	width: 170px;
	height: 130px;
	margin-left: -85px;
	margin-top: -65px;
	z-index: 99;
}

.container-index {
	top: 100%;
  	margin-top: -53px;
}

#sticky.stick {
    position: fixed;
    top: 0;
    z-index: 10000;
    width: 100%;
}

.intro {
	max-width: 740px;
}

.intro:before {
	content: "";
	width: 9;
	height: 6px;
	background: url(img/bird.jpg)no-repeat center center;
	display: block;
	padding: 40px 0 0 0;
}

.intro .iso {
	padding: 25px 0;
  	width: 60px;
}

.intro footer {
	padding: 0 0 50px 0;
}

.compartir-cont {
	max-width: 472px;
	padding: 25px 0 100px 0;
	text-align: center;
}

.compartir-cont h5 {
	margin-bottom: 25px;
}

.compartir-cont .line-inter {
	border-top: 1px solid #000;
  	width: 215px;
  	margin: 0 10px;
}

.compartir-cont a:hover {
	text-decoration: underline;
}

.facebook-share:after {
	content: "";
	display: block;
	width: 70px;
	height: 35px;
	background: url(img/me-gusta.jpg); 
	position: absolute;
  	right: -70px;
  	top: -30px;
}

.busqueda-cont {
	background: url(img/bg-busqueda.jpg)no-repeat center center;
	background-size: cover;
	display: block;
	max-height: 380px;
  	padding: 30px 30px 20% 30px;
  	margin-top: 50px;	
}


/* BODAS - PORTFOLIO */

.portbo-cont {
	max-width: 1100px;
	padding: 0 15px 0 15px;
} 

.slide-wrap {
	max-width: 980px;
}

.post-cont {
	margin-bottom: 50px;
	overflow: hidden;
	display: block;
	z-index: 0;
}

.post-cont .caption {
  padding: 5px 10px 5px 10px;
  font-size: 12px;
  z-index: 9;
  cursor: pointer;
  display: none;
}

.data {
	max-width: 980px;
}

.dropdown {
	width: 25px;
	height: 25px;
	display: block;
	background: url(img/more.svg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    transition: .25s ease-in-out;  	
}

.rotate-open {
	-ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    transition: .25s ease-in-out;    
} 

.dropdown-wrap {
	padding: 10px 0;
	max-width: 650px;
	display: none;
}

.dropdown-wrap p {
	margin: 20px 0;
	font-family: "Playfair Display", serif;
}

.close-s {
	width: 25px;
	display: block;
	float: left;
	margin: 25px 0;
}

/* MODAL WINDOW */

header.modal-w {
	max-width: 980px;
	padding: 25px 0;
}

header.modal-w img {
  width: 40px;
  height: 40px;
  opacity: .4;
}

.ssba-wrap {
	margin-top: 50px;
}

.share-cont .line-inter,
.ssba-wrap .line-inter {
	border-top: 1px solid #000;
	margin: 0 5px;
}

.ssba a {
	font-weight: normal!important;
}

.ssba a:hover {
	text-decoration: underline;
}

/* Paginador */

.navigation {
  margin: 0 auto;
  width: 250px;
  padding-bottom: 100px;
}

/* Tooltips */

.navigation a {
	width: 66px;
	height: 40px;
	display: block;
	position: relative;
	overflow: hidden;
}

.btn-tooltip::before {
	content: "";
	background: url(img/tool-tip-sprite.jpg)no-repeat;
	width: 66px;
	height: 29px;
	display: block;
	overflow: hidden;
	margin-top: 15px;
	opacity: 0;
}

	.btn-tooltip.left.es::before {
		background-position: top left;
	}

	.btn-tooltip.right.es::before {
		background-position: top right;
	}	

	.btn-tooltip.left.en::before {
		background-position: bottom left;
	}

	.btn-tooltip.right.en::before {
		background-position: bottom right;
	}

.btn-tooltip:hover::before {
	animation: totop .5s forwards;
	-webkit-animation: totop .5s forwards;
	-moz-animation: totop .5s forwards;
}	

@keyframes totop {
  100% {
    margin-top: 0;
    opacity: 1;
  }
}

@-webkit-keyframes totop {
  100% {
    margin-top: 0;
    opacity: 1;
  }
}

@-moz-keyframes totop {
  100% {
    margin-top: 0;
    opacity: 1;
  }
}	

.navigation a img {
	position: absolute;
	bottom: 0;
}

.btn-tooltip.left {
	float: left;
}

.btn-tooltip.left img {
	right: 0;
}

.btn-tooltip.right {
	float: right;
}

.btn-tooltip.right img {
	left: 0;
}

.ias-spinner {
	width: 26px;
	margin: -50px auto 0;
}


/* SOBRE MI */

.sm-cont {
	max-width: 800px;
}

.sm-cont > img {
	margin-bottom: 15px;
}

.sm-cont h4 {
	padding: 30px 50px;
}

.intro.footer:before {
	display: none;
}

/* SERIES */

.infinite-scroll.series {
	max-width: 980px;
}

.post-cont.series {
	margin-bottom: 30px;
	max-width: 475px;
	display: inline-block;
}

.post-cont.series.first {
	margin-right: 30px;
}

.bg-alfa {
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	opacity: 0;
}

.bg-alfa h4 {
	position: relative;
  	top: 50%;
  	-webkit-transform: translateY(-50%);
  	-ms-transform: translateY(-50%);
  	transform: translateY(-50%);
  	margin-left: 15%;
    margin-right: 15%;
}

.flexslider-wrap {
  margin: 0 auto;
  max-width: 980px;
  margin-bottom: 150px;
  max-height: 650px;
}

.flexslider-series {
	zoom: 1;
	position: relative; 
}

.flexslider-series .slides {
  zoom: 1;
}

.flexslider-series .slides > li.txt-series .captions {
  text-align: center;
  padding: 9vw;
  max-height: 650px;
  overflow: hidden;  
}

.flexslider-series .slides > li.txt-series .captions h4 {
	margin-bottom: 25px;
}

.flexslider-series .slides img {
  width: 100%;
  height: auto;
  display: block;
}

.flex-viewport { overflow: visible !important; }

.flexslider-series .slides > li {
  opacity: .3;
  transition: all .5s ease-in;
  -webkit-transition: all .5s ease-in;
}

.flexslider-series .slides > li.flex-active-slide {
  opacity: 1;
  transition: all .5s ease-in;
  -webkit-transition: all .5s ease-in;
}

.flexslider-series .slides > li.txt-series.flex-active-slide {
  overflow: hidden;
  max-height: 650px;
}

.key-nav {
  float: right;
  width: 80px;
}

.key-nav a {
	display: block;
	width: 35px;
	height: 35px;
	outline: none;
}

.key-nav .key-prev {
	display: block;
	width: 35px;
	height: 35px;
	background: url(img/flex-prev.png);
}

.key-nav .key-next {
	display: block;
	width: 35px;
	height: 35px;
	background: url(img/flex-next.png);
}

.key-prev {
  float: left;
}

.key-next {
  float: right;
}


/* CONTACTO */

.contacto-cont {
	max-width: 980px;
}

.form-cont {
	max-width: 540px;
}

.form-cont input, 
.form-cont textarea {
	width: 100%;
	padding: 10px;
	font-family: 'Karla', sans-serif;
	font-size: 14px;
	border: 1px solid #ccc;
	-webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
}

	.form-cont textarea {
		resize: none;
	}

.form-cont input:focus, 
.form-cont textarea:focus {
	border: 1px solid #000;
	outline: none;	
	-webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-box-shadow: none;	
}

.form-cont input[type="submit"] {
	width: auto;
	padding: 3px 20px;
	float: right;
	background: none;
	color: #ccc;
} 

.form-cont input[type="submit"]:hover {
	border: 1px solid #000;
	color: #000;
} 

::-webkit-input-placeholder {
   	font-size: 14px;
}

:-moz-placeholder { /* Firefox 18- */
	font-size: 14px;  
}

::-moz-placeholder {  /* Firefox 19+ */
  	font-size: 14px;  
}

:-ms-input-placeholder {  
  	font-size: 14px;  
}


/* MEDIA QUERIES */


/* General */

@media only screen and (max-device-width: 768px) {
	header.pages .navbar {
	  padding: 15px 0 50px 0;
	  margin: 0;
	}

}

@media only screen and (min-device-width: 768px) {
	#trigger-overlay {
		display: none;
	}

	#smp_menu {
		z-index: -1;
	}

}

/* Desktop */

@media only screen and (min-device-width: 1280px) and (max-device-width: 4000px) {
	.full-w .flex-viewport {
		display: inline-block;
		max-height: 650px;
	}
}

/* Tablets & Mobiles */

@media only screen and (min-device-width: 320px) and (max-device-width: 1279px) {
	.cover-index {
		position: absolute;
	}

	.compartir-cont {
		max-width: 472px;
		padding: 25px 0 50px 0;
	}

	.compartir-cont .line-inter {
		width: 100px;
	}

	.facebook-share:after {
		display: none;
	}

	.flexslider .slides > li {
  		opacity: 1;
  		margin: 0!important;
	}

	.flexslider-series .slides > li {
		opacity: 1!important;
	}

	.txt-series p {
		font-size: 1.5vw;
  		margin: 0;
  		line-height: 3vw;
	}

	.txt-series h4 {
		font-size: 3vw;
  		margin: 0;
  		line-height: 3vw;
	}

	.ssba-wrap {
		display: none;
	}

	.flex-direction-nav {
		display: none;
	}
}


/* Tablets */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
	.post-cont.series {
    	max-width: 49%;
    	margin-bottom: 2%;
	}

	.post-cont.series.first {
    	margin-right: 2%;
	}
}

@media only screen and (max-device-width: 768px) and (orientation:portrait) {
	.close-s {
		margin: 20px;
	}
}



/* Mobiles */

@media only screen and (min-device-width: 320px) and (max-device-width: 667px) {
	.post-cont .caption {
		top: -100px;
	}

	.post-cont.series {
		max-width: 475px;
		margin-bottom: 15px;
	}	

	.post-cont.series.first {
		margin-right: 0;
	}

	.infinite-scroll.series {
		max-width: 475px;
	}
}


/*Wordpress editor styles start*/

.entry-content img {
	margin: 0 0 1.5em 0;
	}
.alignleft, img.alignleft {
	margin-right: 1.5em;
	display: inline;
	float: left;
	}
.alignright, img.alignright {
	margin-left: 1.5em;
	display: inline;
	float: right;
	}
.aligncenter, img.aligncenter {
	margin-right: auto;
	margin-left: auto;
	display: block;
	clear: both;
	}
.alignnone, img.alignnone {
	/* not sure about this one */
	}
.wp-caption {
	margin-bottom: 1.5em;
	text-align: center;
	padding-top: 5px;
	}
.wp-caption img {
	border: 0 none;
	padding: 0;
	margin: 0;
	}
.wp-caption p.wp-caption-text {
	line-height: 1.5;
	font-size: 10px;
	margin: 0;
	}
.wp-smiley {
	margin: 0 !important;
	max-height: 1em;
	}
blockquote.left {
	margin-right: 20px;
	text-align: right;
	margin-left: 0;
	width: 33%;
	float: left;
	}
blockquote.right {
	margin-left: 20px;
	text-align: left;
	margin-right: 0;
	width: 33%;
	float: right;
	}

/*Wordpress editor styles end*/

