/* ================================
   TITULOS GENERALES DE SECCIÓN
   ================================ */

.section__title{
  text-align:center;
  font-size:2rem;
  font-weight:700;
  color:#00295E;
  margin:0 0 40px;
  font-family:"Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Por si no está definido en otros CSS */
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

/* ================================
   HERO ESTACIONES
   ================================ */

.estaciones-hero{
  background:linear-gradient(135deg,#f7f9fc,#e7f4ee);
  padding:70px 0 60px;
}

.estaciones-hero__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:center;
}

.estaciones-hero__subtitle{
  margin:12px 0 0;
  font-size:1rem;
  color:#4a5670;
}

.estaciones-hero__text{
  margin:0;
  font-size:0.98rem;
  line-height:1.7;
  color:#4a5670;
}

/* ================================
   SECCIÓN LISTA DE ESTACIONES
   ================================ */

.estaciones-list{
  padding:70px 0;
  background:#ffffff;
}

.estaciones-list__grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:30px;
}

/* ================================
   TARJETAS ESTACIÓN (BASE)
   ================================ */

.est-card{
  background:#ffffff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  border:1px solid rgba(11,20,40,0.05);
  position:relative;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.est-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,0.16);
  border-color:rgba(0,160,51,0.3);
}

/* Imagen superior: se define la imagen por inline style en el HTML */

.est-card__img{
  width:100%;
  height:180px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  position:relative;
}

/* overlay suave en hover */
.est-card__img::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.35), transparent 55%);
  opacity:0;
  transition:opacity .2s ease;
}

.est-card:hover .est-card__img::after{
  opacity:1;
}

/* ================================
   CONTENIDO TARJETA
   ================================ */

.est-card__content{
  padding:20px 20px 22px;
  display:flex;
  flex-direction:column;
  height:100%;
}

.est-card__title{
  margin:0;
  font-size:1.2rem;
  font-weight:700;
  color:#00295E;
}

.est-card__location{
  margin:5px 0 12px;
  color:#64718a;
  font-size:0.9rem;
}

/* LISTA DE SERVICIOS (CHIPS ICONO + TEXTO) */

.est-card__tags{
  padding:0;
  list-style:none;
  margin:0 0 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.est-card__tags li{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:0.88rem;
  color:#00295E;
  background:#f2f4f7;
  padding:6px 10px;
  border-radius:999px;
}

/* DESCRIPCIÓN */

.est-card__desc{
  font-size:0.9rem;
  line-height:1.5;
  color:#4a5670;
  margin-bottom:18px;
}

/* BOTÓN CTA (centrado) */

.est-card__cta{
  margin-top:auto;
  align-self:center;
  display:inline-block;
  padding:10px 26px;
  border-radius:999px;
  background:#00A033;
  color:#ffffff;
  font-size:0.95rem;
  font-weight:600;
  text-decoration:none;
  transition:background .18s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow:0 10px 24px rgba(0,0,0,0.15);
}

.est-card__cta:hover{
  background:#008429;
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(0,0,0,0.22);
}

.est-card__cta:active{
  transform:translateY(0);
  box-shadow:0 8px 18px rgba(0,0,0,0.2);
}

/* ================================
   VERSIÓN PREMIUM / DESTACADA
   (Ruta 39 como estación clave)
   ================================ */

.est-card--ruta39{
  border:1px solid rgba(0,160,51,0.5);
  box-shadow:0 18px 40px rgba(0,160,51,0.18);
  background:linear-gradient(145deg,#ffffff,#f5fbf8);
}

/* badge arriba a la izquierda */

.est-card--ruta39::before{
  content:"Estación clave";
  position:absolute;
  top:14px;
  left:14px;
  padding:4px 10px;
  border-radius:999px;
  font-size:0.75rem;
  font-weight:600;
  letter-spacing:0.3px;
  text-transform:uppercase;
  background:linear-gradient(135deg,#00A033,#005aa1);
  color:#ffffff;
  box-shadow:0 8px 18px rgba(0,0,0,0.22);
}

/* un poquito más de efecto en hover para la premium */

.est-card--ruta39:hover{
  transform:translateY(-7px);
  box-shadow:0 24px 50px rgba(0,160,51,0.25);
}

/* ================================
   RESPONSIVE
   ================================ */

@media(max-width:900px){
  .estaciones-hero__inner{
    grid-template-columns:1fr;
  }

  .estaciones-list__grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .section__title{
    font-size:1.7rem;
    margin-bottom:30px;
  }

  .estaciones-hero{
    padding:50px 0 40px;
  }

  .estaciones-list{
    padding:50px 0;
  }

  .estaciones-list__grid{
    grid-template-columns:1fr;
  }
}
