/* ================== SECCIÓN GENERAL ================== */

.sostenibilidad-section {
  background-color: #f7f7f7;
}

/* Banner principal */
.sost-hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* ================== ÁREAS DE ACCIÓN ================== */

.sost-areas {
  background-color: #ffffff;
  padding: 3rem 0 4rem;
}

/* Título */
.sost-areas-title {
  font-size: 2rem;
  font-weight: 700;
  color: #176332;
  margin-bottom: 2.5rem;
}

/* Cards (imágenes) */
.sost-area-card img {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Responsive título Áreas */
@media (max-width: 575.98px) {
  .sost-areas-title {
    font-size: 1.6rem;
  }
}

/* ================== SECCIÓN ODS ================== */

.sost-ods-section {
  background-color: #ffffff;
  padding: 3rem 0 4rem;
}

.sost-ods-image img {
  border-radius: 12px;
}

/* ================== ENFOQUES ESTRATÉGICOS ================== */

.sost-enfoques-section {
  background-color: #ffffff;
}

/* Parte superior blanca */
.sost-enfoques-header {
  background-color: #ffffff;
  padding: 3rem 0 4rem;
}

/* Subtítulo */
.sost-enfoques-subtitle {
  font-size: 1.1rem;
  color: #176332;
  margin-bottom: 2rem;
}

/* Cards */
.sost-enfoque-card img {
  border-radius: 28px;
}

/* Parte inferior verde */
.sost-enfoques-body {
  background-color: #176332;
  margin-top: -240px; /* sube el bloque verde */
  padding-top: 160px; /* evita que se tape el contenido */
  padding-bottom: 3rem;
}

/* Título blanco */
.sost-areas-title--white {
  color: #ffffff;
}

/* Tarjetas de pilares */
.sost-pilar-card {
  background-color: transparent;
  border: 1px solid #ffffff;
  border-radius: 22px;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

/* Titulares de pilar */
.sost-pilar-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Subtítulos dentro del pilar Social */
.sost-pilar-subtitle {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Listas */
.sost-pilar-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.sost-pilar-list li {
  margin-bottom: 0.35rem;
}

/* Imagen de ODS dentro de cada pilar */
.sost-pilar-img {
  max-width: 100%;
}

/* Responsive Enfoques / Pilares */
@media (max-width: 767.98px) {
  .sost-enfoques-header {
    padding-bottom: 3rem;
  }

  .sost-enfoques-body {
    margin-top: -90px;
    padding-top: 120px;
  }

  .sost-pilar-img {
    margin-top: 1.5rem;
  }
}

/* ================== CIFRAS – ECONÓMICO ================== */

.sost-cifras-section {
  margin-top: 0;
}

/* Barra amarilla superior */
.sost-cifras-header {
  background-color: #f5c547;
  padding: 1.8rem 0;
}

.sost-cifras-title {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  color: #176332;
}

/* Contenedor de imagen + overlay */
.sost-cifras-body {
  position: relative;
}

/* Imagen de fondo */
.sost-cifras-bg,
.sost-cifras-social-bg,
.sost-ambiental-bg {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay Económico */
.sost-cifras-body-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.45)
  );
  color: #ffffff;
  padding: 2.5rem 0 3rem;
}

/* Texto grande "Económico" */
.sost-cifras-economico {
  font-size: 5.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  margin: 0 0 10rem 0;
}

/* Tarjetas verdes Económico */
.sost-cifras-card {
  background-color: rgba(7, 84, 41, 0.9);
  padding: 2.4rem 2rem 2.6rem;
  text-align: center;
  min-height: 500px;
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Iconos compartidos Económico / Social / Ambiental */
.sost-cifras-icon,
.sost-social-icon,
.sost-ambiental-icon {
  margin-bottom: 0.8rem;
}

.sost-cifras-icon img,
.sost-social-icon img,
.sost-ambiental-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Número principal Económico */
.sost-cifras-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.sost-cifras-number span {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Descripción Económico */
.sost-cifras-desc {
  margin-top: 0.7rem;
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* Responsive Económico */
@media (max-width: 1199.98px) {
  /* sólo afecta tablets/laptops pequeñas */
  .sost-cifras-economico {
    font-size: 4.2rem;
    margin-bottom: 4rem;
  }
}

@media (max-width: 991.98px) {
  .sost-cifras-economico {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
  }

  .sost-cifras-card {
    min-height: 220px;
  }
}

@media (max-width: 767.98px) {
  .sost-cifras-header {
    padding: 1.4rem 0;
  }

  .sost-cifras-title {
    font-size: 1.7rem;
  }

  .sost-cifras-body-overlay {
    padding: 2rem 0 2.5rem;
  }

  .sost-cifras-economico {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .sost-cifras-card {
    padding: 1.6rem 1.4rem 1.9rem;
    min-height: 210px;
  }
}

/* ================== CIFRAS – SOCIAL ================== */

.sost-cifras-social-section {
  margin-top: 0;
}

.sost-cifras-social-body {
  position: relative;
}

/* Overlay Social */
.sost-cifras-social-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.5)
  );
  color: #ffffff;
  padding: 2.5rem 0 3rem;
}

/* Título "Social" */
.sost-social-title {
  font-size: 5.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  margin: 0 0 0.5rem 0;
}

/* Tarjetas Social */
.sost-social-card {
  background-color: rgba(7, 84, 41, 0.9);
  padding: 2.2rem 2rem 2.4rem;
  text-align: center;
  min-height: 260px;
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Número / frase principal Social */
.sost-social-number {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
}

/* Descripción Social */
.sost-social-desc {
  margin: 0;
  font-size: 1rem;
}

/* Responsive Social */

@media (max-width: 1199.98px) {
  .sost-social-title {
    font-size: 4.2rem;
  }
}

@media (max-width: 991.98px) {
  .sost-cifras-social-overlay {
    padding: 2rem 0 2.5rem;
  }

  .sost-social-title {
    font-size: 3rem;
    text-align: left;
    margin-top: 1.8rem;
  }

  .sost-social-card {
    min-height: 230px;
  }
}

@media (max-width: 767.98px) {
  .sost-social-card {
    padding: 1.7rem 1.4rem 2rem;
    min-height: 210px;
  }

  .sost-social-number {
    font-size: 1.7rem;
  }

  .sost-social-desc {
    font-size: 0.95rem;
  }
}

/* ================== SECCIÓN AMBIENTAL ================== */

.sost-ambiental-section {
  margin-top: 0;
}

.sost-ambiental-body {
  position: relative;
}

/* Overlay Ambiental centrado verticalmente */
.sost-ambiental-overlay {
  position: absolute;
  inset: 0;
  padding: 3rem 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.45)
  );
  color: #ffffff;
  display: flex;
  align-items: center;
}

.sost-ambiental-overlay .container {
  width: 100%;
}

/* Título "Ambiental" */
.sost-ambiental-title {
  font-size: 5.2rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Tarjetas Ambientales */
.sost-ambiental-card {
  background-color: rgba(7, 84, 41, 0.9);
  padding: 2.2rem 2rem 2.4rem;
  color: #ffffff;
  text-align: center;
  border-radius: 4px;
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sost-ambiental-card--wide {
  text-align: left;
  align-items: stretch;
}

/* Texto de las tarjetas superiores */
.sost-ambiental-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.sost-ambiental-card-text {
  margin: 0;
  font-size: 1rem;
}

/* Título/subtítulo del card grande */
.sost-ambiental-card-main-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: left;
  margin: 0 0 0.2rem 0;
}

.sost-ambiental-card-subtitle {
  margin: 0 0 1.4rem 0;
  font-size: 1rem;
}

/* Métricas 2x2 */
.sost-ambiental-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 1.2rem;
}

.sost-ambiental-metric {
  display: flex;
  align-items: center;
}

.sost-ambiental-metric-icon {
  margin-right: 0.9rem;
  flex-shrink: 0;
}

.sost-ambiental-metric-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.sost-ambiental-metric-text {
  font-size: 1rem;
}

.sost-ambiental-metric-value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.sost-ambiental-metric-value span {
  font-weight: 700;
}

.sost-ambiental-metric-note {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive Ambiental */

@media (max-width: 1199.98px) {
  .sost-ambiental-title {
    font-size: 4.2rem;
  }
}

@media (max-width: 991.98px) {
  .sost-ambiental-title {
    font-size: 3rem;
    margin-bottom: 1.2rem;
  }

  .sost-ambiental-card {
    padding: 1.8rem 1.4rem 2rem;
  }

  .sost-ambiental-card-main-title,
  .sost-ambiental-card-subtitle {
    text-align: center;
  }

  .sost-ambiental-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .sost-ambiental-overlay {
    padding: 2rem 0;
  }

  .sost-ambiental-title {
    text-align: left;
  }
}

/* ======= FIX MOBILE STACKING FOR IMAGE-BG SECTIONS ======= */
/* Secciones con imagen de fondo: Económico, Social y Ambiental */

@media (max-width: 991.98px) {
  /* Los contenedores siguen siendo relativos */
  .sost-cifras-body,
  .sost-cifras-social-body,
  .sost-ambiental-body {
    position: relative;
  }

  /* La imagen pasa atrás y ocupa toda la altura del contenido */
  .sost-cifras-bg,
  .sost-cifras-social-bg,
  .sost-ambiental-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }

  /* Overlays pasan a ser relativos: la altura la manda el contenido */
  .sost-cifras-body-overlay,
  .sost-cifras-social-overlay {
    position: relative;
    inset: auto;
  }

  /* Ambiental: dejamos de centrar con flex para que crezca normal */
  .sost-ambiental-overlay {
    position: relative;
    inset: auto;
    display: block;
    padding: 2rem 0 2.5rem; /* margen similar al desktop, pero adaptable */
  }

  .sost-ambiental-overlay .container {
    display: block;
  }
}

/* ===== Fix fondos grises en secciones con imagen (solo móviles) ===== */
@media (max-width: 991.98px) {
  /* Contenedores con imagen */
  .sost-cifras-body,
  .sost-social-body,
  .sost-ambiental-body {
    position: relative;
    overflow: hidden;
  }

  /* Imágenes de fondo */
  .sost-cifras-bg,
  .sost-social-bg,
  .sost-ambiental-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  /* Overlays encima */
  .sost-cifras-body-overlay,
  .sost-social-overlay,
  .sost-ambiental-overlay {
    position: relative;
    z-index: 1;
  }
}
/* ===== Fix fondos con imagen para móviles (Económico / Social / Ambiental) ===== */
@media (max-width: 991.98px) {
  /* Contenedores con imagen */
  .sost-cifras-body,
  .sost-cifras-social-body,
  .sost-cifras-ambiental-body {
    position: relative;
    overflow: hidden;
  }

  /* Imágenes de fondo */
  .sost-cifras-bg,
  .sost-cifras-social-bg,
  .sost-cifras-ambiental-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← esto elimina el fondo gris */
    z-index: 0;
  }

  /* Overlays encima */
  .sost-cifras-body-overlay,
  .sost-cifras-social-overlay,
  .sost-cifras-ambiental-overlay {
    position: relative;
    z-index: 1;
  }
}
