/* ===============================
   HOME SEGMENTOS
   =============================== */
#home-segmentos {
  padding: 50px 0;
  position: relative;
  background: #000;
  z-index: 1;
}

#home-segmentos .container {
  position: relative;
  z-index: 2;
}

.titleSegmentos {
  font-size: 30px;
  color: #bababa;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.titleSegmentos span {
  display: inline-block;
}

.titleSegmentos span:after {
  display: block;
  content: "";
  width: auto;
  height: 5px;
  background: #f2d319;
}

/* === Fila principal === */
#home-segmentos .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -20px;
}

/* === Columnas (modo escritorio) === */
#home-segmentos .col {
  flex: 1 1 25%;
  max-width: 25%;
  padding: 0 20px;
  position: relative;
  font-family: 'Roboto Condensed', sans-serif;
  color: #ffffff;
  margin-bottom: 40px;
  text-align: center;
  box-sizing: border-box;
}

/* === Imagen y texto === */
#home-segmentos .col figure {
  padding: 25px 0;
  margin: 0 0 15px 0;
  overflow: hidden;
  border-radius: 12px;
}

#home-segmentos .col img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

#home-segmentos figure:hover img {
  transform: scale(1.05);
}

#home-segmentos .text {
  font-size: 22px;
  font-weight: 300;
  text-align: left;
  line-height: normal;
  font-style: italic;
}

#home-segmentos .text div {
  padding-top: 25px;
}

#home-segmentos .text a {
  color: #ffd600;
  font-weight: 600;
}

/* ===============================
   RESPONSIVE: TABLET (≤992px)
   =============================== */
@media (max-width: 992px) {
  #home-segmentos .col {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

/* ===============================
   RESPONSIVE: MÓVIL (≤768px)
   =============================== */
@media (max-width: 768px) {
  #home-segmentos .row {
    flex-direction: column;
    align-items: center;
  }

  #home-segmentos .col {
    flex: 1 1 100%;
    max-width: 500px;
    width: 100%;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  #home-segmentos figure {
    margin-bottom: 10px;
  }

  #home-segmentos figure img {
    width: 85%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 10px;
  }

  #home-segmentos .text {
    text-align: center;
    font-size: 20px;
  }

  #home-segmentos .text div {
    padding-top: 15px;
  }
}
