﻿/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-bottom: 40px;
  color: #5a5a5a;
}

.container{
  max-width: 1100px;
  width: 100%;

}

.floating-label-form-group label {
  color: #ffffff;
  background-color: #f60101;
}

#cabecera{
  width: 100vw;
  min-width: 320px;
  margin: auto;
}

#img-cabecera{
  width: 100%;
  margin-top: 100px;
}

.contact{
  width: 100%;
  margin: auto;
  margin-top: 40px;
  display: flex;
  justify-content: center;

}

/*PROBANDO ARTICULOS PARA BLOG*/

.container-content{
  width: 100%;
  margin: auto;
  margin-top: 40px;
  display: flex;
  justify-content: center;

}

.post-list{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
}

.content{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.img-portada{
  margin-top: 100px;

}

.img-articulo{
  margin: auto;
}

.post-body-indivual{
  width: 100%;
  padding: 20px;
  padding-bottom: 40px;
  box-shadow: -10px 0 20px -30px black;
  border-radius: 6px;
  position: relative;
  overflow: hidden;

}

.post-body-indivual:before{
  content: '';
  width: 100%;
  height: 6px;
  position: absolute;
  top: 0;
  left: 0;
  background: #f60101;
}

.post-body-indivual h3{
  margin-top: 20px;
  margin-bottom: 20px;
}

.post-body-indivual h4{
  margin-top: 20px;
  margin-bottom: 20px;
}
.post-body-indivual img{
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;

}
.cover-blog{
  background: url(../img/blog/cover-blog.png);
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}

/*ASIDE*/
.container-aside aside{
  width: 200px;
  border-radius: 6px;
  box-shadow: 0 0 20px -20px black;
  overflow: hidden;
  margin-left: 0px;
  margin-bottom: 40px;
  background-color: #FFE7E7;
}

.container-aside h4{
  text-align: center;
  margin-top: 10px;
  margin-left: 0px;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;

}
.container-aside p{
  text-align: center;
  margin-left: 0px;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
}
.container-aside aside img{
  width: 100%;
  cursor: pointer;
  align-items: center;
  margin-left: 0px;
}

.container-aside aside h4,
.container-aside aside p{
  margin-top: 20px;
  padding: 0px 10px;
}

.container-aside aside button{
  margin-top: 10px;
  margin-left: 0px;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 14px;
  background: #f60101;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  color: #ffffff;
  }

  .container-aside aside a{
    display: flex;
    justify-content: center;
    }

.container-aside aside button:hover{
  opacity: 0.9;
}

.post-img-jesus {
    background: url('../img/blog/jesús-contra-mercaderes-marketing.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
	transition: .2s;
}

.post-img-secretos {
    background: url('../img/blog/guerra-comercial-cover.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    transition: .2s;
}


.post-img-da-vinci {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.post-img-da-vinci::before,
.post-img-da-vinci::after {
    content: "";
    position: absolute;
    background: url('../img/blog/da-vinci-maquina-voladora-cover.jpg') center / cover no-repeat;
}

.post-img-da-vinci::before {
    inset: -15px;
    filter: blur(12px) brightness(.65);
    transform: scale(1.08);
}

.post-img-da-vinci::after {
    inset: 0;
    background-size: contain;
}


.post-img-06{
  background: url(../img/blog/marcas-ficticias-blog.png);
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}
.post-img-05{
  background: url(../img/blog/marcas-ficticias-blog.png);
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}
.post-img-04{
  background: url(../img/blog/marcas-ficticias-blog.png);
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}
.post-img-03{
  background: url(../img/blog/estrategia-facebook-restaurantes.png);
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}
.post-img-02{
  background: url(../img/blog/remarketing-facebook-blog.png);
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}
.post-img-01{
  background: url(../img/blog/reacciones-facebook-blog.png);
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}


.post-img-1{
  background: url(../img/blog/reacciones-facebook-blog.png);
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}
.post-img-2{
  background: url(../img/blog/remarketing-facebook-blog.png);
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}
.post-img-3{
  background: url(../img/blog/estrategia-facebook-restaurantes.png);
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}

.post{
  box-shadow: 0 1px 6px 1px rgba(0, 0, 0, .15);
  overflow: hidden;
  transition: .2s;
}

.post:hover{
  transform: translateY(-4px);
  box-shadow: 0 1px 14px 2px rgba(0, 0, 0, 0.15);
}

.post-header{
  width: 100%;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  background: #f4f4f4;
}

.home-post-cover{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post:hover .post-img-06,
.post:hover .post-img-1,
.post:hover .post-img-2,
.post:hover .post-img-3{
  transform: scale(1.1);
}

.post-body{
  padding: 15px;
  text-align: center;
}

.post-body span{
  display: inline-block;
  color: #999;
  margin-bottom: 10px;
}

.post-body h2{
  margin-bottom: 15px;
}

.post-body p{
  line-height: 1.5;
  margin-bottom: 20px;
}

.post-body .post-link{
  display: block;
  text-decoration: none;
  padding: 10px;
  background: #FF4f4f;
  color: #ffffff;
  width: 50%;
  margin: auto;
  border-radius: 20px;
  box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, 0.1);
  transition: .2s;
}

.post-body .post-link:hover{
  background: #f60101;
  box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

.blog-all {
  margin-top: 30px;
  text-align: center;
}

.blog-all-link {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #FF4f4f;
  border-radius: 24px;
  color: #FF4f4f;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}

.blog-all-link:hover,
.blog-all-link:focus {
  background: #FF4f4f;
  color: #ffffff;
  text-decoration: none;
}

@media(max-width: 840px){
  .content{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 600px){
  .content{
    grid-template-columns: repeat(1, 1fr);
  }
}
/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */

/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
}

/* Flip around the padding for proper display in narrow viewports */
.navbar-wrapper > .container {
  padding-right: 0;
  padding-left: 0;
}
.navbar-wrapper .navbar {
  padding-right: 15px;
  padding-left: 15px;
}
.navbar-wrapper .navbar .container {
  width: auto;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  height: 500px;
  margin-bottom: 60px;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel .item {
  height: 500px;
  background-color: #777;
}
.carousel-inner > .item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 500px;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 20px;
  text-align: center;
}
.marketing h2 {
  font-weight: normal;
}
.marketing .col-lg-4 p {
  margin-right: 10px;
  margin-left: 10px;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 80px 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
}


/* RESPONSIVE CSS
-------------------------------------------------- 


*/

@media (min-width: 768px) {
  /* Navbar positioning foo */
  .navbar-wrapper {
    margin-top: 20px;
  }
  .navbar-wrapper .container {
    padding-right: 15px;
    padding-left: 15px;
  }
  .navbar-wrapper .navbar {
    padding-right: 0;
    padding-left: 0;
  }

  /* The navbar becomes detached from the top, so we round the corners */
  .navbar-wrapper .navbar {
    border-radius: 4px;
  }

  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 20px;
    font-size: 21px;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 40px;
  }
}

@media (min-width: 992px) {
  .featurette-heading {
    margin-top: 100px;
  }
}


/* Media query para pantallas de menos de 768px de ancho */
@media (max-width: 768px) {
  .container-content {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .img-articulo{
    margin: auto;
    width: 100%;
  }
  .post-body-indivual, .container-aside {
    width: 100%;
  }

  .container-aside aside {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  #img-cabecera{
    width: 100%;
    margin-top: 50px;
    object-fit: cover;
  }

  .form label{
    font-size: 12px;
  } ;

}
