/* RESET BASICO */

/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* font-family: Arial, Helvetica, sans-serif; * /
}
html,
body {
  width: 100%;
  overflow-x: hidden;
  background: #f5f5f5;
} */

.blog-box{
  max-width:75rem;
}

/* ========== SLIDER  (TODO INLINE DESDE ACA ========== */
.slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  margin-top: 1rem;
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity 1s;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-image {
  background-size: cover;
  background-position: center;
  border-radius: 0.75rem;
}
.slide-text {
  background: #f4f6f8;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-text h1 {
  font-size: 2.3rem;
  font-weight: 200 !important;
  line-height: 1.3;
  margin-bottom: .6rem;
  color: #6a6868;
  max-width: 100%;
  
}

.slide-text h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #999;
}

.slide-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
  max-width: 100%;
  margin-top: 0.3125rem;
}

 /*  Autor slider inicio   */

 .slide-text div {
  padding-top: 0.7rem;
} 

.slide-text div :hover {
  color: #a3a3a3;
} 

.slide-text img{
  height:1.875rem;
  width:auto;
  margin-right: 0.625rem;
  vertical-align:middle;
  border-radius: 12%;
}

.slide-text span {  
  font-size: 0.9375rem;
  color: #444;
}

.slide-text span b {  
  font-size: 0.9375rem;
  font-weight: 600;
  color: #000000;
}


 /*  Texto de categoria en el slide   */
 
.slide-categoria{
    font-size:0.875rem;
    font-weight:700;
    text-transform:uppercase;
    color:#000;
    margin-bottom:0px;
}

.slide-text h1{
    margin-top:0px !important;
}

 /*  fin Autor slider inicio   */

.btn-more {
  margin-top: 1em;
  display: inline-block;
  background-color: var(--azul-conab);
  font-size: .85rem;
  color: #fff;
  padding: .6rem 1.2em;
  text-decoration: none;
  border-radius: 999px;
  width: fit-content;
}

.slide-text h1{
    margin-top:0px !important;
}



.btn-more:hover {
  background-color: var(--azul-conab-hover);
  transform: translateX(2px);
}


@media (max-width: 1280px) {
  .slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
  } /*
  .slide {
    flex-direction: row-reverse;
  }
  .slide-image {
    flex: 0 0 60%;
  }*/
  .slide-text {
    flex: 0 0 40%;
    padding: 3rem;
  }
  .slide-text h1 {
    font-size: 1.6rem;
  }

  .slide-text h2 {
    font-size: 1.4rem;
  }

  .slide-text p {
    font-size: .8rem;
  }
}

@media (min-width: 769px) {
  
  .slide {
    flex-direction: row-reverse;
  }
  .slide-image {
    flex: 0 0 60%;
  }

  .slide-text {
    flex: 0 0 40%;
    padding: 2.5rem;
  } /*
  .slide-text h1 {
    font-size: 1.6rem;
  }
  .slide-text h2 {
    font-size: 1.2rem;
  }
  .slide-text p {
    font-size: .8rem;
  }*/
}

@media (max-width: 768px) {
  .slider {
    margin-top: 1.5rem;
    width: 100%;
    height: 70vh;
    /* height: 100%; */
    overflow: hidden;
    /* border:solid 2px rgb(187, 180, 180); */
    border-radius: 0.75rem;
    background-color: #ffffff;
  }
  .slide-text {
    background: none;
  }
  .slide-text p {
    display: none;
  }
  .slide {
    flex-direction: column;
  }
  .slide-image {
    height: 60vh;
  }
  .slide-text {
    padding: .5rem;
    margin-bottom: 1rem;
    max-width: 100%;
  }
  .slide-text h1 {
    font-size: 1.5rem;
    font-weight: 400 !important;
    color: #000000;
  }
  .slide-text h2 {
    font-size: 1rem;
  }
  .slide-text p {
    font-size: 0.9rem;
  }
  .btn-more {
    margin-top: 1.5rem;
    /*
    display: inline-block;
    background: #999;*/
    font-size: 0.9rem;
    font-weight: 600;
    /*color: #fff;
    padding: .4rem .9rem;
    text-decoration: none;
    border-radius: 999px;
    width: fit-content;*/
  }
  .btn-more:hover {
    background: #000;
    transform: translateX(-2px);
  }
}

/* BOTÓN VOLVER: UNA SOLA VEZ, FUERA DEL LOOP (AQUI NO LO TOMA FIREFOX, SOLO COLOCADO EN EL INDEX) */

#prevSlide {
  position: absolute;
  top: 7%;
  right: 2%; /* derecha */
  /* transform: translateY(-50%); */
  z-index: 10;
  padding: .625rem .875rem;
  background-color: var(--azul-conab);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.875rem;
}
#prevSlide:hover {
  background-color: var(--azul-conab-hover);
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  #prevSlide {
    font-size: 0.7rem;
    top: 4%;
    transform: translateX(-3px);
  }
}






/* ========== CUADRADOS CATEGORIA ========== */

.square-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin: 4.5rem 0;
  padding: 0 2.5rem; /*  esto agrega aire a los costados */
}

.square {
  width: 90%;
  aspect-ratio: 1/1;
}

.square img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ðŸ‘ˆ IMPORTANTE */
  border-radius: 0.75rem;
  background: #000;
  transition: 0.3s;
}

.square:hover img {
  transform: scale(1.05);
}

/* MOBILE */

@media (max-width: 768px) {
  .square-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 4.5rem 0;
    padding: 0 1.1rem; /*  esto agrega aire a los costados */
  }
  .square {
    width: 100%;
    aspect-ratio: 1/1;
    vertical-align:middle;
  }
}

/* ========== BOXED ========== */
.boxed-section {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
  /* background-color: #e3e1e1; */
}

/* ========== POST DESTACADO ========== */
.sec-destacado {
    background:#e4e4e4;
    border-radius: 0.75rem;
}


.destacado {
  display:flex;
  flex-direction:column;
  gap:1rem;
  /* background:#f4f6f8; */
  padding:1.5rem;
  margin:0;
  height:100%;
}

.destacado img {
  width:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:0.75rem;
}

.destacado-content {
  width:100%;
}

.destacado-content h2 {
  /* margin-top: 1.5rem; */
  font-size: 1.7em;
  font-weight: 200;
  line-height: normal;
  color: #807e7e;
}
.destacado-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 1em;
}
.destacado-content span {
  margin-left: 0.625rem;
}
.destacado-content img {
  height:2.5rem;
  width:auto;
  vertical-align:middle;
  border-radius: 0.3125rem;
}

/*
.destacado-content a {
  background: #000;
  color: #fff;
  padding: .8rem 1.6rem;
  text-decoration: none;
}*/

@media (max-width: 1280px) {
  .destacado {
    flex-direction: column;
    padding: 1.5rem;
  }
  .destacado img,
  .destacado-content {
    width: 100%;
  }
  .destacado-content h2 {
    font-size: 1.6em;
  }
  .destacado-content p {
    font-size: 1.1em !important;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {

 .boxed-section .destacado {
    margin: 2.8125rem 0 0 0;
    background: #ffffff;
    padding: 0 !important;
    border-radius: 0.75rem;
  }

  .destacado {
    flex-direction: column;
    display: flex;
    align-items: center;
    padding: 0 1.5rem 0 1.5rem !important;
  }

  .destacado img{
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin-top: 1.5625rem;
    width: 85%;
    padding: 0;
    border-radius: 0.75rem;
  }

  .destacado-content {
    width: 100%;
    padding: 0 1rem 0 1rem;
  }

  .destacado-content h2 {
    font-size: 1.4em;
    color: #000000;
    font-weight: 400;
    line-height: normal;
  }

  .destacado-content span{
    font-size: 0.875rem;
    color: #555;
  }

  .destacado-content p {
    font-weight: 300;
    line-height: 1.5;
    font-size: 1.2em;
  }

  .destacado-unico{
    flex-direction: column !important;
  }

  .destacado-unico > img{
    width: 85% !important;
  }

  .destacado-unico .destacado-content{
    width: 100% !important;
  }

  .destacado:last-child:nth-child(odd){
    flex-direction: column !important;
  }

  .destacado:last-child:nth-child(odd) > img{
    width: 85% !important;
  }

  .destacado:last-child:nth-child(odd) .destacado-content{
    width: 100% !important;
  }
  
  .destacados-grid{
    grid-template-columns:1fr !important;
}

}

.destacado-content img{
    height:2.5rem !important;
    width:auto !important;
    max-height:2.5rem !important;
}


/*
.destacado:not(:last-child){
    border-bottom:1px solid #ddd;
}
*/

.destacado-unico{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:2.5rem;
}

.destacado-unico > img{
  width:50%;
  max-height:none;
}

.destacado-unico .destacado-content{
  width:50%;
}

.destacados-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:30px;
}



/* ========== CODIGO DE PRUEBA GRID ========== */
.destacado:last-child:nth-child(odd){
  grid-column:1 / -1;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:2.5rem;
}

.destacado:last-child:nth-child(odd) > img{
  width:50%;
  max-height:none;
}

.destacado:last-child:nth-child(odd) .destacado-content{
  width:50%;
}

/* ========== TITULO DE CATEGORUA LINKEABLE ========== */
.categoria-destacado{
    display:inline-block;
    font-size:0.875rem;
    color:#000;
    text-decoration:none;
    text-transform:uppercase;
    font-weight:600;
    margin-bottom:0.5rem;
}

.categoria-destacado:hover{
    text-decoration:underline;
}

/* ========== BANNERS ========== */
.banners-container {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  margin: 4rem 0;
}

.banner {
  width: 13.75rem;
  aspect-ratio: 1/1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  display: block;
  border-radius: 0.75rem;
  transition: 0.3s;
}

.banner:hover {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .banner {
    width: 100%;
    max-width: 18.75rem;
  }


 
}
