.elengy-servicios-hero {
    min-height: 310px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(6, 30, 48, .42),
            rgba(6, 30, 48, .12)
        ),
        url('https://elengygroup.com/wp-content/uploads/2026/09/breadcrumb-1.jpg')
        center center / cover no-repeat;
}

.elengy-servicios-hero__contenido {
    width: min(1140px, 90%);
    margin: 0 auto;
    color: #fff;
}


/* ==========================================
   ELENGY | SERVICIOS
   CSS ORIGINAL DEL HOME
========================================== */

/* ==========================================
   CONFIGURACIÓN GENERAL
========================================== */

#elengy-services-grid {
  --esg-navy: #102e4e;
  --esg-cyan: #11b8ca;

  width: 100%;
  padding: 105px 20px 115px;
  background: #0b3555;
  font-family: "Manrope", Arial, sans-serif;
  box-sizing: border-box;
}

#elengy-services-grid *,
#elengy-services-grid *::before,
#elengy-services-grid *::after {
  box-sizing: border-box;
}

/* ==========================================
   CONTENEDOR
========================================== */

#elengy-services-grid .esg-container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

/* ==========================================
   ENCABEZADO
========================================== */

#elengy-services-grid .esg-heading {
  max-width: 950px;
  margin: 0 auto 55px;
  text-align: center;
}

#elengy-services-grid .esg-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--esg-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

#elengy-services-grid .esg-subtitle span {
  width: 34px;
  height: 2px;
  background: var(--esg-cyan);
}

#elengy-services-grid .esg-heading h2 {
  margin: 0 0 25px;
  color: #ffffff;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.25;
  font-weight: 800;
}

#elengy-services-grid .esg-heading p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 16px;
  line-height: 28px;
}

/* ==========================================
   GRID DE SERVICIOS
========================================== */

#elengy-services-grid .esg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* ==========================================
   TARJETAS
========================================== */

#elengy-services-grid .esg-card {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 12px;
  background: #ffffff;
  border-radius: 9px;
  overflow: hidden;

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

#elengy-services-grid .esg-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 35px rgba(0,0,0,.16);
}

/* ==========================================
   ENLACE: OCUPA TODA LA TARJETA
========================================== */

#elengy-services-grid .esg-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   IMÁGENES
========================================== */

#elengy-services-grid .esg-image {
  width: 100%;
  height: 185px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #e9eef0;
}

#elengy-services-grid .esg-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}

#elengy-services-grid .esg-card:hover img {
  transform: scale(1.08);
}

/* ==========================================
   ÁREA INFERIOR CORREGIDA
========================================== */

#elengy-services-grid .esg-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 112px;
  flex: 1;
  padding: 19px 12px 15px;
}

/* ==========================================
   TÍTULOS UNIFORMES
========================================== */

#elengy-services-grid .esg-card-bottom h3 {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--esg-navy);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.25px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  transition: color .3s ease;
}

/* DETALLES COMO COMMISSIONING Y O & M */

#elengy-services-grid .esg-title-detail {
  display: inline;
  font-size: .9em;
  font-weight: 700;
  letter-spacing: 0;
}

/* ==========================================
   FLECHAS ALINEADAS
========================================== */

#elengy-services-grid .esg-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  justify-self: end;
  align-self: center;
  flex-shrink: 0;
  color: var(--esg-navy);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;

  transition:
    color .3s ease,
    transform .3s ease;
}

/* ==========================================
   HOVER
========================================== */

#elengy-services-grid .esg-card:hover h3,
#elengy-services-grid .esg-card:hover .esg-arrow,
#elengy-services-grid .esg-card-link:focus-visible h3,
#elengy-services-grid .esg-card-link:focus-visible .esg-arrow {
  color: var(--esg-cyan);
}

#elengy-services-grid .esg-card:hover .esg-arrow {
  transform: translateX(5px);
}

/* ==========================================
   ANIMACIÓN DE ENTRADA
========================================== */

#elengy-services-grid.esg-animate .esg-card {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity .65s ease,
    transform .65s ease,
    box-shadow .35s ease;
}

#elengy-services-grid.esg-animate.esg-visible .esg-card {
  opacity: 1;
  transform: translateY(0);
}

#elengy-services-grid.esg-animate.esg-visible
.esg-card:nth-child(2) {
  transition-delay: .1s;
}

#elengy-services-grid.esg-animate.esg-visible
.esg-card:nth-child(3) {
  transition-delay: .2s;
}

#elengy-services-grid.esg-animate.esg-visible
.esg-card:nth-child(4) {
  transition-delay: .1s;
}

#elengy-services-grid.esg-animate.esg-visible
.esg-card:nth-child(5) {
  transition-delay: .2s;
}

#elengy-services-grid.esg-animate.esg-visible
.esg-card:nth-child(6) {
  transition-delay: .3s;
}

/* HOVER DESPUÉS DE LA ANIMACIÓN */

#elengy-services-grid.esg-animate.esg-visible
.esg-card:hover {
  transform: translateY(-7px);
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

  #elengy-services-grid {
    padding: 85px 25px;
  }

  #elengy-services-grid .esg-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 22px;
  }

  #elengy-services-grid .esg-heading {
    margin-bottom: 45px;
  }

  #elengy-services-grid .esg-card-bottom {
    min-height: 105px;
  }

}

/* ==========================================
   MÓVIL
========================================== */

@media (max-width: 767px) {

  #elengy-services-grid {
    padding: 70px 20px;
  }

  #elengy-services-grid .esg-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #elengy-services-grid .esg-heading h2 {
    font-size: 30px;
  }

  #elengy-services-grid .esg-heading p {
    font-size: 14px;
    line-height: 25px;
  }

  #elengy-services-grid .esg-image {
    height: 210px;
  }

  #elengy-services-grid .esg-card-bottom {
    min-height: 95px;
    grid-template-columns: minmax(0,1fr) 32px;
    padding: 17px 10px 12px;
  }

  #elengy-services-grid .esg-card-bottom h3 {
    font-size: 17px;
    line-height: 1.35;
  }

  #elengy-services-grid .esg-arrow {
    width: 32px;
    font-size: 27px;
  }

}

/* ==========================================
   MOVIMIENTO REDUCIDO
========================================== */

@media (prefers-reduced-motion: reduce) {

  #elengy-services-grid .esg-card,
  #elengy-services-grid .esg-image img,
  #elengy-services-grid .esg-arrow {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

}