#services .caret {
  width: 72px;
  height: 4px;
  background: #1d3a6d;
  border-radius: 2px; /* redondea los extremos */
  margin: 0 auto 2rem auto;
}

#services_et, #services_fc {
    background: url(../img/services_decor_s.webp) no-repeat left;
    background-size: contain;
    background-color: white;
}

#services_ce, #services_af {
    background: url(../img/services_decor_inverse_s.webp) no-repeat right;
    background-size: contain;
    background-color: white;
}

#services_et, #services_fc,#services_ce, #services_af {
    text-align: center;
}


.service-box {
    box-shadow: 2px 8px 10px 0px rgba(92, 104, 152, 0.1);
    transition: all ease .25s;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
}

.service-box img{
    max-height: 363px;
    min-height: 150px;
    width: auto !important;
    display: block;
    margin: 0 auto;
}

@media (min-width: 576px) {
    #services_et, #services_fc {
        text-align: right;
    }
    #services_ce, #services_af {
        text-align: left;
    }
    .readmore,
    #services .service-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      margin: 0 auto;
      padding: 8px 18px;
      border-radius: 6px;
    }
}

@media (min-width: 768px){
    #services_et, #services_fc {
        text-align: right;
    }
    #services_ce, #services_af {
        text-align: left;
    }
}

@media (min-width: 992px){
    .service-box img{
        max-height: 330px;
        min-height: 100px;
    }
    #services_et, #services_fc {
        text-align: right;
    }
    #services_ce, #services_af {
        text-align: left;
    }
}

/* ==== ESTILO BOTONES SERVICIOS (PRIORIDAD ALTA) ==== */
#services .service-toggle {
  display: inline-block;
  width: auto;
  background-color: #183059;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

/* Hover */
#services .service-toggle:hover {
  background-color: #1f4173;
  transform: translateY(-2px);
}


/* ===== ECO2 · SERVICES (consolidado) ===== */

/* — Fondo por breakpoint (una base + 2 ajustes) — */
#services{
  background: url(../img/services_decor_m.webp) no-repeat left;
  background-size: contain;
  background-color: #fff;
}
@media (min-width: 576px){
  #services{ background-image: url(../img/services_decor_l.webp); }
}
@media (min-width: 768px){
  #services{ background-image: url(../img/services_decor.webp); }
}

/* — Título de sección — */
#services h1{
  font-family: 'Varela Round', sans-serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 3rem;
  color: #555;
  text-transform: none;
  padding-top: 2rem;
}
@media (min-width: 768px){
  #services h1{ font-size: 3.5rem; line-height: 4rem; padding-top: 2.5rem; }
}
@media (min-width: 992px){
  #services h1{ font-size: 4rem; line-height: 4rem; padding-top: 3rem; }
}

/* ==== Título principal de sección Servicios ==== */
#services h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #3b4150; /* gris oscuro, menos saturado */
  text-align: center;
  margin-bottom: 0.5rem;
}

/* — Tarjetas: título y párrafo — */
.services_title{
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.4rem;
  color: #0b1a39;
  text-transform: none;
  margin-bottom: 0;
}
#services p{
  font-family: 'Nunito', sans-serif;
  color: #0b1a39;
  font-weight: 500;
}
@media (min-width: 768px){
  .services_title{ font-size: 2rem; line-height: 2rem; }
}
@media (min-width: 992px){
  .services_title{ font-size: 2.2rem; line-height: 2.4rem; }
}

/* — Botón "Ver más..." — */
.readmore{
  box-shadow: none;
  border-radius: 0;
  background-color: #1d365e;
  display: block;
  font-size: 1rem;
  line-height: 1rem;
  padding: 0.5rem 0.75rem;
  margin: 0 auto;
}
.readmore:hover,
.readmore:focus{
  background-color: #1d365e;
  box-shadow: none;
}
.readmore:active{
  outline: none;
  box-shadow: none;
  color: #1d365e;
  background-color: #fff;
}
@media (min-width: 768px){
  .readmore{ font-size: 1.25rem; line-height: 1.25rem; padding: 0.75rem 1rem; margin: 0 1rem; }
}
@media (min-width: 992px){
  .readmore{ font-size: 1.4rem; line-height: 1.4rem; padding: 0.85rem 1.15rem; }
}

/* ==== Títulos de cada tarjeta de servicio ==== */
#services .service-card h3 {
font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 1.6vw, 1.6rem); /* intermedio entre h2 y párrafo */
  color: #1d3a6d; /* azul corporativo */
  text-align: center;
  margin-bottom: 0.75rem;
}

/* ==== Descripciones dentro de tarjetas ==== */
#services .service-card p {
  font-size: 1rem;
  color: #0b1a39;
  text-align: center;
}

/* === Servicios: igualar tamaño exacto con Nosotros y Contacto === */
#services .section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem); /* ← subido ligeramente */
  line-height: 1.1;
  color: #3b4150;
  text-align: center;
  margin-bottom: 0.5rem;
  display: block;
  width: 100%;
}

@media (min-width: 1200px) {
  #services .section-title {
    font-size: 4rem; /* igual que Contacto/Nosotros */
  }
}

/* Tamaño de los iconos de servicios (los "man") */
#services .service-card img {
  width: 140px;   /* puedes probar 120, 130, 140... */
  height: auto;   /* mantiene la proporción original, sin deformar */
}

/* Igualar altura de columnas de servicios */
#services .row > [class*="col-"] {
    display: block;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: auto;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.service-card .card-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-description {
    min-height: 80px; /* Ajusta según lo que necesites */
}

.service-extra {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#services {
    position: relative;
    z-index: 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
    align-items: stretch; /* 🔥 IMPORTANTE: evita que se estiren y deformen */
}

.services-section {
    position: relative;
    z-index: 1;
}

.services-section::before {
    z-index: -1 ; /* 🔥 fuerza el sombreado detrás */
}

/* En la fila de servicios, que las columnas NO se estiren todas a la misma altura */
#services .row {
  align-items: flex-start;   /* en vez de stretch */
}
