/* Alimentación con Propósito - Home (maquetación estática) */

/* ==========================================================================
   Fuentes (locales) - template/css/fonts/
   ========================================================================== */
@font-face {
  font-family: "Maven Pro";
  src: url("fonts/MavenPro-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-ExtraLightItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syncopate";
  src: url("fonts/Syncopate-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syncopate";
  src: url("fonts/Syncopate-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --acp-teal-900: #0b6f7a;
  --acp-teal-700: #09adb6;
  --acp-teal-600: #18a5ab;
  --acp-mint-200: #bfeef0;
  --acp-mint-100: #dbf7f8;
  --acp-ink: #0c2f3a;
  --acp-soft: #6b7d86;
  --acp-navy: #0c3a62;
  --acp-sky: #bfe9f1;
  --acp-green: #8ed06b;
  --acp-card: rgba(255, 255, 255, 0.85);
  --acp-shadow: 0 20px 60px rgba(4, 33, 44, 0.14);
  --acp-font-body: "Maven Pro", "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --acp-font-ui: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --acp-font-display: "Syncopate", "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--acp-font-body);
  color: var(--acp-ink);
  background: linear-gradient(180deg, #f6fbfc 0%, #ffffff 45%, #f7fbfc 100%);
}

/* UI / Headings */
.navbar-acp .nav-link,
.btn-acp,
.btn {
  font-family: var(--acp-font-display);
}

.section-title,
.hero__title,
.about__title,
.news-card__title,
.footer-title {
  font-family: var(--acp-font-display);
}

/* Título display (diseño) */
.news__title {
  font-family: var(--acp-font-display);
}

.page {
  padding-top: 43px; /* header fixed */
  position: relative;
  z-index: 0;
}

/* Degradado lateral izquierdo (efecto transitivo) - oculto en móvil para evitar que se vea mal */
.page::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 45vw);
  background: linear-gradient(
    135deg,
    #e8f8fa 0%,
    #b2ebf2 35%,
    #80deea 70%,
    rgba(128, 222, 234, 0.35) 90%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 991.98px) {
  .page::before {
    display: none;
  }
}

.text-soft {
  color: var(--acp-soft);
  line-height: 1.65;
}

.section-title {
  font-weight: 700;
  color: var(--acp-teal-900);
  letter-spacing: 0.2px;
  text-transform: none;
  margin-bottom: 14px;
}

.section-title--light {
  color: var(--acp-teal-900);
}

/* NAVBAR */
.site-header {
  background: transparent;
}

.navbar-acp {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 0;
  transition: background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}

.navbar-acp::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.navbar-acp__inner {
  z-index: 1;
}

.navbar-acp.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(12, 47, 58, 0.08);
}

.navbar-acp .nav-link {
  position: relative;
  color: var(--acp-teal-600);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 18px 10px 12px;
  border-radius: 12px;
}

.navbar-acp .nav-link:hover {
  color: var(--acp-teal-900);
  background: rgba(24, 165, 171, 0.08);
}

.navbar-acp .nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 52px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: transparent;
}

.navbar-acp .nav-link.is-active {
  color: var(--acp-teal-900);
}

.navbar-acp .nav-link.is-active::before {
  left: 0;
  width: 100%;
  transform: none;
  background: #bfe85b;
  box-shadow: 0 6px 18px rgba(191, 232, 91, 0.45);
}

.navbar-acp__nav {
  gap: 34px;
}

/* Móvil: logo visible a la izquierda, hamburguesa a la derecha en verde */
@media (max-width: 991.98px) {
  .navbar-acp__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-acp__brand {
    display: block;
    line-height: 0;
  }

  .navbar-acp__brand img {
    height: 40px;
    width: auto;
    max-height: 44px;
    object-fit: contain;
  }

  .navbar-toggler {
    margin-left: auto;
    border-color: #a7e68e;
    color: #a7e68e;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(167, 230, 142, 0.4);
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23a7e68e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .navbar-acp__collapse {
    flex-basis: 100%;
  }
}

@media (min-width: 992px) {
  /* En el diseño el menú va alineado a la izquierda dentro de la zona segura */
  .navbar-acp__collapse {
    justify-content: flex-start;
  }

  .navbar-acp__brand {
    display: none;
  }

  .navbar-acp__nav {
    justify-content: flex-start;
    margin-left: 0;
    padding-left: 6px; /* pequeño respiro desde el borde del container */
  }
}

/* BUTTONS */
.btn-acp {
  background: var(--acp-teal-700);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 12px 25px rgba(19, 138, 147, 0.28);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
}

.btn-acp:hover {
  background: var(--acp-teal-900);
  color: #fff;
}

.btn-acp--pill {
  border-radius: 999px;
  padding: 12px 26px;
}

.btn-acp--outline {
  background: transparent;
  border-color: rgba(11, 111, 122, 0.35);
  color: var(--acp-teal-900);
  box-shadow: none;
}

.btn-acp--outline:hover {
  background: rgba(24, 165, 171, 0.10);
  border-color: rgba(11, 111, 122, 0.55);
  color: var(--acp-teal-900);
}

/* HERO */
.hero {
  position: relative;
  padding: 18px 0 34px;
  overflow: hidden;
  /* Igual que el menú: base blanca/translúcida */
  background: rgba(255, 255, 255, 0.92);
}

.hero::before {
  /* Mismo degradé del menú (limitado a la izquierda) */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__panel {
  position: relative;
  z-index: 1; /* encima del fondo general */
  border-radius: 26px;
  overflow: hidden;
  box-shadow: none;
  /* Mantiene la proporción del PNG y evita recortes */
  aspect-ratio: 1024 / 512;
  min-height: clamp(320px, 42vw, 520px);
}

.hero__panel-bg {
  content: "";
  position: absolute;
  inset: 0;
  /* transparente para evitar “borde” y dejar ver el degradé del hero */
  background-color: transparent;
  background-image: url("../img/banner-background.png");
  background-repeat: no-repeat;
  background-size: contain; /* clave: que se vea completa */
  /* En el mock el fondo “cae” hacia abajo y se percibe el recorte inferior */
  background-position: center top;
  pointer-events: none;
}

/* Banner específico para la interna Aliados */
.hero--aliados .hero__panel-bg {
  background-image: url("../img/banner-aliados.png");
}

/* En esta interna se mantienen el logo y la molécula (como en el home) */
.hero--aliados .hero__panel-molecule {
  opacity: 0.22; /* un poco más sutil para no competir con el título */
}

.hero--aliados .hero__panel-inner {
  padding: 0 22px; /* sin “zona segura” del home */
  height: 100%;
  display: flex;
  align-items: center; /* centra el cajón verticalmente */
}

.hero--aliados .hero__panel-inner .row {
  width: 100%;
}

.hero--aliados .hero__card--banner {
  border-radius: 26px 0 0 26px;
  padding: 80px 52px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 0;
  box-shadow: none;
  text-align: center;
  max-width: 460px;
  margin-left: auto;
  margin-right: -30px;
}

.hero--aliados .hero__card--banner::before {
  top: 34px;
  width: 70px;
  box-shadow: none;
}

.hero--aliados .hero__card--banner::after {
  bottom: 34px;
  width: 70px;
}

.hero--aliados .hero__title {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 18px);
  letter-spacing: 0.8px;
  line-height: 1.12;
}

.hero__panel-inner {
  position: relative;
  z-index: 1; /* detrás de la molécula; solo el cajón (título y texto) */
  padding: 85px 15px 50px;
}

.hero__panel-logo {
  position: absolute;
  z-index: 2;
  left: 34px;
  top: 28px;
  width: 260px;
  max-width: 42%;
  height: auto;
  opacity: 0.95;
}

.hero__panel-molecule {
  position: absolute;
  /* Molécula entre el cajón (z-index 1) y el botón (z-index 3) */
  z-index: 2;
  right: 36px;
  top: -10px;
  width: 320px;
  max-width: 34%;
  height: auto;
  opacity: 0.26;
  filter: saturate(1.05) blur(0.1px);
  pointer-events: none;
}

/* Capa del botón encima de la molécula; misma cuadrícula que el cajón para que quede dentro visualmente */
.hero__panel-cta {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 85px 15px 50px;
  pointer-events: none;
  box-sizing: border-box;
}

.hero__panel-cta .row {
  width: 100%;
}

.hero__panel-cta .btn {
  pointer-events: auto;
}

/* Columna derecha: botón alineado como si estuviera dentro del cajón (mismo padding que el card) */
.hero__panel-cta__col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding-top: 255px;
  padding-right: 160px;
}

/* Solo home: el botón está en .hero__panel-cta; reservar espacio en el cajón */
.hero--home .hero__card--banner {
  padding-bottom: 56px;
}

.hero__photo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
}

.hero__card {
  position: relative;
  border-radius: 28px 0 0 28px;
  padding: 34px 27px;
  background: var(--acp-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 3; /* encima del ADN */
  border: 1px solid rgba(24, 165, 171, 0.10);
}

.hero__card--banner::before {
  /* acento verde superior (línea corta) */
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 54px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(191, 232, 91, 0.95);
  box-shadow: 0 10px 22px rgba(191, 232, 91, 0.24);
  pointer-events: none;
}

.hero__card--banner::after {
  /* líneas verde/amarillas cortas como acento */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 56px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(191, 232, 91, 0.9);
  box-shadow: 0 10px 22px rgba(191, 232, 91, 0.28);
}

.hero__title {
  position: relative;
  /* En el diseño el título es más pequeño y menos oscuro */
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.15;
  letter-spacing: 0.6px;
  font-weight: 800;
  color: var(--acp-teal-700);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero__lead {
  position: relative;
  color: rgba(12, 47, 58, 0.62);
  line-height: 1.7;
  margin: 0 0 15px;
}

@media (max-width: 991.98px) {
  /* HERO (mobile): prioriza legibilidad y evita “bordes”/espacios del fondo */
  .hero__panel {
    aspect-ratio: auto; /* en móvil, que el alto lo defina el contenido */
    min-height: 0;
  }

  .hero__panel-bg {
    background-size: cover; /* llena el panel en móvil (sin bordes) */
    background-position: center top;
  }

  /* Home móvil: banner vertical como en el diseño; cuadro de texto sobre la camiseta (parte baja) */
  .hero--home .hero__panel {
    aspect-ratio: 9 / 16;
    min-height: min(85vh, 720px);
  }

  .hero--home .hero__panel-bg {
    background-image: url("../img/banner-home-mobile.png");
    background-size: 100% auto;
    background-position: center center;
  }

  .hero--home .hero__panel-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 16px 63px; /* más margen abajo para que el cajón quede dentro del banner (+15px) */
  }

  .hero--home .hero__panel-inner .row {
    width: 100%;
    margin: 0;
  }

  .hero--home .hero__panel-inner .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero--home .hero__card--banner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 16px 20px;
    padding-bottom: 56px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
  }

  /* En móvil el CTA debe ocupar toda la altura para que el botón quede abajo, dentro del cajón */
  .hero--home .hero__panel-cta {
    display: flex;
    flex-direction: column;
    padding: 0 16px 63px;
  }

  .hero--home .hero__panel-cta .row {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }

  .hero--home .hero__panel-cta__col {
    padding: 0 16px 20px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero__panel-inner {
    /* más aire arriba para que el logo no se pegue al texto */
    padding: clamp(112px, 28vw, 150px) 16px 18px;
  }

  /* Aliados móvil: mismo enfoque que Home (banner vertical, imagen móvil, cajón abajo) */
  .hero--aliados .hero__panel {
    aspect-ratio: 9 / 16;
    min-height: min(85vh, 720px);
  }

  .hero--aliados .hero__panel-bg {
    background-image: url("../img/banner-aliados-mobile.png");
    background-size: 100% auto;
    background-position: center center;
  }

  .hero--aliados .hero__panel-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 16px 63px;
    height: auto;
    align-items: initial;
  }

  .hero--aliados .hero__panel-inner .row {
    width: 100%;
    margin: 0;
  }

  .hero--aliados .hero__panel-inner .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Aliados móvil: cajón blanco translúcido, esquinas muy redondeadas, líneas verdes, texto centrado */
  .hero--aliados .hero__card--banner {
    width: 100%;
    max-width: none;
    margin: 0;
    top: -30px;
    padding: 80px 20px 80px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 28px;
    border: 0;
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.06),
      6px 6px 28px rgba(24, 165, 171, 0.14);
    text-align: center;
  }

  .hero--aliados .hero__card--banner::before,
  .hero--aliados .hero__card--banner::after {
    display: block;
  }

  .hero--aliados .hero__card--banner::before {
    top: 24px;
    width: 56px;
    height: 3px;
    background: rgba(191, 232, 91, 0.95);
    box-shadow: 0 6px 16px rgba(191, 232, 91, 0.28);
  }

  .hero--aliados .hero__card--banner::after {
    bottom: 24px;
    width: 56px;
    height: 3px;
    background: rgba(191, 232, 91, 0.9);
    box-shadow: 0 6px 16px rgba(191, 232, 91, 0.24);
  }

  .hero--aliados .hero__title {
    color: var(--acp-teal-700);
    text-align: center;
    font-weight: 800;
    font-size: clamp(15px, 4vw, 20px);
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .hero__panel-logo {
    display: none; /* oculto en móvil (el logo va en el header) */
  }

  .hero__panel-molecule {
    display: none; /* el ADN ensucia y compite con el texto en móvil */
  }

  .hero__card {
    border-radius: 22px; /* en móvil, esquinas consistentes */
    padding: 22px 18px 20px;
    text-align: left;
  }

  /* En mobile estas líneas se montan sobre el contenido */
  .hero__card--banner::before,
  .hero__card--banner::after {
    display: none;
  }

  .hero__title {
    font-size: clamp(13px, 4.2vw, 20px);
    letter-spacing: 0.4px;
  }

  .hero__lead {
    font-size: 11px;
    line-height: 1.3;
  }
}

@media (min-width: 992px) {
  /* En desktop, el cajón no debe ocupar todo el ancho del col */
  .hero__card--banner {
    max-width: 520px;
    margin-left: auto;
    padding: 44px 44px 56px;
    /* más “blanco vidrio” del mock */
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    text-align: center;
  }

  .hero__panel-molecule {
    right: 54px;
    top: 28px;
    width: 440px;
    opacity: 0.26;
  }

}

/* ABOUT */
.about {
  position: relative;
  padding: 34px 0 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.about::before {
  /* Degradé azul a la izquierda (mismo tono del menú) */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.about__panel {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  overflow: hidden;
  /* Background del diseño (debe existir en template/img/) */
  background-color: transparent;
  background-image: url("../img/banner-quienes-somos.png");
  background-repeat: no-repeat;
  /* Mostrar el banner completo, ocupando el 100% del ancho */
  background-size: contain;
  background-position: center;
  aspect-ratio: 4930 / 1965;
  min-height: clamp(280px, 26vw, 440px);
}

.about__panel > .row {
  height: 100%;
  align-items: center; /* centra el bloque de texto verticalmente en la “zona segura” */
}

.about__content {
  /* Zona segura del texto (más parecida al diseño) */
  padding: clamp(34px, 4.2vw, 72px) clamp(28px, 4.2vw, 78px);
  max-width: 620px;
}

.about__title {
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--acp-teal-600);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: clamp(18px, 1.45vw, 26px);
}

.about__text {
  margin: 0 0 14px;
  color: rgba(12, 47, 58, 0.60);
  line-height: 1.8;
  font-size: 18px;
}

.about__text--lead {
  max-width: 560px; /* controla los saltos de línea como en el mock */
}

.about__strong {
  font-weight: 800;
  color: rgba(12, 47, 58, 0.68);
}

@media (min-width: 992px) {
  .about__content {
    padding-right: 0px;
    padding-left: 60px;
    padding-top: 70px;
  }
}

@media (max-width: 991.98px) {
  /* ABOUT (mobile): mismo enfoque del banner (legible + sin “vacíos”) */
  .about__panel {
    aspect-ratio: auto;
    min-height: 520px;
    padding-bottom: 63px; /* sube el cajón para que quede dentro del background (como en el hero) */
    background-image: url("../img/quienes-somos-mobile.png");
    background-size: cover; /* evita bordes/vacíos del contain en mobile */
    background-position: right center;
  }

  .about__panel > .row {
    align-items: flex-start;
  }

  .about__content {
    padding: 18px 16px;
    margin: 16px;
    max-width: 100%;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(24, 165, 171, 0.10);
    margin-top: 225px;
  }

  .about__title {
    font-size: clamp(16px, 4.4vw, 20px);
    margin-bottom: 10px;
  }

  .about__text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
}

.about__photo {
  border-radius: 26px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(24, 165, 171, 0.14), rgba(219, 247, 248, 0.6));
  box-shadow: 0 18px 50px rgba(12, 47, 58, 0.12);
}

.about__photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(1.05) contrast(1.02);
}

/* NEWS */
.news {
  position: relative;
  /* espacio superior para que el título (con margen negativo) se vea completo */
  padding: 78px 0 52px;
  overflow: visible; /* permite que el título sobresalga sin recortarse */
  background: rgba(255, 255, 255, 0.92);
  z-index: 2; /* si invade la sección anterior, queda por encima */
}

.news > .container {
  position: relative;
  z-index: 1; /* contenido por encima del degradé del section */
}

.news::before {
  /* Degradé azul a la izquierda (mismo tono del menú) */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.news__head {
  /* El título invade (sube) sobre la sección anterior */
  margin-top: -140px;
  padding: 0 0 10px;
  position: relative;
  z-index: 2;
}

.news__title {
  margin: 0;
  font-weight: 800;
  /* text-transform: uppercase; */
  letter-spacing: 1px;
  line-height: 1.05;
  color: #bfe85b; /* verde “mango” del diseño */
  font-size: clamp(22px, 2.2vw, 28px);
}

.news__panel {
  position: relative;
  border-radius: 28px;
  padding: 26px 56px 0 56px;
  overflow: hidden;
  /* Mismo “look” del sitio: base suave + leve degradé a la izquierda */
  background:
    linear-gradient(
      90deg,
      rgba(160, 222, 236, 0.35) 0%,
      rgba(204, 242, 249, 0.18) 42%,
      rgba(255, 255, 255, 0) 100%
    ),
    rgba(219, 247, 248, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(24, 165, 171, 0.14);
}

.news__panel::before,
.news__panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* En el diseño el degradé es angosto */
  width: 120px;
  pointer-events: none;
  opacity: 0.95;
  display: none; /* sin degradés laterales */
}

.news__panel::before {
  /* Izquierda: azul fuerte abajo-izq -> se degrada hacia arriba y derecha */
  left: 0;
  background: radial-gradient(
    220px 360px at 0% 100%,
    rgba(37, 106, 155, 0.55) 0%,
    rgba(37, 106, 155, 0) 72%
  );
}

.news__panel::after {
  /* Derecha: azul fuerte arriba-der -> se degrada hacia abajo e izquierda */
  right: 0;
  background: radial-gradient(
    220px 360px at 100% 0%,
    rgba(37, 106, 155, 0.55) 0%,
    rgba(37, 106, 155, 0) 72%
  );
}

.news__carousel {
  margin-top: 10px;
}

.news__carousel .carousel-item .row {
  align-items: stretch;
}

.news__control {
  width: 46px;
  height: 46px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.news__control.carousel-control-prev {
  left: -50px;
}

.news__control.carousel-control-next {
  right: -50px;
}

.news__control img {
  width: 44px;
  height: 44px;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px 18px 0 0; /* arriba redondo, abajo cuadrado */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(12, 47, 58, 0.12);
  border: 1px solid rgba(24, 165, 171, 0.10);
}

.news-card__img {
  width: 100%;
  height: 240px; /* más alta como en el diseño */
  object-fit: cover;
  object-position: center;
  background: #f3fafb;
  border-radius: 18px 18px 0 0; /* coincide con el borde superior de la card */
}

.news-card__img.is-contain {
  object-fit: contain;
  padding: 12px;
}

.news-card__body {
  padding: 18px 18px 42px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.news-card__title {
  position: relative;
  padding-left: 12px; /* espacio para la línea vertical */
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--acp-teal-900);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
}

.news-card__title_a {
  position: relative;
  padding-left: 12px; /* espacio para la línea vertical */
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--acp-teal-900);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
}

.news-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  height: calc(100% - 0.4em);
  width: 4px;
  border-radius: 999px;
  background: var(--acp-teal-600); /* línea azul/teal del diseño */
}

.news-card__title_a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  height: calc(100% - 0.4em);
  width: 4px;
  border-radius: 999px;
  background: var(--acp-teal-600); /* línea azul/teal del diseño */
}

.news-card__text {
  margin: 0;
  font-size: 13px;
  color: rgba(12, 47, 58, 0.64);
  line-height: 1.7;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.news-card__text_a {
  margin: 0;
  font-size: 18px;
  color: rgba(12, 47, 58, 0.64);
  line-height: 1.7;
}

.news-card__btn {
  display: inline-block;
  text-decoration: none;
  background: #00a7b5;
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background-color 200ms ease, color 200ms ease;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
  flex-shrink: 0;
}

.news-card__btn:hover {
  background: #00919e;
  color: #fff;
}

@media (max-width: 991.98px) {
  .news__head {
    margin-top: -68px;
  }

  .news__panel {
    padding: 20px 18px;
  }

  .news__panel::before,
  .news__panel::after {
    width: 84px;
  }

  /* En mobile sí mostramos flechas y solo 1 card (las otras ya están ocultas con d-none d-md-block) */
  .news__control.carousel-control-prev {
    left: -10px; /* cabe dentro del padding del panel */
  }

  .news__control.carousel-control-next {
    right: -10px;
  }
}

/* PURPOSE */
.purpose {
  position: relative;
  padding: 44px 0 28px; /* deja aire antes del siguiente módulo */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.purpose::before {
  /* Degradé azul a la izquierda (mismo tono del menú) */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.purpose > .container {
  position: relative;
  z-index: 1;
}

.purpose__panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background-color: transparent;
  background-image: url("../img/background-nuestro-proposito.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  aspect-ratio: 4943 / 2434;
  min-height: clamp(420px, 40vw, 700px);
  border: 1px solid rgba(24, 165, 171, 0.10);
}

.purpose__header {
  padding: clamp(22px, 3vw, 44px) clamp(18px, 3.6vw, 54px) 0;
}

.purpose__title {
  margin: 0;
  font-family: var(--acp-font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.05;
  color: var(--acp-teal-600);
  font-size: clamp(18px, 1.55vw, 26px);
}

.purpose__lead {
  margin: 0;
  color: rgba(12, 47, 58, 0.64);
  line-height: 1.5;
  font-size: clamp(12px, 1.05vw, 16px);
  padding-top: 6px;
  font-weight: 500;
}

.purpose__body {
  padding: clamp(18px, 2.4vw, 34px) clamp(18px, 3.6vw, 54px) clamp(22px, 3.2vw, 44px);
}

.purpose__carousel {
  position: relative;
}

/* Asegurar que las columnas tengan la misma altura */
.purpose__carousel .carousel-item .row {
  align-items: stretch;
}

.purpose__carousel .carousel-item .col-md-4 {
  display: flex;
}

.purpose__control {
  width: 46px;
  height: 46px;
  top: 52%;
  transform: translateY(-50%);
  opacity: 1;
}

.purpose__control.carousel-control-prev {
  left: -50px;
}

.purpose__control.carousel-control-next {
  right: -50px;
}

.purpose__control img {
  width: 44px;
  height: 44px;
}

.purpose-card {
  height: 415px;
  border-radius: 26px;
  overflow: hidden;
  background: #e9eff4;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(12, 47, 58, 0.10), inset 0 0 0 2px #fff;
}

.purpose-card__badge {
  position: absolute;
  left: 16px;
  top: 14px;
  background: rgba(12, 47, 58, 0.22);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}

.purpose-card__media {
  position: relative;
  padding: 14px;
}

.purpose-card__media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 2px solid #fff;
  box-sizing: border-box;
  display: block;
}

.purpose-card__body {
  padding: 14px 16px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

.purpose-card__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--acp-teal-900);
  text-transform: none;
  letter-spacing: 0.2px;
  line-height: 1.25;
  flex-shrink: 0;
}

.purpose-card__title-strong {
  text-transform: uppercase;
}

.purpose-card__text {
  margin: 0 0 10px;
  color: rgba(12, 47, 58, 0.64);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  flex-grow: 1;
  min-height: 0;
}

.purpose-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(19, 138, 147, 0.70);
  color: #fff;
  font-family: var(--acp-font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-decoration: none;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: -20px;
}

.purpose-card__btn:hover {
  background: rgba(11, 111, 122, 0.85);
  color: #fff;
}

@media (max-width: 991.98px) {
  .purpose__panel {
    aspect-ratio: auto; /* en móvil: alto por contenido (evita bloque gigante) */
    min-height: 0;
    background-size: cover; /* en móvil prioriza llenar el panel */
    background-position: right center;
  }

  /* Pulir ancho/aire en mobile */
  .purpose__header {
    padding: 18px 16px 0;
  }

  .purpose__body {
    padding: 16px 16px 22px;
  }

  .purpose-card__media {
    padding: 12px;
  }

  /* En mobile, la card debe ser más angosta para dejar ver flechas */
  .purpose__carousel .carousel-inner {
    padding-inline: clamp(54px, 14vw, 78px); /* más reserva para que quepan flechas */
  }

  .purpose__carousel .carousel-item .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: 0;
    margin-right: 0;
    justify-content: center; /* centra la card cuando queda angosta */
  }

  .purpose__carousel .carousel-item .col-md-4 {
    padding-left: 0;
    padding-right: 0;
  }

  .purpose-card {
    width: 100%;
    max-width: 260px; /* card más angosta en mobile */
    margin-left: auto;
    margin-right: auto;
  }

  .purpose-card__media img {
    height: 160px; /* imagen menos alta para que todo “respire” */
    border-radius: 18px;
  }

  /* En mobile: 1 card + flechas visibles dentro del panel */
  .purpose__control.carousel-control-prev {
    left: 6px; /* dentro del panel */
  }

  .purpose__control.carousel-control-next {
    right: 6px;
  }

  .purpose__control {
    width: 44px;
    height: 44px;
    top: 46%;
    z-index: 5; /* encima de la card */
  }

  .purpose__control img {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 991.98px) {
  /* Evita que Aliados se monte sobre Propósito en mobile */
  .partners {
    margin-top: 0 !important;
    padding-top: 16px;
  }
}

/* PARTNERS */
.partners {
  position: relative;
  padding: 0 0 24px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.92);
  margin-top: -35px;
}

.partners::before {
  /* Degradé azul a la izquierda (mismo tono del menú) */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.partners > .container {
  position: relative;
  z-index: 1;
}

.partners__panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background-color: transparent;
  background-image: url("../img/background-aliados-proposito.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  aspect-ratio: 4943 / 2435;
  min-height: clamp(420px, 40vw, 700px);
}

.partners__header {
  padding: clamp(22px, 3.2vw, 60px) clamp(20px, 3.6vw, 60px) 0;
}

.partners__title {
  margin: 25px 0;
  /* En el diseño este título usa la tipografía display */
  font-family: var(--acp-font-display);
  font-weight: 700; /* Syncopate solo tiene 400/700 */
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 1.7vw, 26px);
  max-width: 520px;
}

.partners__body {
  padding: clamp(18px, 2.6vw, 34px) clamp(18px, 3.6vw, 56px) clamp(22px, 3.4vw, 44px);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 80px 50px;
  align-items: start;
}

.partners__logo-link {
  display: block;
  text-decoration: none;
  color: inherit;
  grid-column: span 3; /* 4 logos por fila (12/3) */
}

.partners__logo {
  margin: 0;
  text-align: center;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.partners__logo img {
  width: min(150px, 100%);
  height: auto;
  max-height: 74px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.partners__caption {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
  max-width: 210px;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .partners__header {
    padding: 18px 18px 0;
  }

  .partners__title {
    margin: 0;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: 0.35px;
    /* Syncopate es ancha: en mobile preferimos romper antes de recortar */
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    margin-bottom: 20px;
  }

  .partners__panel {
    /* En mobile: alto por contenido (evita panel gigante) */
    aspect-ratio: auto;
    min-height: 0;
    background-size: cover;
    background-position: center;
  }

  .partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 18px; /* más compacto para que quepan todos */
    justify-items: center;
  }

  .partners__logo-link,
  .partners__logo-link:nth-child(n + 5) {
    grid-column: auto;
  }

  .partners__logo {
    gap: 10px;
  }

  .partners__logo img {
    width: min(120px, 100%);
    max-height: 56px;
  }

  .partners__caption {
    font-size: 11px;
    line-height: 1.25;
    max-width: 150px;
  }
}

/* FOOTER */
.site-footer {
  --footer-line: #0caeb7;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background: transparent;
}

/* Mismo degradado lateral izquierdo que la sección .partners */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Degradado azul en la parte inferior del footer (mismo tono que el lateral) */
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(140px, 18vh);
  background: linear-gradient(
    to top,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.site-footer__brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* logo y redes alineados a la izquierda */
  text-align: left;
}

.site-footer__brand {
  display: inline-flex;
  text-decoration: none;
  margin-bottom: 3rem;
}

.site-footer__brand img {
  width: min(280px, 100%);
  height: auto;
}

.footer-title {
  font-family: var(--acp-font-display); /* Syncopate */
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 800;
  color: rgba(19, 138, 147, 0.95);
  letter-spacing: 0.8px;
  text-transform: none; /* respetar mayúsculas/minúsculas del diseño */
  margin: 0 0 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #626363;
}

.footer-links a {
  color: #626363;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  line-height: 1.75;
}

.footer-links a:hover {
  color: var(--acp-teal-900);
  text-decoration: underline;
}

.footer-text {
  margin: 0 0 16px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #626363;
  line-height: 1.3;
  max-width: 300px;
}

.footer-kicker {
  margin: 50px 0 6px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #626363;
}

.footer-mail {
  display: inline-block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #626363;
  text-decoration: none;
  word-break: break-word;
}

.footer-mail:hover {
  color: var(--acp-teal-900);
  text-decoration: underline;
}

.social {
  display: flex;
  gap: 14px;
}

.site-footer__social {
  justify-content: flex-start; /* iconos alineados a la izquierda */
}

.social__btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
}

.social__btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-footer__rule {
  height: 4px;
  width: 100%;
  background: var(--footer-line);
  opacity: 0.95;
  border-radius: 999px;
  margin: 80px 0 60px;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #626363;
  line-height: 1.55;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

@media (max-width: 991.98px) {
  .site-footer {
    padding-bottom: 90px; /* 60px base + 30px adicionales */
  }

  .site-footer__brand-col {
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
  }

  .site-footer__brand {
    display: inline-flex;
    text-decoration: none;
    margin-bottom: 0rem;
  }

  .site-footer__social {
    justify-content: center;
  }

  .site-footer .social__btn {
    width: 46px;
    height: 46px;
  }

  .site-footer .social__btn img {
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   INTERNA: ALIADOS (aliados.html)
   ========================================================================== */
.allies-achievements,
.allies-events {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.allies-achievements::before,
.allies-events::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.allies-achievements > .container,
.allies-events > .container {
  position: relative;
  z-index: 1;
}

.allies-list > .container {
  position: relative;
  z-index: 1;
}

.allies-achievements {
  padding: 26px 0 34px;
}

.allies-achievements__panel {
  border-radius: 26px;
  background-color: transparent;
  background-image: url("../img/background-logros-alcanzados.png");
  background-repeat: no-repeat;
  /* Mantener la proporción del arte para que NO se recorte */
  aspect-ratio: 4934 / 3317;
  min-height: clamp(360px, 34vw, 560px);
  background-size: cover;
  background-position: right bottom;
  border: 0;
  overflow: hidden;
}

.allies-achievements__inner {
  /* Zona segura del contenido (sin aplastar columnas) */
  padding: clamp(32px, 3.8vw, 52px);
  max-width: 1280px; /* Ampliado para dar más espacio a las columnas */
  margin-left: auto;
  margin-right: auto;
}

.allies-achievements__title {
  margin: 0 0 16px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.4px;
  line-height: 1.05;
  color: #bfe85b;
  font-size: 24px;
}

.allies-achievements__features {
  /* Deja que las columnas crezcan (sin tope de ancho) */
  --bs-gutter-x: 50px; /* Aumentado de 20px a 50px para más espacio entre columnas */
  margin-top: 80px; /* sube columnas */
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Asegurar que las columnas tengan la misma altura */
.allies-achievements__features .row {
  align-items: stretch;
}

.allies-achievements__features .col-md-4 {
  display: flex;
}

.allies-feature {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.allies-feature__img {
  width: 154px;
  height: 154px; /* Altura fija para alinear todos los iconos */
  max-width: 100%;
  object-fit: contain;
  object-position: top;
  margin: 0 0 16px;
  filter: drop-shadow(0 18px 26px rgba(19, 138, 147, 0.12));
  flex-shrink: 0;
  align-self: flex-start;
}

.allies-feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(24, 165, 171, 0.12);
  border: 1px solid rgba(24, 165, 171, 0.14);
  margin-bottom: 10px;
}

.allies-feature__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--acp-teal-700);
}

.allies-feature__title {
  margin: 0 0 6px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px; /* +3px */
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--acp-teal-700);
  line-height: 1.05;
  flex-shrink: 0;
  min-height: 3.78em; /* Altura mínima para alinear títulos (aproximadamente 3 líneas) */
}

.allies-feature__text {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  color: rgba(12, 47, 58, 0.64);
  font-size: 18px; /* +3px */
  line-height: 1.65;
  max-width: none;
  flex-grow: 1;
}

.allies-achievements__art {
  display: none;
}

@media (max-width: 991.98px) {
  .allies-achievements__panel {
    /* En mobile, evita “huecos” y que el panel se sienta gigante */
    aspect-ratio: auto;
    min-height: 0;
  }

  /* Sección a ancho completo para que el ::before (degradado azul lateral) cubra todo el viewport */
  .allies-achievements {
    overflow: hidden;
    width: 100%;
    min-height: 1421px;
    box-sizing: border-box;
    background-color: rgba(219, 247, 248, 0.35);
  }

  .allies-achievements > .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 1421px;
    box-sizing: border-box;
  }

  /* Cajón 350×1421px centrado con la imagen; el degradado queda en la sección (full width) */
  .allies-achievements__panel {
    width: 350px;
    height: 1421px;
    margin-left: auto;
    margin-right: auto;
    background-image: url("../img/background-logros-alcanzados-mobile.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
    background-color: transparent;
  }

  .allies-achievements__title {
    max-width: 300px;
    font-size: 22px;
    line-height: 1.25;
    margin: 20px 0 0px;
  }

  .allies-achievements__inner {
    padding: 24px 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .allies-achievements__features {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 28px;
    margin-top: 28px;
  }

  .allies-achievements__features .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Móvil: imagen y título uno debajo del otro; contenido centrado */
  .allies-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
  }

  .allies-feature__img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    object-position: top;
    margin: 0 auto 10px;
  }

  .allies-feature__title {
    font-size: 19px;
    letter-spacing: 0.6px;
    margin: 0 0 10px;
    min-height: 0;
  }

  .allies-feature__text {
    width: 100%;
    margin: 0;
    padding-left: 0;
    font-size: 20px;
    line-height: 1.65;
    text-align: center;
  }
}

@media (min-width: 992px) {
  /* Zona segura para que el contenido no choque con la cara */
  .allies-achievements__inner {
    padding-right: clamp(320px, 24vw, 420px);
  }
}

/* NUESTROS ALIADOS: mismo degradado lateral izquierdo que la sección anterior */
.allies-list {
  position: relative;
  padding: 18px 0 34px;
  background: #fff;
  overflow: hidden;
  z-index: 1;
}

.allies-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.allies-list__title {
  margin: 0 0 16px;
  font-family: var(--acp-font-display);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: none;
  color: var(--acp-teal-900);
  font-size: clamp(18px, 1.6vw, 26px);
}

.allies-list__grid {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}

/* Asegurar que todas las columnas tengan la misma altura */
.allies-list__grid .row {
  align-items: stretch;
}

.allies-list__grid .col-md-6 {
  display: flex;
}

/* Card layout del diseño (2 columnas internas) */
.ally-card {
  width: 100%;
  max-width: 560px; /* más “corta” en ancho */
  margin-left: auto;
  margin-right: auto;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 165, 171, 0.10);
  box-shadow: 0 10px 26px rgba(12, 47, 58, 0.08);
  padding: 50px 20px; /* al menos 20px en toda el área */
  min-height: 260px; /* más alta */
  height: 100%; /* Estirar para igualar altura con otras cards */
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 18px;
  align-items: stretch;
}

.ally-card__logo-col {
  display: flex;
  align-items: center; /* centrado vertical */
  justify-content: center; /* centrado horizontal */
}

.ally-card__logo {
  display: block;
  width: 117px;  /* 92 + 25 */
  height: 97px;  /* 72 + 25 */
  object-fit: contain;
}

.ally-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ally-card__name {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: #2f4254;
}

.ally-card__rule {
  border: 0;
  border-top: 1px solid #2e2e2e;
  margin: 8px 0 10px;
  opacity: 0.85;
}

.ally-card__text {
  margin: 0;
  color: #2e2e2e;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500; /* 400–520 según tu indicación */
  flex-grow: 1; /* Permitir que el texto crezca para igualar alturas */
}

.ally-card__link {
  display: inline-block;
  margin-top: 8px; /* justo debajo del texto */
  color: #b9375f;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  word-break: break-word;
}

.ally-card__link:hover {
  text-decoration: underline;
}

.ally-card--rasa {
  max-width: 560px; /* Mismo ancho que las otras cards */
}

@media (max-width: 991.98px) {
  /* Nuestros Aliados – mobile: una sola columna (logo primero, luego textos y enlaces en el mismo orden) */
  .ally-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .ally-card__logo-col {
    margin-bottom: 12px;
  }

  .ally-card__logo {
    width: 103px;  /* 78 + 25 */
    height: 85px;  /* 60 + 25 */
  }
}

/* EVENTOS */
.allies-events {
  padding: 34px 0 54px;
  /* Usa el mismo fondo que las otras secciones (no un degradé propio aquí) */
}

.allies-events__title {
  margin: 0 0 14px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(19, 138, 147, 0.75);
  font-size: 30px;
}

/* Evento destacado (lado izquierdo) */
.event-feature {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra vs altura del calendario */
}

.event-feature__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.event-feature__item {
  display: flex;
  flex-direction: column;
}

.event-feature__item .event-feature__date {
  margin-bottom: 14px;
}

.event-feature__item .event-feature__title {
  margin-bottom: 0;
}

.event-feature__date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  align-self: flex-start; /* fecha alineada a la izquierda */
}

.event-feature__day {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(191, 232, 91, 0.88);
  color: rgba(19, 138, 147, 0.92);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: 42px;
  letter-spacing: 0.5px;
}

.event-feature__when {
  line-height: 1.05;
}

.event-feature__month {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  color: rgba(19, 138, 147, 0.8);
  font-size: 26px;
}

.event-feature__year {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  color: rgba(19, 138, 147, 0.8);
  font-size: 26px;
}

.event-feature__title {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(19, 138, 147, 0.78);
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.2;
  /* Más centrado, pero alineado a la izquierda */
  text-align: left;
  width: min(420px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
}

.calendar {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(24, 165, 171, 0.55);
  border: 1px solid rgba(24, 165, 171, 0.18);
}

/* Calendario versión Eventos (HTML + CSS, sin imágenes) */
.calendar--events {
  font-family: "Montserrat", system-ui, sans-serif;
  border-radius: 18px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #79b98b 0%, #54b39b 58%, #3aa79c 100%);
  box-shadow: 0 16px 34px rgba(12, 47, 58, 0.12);
  padding: 14px 14px 16px;
  width: 80%;          /* ~20% más angosto */
  max-width: 560px;
  margin-left: auto;   /* lo pega a la derecha */
  aspect-ratio: 1 / 1; /* cuadrado */
  display: flex;
  flex-direction: column;
}

.calendar--events .calendar__view[hidden] {
  display: none !important;
}

.calendar--events .calendar__view.is-active {
  display: block;
}

.calendar--events .calendar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.calendar--events .calendar__month-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar--events .calendar__month {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 18px;
}

.calendar--events .calendar__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
}

.calendar--events .calendar__tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1;
}

.calendar--events .calendar__tab.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(19, 138, 147, 0.92);
}

.calendar--events .calendar__dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 10px;
}

.calendar--events .calendar__dow span {
  text-align: center;
}

.calendar--events .calendar__cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  flex: 1; /* ocupa el espacio restante del cuadrado */
  min-height: 0;
}

.calendar--events .calendar__cell {
  aspect-ratio: 1 / 1; /* cuadrados reales */
  background: rgba(255, 255, 255, 0.96);
  border-radius: 4px;
  text-align: left;
  padding: 4px 6px;
  color: rgba(19, 138, 147, 0.95);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: 10px;
}

.calendar--events .calendar__cell.is-empty {
  background: rgba(255, 255, 255, 0.16);
}

.calendar--events .calendar__cell.is-highlight {
  background: rgba(191, 232, 91, 0.92);
  color: rgba(19, 138, 147, 0.95);
}

/* Semana (carrusel finito) */
.calendar--events .calendar__week-nav {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.calendar--events .calendar__arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(19, 138, 147, 0.95);
  font-weight: 900;
  line-height: 1;
}

.calendar--events .calendar__arrow:disabled {
  opacity: 0.45;
}

.calendar--events .calendar__range {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: 11px;
}

.calendar--events .calendar__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}

.calendar--events .calendar__day {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px;
  display: grid;
  align-content: start;
  gap: 6px;
  color: rgba(19, 138, 147, 0.95);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: 11px;
}

.calendar--events .calendar__day.is-outside {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

.calendar--events .calendar__day.is-selected {
  background: rgba(191, 232, 91, 0.92);
}

/* Año */
.calendar--events .calendar__year {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.calendar--events .calendar__year-head {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 10px;
}

.calendar--events .calendar__year-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 18px;
  text-align: center;
}

.calendar--events .calendar__year-range {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: 11px;
}

.calendar--events .calendar__year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.calendar--events .calendar__month-tile {
  aspect-ratio: 1 / 1; /* cuadritos */
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  overflow: hidden;
}

.calendar--events .calendar__month-name {
  margin: 0;
  text-align: left;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 900;
  color: rgba(19, 138, 147, 0.95);
  font-size: 11px;
  letter-spacing: 0.2px;
}

.calendar--events .calendar__mini {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  align-content: start;
}

.calendar--events .calendar__mini-cell {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: rgba(24, 165, 171, 0.12);
}

.calendar--events .calendar__mini-cell.is-empty {
  background: rgba(24, 165, 171, 0.06);
}

.calendar--events .calendar__mini-cell.is-highlight {
  background: rgba(191, 232, 91, 0.92);
}

@media (max-width: 991.98px) {
  .allies-achievements__panel {
    /* OJO: no usar shorthand `background` porque borra el background-image */
    background-color: rgba(219, 247, 248, 0.18);
  }

  .allies-achievements__inner {
    padding: 18px 16px;
  }

  .allies-achievements__art {
    display: none;
  }

  .ally-card__text {
    font-size: 12px;
  }
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .page {
    padding-top: 30px;
  }

  .navbar-acp {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
  }

  .navbar-acp .nav-link {
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 14px;
    padding: 10px 12px;
  }

  .navbar-acp .nav-link::before {
    display: none;
  }

  .navbar-acp__nav {
    gap: 6px;
    padding-top: 10px;
  }

  .about__photo img {
    height: 260px;
  }

  .partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   INTERNA: APMES (apmes.html)
   ========================================================================== */

/* Banner específico para la interna APMES */
.hero--apmes .hero__panel-bg {
  background-image: url("../img/banner-apmes.png");
}

.hero--apmes .hero__card--banner {
  border-radius: 22px 0 0 22px;
  padding: 54px 52px 60px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 0;
  box-shadow: none;
  text-align: center;
  max-width: 460px;
  margin-left: auto;
  margin-right:-50px;
}

.hero--apmes .hero__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.15vw, 28px);
  letter-spacing: 1.2px;
  line-height: 1.1;
}

.hero--apmes .hero__lead {
  margin: 0;
  color: rgba(12, 47, 58, 0.8);
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  max-width: 268px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .hero--apmes .hero__panel-inner {
    padding: 0 22px;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .hero--apmes .hero__panel-inner .row {
    width: 100%;
  }
}

/* INFORMACIÓN SOBRE LOS APMES */
.apmes-info {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  /* Reduce espacio con el banner sin ocultar el título */
  margin-top: -32px;
  padding: 18px 0 34px;
  z-index: 2;
}

.hero--apmes {
  position: relative;
  z-index: 1;
}

.hero--apmes .hero__panel {
  position: relative;
  z-index: 1;
}

.hero--apmes .hero__panel-logo,
.hero--apmes .hero__panel-molecule {
  z-index: 3;
}

.hero--apmes .hero__panel-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 991.98px) {
  /* APMES móvil: mismo enfoque que Recursos educativos (banner vertical, cajón abajo) */
  .hero--apmes .hero__panel {
    aspect-ratio: 9 / 16;
    min-height: min(85vh, 720px);
  }

  .hero--apmes .hero__panel-bg {
    background-image: url("../img/banner-apmes-mobile.png");
    background-size: cover;
    background-position: center center;
  }

  .hero--apmes .hero__panel-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 16px 63px;
  }

  .hero--apmes .hero__panel-inner .row {
    width: 100%;
    margin: 0;
  }

  .hero--apmes .hero__panel-inner .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero--apmes .hero__card--banner {
    border-radius: 20px;
    padding: 52px 24px 52px; /* espacio amplio arriba y abajo del cajón */
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .hero--apmes .hero__title {
    text-align: center;
    color: var(--acp-teal-700);
    font-size: clamp(18px, 4.8vw, 24px);
    margin: 20px 0 16px; /* espacio arriba de la barra verde, abajo del título */
  }

  .hero--apmes .hero__lead {
    text-align: left;
    color: rgba(12, 47, 58, 0.85);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px; /* espacio abajo del párrafo antes de la barra verde */
  }

  /* Mostrar barras verdes en móvil (el card comparte hero__card--banner donde se ocultan) */
  .hero--apmes .hero__card--banner::before,
  .hero--apmes .hero__card--banner::after {
    display: block;
  }

  .hero--apmes .hero__card--banner::before {
    top: 32px; /* más espacio entre borde superior del cajón y la barra */
    width: 52px;
    height: 3px;
  }

  .hero--apmes .hero__card--banner::after {
    bottom: 32px; /* más espacio entre barra y borde inferior del cajón */
    width: 52px;
    height: 3px;
  }

  .hero--apmes .hero__panel-molecule {
    display: none;
  }

  .hero--apmes .hero__panel-logo {
    display: none;
  }
}

.apmes-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.apmes-info > .container {
  position: relative;
  z-index: 1;
}

.apmes-info__panel {
  border-radius: 26px;
  background-color: transparent;
  background-image: url("../img/background-info-apmes.png");
  background-repeat: no-repeat;
  /* Mantener proporción para que se vea completo */
  aspect-ratio: 4934 / 3317;
  min-height: clamp(420px, 42vw, 760px);
  background-size: contain;
  background-position: center;
  border: 0;
  overflow: hidden;
}

.apmes-info__inner {
  padding: clamp(26px, 3.4vw, 50px);
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.apmes-info__title {
  margin: 0 0 14px;
  font-family: var(--acp-font-display);
  font-weight: 700;
  /* text-transform: uppercase; */
  letter-spacing: 0.8px;
  line-height: 1;
  color: #bfe85b;
  font-size: clamp(20px, 2vw, 24px);
}

.apmes-info__content {
  max-width: 680px;
}

.apmes-info__q {
  margin: 25px 0 6px;
  font-family: var(--acp-font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--acp-teal-700);
}

.apmes-info__a {
  margin: 0;
  color: rgba(12, 47, 58, 0.66);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

@media (min-width: 992px) {
  /* Zona segura para que el texto no choque con el personaje */
  .apmes-info__inner {
    padding-right: clamp(320px, 28vw, 520px);
  }
}

@media (max-width: 991.98px) {
  .apmes-info {
    margin-top: -14px;
    padding: 28px 0 40px;
    overflow: visible;
  }


  /* Fondo móvil: imagen con “membrete” irregular arriba; sin border-radius para no recortar esa forma */
  .apmes-info__panel {
    aspect-ratio: auto;
    min-height: 720px;
    border-radius: 0;
    background-image: url("../img/background-info-apmes-mobile.png");
    background-repeat: no-repeat;
    background-position: 35% top;
    background-size: contain;
    overflow: visible;
  }

  .apmes-info__inner {
    padding: 28px 24px 36px;
    margin: 0 8px;
    border-radius: 0;
    background: transparent;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Título: “Información” verde claro, “SOBRE LOS APMES” verde oscuro */
  .apmes-info__title {
    font-size: clamp(20px, 5.5vw, 26px);
    font-weight: 800;
    margin: 0 0 28px;
    line-height: 1.2;
  }

  .apmes-info__title-light {
    color: #adcf7f;
  }

  .apmes-info__title-dark {
    color: #adcf7f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Contenido: sin caja vidrio; ancho limitado para no salirse del background */
  .apmes-info__content {
    max-width: 92%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
  }

  /* Preguntas: teal/cyan, mayúsculas */
  .apmes-info__q {
    margin: 30px 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: #2f9cad;
    letter-spacing: 0.4px;
  }

  .apmes-info__q:first-of-type {
    margin-top: 0;
  }

  /* Respuestas: gris oscuro; primera línea en negrita ya con <b> en HTML */
  .apmes-info__a {
    font-size: 14px;
    line-height: 1.4;
    color: #555555;
    font-weight: 400;
    margin-bottom: 0;
    word-wrap: break-word;
  }

  .apmes-info__a b {
    font-weight: 700;
    color: #444;
  }
}

/* ¿QUÉ BUSCAMOS... ? (cards tipo Noticias) */
.apmes-goals {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  padding: 0px 0 44px;
}

.apmes-goals::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.apmes-goals > .container {
  position: relative;
  z-index: 1;
}

.apmes-goals__title {
  margin: 0 0 18px;
  font-family: var(--acp-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.05;
  color: #bfe85b;
  font-size: clamp(18px, 2vw, 26px);
}

/* REGULACIÓN DE LAS APMES */
.apmes-regulacion {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  padding: 26px 0 44px;
  z-index: 1; /* base para permitir solape controlado con la siguiente sección */
}

.apmes-regulacion::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.apmes-regulacion > .container {
  position: relative;
  z-index: 1;
}

.apmes-regulacion__panel {
  border-radius: 26px;
  background-color: transparent;
  background-image: url("../img/background-regulacion-apmes.png");
  background-repeat: no-repeat;
  aspect-ratio: 4923 / 2233;
  min-height: clamp(360px, 36vw, 620px);
  background-size: contain; /* que se vea completo */
  background-position: center;
  border: 0;
  overflow: hidden;
}

.apmes-regulacion__inner {
  padding: clamp(22px, 3.2vw, 46px);
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.apmes-regulacion__title {
  margin: -25px 0 0 0;
  font-family: var(--acp-font-display);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(18px, 2vw, 24px);
}

.apmes-regulacion__subtitle {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 600;
}

.apmes-regulacion__actions-wrap {
  margin-top: 70px;
  max-width: 760px;
}

.apmes-regulacion__actions {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}

.apmes-regulacion__btn {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(19, 138, 147, 0.95);
  border: 1px solid rgba(24, 165, 171, 0.14);
  border-radius: 16px;
  padding: 26px 14px;
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--acp-font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  box-shadow: 0 14px 30px rgba(12, 47, 58, 0.12);
  height: 65px;
}

.apmes-regulacion__btn:hover {
  background: #ffffff;
  color: rgba(19, 138, 147, 0.98);
}

.apmes-regulacion__btn--wide {
  max-width: 620px;
}

@media (max-width: 991.98px) {
  .apmes-regulacion {
    padding: 16px 0 32px;
    background: transparent;
    overflow: visible;
  }

  /* Fondo móvil: imagen con degradado vertical e ilustración anatómica */
  .apmes-regulacion__panel {
    aspect-ratio: auto;
    min-height: 780px;
    border-radius: 0;
    background-image: url("../img/background-regulacion-apmes-mobile.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    overflow: visible; /* evita zonas “vacías” arriba */
  }

  .apmes-regulacion__inner {
    padding: 20px 20px 28px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Cabecera tipo pestaña: azul-verde sólido, título y subtítulo blancos centrados */
  .apmes-regulacion__head {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 18px 16px 14px;
    text-align: center;
    margin-top: 20px;
  }

  .apmes-regulacion__title {
    margin: 0;
    font-size: clamp(14px, 4.5vw, 22px);
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.5px;
  }

  .apmes-regulacion__subtitle {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.35;
    text-align: center;
  }

  .apmes-regulacion__actions-wrap {
    margin-top: 34px;
    max-width: 100%;
    padding: 0 4px;
  }

  .apmes-regulacion__actions {
    --bs-gutter-y: 24px;
  }

  /* Cajones: fondo blanco, borde gris-azul, sombra en esquina superior derecha, texto teal centrado */
  .apmes-regulacion__btn {
    height: auto;
    min-height: 74px;
    padding: 18px 14px;
    font-size: 13px;
    line-height: 1.25;
    border-radius: 14px;
    background: #ffffff;
    color: #138a93;
    border: 1px solid rgba(24, 165, 171, 0.35);
    text-align: center;
    box-shadow:
      1px 1px 0 0 rgba(220, 240, 245, 0.9),
      inset -6px 6px 14px rgba(19, 138, 147, 0.18),
      0 2px 8px rgba(12, 47, 58, 0.08);
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .apmes-regulacion__btn:hover {
    background: #f8fcfd;
    color: #0d6b73;
    border-color: rgba(24, 165, 171, 0.5);
  }

  .apmes-regulacion__btn--wide {
    max-width: none;
  }
}

/* APMES en enfermedades */
.apmes-enfermedades {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  margin-top: 0;
  padding: 18px 0 64px;
  overflow: hidden;
  z-index: 2;
}

.apmes-enfermedades::before {
  /* Mismo degradado lateral izquierdo que el resto de secciones */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.apmes-enfermedades > .container {
  position: relative;
  z-index: 1;
}

.apmes-enfermedades__title {
  margin: 0;
  font-family: var(--acp-font-display);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.05;
  color: #bfe85b;
  font-size: clamp(20px, 2.1vw, 28px);
}

.apmes-enfermedades__lead {
  margin: 0;
  color: rgba(12, 47, 58, 0.66);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  max-width: 620px;
  text-align: justify;
  padding-left: 35px;
}

.apmes-enfermedades__items {
  margin-top: 24px;
}

.apmes-enfermedades__item + .apmes-enfermedades__item {
  margin-top: 22px; /* separación entre los dos bloques (imágenes) */
}

.apmes-enfermedades__media {
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 18px 45px rgba(12, 47, 58, 0.12);
}

.apmes-enfermedades__media-img {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.apmes-enfermedades__item-title {
  margin: 0 0 10px;
  font-family: var(--acp-font-display);
  font-weight: 900;
  color: rgba(19, 138, 147, 0.98);
  font-size: 22px;
  line-height: 1.15;
}

.apmes-enfermedades__item-text {
  margin: 0;
  color: rgba(12, 47, 58, 0.62);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  max-width: 920px;
  text-align: justify;
}

@media (max-width: 991.98px) {
  .apmes-enfermedades {
    margin-top: -12px;
    padding-top: 18px;
  }

  .apmes-enfermedades__lead {
    font-size: 16px;
    line-height: 1.35;
    padding-left: 0px;
  }

  .apmes-enfermedades__media-img {
    height: 160px;
  }

  .apmes-enfermedades__item-title {
    font-size: 18px;
  }

  .apmes-enfermedades__item-text {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   INTERNA: EDUCACIÓN / RECURSOS EDUCATIVOS (educacion.html)
   ========================================================================== */

/* Banner específico para la interna Educación */
.hero--educacion .hero__panel-bg {
  background-image: url("../img/banner-contenido-educativo.png");
}

.hero--educacion .hero__panel-inner {
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero--educacion .hero__panel-inner .row {
  width: 100%;
}

.hero--educacion .hero__card--educacion {
  position: relative;
  border-radius: 22px 0 0 22px;
  padding: 54px 52px 60px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 0;
  box-shadow: none;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: -30px;
}

/* Líneas verdes arriba y abajo del título (como en el diseño) */
.hero--educacion .hero__card--educacion::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  width: 56px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(191, 232, 91, 0.95);
  box-shadow: 0 6px 14px rgba(191, 232, 91, 0.3);
  pointer-events: none;
}

.hero--educacion .hero__card--educacion::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 56px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(191, 232, 91, 0.9);
  box-shadow: 0 6px 14px rgba(191, 232, 91, 0.28);
  pointer-events: none;
}

.hero--educacion .hero__title {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: 0.9px;
  line-height: 1.12;
  color: var(--acp-teal-700); /* teal/cyan del diseño */
}

@media (max-width: 991.98px) {
  /* Recursos educativos móvil: mismo enfoque que el home (banner vertical, cajón abajo) */
  .hero--educacion .hero__panel {
    aspect-ratio: 9 / 16;
    min-height: min(85vh, 720px);
    border-radius: 20px;
  }

  .hero--educacion .hero__panel-bg {
    background-image: url("../img/banner-recurso-educativo-mobile.png");
    background-size: 105% auto;
    background-position: 35% center;
  }

  .hero--educacion .hero__panel-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 16px 63px;
  }

  .hero--educacion .hero__panel-inner .row {
    width: 100%;
    margin: 0;
  }

  .hero--educacion .hero__panel-inner .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero--educacion .hero__card--educacion {
    border-radius: 20px;
    padding: 50px 16px 50px; /* espacio para las líneas verdes */
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    max-width: 100%;
    width: 100%;
    margin: 0;
    text-align: center;
  }

  /* Líneas verdes en móvil: mostrarlas (el card comparte hero__card--banner donde se ocultan) y tamaño visible */
  .hero--educacion .hero__card--educacion::before,
  .hero--educacion .hero__card--educacion::after {
    display: block;
  }

  .hero--educacion .hero__card--educacion::before {
    top: 14px;
    width: 52px;
    height: 3px;
  }

  .hero--educacion .hero__card--educacion::after {
    bottom: 14px;
    width: 52px;
    height: 3px;
  }

  .hero--educacion .hero__title {
    font-size: clamp(16px, 4.5vw, 20px);
    letter-spacing: 0.5px;
    line-height: 1.3;
    color: var(--acp-teal-700); /* teal/cyan como en el diseño */
  }

  .hero--educacion .hero__panel-molecule {
    display: none;
  }

  .hero--educacion .hero__panel-logo {
    display: none;
  }
}

@media (min-width: 992px) {
  .hero--educacion .hero__panel-inner {
    padding: 0 22px;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .hero--educacion .hero__panel-inner .row {
    width: 100%;
  }
}

/* INFORMACIÓN PARA ESTAR ACTUALIZADO */
.educacion-info {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  padding: 26px 0 44px;
}

.educacion-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.educacion-info > .container {
  position: relative;
  z-index: 1;
}

.educacion-info__panel {
  border-radius: 26px;
  background-color: transparent;
  background-image: url("../img/background-contenido-recursos-educativos.png");
  background-repeat: no-repeat;
  /* Background muy grande: 4934x8441 (ratio 0.585) */
  aspect-ratio: 4934 / 8441;
  min-height: clamp(480px, 50vw, 900px);
  background-size: contain; /* que se vea completo */
  background-position: center;
  border: 0;
  overflow: hidden;
  margin-top: -25px;
}

.educacion-info__inner {
  padding: clamp(28px, 3.6vw, 24px);
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.educacion-info__head {
  margin-bottom: 24px;
}

.educacion-info__title {
  margin: 0 0 10px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.6px;
  line-height: 1.05;
  color: #a4d65e;
  font-size: clamp(20px, 2.2vw, 30px);
  display: inline-block;
  padding: 6px 14px 6px 0;
  border-radius: 8px;
  background: rgba(220, 230, 220, 0.4);
}

.educacion-info__lead {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  color: #4a4a4a;
  font-size: 18px;
  line-height: 1.6;
  max-width: 760px;
}

.educacion-info__grid {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .educacion-info__grid {
    --bs-gutter-x: 18px;
  }
}

@media (min-width: 1200px) {
  .educacion-info__grid {
    --bs-gutter-x: -80px;
  }
}


/* Bloque "cargar más" para siguientes 3 noticias (mobile) */
.educacion-info__load-more {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  margin-top: 12px;
}

.educacion-info__load-more-btn {
  background: none;
  border: none;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #666666;
  cursor: pointer;
  padding: 0;
  text-transform: lowercase;
}

.educacion-info__load-more-arrow {
  display: block;
  width: 36px;
  height: 22px;
  background-image: url("../img/flecha-abajo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Cards de noticias: 420×420 px (cuadradas), proporcionales en móvil */
.educacion-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 10px 32px rgba(0, 0, 0, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease;
  margin-bottom: 40px;
}

.educacion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 14px 40px rgba(0, 0, 0, 0.14);
}

.educacion-card__img {
  width: 100%;
  height: 45%;
  min-height: 160px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center center;
  background: #f3fafb;
  display: block;
}

.educacion-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.educacion-card__title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #00a7b5;
  line-height: 1.35;
  margin: 0 0 8px;
  flex: 1 1 auto;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.educacion-card__text {
  margin: 0 0 25px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #4a4a4a;
  line-height: 1.2;
  text-align: justify;
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
}

.educacion-card__btn {
  display: inline-block;
  text-decoration: none;
  background: #00a7b5;
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background-color 200ms ease, color 200ms ease;
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}

.educacion-card__btn:hover {
  background: #00919e;
  color: #fff;
}

/* NEWSLETTER (degradado lateral izquierdo como la sección anterior, homogéneo) */
.educacion-newsletter {
  position: relative;
  background: #fff;
  padding: 80px 0 100px;
  overflow-x: visible;
  overflow-y: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 98% 96%, 100% 100%, 0 100%);
}

.educacion-newsletter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.educacion-newsletter::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: #ffffff;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 30% 70%, 50% 50%, 70% 30%, 90% 15%, 100% 0);
  z-index: 1;
}

.educacion-newsletter > .container {
  position: relative;
  z-index: 1;
}

.educacion-newsletter__rule {
  height: 6px;
  width: 100%;
  background: #0caeb7;
  opacity: 0.95;
  border-radius: 999px;
  margin: 80px 0 60px;
}

/* A partir de 992px: columna izquierda encima del panel para que icono y título no queden tapados */
@media (min-width: 992px) {
  .educacion-newsletter__row {
    position: relative;
  }

  .educacion-newsletter__col-left {
    position: relative;
    z-index: 10;
  }

  .educacion-newsletter__panel {
    z-index: 2;
  }
}

.educacion-newsletter__left {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: start;
  justify-content: flex-start;
  padding: 0;
  border-left: none;
  clip-path: none;
  overflow: visible;
}

.educacion-newsletter__bg-shape {
  position: absolute;
  top: 50%;
  left: -120px;
  transform: translateY(-50%);
  width: 340px;
  height: auto;
  max-width: none;
  z-index: 0;
  object-fit: contain;
}


@keyframes blob {
  0%, 100% {
    border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  }
  25% {
    border-radius: 55% 45% 50% 50% / 45% 55% 50% 50%;
  }
  50% {
    border-radius: 50% 50% 45% 55% / 50% 50% 55% 45%;
  }
  75% {
    border-radius: 45% 55% 50% 50% / 55% 45% 50% 50%;
  }
}

.educacion-newsletter__left::after {
  display: none;
}

.educacion-newsletter__left-content {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 100%;
  padding: 0 0 0 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.educacion-newsletter__icon {
  width: 72px;
  height: auto;
  margin: 0;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.educacion-newsletter__title-left {
  margin: 0;
  font-family: var(--acp-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #adcf7f;
  font-size: clamp(20px, 2.2vw, 28px);
  position: relative;
  z-index: 2;
}

.educacion-newsletter__panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(12, 47, 58, 0.2);
  overflow: hidden;
  position: relative;
  margin-left: -60px;
  min-height: 500px;
}

.educacion-newsletter__panel .row {
  min-height: 500px;
}

.educacion-newsletter__panel .col-md-5 {
  padding: 0;
  display: flex;
}

.educacion-newsletter__panel .col-md-7 {
  display: flex;
}

.educacion-newsletter__panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.educacion-newsletter__panel-body {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
  background-color: #e4e4e4;
}

.educacion-newsletter__panel-title {
  margin: 0 0 20px;
  font-family: var(--acp-font-display);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #00a7b5;
  line-height: 1.4;
}

.educacion-newsletter__panel-text {
  margin: 0 0 24px;
  font-size: 13px;
  color: rgba(12, 47, 58, 0.7);
  line-height: 1.8;
}

.educacion-newsletter__panel-btn {
  display: inline-block;
  text-decoration: none;
  background: var(--acp-teal-900);
  color: #fff;
  font-family: var(--acp-font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 200ms ease;
  align-self: flex-start;
}

.educacion-newsletter__panel-btn:hover {
  background: var(--acp-teal-700);
  color: #fff;
}

@media (max-width: 991.98px) {
  .educacion-info__panel {
    aspect-ratio: auto;
    min-height: 0;
    background-image: url("../img/background-contenido-recursos-educativos-mobile.png");
    background-size: cover;
    background-position: center;
  }

  .educacion-info__inner {
    padding: 20px 16px;
  }

  /* Cabecera con forma de pestaña en la parte superior */
  .educacion-info__head {
    padding: 14px 16px 18px;
    margin: 0 -16px 20px;
    border-radius: 0 0 12px 12px;
    position: relative;
  }

  /* .educacion-info__head::before {
    content: "";
    position: absolute;
    left: 24px;
    top: -10px;
    width: 32px;
    height: 12px;
    background: rgba(248, 249, 248, 0.95);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
  } */

  .educacion-info__title {
    font-size: clamp(18px, 5.6vw, 22px);
    color: #a4d65e;
    font-family: var(--acp-font-display);
  }

  .educacion-info__lead {
    font-size: 14px;
    color: #4a4a4a;
  }

  /* Solo 3 noticias visibles; el resto se oculta hasta "Ver más" */
  .educacion-info__col.educacion-info__col--hidden {
    display: none !important;
  }

  .educacion-info__grid .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .educacion-info__load-more {
    display: flex;
  }

  .educacion-info__load-more.is-empty {
    display: none;
  }

  .educacion-newsletter {
    padding: 50px 0 70px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

  .educacion-newsletter::after {
    width: 100px;
    height: 100px;
  }

  .educacion-newsletter__left {
    min-height: 350px;
    padding: 40px 20px 40px 0;
    justify-content: center;
  }

  .educacion-newsletter__bg-shape {
    width: 220px;
    left: -50px;
  }

  .educacion-newsletter__left-content {
    padding: 0 0 0 80px;
    text-align: left;
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .educacion-newsletter__icon {
    width: 56px;
    margin: 0;
  }

  .educacion-newsletter__title-left {
    font-size: 16px;
    letter-spacing: 2px;
    color: #adcf7f;
  }

  .educacion-newsletter__panel {
    margin-left: 0;
    min-height: auto;
    border-radius: 20px;
  }

  .educacion-newsletter__panel-img {
    height: 250px;
  }

  .educacion-newsletter__panel-body {
    padding: 24px 20px;
  }

  .educacion-newsletter__panel-title {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .educacion-newsletter__panel-text {
    font-size: 13px;
    margin-bottom: 20px;
  }
}

/* Single Post Template */
.single-post {
    padding: 45px 0 80px;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: auto;
    width: 100%;
}

.single-post::before {
  /* Degradé lateral izquierdo (consistente con el sitio) */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 42vw);
  background: linear-gradient(
    90deg,
    rgba(160, 222, 236, 0.75) 0%,
    rgba(204, 242, 249, 0.55) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.single-post .container {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.single-post__content {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.single-post__header {
  margin-bottom: 40px;
  text-align: center;
}

.single-post__title {
  font-family: var(--acp-font-display);
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  color: #20B2AA;
  letter-spacing: 2px;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.single-post__featured-image {
  margin-bottom: 50px;
  text-align: center;
}

.single-post__img {
  width: 60%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 47, 58, 0.15);
  object-fit: cover;
}

.single-post__content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.single-post__content p {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: #2f4254;
  margin-bottom: 24px;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  font-family: var(--acp-font-display);
  color: #20B2AA;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.single-post__content h2 {
  font-size: clamp(22px, 2.5vw, 32px);
}

.single-post__content h3 {
  font-size: clamp(20px, 2.2vw, 28px);
}

.single-post__content h4 {
  font-size: clamp(18px, 2vw, 24px);
}

.single-post__content ul,
.single-post__content ol {
  margin-bottom: 24px;
  padding-left: 30px;
}

.single-post__content li {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: #2f4254;
  margin-bottom: 12px;
}

.single-post__content a {
  color: #20B2AA;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.single-post__content a:hover {
  color: #0caeb7;
}

.single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
}

.single-post__content blockquote {
  border-left: 4px solid #20B2AA;
  padding-left: 24px;
  margin: 30px 0;
  font-style: italic;
  color: #2f4254;
}

/* PDF Embed Plugin Styles */
.single-post__content iframe,
.single-post__content embed,
.single-post__content object {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: 600px;
  border: 0;
  display: block;
  margin: 30px 0;
  position: relative;
  z-index: 10;
  background: #fff;
}

/* PDF Embedder plugin specific */
.single-post__content .pdf-embedder-wrapper,
.single-post__content .wonderplugin-pdf-embed,
.single-post__content [class*="pdf-embed"],
.single-post__content [class*="pdf-viewer"] {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 30px 0;
  pointer-events: auto;
}

.single-post__content .pdf-embedder-wrapper iframe,
.single-post__content .wonderplugin-pdf-embed iframe {
  width: 100%;
  height: 600px;
  min-height: 600px;
  border: 0;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Ensure content is not blocked by gradient */
.single-post__content > * {
  position: relative;
  z-index: 2;
}

/* Fix for overlay issues - ensure pseudo-elements don't block */
.single-post__content::before,
.single-post__content::after {
  pointer-events: none;
  z-index: 0;
}

/* Prevent any blocking overlays */
.single-post * {
  pointer-events: auto;
}

.single-post::before {
  pointer-events: none !important;
}

/* Ensure PDF iframes are fully interactive */
.single-post__content iframe[src*=".pdf"],
.single-post__content iframe[src*="pdf"],
.single-post__content embed[src*=".pdf"],
.single-post__content embed[src*="pdf"] {
  pointer-events: auto !important;
  z-index: 100 !important;
  position: relative !important;
}

@media (max-width: 768px) {
  .single-post {
    padding: 100px 0 60px;
  }

  .single-post__header {
    margin-bottom: 30px;
  }

  .single-post__featured-image {
    margin-bottom: 30px;
  }

  .single-post__content {
    padding: 0 15px;
  }

  .single-post__content h2,
  .single-post__content h3,
  .single-post__content h4 {
    margin-top: 30px;
  }
}

