/* 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;
}

/* ========== SLIDER  (TODO INLINE DESDE ACA ========== */
.slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}
.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;
}
.slide-text {
  background: #f4f6f8;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}

.slide-text h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: .6rem;
  color: #999;
  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: 5px;
}

/* .slide-text div {
  color: #444;
}

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

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

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

.btn-more:hover {
  background-color: var(--gris-boton-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 {
    width: 100%;
    height: 70vh;
    overflow: hidden;
  }
  .slide {
    flex-direction: column;
  }
  .slide-image {
    height: 60vh;
  }
  .slide-text {
    padding: 1.5rem;
    max-width: 100%;
  }
  .slide-text h1 {
    font-size: 1.8rem;
  }
  .slide-text h2 {
    font-size: 1.2rem;
  }
  .slide-text p {
    font-size: 1.1rem;
  }
  .btn-more {
    margin-top: 1.5rem;
    /*
    display: inline-block;
    background: #999;*/
    font-size: 1.4rem;
    /*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: 10%;
  right: .9375rem; /* derecha */
  /* transform: translateY(-50%); */
  z-index: 10;
  padding: .625rem .875rem;
  background-color: var(--gris-boton);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1rem;
}
#prevSlide:hover {
  background-color: var(--gris-boton-hover);
  transform: translateX(-3px);
}

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

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

/* ========== 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: 100%;
  aspect-ratio: 1/1;
}

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

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

/* MOBILE */

@media (max-width: 768px) {
  .square-section {
    grid-template-columns: 1fr;
  }
}

/* ========== POST DESTACADO ========== */
.destacado {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 4rem 0;
  background: #f4f6f8;
  padding: 2.5rem;
}

.destacado img {
  width: 50%;
  object-fit: cover;
}

.destacado-content {
  width: 50%;
}

.destacado-content h2 {
  margin-bottom: 1rem;
  font-size: 2em;
  color: #999;
}
.destacado-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 1.2em;
}
/*
.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) {
  .destacado {
    flex-direction: column;
    padding: 1.5rem;
  }
  .destacado img,
  .destacado-content {
    width: 100%;
  }
  .destacado-content h2 {
    font-size: 1.8em;
  }
  .destacado-content p {
    font-size: 1.4em;
  }
}

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

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

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

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