.image-row {
  display: flex;      
  flex-wrap: wrap;     /* permite que los bloques bajen a otra fila */
  gap: 20px;           /* espacio entre cada bloque */
  margin-top: 200px; 
  justify-content: center;
  background-color: #d5cebb;   
  padding: 30px;
  padding-bottom: 60px;
  width: fit-content;
  border-radius: 20px;
  left: 10%;
  position: relative;
}

/*  TARJETAS */
.item {
  transition: all 0.3s ease;
  border-radius: 20px;
  text-align: center;
}

/* Hover tarjeta */
.item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/*  IMÁGENES */
.image-row img {
  width: 270px;           
  height: 200px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

/* Zoom suave */
.item:hover img {
  transform: scale(1.05);
}

/* BODY */
body {
  margin: 0;
  padding: 0;
  background-color:#2C3639;
  font-family: Arial, sans-serif;
}

/* CONTENEDORES */
.contenedor2 {
  position: relative;
  display: inline-block;
  width: 100%;
}

.contenedor {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* TEXTO PRINCIPAL */
.textoPrincipal {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(239, 225, 225);
  font-size: 3em;
  font-weight: bold;
  text-shadow: 2px 2px 5px black;
  text-align: center;
  width: 80%;
  transition: all 0.3s ease;
}

/* efecto leve */
.textoPrincipal:hover {
  transform: translate(-50%, -55%);
}

/* IMAGEN PORTADA */
#portadaRutas {
  position: relative;
  width: 100%;
  object-fit: cover;
  height: 300px;
  margin-top: 150px;
}

/*  BOTÓN */
.verMas {
  background-color: #A27B5C;
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover botón */
.verMas:hover {
  background-color: #3B5249;
  transform: scale(1.05);
}

/* Click botón */
.verMas:active {
  transform: scale(0.95);
}