.services {
  padding: 3.5rem 1rem;
  background: #f3f5f9;
  color: #123456; /* ajusta color */
}
.services .container {
  max-width: 1400px; /* antes: 1200px */
  margin: 0 auto;
  padding: 0 0.75rem; /* menos padding lateral para aprovechar espacio */
}

.services-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  color: #203864;
}

.services-intro {
  color: #444;
  text-align: justify;
  font-size: 1rem;
  margin-bottom: 1.5rem; /* 👈 agrega espacio debajo del texto */
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ahora 2 columnas para tarjetas más anchas */
  gap: 2rem; /* un poco más de separación */
}

/* tarjeta */
.service-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px; /* antes 420px */
}

/* imagen superior */
.service-media {
  height: 200px; /* antes 160px */
  overflow: hidden;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* cuerpo */
.service-body {
  padding: 1.25rem;
  flex: 1 1 auto;
}
.service-body h3 {
  margin: 0;                     /* elimina saltos/enter antes/después del título */
  font-size: 1.05rem;
  line-height: 1.05;
}
.service-body p {
  margin: 0 0 0.5rem;
  color: #2f465f;
  font-size: 0.95rem;
}
.service-body ul {
  margin-top: 0.6rem;
  padding-left: 1.15rem;
  line-height: 1.6;
}


/* Asegura que el área del título reserve el mismo espacio en todas las tarjetas */
.service-heading {
  min-height: 3.2rem;            /* reserva espacio idéntico en todas las cards */
  display: flex;
  flex-direction: column;
  align-items: flex-start;       /* título alineado al inicio (arriba) */
  justify-content: flex-start;
  gap: 0.08rem;
  padding-top: 0;                /* quita espacio extra encima del título */
}

/* responsive */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
}
