.ft-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  color: var(--ft-navy);
}

.ft-header-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: min(40vw, 380px);
  height: calc(100% + 10px);
  background: var(--ft-red-dark);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.ft-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--ft-header-height);
  z-index: 1;
  padding-block: .85rem;
}

.ft-header-menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-left: auto;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--ft-radius-pill);
  padding: .35rem .35rem .35rem clamp(1rem, 2.5vw, 1.85rem);
  box-shadow: 0 8px 28px rgba(18, 38, 72, .1);
}

.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  z-index: 2;
}

.ft-brand-mark { color: var(--ft-navy); }
.ft-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.ft-brand-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ft-navy);
}
.ft-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ft-red);
  text-transform: uppercase;
}
.ft-brand-logo { max-height: 56px; width: auto; }

.ft-nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ft-navy);
  padding: .35rem;
  z-index: 2;
  cursor: pointer;
}
.ft-nav-toggle-icon--close { display: none; }
.ft-header.is-open .ft-nav-toggle-icon--open { display: none; }
.ft-header.is-open .ft-nav-toggle-icon--close { display: block; }

.ft-nav { flex: 1; display: flex; justify-content: center; z-index: 2; min-width: 0; }
.ft-nav-list {
  display: flex;
  gap: clamp(.85rem, 1.8vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.ft-nav-list a {
  color: var(--ft-text);
  text-decoration: none;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 0 .45rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ft-nav-list a:hover,
.ft-nav-list .is-active > a,
.ft-nav-list .current-menu-item > a,
.ft-nav-list .current_page_item > a {
  color: var(--ft-red);
  border-bottom-color: var(--ft-red);
  text-decoration: none;
}
.ft-nav-list > li { position: relative; }
.ft-nav-list .sub-menu {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 15rem;
  margin: 0;
  padding: .65rem 0;
  list-style: none;
  background: var(--ft-surface);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.35rem);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 20;
}
.ft-nav-list li:hover > .sub-menu,
.ft-nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ft-nav-list .sub-menu a {
  display: block;
  padding: .55rem 1rem;
  border-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: .88rem;
}
.ft-subnav {
  background: var(--ft-soft);
  border-bottom: 1px solid rgba(26, 50, 96, .08);
}
.ft-subnav-inner {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .85rem 0;
}
.ft-subnav-link {
  flex: 0 0 auto;
  padding: .55rem 1rem;
  border-radius: 999px;
  color: var(--ft-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
}
.ft-subnav-link.is-active,
.ft-subnav-link:hover {
  background: var(--ft-red);
  color: #fff;
}

.ft-subnav--involve .ft-subnav-inner {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 1rem 0;
}

.ft-subnav--involve .ft-subnav-link {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.ft-header-donate.ft-btn--donate {
  flex-shrink: 0;
  margin-left: clamp(.5rem, 1.5vw, 1rem);
  z-index: 2;
  padding: 0.85rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--ft-red-dark);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 8px 22px rgba(18, 38, 72, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.ft-header-donate.ft-btn--donate .ft-icon {
  color: #fff;
}

.ft-header-donate.ft-btn--donate:hover {
  transform: translateY(-2px);
  background: var(--ft-navy);
  border-color: var(--ft-navy);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(18, 38, 72, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.18);
}

.ft-header-donate.ft-btn--donate:hover .ft-icon {
  color: #fff;
}

body:not(.home) .ft-header {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1px 0 rgba(26, 50, 96, 0.06);
}

body.home .ft-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

@media (max-width: 1024px) {
  .ft-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55);
  }
  .ft-nav-toggle:hover,
  .ft-nav-toggle:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .28);
    outline: none;
  }
  .ft-nav-toggle svg {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
  }
  .ft-header-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 1rem;
    border-radius: var(--ft-radius);
    background: var(--ft-surface);
  }
  .ft-header.is-open .ft-header-menu { display: flex; }
  .ft-nav {
    position: static;
    display: block;
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .ft-header.is-open .ft-nav { display: block; }
  .ft-nav-list { flex-direction: column; gap: .75rem; align-items: flex-start; }
  .ft-nav-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: .35rem 0 .35rem 1rem;
    background: transparent;
  }
  .ft-header-donate.ft-btn--donate {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: .75rem;
  }
}

.ft-footer {
  background: var(--ft-navy);
  color: #fff;
  margin-top: auto;
}
.ft-footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}
@media (min-width: 768px) {
  .ft-footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
}
.ft-footer-col h3 {
  margin: 0 0 1rem;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ft-footer-logo {
  display: inline-flex;
  margin-bottom: 1.15rem;
  text-decoration: none;
}
.ft-footer-logo-frame {
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  padding: 0.85rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 14px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ft-footer-logo:hover .ft-footer-logo-frame,
.ft-footer-logo:focus-visible .ft-footer-logo-frame {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 18px 36px rgba(0, 0, 0, 0.34);
}
.ft-footer-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.ft-footer-brand p,
.ft-footer-contact-list li {
  color: rgba(255,255,255,.82);
}
.ft-footer-links a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.84375rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.ft-footer-links a::before {
  content: "\203A";
  flex-shrink: 0;
  color: #5eb0ff;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1;
}
.ft-footer-links a:hover,
.ft-footer-links a:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
}
.ft-footer-contact-list a {
  color: inherit;
  text-decoration: none;
}
.ft-footer-links,
.ft-footer-contact-list,
.ft-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ft-footer-links li + li,
.ft-footer-contact-list li + li { margin-top: .55rem; }
.ft-footer-contact-list a:hover {
  color: #fff;
}
.ft-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}
.ft-footer-whatsapp { margin-top: 1rem; }
.ft-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .65rem;
  border-radius: var(--ft-radius-pill);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ft-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ft-footer-contact-list {
  margin-bottom: calc(3rem - 35px);
}
.ft-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
}
.ft-footer-contact > .ft-btn.ft-btn--white {
  margin-top: 0;
}
.ft-footer-bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0 1.25rem;
}
.ft-footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.ft-footer-copy,
.ft-footer-credit {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
}
.ft-footer-credit {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.ft-page-header {
  background: linear-gradient(135deg, var(--ft-navy), var(--ft-navy-soft));
  color: #fff;
  padding: 3rem 0;
}
.ft-page-title { margin: 0 0 .5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.ft-page-description { opacity: .9; }
.ft-page-meta, .ft-page-kicker { opacity: .85; }
.ft-page-kicker a { color: #fff; }

.ft-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .ft-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

.ft-sidebar-block + .ft-sidebar-block { margin-top: 1.5rem; }
.ft-sidebar-block h2 { font-size: 1rem; margin: 0 0 .75rem; }
.ft-sidebar-links { list-style: none; margin: 0; padding: 0; }
.ft-sidebar-links li + li { margin-top: .5rem; }

/* Shared inner-page hero (Nosotros, Programas, etc.) */
.ft-page-hero {
  position: relative;
  min-height: clamp(320px, 48vh, 460px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.ft-page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ft-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 38, 72, .9) 0%, rgba(18, 38, 72, .55) 55%, rgba(18, 38, 72, .25) 100%);
}

.ft-page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5.5rem;
  max-width: 720px;
}

.ft-page-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.ft-page-hero-text {
  margin: 0;
  font-size: 1.05rem;
  opacity: .92;
  max-width: 38rem;
}

.ft-page-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  color: #fff;
  line-height: 0;
}
.ft-page-hero-wave svg { width: 100%; height: 72px; }
