:root {
  --navy: #071c3f;
  --navy-2: #0a2858;
  --blue: #075fca;
  --blue-bright: #1685ef;
  --yellow: #ffd21f;
  --yellow-deep: #f5b900;
  --green: #18a957;
  --ink: #10223c;
  --muted: #5d6a7d;
  --surface: #f4f7fb;
  --white: #fff;
  --line: #d9e2ee;
  --shadow: 0 20px 50px rgba(7, 28, 63, .12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 16px; background: var(--yellow); color: var(--navy); font-weight: 800; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.hero {
  position: relative;
  min-height: 760px;
  color: var(--white);
  background:
    linear-gradient(118deg, rgba(22,133,239,.18), transparent 42%),
    linear-gradient(145deg, var(--navy) 0%, #062f72 58%, #0a58ad 100%);
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: auto -8% -18% 34%; height: 48%; background: var(--yellow); transform: skewY(-8deg); opacity: .98; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent 65%); }
.hero__glow { position: absolute; width: 520px; height: 520px; top: -180px; right: 5%; border-radius: 50%; background: rgba(22,133,239,.35); filter: blur(2px); }
.hero__grid { position: relative; z-index: 2; min-height: 700px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 34px; padding-block: 66px 30px; }
.hero__content { padding-top: 10px; }
.hero__eyebrow { margin: 0 0 16px; text-transform: uppercase; font-weight: 800; letter-spacing: .16em; font-size: .92rem; color: #cfe4ff; }
.hero__eyebrow span { display: inline-block; padding: 4px 13px; border-radius: 100px; color: var(--navy); background: var(--yellow); letter-spacing: .08em; }
.hero h1 { margin: 0; line-height: .96; text-transform: uppercase; }
.hero__name { display: block; max-width: 620px; font-size: clamp(3.2rem, 6.8vw, 6.5rem); font-weight: 950; letter-spacing: -.065em; }
.hero__office { display: block; margin-top: 14px; color: #dcecff; font-size: clamp(1.2rem, 2.3vw, 2rem); font-weight: 780; letter-spacing: .1em; }
.hero__number { margin: 10px 0 -3px; color: var(--yellow); font-size: clamp(6.5rem, 13vw, 11.2rem); font-weight: 950; line-height: .9; letter-spacing: -.08em; text-shadow: 0 9px 0 rgba(0,0,0,.08); }
.hero__slogan { margin: 10px 0 25px; font-size: clamp(1.35rem, 2.1vw, 1.85rem); font-weight: 750; }
.button { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: 11px; padding: 14px 22px; border-radius: 14px; font-weight: 850; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--whatsapp { color: #fff; background: var(--green); box-shadow: 0 14px 34px rgba(7, 93, 47, .35); }
.button--whatsapp:hover { background: #118b48; box-shadow: 0 18px 38px rgba(7, 93, 47, .42); }
.button svg { width: 23px; height: 23px; fill: currentColor; flex: 0 0 auto; }
.hero__microcopy { margin: 9px 0 0; color: #cfe4ff; font-size: .9rem; }
.hero__portrait { position: relative; align-self: end; height: 650px; display: flex; align-items: flex-end; justify-content: center; }
.hero__portrait::before { content: ""; position: absolute; width: 92%; aspect-ratio: 1; right: -4%; bottom: 5%; border: 2px solid rgba(255,255,255,.22); border-radius: 50%; }
.hero__portrait picture { position: relative; z-index: 2; height: 100%; filter: drop-shadow(0 26px 28px rgba(1,15,38,.35)); }
.hero__portrait img { width: auto; height: 100%; object-fit: contain; object-position: center bottom; mask-image: linear-gradient(to bottom, black 0%, black 91%, transparent 100%); }
.hero__number-mark { position: absolute; right: -16%; top: 22%; z-index: 0; font-size: 11.5rem; line-height: 1; font-weight: 950; letter-spacing: -.1em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.14); transform: rotate(-7deg); }
.hero__facts { position: relative; z-index: 4; background: rgba(4,19,46,.9); border-top: 1px solid rgba(255,255,255,.12); }
.facts__row { min-height: 60px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.facts__row span { padding: 4px 22px; font-weight: 700; color: #e5f0ff; }
.facts__row span + span { border-left: 1px solid rgba(255,255,255,.26); }

.section { padding: 100px 0; }
.section-kicker { margin: 0 0 12px; color: var(--blue); font-size: .82rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.section-kicker--light { color: var(--yellow); }
.section h2, .territory h2, .final-cta h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.045em; }
.story__grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.story__portrait { position: relative; max-width: 450px; padding: 18px; border-radius: 34px; background: linear-gradient(145deg, var(--yellow) 0 22%, var(--blue) 22% 100%); box-shadow: var(--shadow); transform: rotate(-2deg); }
.story__portrait picture { display: block; overflow: hidden; border-radius: 23px; background: #eef2f5; }
.story__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; transform: rotate(2deg) scale(1.04); }
.story__stamp { position: absolute; right: -30px; bottom: 34px; min-width: 166px; padding: 13px 18px; color: var(--white); background: var(--navy); border-radius: 15px; box-shadow: 0 13px 28px rgba(7,28,63,.22); transform: rotate(2deg); }
.story__stamp strong, .story__stamp span { display: block; }
.story__stamp strong { color: var(--yellow); font-size: 1.25rem; }
.story__stamp span { font-size: .88rem; }
.story__content .lead { margin-top: 26px; color: var(--ink); font-size: 1.25rem; line-height: 1.55; font-weight: 650; }
.story__content p:not(.section-kicker) { max-width: 660px; }
.story__content blockquote { margin: 30px 0 0; padding: 20px 24px; color: var(--navy); background: #eef5ff; border-left: 5px solid var(--yellow); border-radius: 0 14px 14px 0; font-size: 1.12rem; font-weight: 800; }

.causes { color: var(--white); background: var(--navy); position: relative; overflow: hidden; }
.causes::before { content: ""; position: absolute; width: 440px; height: 440px; top: -280px; right: -120px; border: 90px solid rgba(22,133,239,.18); border-radius: 50%; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading > p:last-child { max-width: 680px; margin: 19px 0 0; color: #c4d1e3; font-size: 1.08rem; }
.section-heading--dark > p:last-child { color: var(--muted); }
.causes__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cause-card { position: relative; min-height: 330px; padding: 34px 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); overflow: hidden; }
.cause-card__number { position: absolute; right: 18px; top: 4px; color: rgba(255,255,255,.07); font-size: 6rem; line-height: 1; font-weight: 950; }
.cause-card svg { width: 55px; height: 55px; padding: 13px; fill: var(--navy); background: var(--yellow); border-radius: 15px; }
.cause-card h3 { margin: 40px 0 10px; font-size: 1.42rem; }
.cause-card p { margin: 0; color: #cfdaea; }

.history { background: var(--surface); }
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.timeline-card { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 38px rgba(25,56,97,.07); overflow: hidden; }
.timeline-card, .timeline-card__image, .timeline-card picture { min-width: 0; }
.timeline-card picture { display: block; width: 100%; height: 100%; }
.timeline-card--featured, .timeline-card--wide, .timeline-card--evidence { grid-column: 1 / -1; }
.timeline-card--featured, .timeline-card--wide { grid-template-columns: 1.05fr .95fr; }
.timeline-card--evidence { grid-template-columns: 1.42fr .58fr; }
.timeline-card__image { min-height: 260px; background: #dce4ee; overflow: hidden; }
.timeline-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.timeline-card:not(.timeline-card--featured):not(.timeline-card--wide):not(.timeline-card--evidence) .timeline-card__image { min-height: 0; aspect-ratio: 16 / 9; }
.timeline-card--featured .timeline-card__image { max-height: 500px; }
.timeline-card--featured .timeline-card__image img { object-position: center 42%; }
.timeline-card__gallery { display: grid; min-width: 0; min-height: 460px; grid-template-columns: 1.45fr .55fr; gap: 3px; background: var(--navy); }
.timeline-card__gallery .timeline-card__image { min-height: 0; }
.timeline-card__image--institutional img { object-position: center; }
.timeline-card__image--proof { background: var(--navy); }
.timeline-card__image--proof img { object-fit: contain; }
.timeline-card__copy { padding: 30px; align-self: center; }
.timeline-card__copy span { color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.timeline-card__copy h3 { margin: 10px 0 10px; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.15; }
.timeline-card__copy p { margin: 0; color: var(--muted); }

.territory { position: relative; min-height: 630px; display: grid; align-items: center; color: var(--white); overflow: hidden; }
.territory__background, .territory__background img, .territory__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.territory__background img { object-fit: cover; }
.territory__overlay { background: linear-gradient(90deg, rgba(4,21,50,.96) 0%, rgba(4,31,75,.86) 48%, rgba(4,31,75,.24) 100%); }
.territory__content { position: relative; z-index: 2; padding-block: 90px; }
.territory__content h2 { max-width: 700px; }
.territory__content > p:not(.section-kicker) { max-width: 650px; margin: 25px 0 32px; font-size: 1.18rem; color: #e4edf9; }
.territory__places { display: flex; max-width: 730px; flex-wrap: wrap; gap: 10px; }
.territory__places span, .territory__places strong { padding: 8px 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 100px; background: rgba(5,26,63,.54); }
.territory__places strong { color: var(--navy); background: var(--yellow); border-color: var(--yellow); }

.quote-section { padding: 90px 0; color: var(--navy); background: var(--yellow); text-align: center; }
.quote-section .container { max-width: 980px; }
.quote-mark { display: block; height: 54px; color: rgba(7,28,63,.24); font-family: Georgia, serif; font-size: 7rem; line-height: .8; }
.quote-section p { margin: 0; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.08; font-weight: 900; letter-spacing: -.045em; }
.quote-section strong { display: block; margin-top: 25px; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }

.final-cta { padding: 90px 0; background: #fff; }
.final-cta__box { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 50px; color: #fff; background: linear-gradient(120deg, var(--navy), #0b4c9d); border-radius: 28px; box-shadow: var(--shadow); }
.final-cta__box > div { max-width: 690px; }
.final-cta__box p:not(.section-kicker) { margin: 18px 0 0; color: #d7e6fa; font-size: 1.08rem; }
.button--large { flex: 0 0 auto; min-height: 64px; padding-inline: 26px; }

.footer { color: #d7e1ee; background: #04132d; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.15fr .85fr; gap: 40px; padding-block: 55px; }
.footer__brand > * { display: block; }
.footer__brand strong { color: #fff; font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; }
.footer__brand b { margin: 4px 0 -2px; color: var(--yellow); font-size: 2.8rem; line-height: 1; }
.footer__brand span { font-weight: 650; }
.footer__legal { display: flex; flex-direction: column; justify-content: center; gap: 5px; font-size: .95rem; }
.footer__legal strong { color: #fff; }
.footer__social { align-self: center; }
.footer__social p { margin: 0 0 10px; font-weight: 750; }
.footer__social > div { display: flex; gap: 10px; }
.footer__social a { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #395071; border-radius: 50%; color: #fff; transition: border-color .2s ease, background .2s ease; }
.footer__social a:hover { border-color: var(--yellow); background: rgba(255,210,31,.1); }
.footer__social svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__social svg .fill { fill: currentColor; stroke: none; }
.footer__bottom { padding: 17px 0; color: #aab9cc; border-top: 1px solid #243856; font-size: .9rem; }

.story, .causes, .history, .territory, .quote-section, .final-cta, .footer { content-visibility: auto; contain-intrinsic-size: 900px; }

.whatsapp-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; display: none; align-items: center; gap: 9px; min-height: 52px; padding: 12px 16px; color: #fff; background: var(--green); border-radius: 100px; box-shadow: 0 12px 28px rgba(0,0,0,.3); font-size: .9rem; font-weight: 850; text-decoration: none; }
.whatsapp-float svg { width: 23px; height: 23px; fill: currentColor; }
.whatsapp-float[hidden] { display: none; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr 1fr; min-height: 670px; gap: 10px; }
  .hero__portrait { height: 570px; }
  .hero__name { font-size: clamp(3rem, 8vw, 4.6rem); }
  .hero__number { font-size: clamp(6rem, 15vw, 8.5rem); }
  .story__grid { grid-template-columns: .9fr 1.1fr; gap: 54px; }
  .causes__grid { grid-template-columns: 1fr; }
  .cause-card { min-height: auto; }
  .cause-card h3 { margin-top: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .hero::before { inset: 38% -30% auto 42%; height: 23%; transform: rotate(-15deg); }
  .hero::after { background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent 58%); }
  .hero__grid { display: flex; min-height: auto; flex-direction: column; gap: 8px; padding-block: 30px 0; text-align: center; }
  .hero__content { width: 100%; padding: 0; }
  .hero__eyebrow { margin-bottom: 12px; font-size: .76rem; }
  .hero__name { font-size: clamp(3.15rem, 15vw, 4.45rem); line-height: .9; }
  .hero__office { margin-top: 12px; font-size: clamp(1.12rem, 5.4vw, 1.45rem); }
  .hero__number { margin-top: 13px; font-size: clamp(6.7rem, 34vw, 9rem); }
  .hero__slogan { margin: 6px 0 18px; font-size: 1.28rem; }
  .hero .button { width: min(100%, 350px); }
  .hero__microcopy { margin-bottom: 5px; }
  .hero__portrait { width: 100%; height: 430px; margin-top: 5px; }
  .hero__portrait picture { height: 100%; }
  .hero__portrait::before { width: 88%; right: 6%; bottom: 0; }
  .hero__portrait img { max-width: none; height: 100%; }
  .hero__number-mark { right: -10%; top: 22%; font-size: 8rem; }
  .facts__row { padding: 12px 0; gap: 4px 0; }
  .facts__row span { width: 50%; padding: 3px 6px; font-size: .82rem; }
  .facts__row span + span { border-left: 0; }
  .facts__row span:nth-child(even) { border-left: 1px solid rgba(255,255,255,.24); }

  .section { padding: 74px 0; }
  .story__grid { display: flex; flex-direction: column-reverse; gap: 40px; }
  .story__portrait { max-width: 390px; margin-inline: auto; padding: 13px; border-radius: 26px; }
  .story__portrait { width: calc(100% - 12px); transform: none; }
  .story__portrait img { transform: none; }
  .story__stamp { right: 8px; bottom: 22px; min-width: 150px; transform: none; }
  .story__content .lead { font-size: 1.1rem; }
  .story__content blockquote { font-size: 1.02rem; }
  .section-heading { margin-bottom: 32px; }
  .causes__grid { gap: 14px; }
  .cause-card { padding: 26px 24px; }

  .timeline { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .timeline-card, .timeline-card--featured, .timeline-card--wide, .timeline-card--evidence { grid-column: auto; grid-template-columns: 1fr; }
  .timeline-card__image { min-height: 230px; aspect-ratio: 16 / 10; }
  .timeline-card--featured .timeline-card__image { max-height: none; aspect-ratio: 4 / 3; }
  .timeline-card__gallery { min-height: 0; grid-template-columns: 1fr; gap: 3px; }
  .timeline-card__gallery .timeline-card__image--institutional { aspect-ratio: 4 / 3; }
  .timeline-card__gallery .timeline-card__image--proof { aspect-ratio: 4 / 5; }
  .timeline-card__copy { padding: 24px; }

  .territory { min-height: 650px; align-items: end; }
  .territory__background img { object-position: 58% center; }
  .territory__overlay { background: linear-gradient(0deg, rgba(3,18,42,.98) 0%, rgba(4,31,75,.86) 65%, rgba(4,31,75,.3) 100%); }
  .territory__content { padding-block: 80px 60px; }
  .territory__content > p:not(.section-kicker) { font-size: 1.05rem; }
  .territory__places { gap: 8px; }
  .territory__places span, .territory__places strong { padding: 7px 12px; font-size: .9rem; }
  .quote-section { padding: 72px 0; }

  .final-cta { padding: 64px 0 90px; }
  .final-cta__box { display: block; padding: 34px 24px; border-radius: 22px; }
  .final-cta__box .button { width: 100%; margin-top: 27px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-block: 45px 90px; }
  .footer__social { grid-column: auto; }
  .whatsapp-float { display: flex; }
}

@media (max-width: 390px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero__grid { padding-top: 24px; }
  .hero__name { font-size: clamp(2.8rem, 14.8vw, 3.7rem); }
  .hero__number { font-size: 7.2rem; }
  .hero__portrait { height: 390px; }
  .button { padding-inline: 16px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 54px; height: 54px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
