﻿/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-bottom: 40px;
  color: #5a5a5a;
}

.inline-form {
  display: inline;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #337ab7;
  cursor: pointer;
  text-decoration: underline;
}

.flash-success,
.flash-error {
  padding: 10px;
  border-radius: 4px;
}

.flash-success {
  color: #2f6627;
  background: #dff0d8;
}

.flash-error {
  color: #a94442;
  background: #f2dede;
}

.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: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;

}

.post-list{
  display: flex;
  min-height: 100vh;
  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;
  width: 100%;
}

.post-body-indivual{
  width: 100%;
  min-width: 0;
  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;

}
.contenido img{
  max-width: 100%;
  height: 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{
  min-width: 0;
}

.related-heading{
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.25;
  text-align: left;
}

.container-aside aside{
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  overflow: hidden;
  margin: 0 0 24px;
  background-color: #ffffff;
  border-top: 4px solid #f60101;
}

.related-body{
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.related-topics{
  display: block;
  margin-bottom: 8px;
  color: #8a5a5a;
  font-size: 12px;
  line-height: 1.4;
}

.container-aside aside h3{
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.container-aside aside h3 a{
  color: #4e4e4e;
  text-decoration: none;
}

.container-aside aside h3 a:hover{
  color: #f60101;
}

.container-aside p{
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.container-aside aside img{
  width: 100%;
  height: 155px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .2s;
}

.related-image-link{
  display: block;
  overflow: hidden;
}

.related-image-link:hover img{
  transform: scale(1.04);
}

.related-link{
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 14px;
  font-size: 14px;
  background: #f60101;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
}

.related-link:hover,
.related-link:focus{
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.post-img-jesus {
    background: url('../img/blog/jesús-contra-mercaderes-marketing.jpg');
    background-size: cover;
    background-position: center;
    height: 400px; /* Ajusta según diseño */
    width: 100%;
	transition: .2s;
}


.post-img-da-vinci {
    background: url('../img/blog/da-vinci-maquina-voladora-cover.jpg');
    background-size: cover;
    background-position: center;
    height: 400px; /* Ajusta según diseño */
    width: 100%;
	transition: .2s;
}


.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;
}

.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);
}

@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;
  }
}


/*Revisar*/
@media (max-width: 767px) {

}

/* Media query para pantallas de menos de 768px de ancho */
@media (max-width: 991px) {
  .container-content {
    display: block;
    width: 100%;
  }

  .container-aside {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
  }

  .related-heading {
    grid-column: 1 / -1;
  }

  .container-aside aside {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  #cabecera {
    width: 100%;
    min-width: 0;
  }

  .post-list {
    padding: 20px 0;
  }

  .post-list > .container {
    padding-right: 8px;
    padding-left: 8px;
  }

  .container-content {
    margin-top: 24px;
  }

  .post-body-indivual {
    padding: 18px 12px 32px;
  }

  .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;
  } 
  
  .contenido {
    padding: 0;
    font-size: 21px;
    line-height: 1.65;
  }

  .contenido p,
  .contenido li {
    font-size: 21px;
    line-height: 1.65;
  }

  .contenido p {
    font-size: 22px;
    text-align: justify;
  }

  .post-body-indivual > h1 {
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
  }

  .post-body-indivual .contenido h2 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: break-word;
  }

  .post-body-indivual .contenido h3 {
    margin-top: 26px;
    margin-bottom: 12px;
    font-size: 23px;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: break-word;
  }

  .post-body-indivual .contenido h4 {
    font-size: 20px;
    line-height: 1.35;
    text-align: center;
  }

  .compartir i {
    margin-right: 10px;
    font-size: 1.6em;
  };

}

@media (max-width: 600px) {
  .container-aside {
    grid-template-columns: 1fr;
  }
}
