:root {
    --color-primario: #2C3639;
    --color-secundario: #d5cebb;
    --color-terciario: #a27b5c;
    --color-hoever: #3b5249;
}

/* BODY */
body {
  background-color: var(--color-primario);
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra todo */
}

/* CONTENEDOR PRINCIPAL */
.image-row {
  display: flex;
  flex-wrap: wrap; /* permite que bajen las imágenes */
  justify-content: center;
  gap: 50px;
  background-color: var(--color-secundario);
  padding: 30px 60px;
  border-radius: 20px;
  max-width: 1200px;
}

/* TARJETAS */
.item {
  transition: all 0.3s ease;
  border-radius: 20px;
  text-align: center;
  flex: 1 1 250px; /* se adaptan al espacio */
}

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

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

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

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

/* TEXTO PRINCIPAL */
.textoPrincipal {
  position: absolute;
  top: 10%;
  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;
}

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

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

.verMas:hover {
  background-color: var(--color-hoever);
  transform: scale(1.05);
}

.verMas:active {
  transform: scale(0.95);
}
