:root{
--white:#ffffff;
--red:#d72638;
--navy:#001f3f;
--beige-light:#fdf5e6;
--font-main:'Poppins',sans-serif;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(180deg,#ffffff,#f7f7f7);
  color: var(--navy);
  line-height: 1.6;
  padding-top: 107px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* CONTAINER */
.container{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  text-align: center;
}

/* TITULOS */
.section-title {
  font-size: 42px;
  color: var(--red);
  margin-bottom: 20px;
  font-weight: 600;
  margin-top:45px;
}

.section-subtitle {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 70px;
}

.card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card h3 {
  color: var(--red);
  font-size: 22px;
  margin-bottom: 10px;
}

/* MAPA + BADGE */
.routes-map {
  margin: 80px 0 100px;
  display: flex;
  align-items: stretch; /* 👈 ESTO ES CLAVE */
  gap:100px;
}

.map-container,
.routes-badge {
  flex: 1;
}

.map-container {
  background: #f5f5f5;
  max-width: 600px;
  width: 100%;
  display: flex;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* 👈 esto hace magia */
  border-radius: 16px;
}

.routes-badge {
  max-width: 420px;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-title {
  font-size: 24px;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
}

.badge-text {
  font-size: 15px;
  margin-bottom: 20px;
}

.routes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.routes-list span {
  background: var(--beige-light);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}


/* RESPONSIVE */
@media (max-width: 992px) {
  .routes-map {
    flex-direction: column;
    text-align: center;
  }

  .routes-badge {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .header {
    padding: 15px 0;
  }

  .logo {
    height: 60px;
  }

  nav ul {
    gap: 10px;
    flex-wrap: wrap;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .card {
    padding: 25px 20px;
  }
}

/* ===== MEJORA VISUAL TEXTOS RUTAS ===== */

/* subtítulo principal */
.section-subtitle{
  font-size: 18px;
  line-height: 1.9;
  max-width: 800px;
  margin: 0 auto 70px;
  color: #2c3e50;
}

/* título secundario rojo */
.badge-title{
  font-size: 33px;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* párrafo debajo del título */
.badge-text{
  font-size: 19px;
  line-height: 1.9;
  max-width: 850px;
  margin: 0 auto -38px;
  color: #34495e;
}

/* separación general entre bloques */
.main-container h2{
  margin-top: -39px;
}

/* mejor lectura en general */
.main-container p{
  text-wrap: balance;
}

.routes-list span {
    display: block;   /* cada span se comporta como caja */
    width: 100%;      /* 👈 todos ocupan el mismo ancho */
}

.badge-title {
    font-weight: 700;             /* más sólido, profesional */
    text-align: center;           /* centrado para darle presencia */
    color: var(--red);            /* 👈 usa tu rojo corporativo */
    border-bottom: 3px solid var(--red); /* línea roja debajo */
    padding-bottom: 10px;         /* espacio entre texto y línea */
    margin-bottom: 20px;          /* separación con lo que sigue */
}
