.forjando-site-header,
.forjando-site-footer,
main {
  /* Las palabras deben pasar completas a la siguiente línea; nunca se
     fragmentan letras en títulos, enlaces ni llamadas a la acción. */
  --fya-safe-word-wrap: normal;
}

main :is(h1, h2, h3, h4, h5, h6, .wp-block-button__link, .et_pb_button, button, input[type='submit']) {
  overflow-wrap: var(--fya-safe-word-wrap) !important;
  word-break: normal !important;
  hyphens: none !important;
}

.forjando-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #081620;
  color: #f6f5f0;
  border-bottom: 1px solid rgba(246, 245, 240, .1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}
/* El escritorio de WordPress mantiene visible su barra de administración. */
body.admin-bar .forjando-site-header { top: 32px; }
.forjando-site-header__inner {
  width: min(100% - 48px, 1450px);
  min-height: 86px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
}
.forjando-site-header__logo { flex: 0 0 156px; display: block; }
.forjando-site-header__logo img { display: block; width: 156px; height: auto; }
.forjando-site-header__nav { min-width: 0; flex: 1; }
.forjando-site-header__menu,
.forjando-site-header__menu .sub-menu,
.forjando-site-header__mobile-menu,
.forjando-site-header__mobile-menu .sub-menu,
.forjando-site-footer__legal { list-style: none; margin: 0; padding: 0; }
.forjando-site-header__menu { display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.2vw, 22px); }
.forjando-site-header__menu > li { position: relative; }
.forjando-site-header__menu a {
  display: block;
  padding-block: 12px;
  color: #f6f5f0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.forjando-site-header__menu a:hover,
.forjando-site-header__menu a:focus-visible,
.forjando-site-header__menu .current-menu-item > a { color: #63e9b5; }
.forjando-site-header__menu .menu-item-has-children > a::after {
  content: '▾';
  display: inline-block;
  margin-inline-start: .42em;
  color: currentColor;
  font-size: .9em;
  line-height: 1;
  transform: translateY(-.08em);
}
.forjando-site-header__menu .menu-item-has-children:hover > a::after,
.forjando-site-header__menu .menu-item-has-children:focus-within > a::after {
  transform: translateY(.04em) rotate(180deg);
}
.forjando-site-header__menu .sub-menu {
  position: absolute;
  inset: 100% auto auto 0;
  min-width: 250px;
  padding: 15px 20px;
  visibility: hidden;
  opacity: 0;
  background: #102738;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .2);
}
.forjando-site-header__menu li:hover > .sub-menu,
.forjando-site-header__menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.forjando-site-header__menu .sub-menu .sub-menu { inset: 0 auto auto 100%; }
.forjando-site-header__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  background: #ff7a16;
  color: #081620;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}
.forjando-site-header__cta:hover,
.forjando-site-header__cta:focus-visible { background: #63e9b5; color: #081620; }
.forjando-site-header__mobile { display: none; }

/* En escritorio, la navegación se centra respecto a toda la ventana: el logo
   y la reserva quedan anclados en extremos equivalentes y no desplazan el
   conjunto de enlaces hacia un lado. */
@media (min-width: 1400px) {
  .forjando-site-header__inner {
    width: calc(100% - clamp(48px, 7vw, 128px));
    max-width: none;
    display: grid;
    grid-template-columns: minmax(156px, 1fr) auto minmax(156px, 1fr);
    column-gap: clamp(18px, 2vw, 34px);
  }

  .forjando-site-header__logo { justify-self: start; }
  .forjando-site-header__nav { justify-self: center; }
  .forjando-site-header__menu {
    justify-content: center;
    gap: clamp(9px, .95vw, 17px);
  }
  .forjando-site-header__menu a {
    font-size: .66rem;
    letter-spacing: .045em;
  }
  .forjando-site-header__cta { justify-self: end; }
}
.forjando-site-footer { background: #142a3b; color: #c7cbc8; }
.forjando-site-footer__main {
  width: min(100% - 48px, 1340px);
  margin-inline: auto;
  padding-block: clamp(64px, 7vw, 100px);
  display: grid;
  grid-template-columns: 1.1fr .7fr 1fr;
  gap: clamp(40px, 8vw, 150px);
}
.forjando-site-footer__platform { order: 2; }
.forjando-site-footer__explore { order: 3; }
.forjando-site-footer__main img { width: clamp(190px, 15vw, 240px); height: auto; margin-bottom: 30px; }
.forjando-site-footer__main h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
}
.forjando-site-footer__main p { max-width: 380px; color: #c7cbc8; line-height: 1.55; }
.forjando-site-footer__eyebrow { margin: 0 0 24px; color: #63e9b5 !important; font-size: .72rem; font-weight: 800; letter-spacing: .17em; }
.forjando-site-footer__main nav { display: grid; gap: 12px; }
.forjando-site-footer a { color: #f6f5f0; text-decoration: none; }
.forjando-site-footer a:hover,
.forjando-site-footer a:focus-visible { color: #63e9b5; }
.forjando-site-footer__training-base {
  max-width: 24rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 245, 240, .16);
}
.forjando-site-footer__training-base > p {
  margin: 0 0 .6rem;
  color: #63e9b5;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.35;
}
.forjando-site-footer__training-base > a {
  display: inline-block;
  color: #f6f5f0;
  font-family: "Inter Tight", var(--fya-font);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.forjando-site-footer__training-base address {
  margin-top: .8rem;
  color: #aeb7ba;
  font-size: .85rem;
  font-style: normal;
  line-height: 1.5;
}
.forjando-site-footer__socials { margin-top: 1.5rem; }
.forjando-site-footer__socials > p {
  margin: 0 0 .65rem;
  color: #63e9b5;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .16em;
}
.forjando-site-footer__socials > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.forjando-site-footer__socials a {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(246, 245, 240, .25);
  border-radius: 50%;
  color: #f6f5f0;
  font-family: var(--fya-font);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.forjando-site-footer__socials a svg {
  display: block;
  width: 1rem;
  height: 1rem;
}
.forjando-site-footer__socials a:hover,
.forjando-site-footer__socials a:focus-visible {
  border-color: #63e9b5;
  background: #63e9b5;
  color: #081620;
  transform: translateY(-2px);
}
.forjando-site-footer__map {
  border-block: 1px solid rgba(246, 245, 240, .15);
  background: #0d2130;
}
.forjando-site-footer__map-heading {
  width: min(100% - 48px, 1340px);
  margin-inline: auto;
  padding: clamp(30px, 4vw, 52px) 0 22px;
}
.forjando-site-footer__map-heading p {
  margin: 0 0 .6rem;
  color: #63e9b5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
}
.forjando-site-footer__map-heading h2 {
  margin: 0;
  color: #f6f5f0;
  font-size: clamp(1.6rem, 2.7vw, 2.8rem);
  line-height: 1;
}
.forjando-site-footer__map-heading span {
  display: block;
  margin-top: .7rem;
  color: #c7cbc8;
  font-size: .95rem;
}
.forjando-site-footer__map iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 31vw, 440px);
  border: 0;
  filter: saturate(.78) contrast(1.05);
}
.forjando-site-footer__notice {
  width: min(100% - 48px, 1340px);
  margin-inline: auto;
  padding-block: 28px 30px;
  border-top: 1px solid rgba(246, 245, 240, .2);
  color: #c7cbc8;
  font-size: clamp(.875rem, 1vw, 1rem);
  line-height: 1.6;
}
.forjando-site-footer__notice p { max-width: 100ch; margin: 0 0 .7em; color: inherit; }
.forjando-site-footer__notice p:last-child { margin-bottom: 0; }
.forjando-site-footer__bottom {
  width: min(100% - 48px, 1340px);
  margin-inline: auto;
  padding-block: 22px 35px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(246, 245, 240, .2);
  color: #aeb7ba;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.forjando-site-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.forjando-site-footer__editorial {
  margin: 0;
  color: #aeb7ba;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  text-align: center;
}
.forjando-site-footer__editorial > span[aria-hidden="true"] { color: #ff7a16; font-size: 1em; }
.forjando-site-footer__editorial a { color: #f6f5f0; text-decoration: underline; text-decoration-color: rgba(99, 233, 181, .55); text-underline-offset: .2em; }
.forjando-whatsapp-float {
  position: fixed;
  z-index: 99999;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  gap: .4rem;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 .7rem;
  border: 1px solid #76f0bd;
  border-radius: 999px;
  background: linear-gradient(135deg, #27c678, #59dfac);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25), 0 0 0 3px rgba(39, 198, 120, .12);
  color: #06251d !important;
  font-family: var(--fya-font);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.forjando-whatsapp-float svg { width: 1rem; height: 1rem; flex: none; }
.forjando-whatsapp-float span {
  display: inline;
}
.forjando-whatsapp-float:hover,
.forjando-whatsapp-float:focus-visible {
  background: #7af2bd;
  color: #06251d !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3), 0 0 0 3px rgba(39, 198, 120, .18);
  transform: translateY(-2px);
}
@media (max-width: 700px) {
  .forjando-site-footer__bottom { justify-content: flex-start; }
  .forjando-site-footer__editorial { flex-basis: 100%; order: 3; text-align: left; }
  .forjando-site-footer__map-heading { width: min(100% - 32px, 100%); }
  .forjando-whatsapp-float { right: 11px; bottom: 12px; min-height: 42px; }
}
@media (max-width: 1399px) {
  .forjando-site-header__nav { display: none; }
  .forjando-site-header__inner { justify-content: space-between; }
  .forjando-site-header__cta { margin-left: auto; }
  .forjando-site-header__mobile { display: block; }
  .forjando-site-header__mobile summary {
    width: 38px; height: 38px; display: grid; align-content: center; gap: 5px;
    list-style: none; cursor: pointer;
  }
  .forjando-site-header__mobile summary::-webkit-details-marker { display: none; }
  .forjando-site-header__mobile summary span { display: block; width: 27px; height: 2px; background: #f6f5f0; }
  .forjando-site-header__mobile nav {
    position: absolute; inset: 100% 0 auto;
    max-height: calc(100dvh - 86px); overflow-y: auto;
    padding: 24px max(24px, calc((100vw - 900px) / 2));
    background: #0d2130; box-shadow: 0 24px 36px rgba(0,0,0,.25);
  }
  .forjando-site-header__mobile-menu > li { border-bottom: 1px solid rgba(246,245,240,.15); }
  .forjando-site-header__mobile-menu > .menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
  }
  .forjando-site-header__mobile-menu a {
    display: block; padding: 10px 0; color: #f6f5f0;
    font-size: .85rem; font-weight: 800; text-decoration: none; text-transform: uppercase;
  }
  .forjando-mobile-submenu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #63e9b5;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
  }
  .forjando-mobile-submenu-toggle:focus-visible {
    outline: 2px solid #63e9b5;
    outline-offset: -4px;
  }
  .forjando-site-header__mobile-menu .sub-menu {
    position: static;
    grid-column: 1 / -1;
    display: none !important;
    visibility: visible !important;
    width: auto;
    margin: 0;
    opacity: 1 !important;
    transform: none !important;
    padding: 0 0 10px 18px;
  }
  .forjando-site-header__mobile-menu .submenu-is-open > .sub-menu {
    display: block !important;
  }
  .forjando-site-header__mobile-menu .sub-menu a { color: #c7cbc8; font-size: .77rem; font-weight: 600; }
  .forjando-site-header__mobile-footer {
    margin: 28px -24px -24px;
    padding: 0 24px;
    border-top: 1px solid rgba(246,245,240,.15);
    background: #142a3b;
    color: #c7cbc8;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__main,
  .forjando-site-header__mobile-footer .forjando-site-footer__notice,
  .forjando-site-header__mobile-footer .forjando-site-footer__bottom,
  .forjando-site-header__mobile-footer .forjando-site-footer__map-heading {
    width: 100%;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 42px;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__main img {
    width: 150px;
    margin-bottom: 18px;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__main h2 {
    font-size: 2rem;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__map {
    margin-inline: -24px;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__map-heading {
    padding-inline: 24px;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__map iframe {
    height: 240px;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__notice {
    padding-block: 28px;
  }
  .forjando-site-header__mobile-footer .forjando-site-footer__bottom {
    padding-block: 24px;
  }
}
@media (max-width: 700px) {
  .forjando-site-header__inner { width: min(100% - 32px, 100%); min-height: 68px; }
  .forjando-site-header__logo { flex-basis: 122px; }
  .forjando-site-header__logo img { width: 122px; }
  .forjando-site-header__cta { min-height: 38px; padding: 8px 10px; font-size: .58rem; }
  .forjando-site-header__mobile nav { max-height: calc(100dvh - 68px); }
  .forjando-site-footer__main { grid-template-columns: 1fr; gap: 42px; }
  .forjando-site-footer__notice { width: min(100% - 32px, 100%); }
}
@media (max-width: 782px) {
  body.admin-bar .forjando-site-header { top: 46px; }
}
/* Franjas compartidas de medios y reseñas, independientes de Divi. */
.forjando-trust {
  box-sizing: border-box;
  min-height: min(84svh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(72px, 8vw, 120px) max(24px, calc((100vw - 1240px) / 2));
  background: #0c1f2d;
  color: #f6f5f0;
}
.forjando-trust--reviews { background: #122939; }
.forjando-trust__inner { width: 100%; max-width: 1240px; margin-inline: auto; }
.forjando-trust__eyebrow {
  color: #63e9b5 !important;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.forjando-trust h2 {
  max-width: 18ch;
  margin: 26px 0 20px;
  color: #f6f5f0 !important;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  line-height: .94;
  letter-spacing: -.06em;
}
.forjando-trust p { max-width: 55ch; color: #dce4e6 !important; line-height: 1.55; }
.forjando-trust__logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: clamp(36px, 5vw, 66px) 0 24px;
  border: 1px solid rgba(246,245,240,.22);
}
.forjando-trust__logos a {
  min-width: 0;
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-inline-end: 1px solid rgba(246,245,240,.22);
}
.forjando-trust__logos a:last-child { border: 0; }
.forjando-trust__logos img {
  display: block;
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.forjando-trust__logos a:nth-child(5) img { filter: brightness(0) invert(1); }
.forjando-trust__more { color: #f6f5f0; font-size: .8rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; }
.forjando-trust__more:hover,
.forjando-trust__more:focus-visible { color: #63e9b5; }
.forjando-trust__reviews { margin-top: clamp(36px, 5vw, 64px); }
.forjando-trust__review-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 8px;
  padding: .8rem 1rem;
  border: 1px solid #63e9b5;
  background: #63e9b5;
  color: #081620;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.forjando-trust__review-link:hover,
.forjando-trust__review-link:focus-visible {
  background: transparent;
  color: #f6f5f0;
  outline: none;
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .forjando-trust__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .forjando-trust__logos a:nth-child(3) { border-inline-end: 0; }
  .forjando-trust__logos a:nth-child(-n+3) { border-block-end: 1px solid rgba(246,245,240,.22); }
}
@media (max-width: 520px) {
  .forjando-trust__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forjando-trust__logos a:nth-child(3) { border-inline-end: 1px solid rgba(246,245,240,.22); }
  .forjando-trust__logos a:nth-child(even) { border-inline-end: 0; }
  .forjando-trust__logos a:nth-child(-n+4) { border-block-end: 1px solid rgba(246,245,240,.22); }
}

/* Aviso legal: los encabezados del contenido deben conservar una lectura natural. */
body.page-id-31025 .entry-content :is(h1, h2, h3, h4, h5, h6) {
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  text-align: left !important;
}

/* La colaboración con CDE ALFA acompaña al hero sin competir con el mensaje. */
.forjando-hero-affiliation-host { position: relative; }
.forjando-hero-affiliation {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(18px, 3vw, 48px);
  display: block;
  width: min(23rem, calc(100% - 36px));
  margin: 0;
  padding: 7px 0 7px 10px;
  border-inline-start: 2px solid #63e9b5;
  color: rgba(246, 245, 240, .82) !important;
  font-size: clamp(.58rem, .68vw, .68rem) !important;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.45;
  overflow-wrap: normal;
  text-align: left;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .78);
  text-transform: uppercase;
  word-break: normal;
}
.forjando-hero-affiliation a {
  color: #63e9b5;
  font-weight: 900;
  text-decoration-color: transparent;
  text-underline-offset: .22em;
}
.forjando-hero-affiliation a:hover,
.forjando-hero-affiliation a:focus-visible { color: #f6f5f0; text-decoration-color: currentColor; outline: none; }
.forjando-home-page__hero .forjando-hero-affiliation { z-index: 3; }
.forjando-article__hero .forjando-hero-affiliation { z-index: 3; }
@media (max-width: 700px) {
  .forjando-hero-affiliation {
    right: 18px;
    bottom: 16px;
    width: min(18rem, calc(100% - 36px));
    font-size: .55rem !important;
    letter-spacing: .1em;
  }
  .forjando-home-page__hero .forjando-hero-affiliation {
    right: 18px;
    bottom: 18px;
    width: min(13rem, calc(100% - 36px));
  }
}
