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

/* CONTENEDOR PRINCIPAL */
.image-row {
  display: flex;      
  justify-content: center; /* centra horizontal */
  margin-top: 200px; /* mejor que usar top */
  gap: 50px;
  background-color: white;   
  padding: 30px;
  padding-bottom: 60px;
  width: fit-content;
  border-radius: 20px;
}

/* 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: var(--color-hoever);
  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: black;
  font-size: 3em;
  font-weight: bold;
  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: var(--color-terciario);
  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: var(--color-hoever);
  transform: scale(1.05);
}

/* Click botón */
.verMas:active {
  transform: scale(0.95);
  background-color: #b86500;
}

/* CAJA DE TEXTO */
.text-box {
  width: 330px;
  max-height: 400px;
  overflow: auto;
  transition: all 0.3s ease;
}

/* pequeño efecto */
.text-box:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* títulos dentro */
.text-box h3 {
  color: yellow;
  transition: color 0.3s ease;
}

/* cambio leve */
.text-box:hover h3 {
  color: orange;
}