@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

/* =========================================================
   01. COLORES Y AJUSTES GENERALES
   Cambia esta paleta para actualizar todo el sitio.
   ========================================================= */
:root {
  --navy: #1b294f;
  --turquoise: #00a5c0;
  --turquoise-dark: #007e98;
  --yellow: #ffcf13;
  --orange: #ff6b00;
  --red: #f72c4c;
  --page-background: #f8fafc;
  --text-muted: #63718a;
}

/* 02. BASE, ENCABEZADO Y COMPONENTES COMPARTIDOS */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  background: #f8fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}

button {
  cursor: pointer;
}

.wrap {
  margin: auto;
  width: min(1260px, 88%);
}

.top {
  color: #e6eaf4;
  padding: 11px 0;
  text-align: center;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 80%, var(--turquoise-dark) 100%);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--yellow) 25%, var(--red) 25%, var(--red) 50%, var(--orange) 50%, var(--orange) 75%, var(--turquoise) 75%) 1;
  font-size: 10px;
  letter-spacing: 1.6px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e0e6ef;
  background: #f8fafc;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 112px;
}

.brand {
  display: flex;
  align-items: center;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.18;
  gap: 12px;
}

.brand small {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 500;
  display: block;
  margin-top: 5px;
}

.navlinks {
  display: flex;
  align-items: center;
  font-size: 13px;
  gap: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 0;
  border-radius: 5px;
  padding: 17px 22px;
  background: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 13px;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-2px);
  background: #304976;
}

.btn.light {
  background: var(--yellow);
  color: var(--navy);
}

.btn.outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid #aab6cb;
}

.menu {
  display: none;
  background: transparent;
  border: 1px solid #aab6cb;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--turquoise-dark);
  font-size: 10px;
  letter-spacing: 2px;
}

h1,
h2,
h3 {
  font-family: Manrope, Arial, sans-serif;
}

h1 {
  font-weight: 600;
  margin: 26px 0;
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1.1;
  letter-spacing: -2.8px;
}

h1 em {
  font-style: normal;
  color: var(--turquoise-dark);
}

p {
  line-height: 1.75;
}

.lead {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 465px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 29px;
}

.section {
  padding: 85px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

h2 {
  line-height: 1.2;
  letter-spacing: -1.6px;
  font-weight: 600;
  margin: 20px 0;
  font-size: clamp(30px, 3vw, 44px);
}

.muted {
  color: var(--text-muted);
}

.text-link {
  display: inline-flex;
  gap: 23px;
  align-items: center;
  border-bottom: 1px solid #8e9e83;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 35px;
}

.section-head p {
  font-size: 14px;
  max-width: 390px;
}

.network-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.network-card {
  padding: 36px;
  background: #253960;
  border: 1px solid #4d6083;
  border-radius: 6px;
}

.network-card .tag {
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 2px;
}

.network-card h3 {
  font-size: 27px;
  letter-spacing: -.8px;
  margin: 21px 0 12px;
}

.network-card p {
  color: #ced9ea;
  font-size: 14px;
  max-width: 420px;
}

.network-card a {
  margin-top: 17px;
}

.network-note {
  color: #c0cee4;
  font-size: 12px;
  margin: 25px 0 0;
}

.purpose {
  background: #eaf4f8;
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 25px 0;
}

.tab {
  border: 1px solid #a3bfce;
  color: var(--navy);
  border-radius: 30px;
  background: transparent;
  padding: 12px 23px;
}

.tab[aria-selected=true] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.purpose-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
}

.purpose-copy p {
  font-size: 14px;
  margin-top: 0;
}

.purpose-copy h3 {
  font-size: 27px;
  margin: 0 0 20px;
}

.vision-year {
  font-family: Manrope;
  font-size: 90px;
  color: #00a4be;
  letter-spacing: -6px;
  margin: 30px 0 0;
  line-height: 1;
}

.principles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.principles span {
  font-size: 11px;
  border: 1px solid #afc9d6;
  border-radius: 25px;
  padding: 9px 13px;
}

.form {
  border: 1px solid #d9e3ef;
  border-radius: 6px;
  padding: 32px;
  background: white;
}

.fieldrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd9e8;
  border-radius: 4px;
  padding: 12px;
  background: #fafcff;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--navy);
}

textarea {
  resize: vertical;
  min-height: 85px;
}

.form .btn {
  width: 100%;
}

.form small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 14px;
}

.result {
  background: #e4f6fa;
  border-radius: 4px;
  padding: 18px;
  margin-top: 20px;
  font-size: 13px;
  white-space: pre-line;
}

.result button {
  margin-top: 15px;
}

footer {
  background: var(--navy);
  color: #e1e9f5;
  padding: 50px 0 22px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}

.footer-top p {
  font-size: 13px;
  max-width: 290px;
  margin: 0;
}

.footer-nav {
  font-size: 12px;
  flex-wrap: wrap;
  max-width: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 30px;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid #4d6083;
  display: flex;
  justify-content: space-between;
  color: #bdcce3;
  margin-top: 25px;
  font-size: 10px;
}

details {
  border-bottom: 1px solid #d1dce9;
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

summary:after {
  content: "+";
  color: #67864a;
  font-size: 21px;
}

details[open] summary:after {
  content: "−";
}

details p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 730px;
}

[hidden] {
  display: none !important;
}

.brand-logo {
  object-fit: contain;
  border-radius: 3px;
  height: 94px;
  width: 96px;
}

.footer-top .brand-logo {
  height: 118px;
  width: 120px;
}

.network-card:first-child {
  border-top: 3px solid var(--turquoise);
}

.network-card:last-child {
  border-top: 3px solid var(--yellow);
}

.footer-top .brand {
  align-items: center;
}

.navlinks a {
  font-size: 12px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  background: white;
  border: 1px solid #d9e3ef;
  border-radius: 7px;
  overflow: hidden;
  transition: transform .2s;
  border-color: #dce4ef;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-cover {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  height: 275px;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.play {
  position: absolute;
  bottom: 20px;
  right: 20px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.project-body {
  padding: 25px;
}

.project-body h3 {
  line-height: 1.3;
  font-size: 23px;
  margin: 14px 0;
}

.project-body p {
  font-size: 13px;
  color: #626d81;
  line-height: 1.8;
  min-height: 67px;
}

.chip {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--turquoise-dark);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 30px;
  max-width: 800px;
  gap: 8px;
}

.filter {
  border: 1px solid #becbdc;
  border-radius: 30px;
  background: transparent;
  color: var(--navy);
  font-size: 12px;
  padding: 10px 16px;
}

.filter.active {
  background: var(--navy);
  color: white;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.video-card {
  border-radius: 8px;
  padding: 15px;
  background: #e9eff7;
}

.video-card video {
  width: 100%;
  background: #12203e;
  border-radius: 5px;
  height: 440px;
}

.video-card h3 {
  font-size: 16px;
  padding: 0 5px;
}

.video-card p {
  color: #626d81;
  font-size: 11px;
  padding: 0 5px;
}

.calendar {
  background: white;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  padding: 25px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.calendar-head button {
  border: 1px solid #c9d6e8;
  background: white;
  color: var(--navy);
  border-radius: 4px;
  width: 40px;
  height: 40px;
}

.calendar-head h3 {
  margin: 0;
  text-transform: capitalize;
  font-size: 19px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekday {
  text-align: center;
  font-size: 11px;
  padding: 8px;
}

.empty {
  padding: 30px;
  border: 1px dashed #b5c6dc;
  border-radius: 5px;
  margin-top: 0;
  background: white;
}

.empty h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.empty p {
  font-size: 13px;
  color: #626d81;
}

.donation-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 65px;
}

.donation-box {
  background: white;
  border: 1px solid #d3dfed;
  border-top: 5px solid var(--yellow);
  padding: 32px;
  border-radius: 6px;
  position: sticky;
  top: 135px;
}

.amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.amounts button {
  border: 1px solid #c5d5e7;
  background: #f7faff;
  color: var(--navy);
  padding: 12px 15px;
  border-radius: 4px;
}

.amounts button.active {
  background: var(--navy);
  color: white;
}

.donation-box input {
  margin-bottom: 10px;
}

.donation-box small {
  color: #626d81;
  font-size: 12px;
  line-height: 1.6;
  display: block;
}

.donation-box .btn {
  width: 100%;
  margin-top: 18px;
}

.donation-box .notice {
  margin: 20px 0;
  background: #fff7d9;
  padding: 15px;
  font-size: 12px;
  line-height: 1.6;
}

.giving {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.giving article {
  border-top: 3px solid var(--turquoise);
  padding: 25px;
  background: #edf4f9;
  border-radius: 5px;
}

.giving article:nth-child(2) {
  border-color: var(--orange);
}

.giving article:nth-child(3) {
  border-color: var(--yellow);
}

.giving h3 {
  font-size: 20px;
}

.giving p {
  font-size: 13px;
  color: #626d81;
}

.navlinks a[aria-current=page] {
  color: var(--turquoise-dark);
}

.page-section {
  padding: 15px 0 65px;
}

.media-grid.single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: auto;
}

.media-grid.single video {
  height: 560px;
}

.home-event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brand-words {
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.5;
  font-weight: 800;
}

.soft {
  background: #edf3f9;
}

.homehero {
  padding: 55px 0 45px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 55px;
  align-items: center;
}

.homehero h1 {
  margin: 23px 0;
}

.homehero h1 em {
  font-style: normal;
  color: var(--turquoise-dark);
}

.homehero .lead {
  font-size: 15px;
  max-width: 460px;
}

.hero-photo {
  height: 570px;
  position: relative;
  padding-bottom: 26px;
}

.hero-photo>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  border-radius: 100px 8px 8px 8px;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: -22px;
  right: 45px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 5px;
  padding: 24px 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.hero-caption b {
  font-size: 26px;
  font-family: Manrope;
  letter-spacing: -1px;
}

.hero-caption span {
  font-size: 11px;
  max-width: 150px;
  line-height: 1.7;
}

.hero-tag {
  position: absolute;
  top: 22px;
  right: 20px;
  background: #fffdf5;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 10px;
}

.hero-bottom {
  font-size: 11px;
  color: #65748b;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #d8e1ec;
  max-width: 460px;
  line-height: 1.7;
}

.facts {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-top: 1px solid #d4dfec;
  border-bottom: 1px solid #d4dfec;
  margin-bottom: 10px;
}

.fact {
  padding: 25px 28px;
  border-right: 1px solid #d4dfec;
}

.fact:first-child {
  padding-left: 0;
}

.fact:last-child {
  border: 0;
}

.fact strong {
  font-family: Manrope;
  font-size: 33px;
  letter-spacing: -1px;
  display: block;
  margin-bottom: 5px;
}

.fact span {
  font-size: 11px;
  color: #66748b;
}

.fact .small-title {
  font-size: 21px;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
}

.project-card:hover .project-cover img {
  transform: scale(1.035);
}

.project-body .chip {
  font-size: 9px;
  letter-spacing: 1.5px;
}

.project-body .text-link {
  font-size: 12px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #71809a;
  margin-top: 20px;
}

.badge {
  display: inline-flex;
  background: #e8f5f8;
  color: #007a92;
  font-size: 10px;
  border-radius: 20px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
}

.story-preview {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.story-photo {
  position: relative;
  padding-right: 30px;
  padding-bottom: 35px;
}

.story-photo img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 6px;
}

.photo-label {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--navy);
  color: #fff;
  padding: 23px;
  max-width: 260px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 5px;
}

.story-preview p {
  font-size: 14px;
  color: #63718a;
}

.quote {
  border-left: 3px solid var(--yellow);
  padding: 4px 0 4px 23px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--navy);
  margin: 27px 0;
}

.dark {
  background: var(--navy);
  color: white;
}

.dark .eyebrow {
  color: var(--yellow);
}

.dark p {
  color: #c8d4e6;
}

.dark .text-link {
  border-color: #7a8da9;
}

.timeline-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 35px;
}

.timeline-preview article {
  border-top: 1px solid #71819a;
  padding-top: 25px;
}

.timeline-preview strong {
  font-size: 32px;
  font-family: Manrope;
  color: var(--yellow);
  letter-spacing: -1px;
}

.timeline-preview h3 {
  font-size: 19px;
  line-height: 1.4;
}

.timeline-preview p {
  font-size: 13px;
}

.split-banner {
  padding: 40px 45px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  background: var(--yellow);
  border-radius: 7px;
}

.split-banner h2 {
  font-size: 33px;
  margin: 0 0 10px;
}

.split-banner p {
  font-size: 14px;
  margin: 0;
  max-width: 680px;
  color: #35446a;
}

.category-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.category-nav a {
  font-size: 11px;
  border: 1px solid #ccd9e9;
  padding: 10px 15px;
  border-radius: 25px;
}

.filterbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 30px;
  flex-wrap: wrap;
}

.search-box {
  max-width: 320px;
  min-width: 240px;
}

.search-box input {
  background: white;
  padding: 13px 16px;
}

.results-count {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 22px;
}

.empty-results {
  padding: 35px;
  background: #edf4fa;
  border-radius: 6px;
}

.wide-note {
  font-size: 12px;
  color: #66748a;
  margin: 35px 0 0;
  line-height: 1.8;
  border-top: 1px solid #d5dfeb;
  padding-top: 20px;
}

.case-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 45px 0 60px;
}

.case-hero h1 {
  font-size: clamp(36px, 4vw, 57px);
  margin: 22px 0;
}

.case-hero .lead {
  font-size: 15px;
  max-width: 580px;
}

.case-hero img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 6px;
}

.case-facts {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.case-facts div {
  border-left: 2px solid var(--turquoise);
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.8;
}

.case-facts small {
  display: block;
  color: #73819a;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.case-body {
  display: grid;
  grid-template-columns: 1.55fr .8fr;
  gap: 70px;
}

.case-body h2 {
  font-size: 32px;
}

.case-body p {
  font-size: 15px;
  color: #63718a;
}

.case-aside {
  background: #edf3f9;
  padding: 27px;
  border-radius: 6px;
  align-self: start;
}

.case-aside h3 {
  font-size: 19px;
  margin: 0 0 15px;
}

.case-aside p {
  font-size: 13px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery figure {
  margin: 0;
}

.gallery button {
  display: block;
  padding: 0;
  width: 100%;
  border: 0;
  background: #dfe7f1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.gallery img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: .25s;
}

.gallery button:hover img {
  transform: scale(1.03);
}

.gallery button:after {
  content: "↗";
  position: absolute;
  bottom: 13px;
  right: 13px;
  background: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.gallery figcaption {
  font-size: 11px;
  color: #65748c;
  line-height: 1.7;
  margin: 10px 0 15px;
}

.gallery-head {
  margin-bottom: 30px;
}

.gallery-head h2 {
  margin-bottom: 10px;
}

.gallery-head p {
  font-size: 14px;
  color: #63718a;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.founder {
  display: grid;
  grid-template-columns: .8fr 1fr;
  background: #fff;
  border: 1px solid #d9e3ee;
  border-radius: 6px;
  overflow: hidden;
}

.founder img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.founder>div {
  padding: 28px;
  align-self: center;
}

.founder h3 {
  font-size: 23px;
  line-height: 1.3;
}

.founder p {
  font-size: 13px;
  color: #64738a;
}

.timeline {
  position: relative;
  margin-top: 40px;
  max-width: 1000px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 114px;
  top: 20px;
  bottom: 40px;
  width: 1px;
  background: #c4d2e5;
}

.milestone {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 50px;
  position: relative;
  padding-bottom: 45px;
}

.milestone:before {
  content: "";
  position: absolute;
  left: 108px;
  top: 10px;
  width: 13px;
  height: 13px;
  border: 3px solid #f8fafc;
  background: var(--turquoise);
  border-radius: 50%;
}

.milestone .year {
  font-size: 25px;
  font-family: Manrope;
  font-weight: 700;
  color: var(--turquoise-dark);
  line-height: 1.4;
}

.milestone .year small {
  font-size: 10px;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
}

.milestone h3 {
  font-size: 24px;
  margin: 0 0 14px;
}

.milestone p {
  color: #65748a;
  font-size: 14px;
  margin-top: 0;
}

.milestone img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 5px;
  margin-top: 15px;
  object-position: center 30%;
}

.milestone a {
  font-size: 12px;
}

.recognition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.recognition img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  object-position: center 65%;
}

.recognition p {
  font-size: 14px;
  color: #64738a;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.principle-grid article {
  background: #fff;
  padding: 30px;
  border-top: 3px solid var(--turquoise);
}

.principle-grid article:nth-child(2) {
  border-color: var(--yellow);
}

.principle-grid article:nth-child(3) {
  border-color: var(--orange);
}

.principle-grid h3 {
  font-size: 19px;
}

.principle-grid p {
  font-size: 13px;
  color: #64738a;
}

.agenda-layout {
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: 45px;
  align-items: start;
}

.agenda-layout .empty p {
  font-size: 14px;
}

.faq-wrap {
  max-width: 850px;
  margin: auto;
}

.faq-wrap h2 {
  margin-bottom: 25px;
}

.donation-copy p {
  font-size: 14px;
  color: #65748a;
}

.donation-copy h2 {
  font-size: 36px;
}

.donation-preview {
  background: #edf6fa;
  border-radius: 5px;
  padding: 16px;
  margin: 18px 0;
  font-size: 12px;
  color: #53657e;
}

.field-help {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
}

.contact-layout h2 {
  font-size: 36px;
}

.contact-layout p {
  font-size: 14px;
  color: #64738a;
}

.contact-layout .form {
  padding: 35px;
}

.contact-options {
  margin: 25px 0;
}

.contact-option {
  border-top: 1px solid #d4dfed;
  padding: 17px 0;
  font-size: 13px;
  line-height: 1.6;
}

.contact-option span {
  display: block;
  font-size: 11px;
  color: #65738a;
}

.small-note {
  font-size: 11px !important;
  color: #74829a !important;
  line-height: 1.8;
}

.lightbox {
  width: min(1050px, 95vw);
  max-height: 95vh;
  border: 0;
  padding: 0;
  background: #101d35;
  color: white;
  border-radius: 8px;
  box-shadow: 0 25px 100px #0008;
}

.lightbox::backdrop {
  background: #071027dd;
}

.lb-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  font-size: 12px;
  align-items: center;
}

.lb-head button,
.lb-controls button {
  background: #263952;
  color: white;
  border: 1px solid #69809a;
  border-radius: 4px;
  padding: 9px 15px;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin: auto;
}

.lb-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 15px;
  top: -80px;
  z-index: 100;
  background: var(--yellow);
  padding: 15px;
}

.skip:focus {
  top: 15px;
}

.back-link {
  font-size: 12px;
  color: #65748b;
}

.stack-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.related .project-cover {
  height: 230px;
}

.logo-copy {
  font-size: 10px;
  letter-spacing: 1px;
  color: #bdcbe1;
  margin: 15px 0;
}

.case-section-label {
  font-size: 10px;
  color: var(--turquoise-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.source-note {
  font-size: 11px;
  line-height: 1.8;
  color: #6d7b91;
  border-left: 2px solid #ccd8e7;
  padding-left: 15px;
  margin-top: 24px;
}

.project-card[hidden] {
  display: none;
}

.btn.light:hover {
  background: #ffe36e;
}

.btn.outline:hover {
  background: #e6edf6;
}

/* 03. CLASES AUXILIARES: ESPACIOS Y FORMULARIOS */
.brand-subtitle {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 4px
}

.space-top-lg {
  margin-top: 28px
}

.space-top-md {
  margin-top: 25px
}

.space-top-sm {
  margin-top: 20px
}

.actions-centered {
  justify-content: center;
  margin-top: 35px
}

.draft-textarea {
  min-height: 190px
}

/* 04. BANNERS DE LAS PÁGINAS INTERNAS */
.page-banner {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--turquoise);
  margin-bottom: 45px
}

.banner-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 65px;
  align-items: center;
  padding-top: 37px;
  padding-bottom: 37px
}

.banner-copy {
  position: relative;
  z-index: 2;
  padding: 5px 0
}

.breadcrumbs {
  height: auto;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .4px;
  color: #b9c8e0;
  margin-bottom: 23px
}

.breadcrumbs a:hover {
  color: var(--yellow)
}

.page-banner .eyebrow {
  color: var(--yellow);
  font-size: 9px;
  letter-spacing: 2px
}

.page-banner h1 {
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.8px;
  margin: 17px 0 19px;
  font-weight: 600;
  max-width: 700px
}

.page-banner .lead {
  color: #ccd8eb;
  font-size: 14px;
  line-height: 1.8;
  max-width: 570px;
  margin-bottom: 0
}

.banner-action {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  font-size: 11px;
  border-bottom: 1px solid #8495b1;
  padding: 10px 0;
  margin-top: 16px;
  font-weight: 600
}

.banner-action span {
  color: var(--yellow);
  font-size: 20px
}

.banner-visual {
  position: relative;
  margin: 0;
  padding: 0 0 18px 18px;
  height: 315px
}

.banner-visual:before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  right: 20px;
  bottom: 0;
  border: 1px solid #627795;
  border-radius: 55px 6px 6px 6px
}

.banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 55px 6px 6px 6px;
  position: relative;
  filter: brightness(.88)
}

.banner-visual figcaption {
  position: absolute;
  bottom: 35px;
  left: 38px;
  right: 50px;
  color: white;
  font-size: 9px;
  letter-spacing: 1.2px;
  background: #132747d9;
  border-left: 3px solid var(--yellow);
  padding: 10px 13px;
  line-height: 1.7
}

.banner-mark {
  position: absolute;
  right: -16px;
  top: -16px;
  background: var(--yellow);
  color: var(--navy);
  height: 62px;
  width: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 40px;
  transform: rotate(15deg)
}

/* Las fichas de proyectos mantienen una cabecera fotográfica propia. */
.case-hero {
  background: #eaf1f8;
  border-radius: 0 0 12px 12px;
  padding: 38px;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--turquoise)
}

.case-hero h1 {
  font-size: clamp(34px, 3.6vw, 50px)
}

/* Encuadre para retratos verticales: mantiene visibles los rostros. */
.banner-focus-people img {
    object-position: center 56%;
}

#banner-trayectoria img {
    object-position: center 10%;
}



/* 05. ADAPTACIÓN A TABLETAS, MÓVILES Y ACCESIBILIDAD */

/* (max-width:1100px) */
@media (max-width:1100px) {
  .brand-words {
    display: none;
  }

  .navlinks {
    gap: 17px;
  }

  .homehero {
    gap: 35px;
  }

  .hero-photo {
    height: 530px;
  }

  .story-preview {
    gap: 40px;
  }

  .founder {
    grid-template-columns: 1fr;
  }

  .founder img {
    height: 300px;
    object-position: center 30%;
  }

  .founder>div {
    padding: 25px;
  }

  .founder p {
    margin-bottom: 0;
  }

  .case-hero {
    gap: 35px;
  }

  .project-body h3 {
    font-size: 21px;
  }

  .projects {
    gap: 18px;
  }
}

/* (max-width:950px) */
@media (max-width:950px) {
  .navlinks {
    gap: 16px;
  }

  .navlinks a {
    font-size: 11px;
  }

  h1 {
    font-size: 48px;
  }

  .intro-grid,
  .purpose-grid {
    gap: 40px;
  }

  .banner-inner {
    gap: 35px;
  }

  .banner-visual {
    height: 300px;
  }

  .page-banner h1 {
    font-size: 36px;
  }
}

/* (max-width:900px) */
@media (max-width:900px) {
  .navlinks {
    gap: 12px;
  }

  .projects {
    gap: 15px;
  }

  .project-cover {
    height: 240px;
  }

  .project-body {
    padding: 20px;
  }
}

/* (max-width:800px) */
@media (max-width:800px) {
  .homehero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 35px;
  }

  .homehero h1 {
    font-size: 55px;
  }

  .hero-photo {
    height: 480px;
    margin-left: 20px;
  }

  .hero-caption {
    left: -20px;
    right: 20px;
  }

  .facts {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .fact {
    padding: 20px 15px;
  }

  .fact strong {
    font-size: 27px;
  }

  .fact .small-title {
    font-size: 17px;
  }

  .projects {
    grid-template-columns: 1fr 1fr;
  }

  .story-preview,
  .recognition,
  .agenda-layout,
  .contact-layout,
  .donation-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .story-photo {
    max-width: 600px;
  }

  .case-hero {
    grid-template-columns: 1fr;
  }

  .case-hero img {
    height: 400px;
  }

  .case-body {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-preview {
    gap: 20px;
  }

  .split-banner {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .donation-box {
    position: static;
  }

  .navlinks {
    gap: 13px;
  }

  .navlinks a {
    font-size: 11px;
  }

  .brand-logo {
    width: 90px;
  }

  .wrap {
    width: 88%;
  }

  .section {
    padding: 65px 0;
  }
}

/* (max-width:700px) */
@media (max-width:700px) {
  .top {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .wrap {
    width: 88%;
  }

  nav {
    height: 96px;
  }

  .menu {
    display: block;
  }

  .navlinks {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--page-background);
    border-bottom: 1px solid #ccd5c5;
    flex-direction: column;
    align-items: stretch;
    top: 96px;
    padding: 20px 6%;
    gap: 10px;
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    padding: 8px;
    font-size: 14px;
  }

  h1 {
    font-size: 49px;
    letter-spacing: -2.5px;
  }

  .section {
    padding: 65px 0;
  }

  .intro-grid,
  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-head {
    display: block;
    gap: 20px;
  }

  .network-cards {
    grid-template-columns: 1fr;
  }

  .network-card {
    padding: 28px;
  }

  .vision-year {
    font-size: 65px;
    margin-top: 10px;
  }

  .purpose-grid {
    gap: 35px;
  }

  .form {
    padding: 24px;
  }

  .fieldrow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px 35px;
  }

  .footer-bottom {
    line-height: 1.6;
    flex-direction: column;
    gap: 8px;
  }

  .brand-logo {
    height: 86px;
    width: 88px;
  }

  html {
    scroll-padding-top: 115px;
  }

  .projects,
  .donation-layout,
  .giving,
  .home-event {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .project-cover {
    height: 300px;
  }

  .calendar {
    padding: 16px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .media-grid.single video,
  .video-card video {
    height: 430px;
  }

  .donation-layout {
    gap: 25px;
  }

  .section-head h2 {
    margin-bottom: 15px;
  }

  .brand-words {
    display: block;
    font-size: 9px;
  }

  .homehero h1 {
    font-size: clamp(40px, 10vw, 55px);
    letter-spacing: -2.3px;
  }

  .hero-photo {
    height: 430px;
  }

  .hero-caption {
    padding: 20px;
  }

  .hero-caption b {
    font-size: 24px;
  }

  .hero-caption span {
    font-size: 10px;
    max-width: 130px;
  }

  .hero-tag {
    font-size: 9px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid #d6dfeb;
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .fact strong {
    margin: 0;
    min-width: 100px;
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .fact span {
    font-size: 11px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project-body p {
    min-height: 0;
  }

  .story-photo img {
    height: 400px;
  }

  .story-photo {
    padding-right: 20px;
  }

  .timeline-preview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-preview article {
    padding-top: 20px;
  }

  .timeline-preview h3 {
    margin: 12px 0;
  }

  .founders {
    grid-template-columns: 1fr;
  }

  .founder {
    grid-template-columns: .8fr 1fr;
  }

  .founder img {
    height: 100%;
    min-height: 310px;
  }

  .founder>div {
    padding: 20px;
  }

  .founder h3 {
    font-size: 21px;
  }

  .gallery img {
    height: 220px;
  }

  .gallery {
    gap: 15px;
  }

  .gallery figcaption {
    font-size: 10px;
  }

  .recognition img {
    height: 430px;
  }

  .principle-grid,
  .giving {
    grid-template-columns: 1fr;
  }

  .milestone {
    grid-template-columns: 65px 1fr;
    gap: 30px;
    padding-bottom: 35px;
  }

  .milestone .year {
    font-size: 21px;
  }

  .milestone h3 {
    font-size: 21px;
  }

  .timeline:before {
    left: 78px;
  }

  .milestone:before {
    left: 72px;
  }

  .milestone img {
    height: 220px;
  }

  .case-hero {
    padding-top: 30px;
    padding: 25px;
  }

  .case-hero h1 {
    font-size: 35px;
  }

  .case-hero img {
    height: 290px;
  }

  .video-card video {
    height: 430px;
  }

  .case-body h2 {
    font-size: 29px;
  }

  .calendar-head {
    gap: 8px;
  }

  .calendar-head h3 {
    font-size: 17px;
  }

  .filterbar {
    gap: 8px;
  }

  .search-box {
    width: 100%;
    max-width: none;
  }

  .filters {
    margin-bottom: 15px;
  }

  .filter {
    font-size: 11px;
    padding: 9px 13px;
  }

  .contact-layout .form {
    padding: 25px;
  }

  .footer-top .brand-words {
    display: none;
  }

  .split-banner h2 {
    font-size: 29px;
  }

  .case-aside {
    padding: 23px;
  }

  .donation-box {
    padding: 25px;
  }

  .section-head .text-link {
    margin-top: 15px;
  }

  .banner-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 27px;
    padding-bottom: 30px;
  }

  .page-banner {
    margin-bottom: 28px;
  }

  .page-banner h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
    line-height: 1.15;
  }

  .page-banner .lead {
    font-size: 13px;
  }

  .breadcrumbs {
    margin-bottom: 20px;
    font-size: 10px;
  }

  .banner-visual {
    height: 225px;
    width: 100%;
    padding-left: 12px;
    padding-bottom: 12px;
  }

  .banner-visual figcaption {
    bottom: 25px;
    left: 28px;
    font-size: 8px;
  }

  .banner-mark {
    height: 48px;
    width: 48px;
    font-size: 31px;
    right: -8px;
    top: -12px;
  }
}

/* (max-width:400px) */
@media (max-width:400px) {
  .brand-words {
    display: none;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .founder {
    grid-template-columns: 1fr;
  }

  .founder img {
    height: 320px;
  }

  .hero-caption span {
    display: none;
  }
}

/* (prefers-reduced-motion:reduce) */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
