.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 {
  display: block;
  max-height: 64px;
  width: auto;
  max-width: min(280px, 46vw);
  object-fit: contain;
}

.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(33, 38, 74, .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,
.ft-subnav-link:focus {
  background: var(--ft-red);
  color: #fff;
  text-decoration: none;
}

.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(.65rem, 1.8vw, 1.15rem);
  z-index: 2;
  min-height: 2.85rem;
  padding: 0.9rem 1.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--ft-donate);
  color: #fff;
  border: 2px solid #fff;
  box-shadow:
    0 0 0 2px rgba(227, 28, 36, 0.22),
    0 10px 24px rgba(227, 28, 36, 0.42);
  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;
  animation: ft-header-heart 1.7s ease-in-out infinite;
}

.ft-header-donate.ft-btn--donate:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--ft-donate-dark);
  border-color: #fff;
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(227, 28, 36, 0.28),
    0 14px 30px rgba(227, 28, 36, 0.48);
}

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

@keyframes ft-header-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

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

body.home .ft-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(33, 38, 74, 0.06);
}
body.home .ft-header-accent {
  display: none;
}
body.home .ft-nav-list .current-menu-item > a,
body.home .ft-nav-list .current_page_item > a,
body.home .ft-nav-list a:hover {
  color: var(--ft-celeste);
  border-bottom-color: var(--ft-celeste);
}
body.home .ft-nav-toggle {
  color: var(--ft-navy);
}

@media (prefers-reduced-motion: reduce) {
  .ft-header-donate.ft-btn--donate .ft-icon {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .ft-nav-toggle { display: inline-flex; }
  .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 {
  --ft-footer-teal: #14b8ba;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(20, 184, 186, 0.16), transparent 42%),
    linear-gradient(165deg, #1a1f3d 0%, #21264a 48%, #181c36 100%);
  color: #fff;
  margin-top: auto;
  overflow: hidden;
}

.ft-footer-glow {
  position: absolute;
  inset: auto -10% -20% auto;
  width: min(28rem, 55vw);
  height: min(28rem, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 186, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.ft-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--ft-footer-teal) 35%, #7edce0 65%, transparent 100%);
  z-index: 1;
}

.ft-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
  padding: clamp(2.5rem, 4.5vw, 3.5rem) 0 1.75rem;
}

@media (min-width: 768px) {
  .ft-footer-grid {
    grid-template-columns: 1.35fr 1fr 1.15fr;
    gap: 2rem 3rem;
  }
}

.ft-footer-col h3 {
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7edce0;
}

.ft-footer-logo {
  display: inline-flex;
  margin-bottom: 0.85rem;
  text-decoration: none;
}

.ft-footer-logo-frame {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.35rem;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  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 18px 38px rgba(0, 0, 0, 0.28);
}

.ft-footer-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ft-footer-brand-name {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.ft-footer-tagline {
  margin: 0 0 1.15rem;
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ft-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
}

.ft-footer-social-link {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ft-footer-social-link:hover,
.ft-footer-social-link:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.ft-footer-social-link--facebook:hover { background: #1877f2; border-color: #1877f2; }
.ft-footer-social-link--instagram:hover { background: #e4405f; border-color: #e4405f; }
.ft-footer-social-link--youtube:hover { background: #ff0000; border-color: #ff0000; }
.ft-footer-social-link--whatsapp:hover { background: #25d366; border-color: #25d366; }

.ft-footer-links,
.ft-footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-footer-links a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: rgba(198, 210, 230, 0.88);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ft-footer-links a::before {
  content: "›";
  flex-shrink: 0;
  color: #7edce0;
  font-size: 1.15em;
  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-links li + li,
.ft-footer-contact-list li + li { margin-top: 0.65rem; }

.ft-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ft-footer-contact-list {
  margin: 0;
}

.ft-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ft-footer-contact-list a {
  color: inherit;
  text-decoration: none;
}

.ft-footer-contact-list a:hover {
  color: #7edce0;
}

.ft-footer-ic {
  flex: 0 0 auto;
  width: 1.15rem;
  margin-top: 0.15rem;
  color: #7edce0;
  text-align: center;
}

.ft-footer-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.05rem 0 1.35rem;
  background: rgba(0, 0, 0, 0.12);
}

.ft-footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.ft-footer-copy,
.ft-footer-credit {
  margin: 0;
  color: rgba(180, 195, 220, 0.78);
  font-size: 0.86rem;
}

.ft-footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ft-footer-heart {
  color: var(--ft-footer-teal);
  font-size: 0.95em;
  line-height: 1;
}

.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; }
