/* ==========================================================================
   JCI Cartagena — Estilos
   Identidad visual según JCI Brand Guidelines 2026
   ========================================================================== */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 300; src: url('../assets/fonts/plus-jakarta-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url('../assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url('../assets/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url('../assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url('../assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 800; src: url('../assets/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --jci-blue: #0097D7;
  --jci-navy: #1F4789;
  --jci-teal: #57BCBC;
  --jci-black: #130F2D;
  --jci-yellow: #EFC40F;   /* acento: solo para destacar Cartagena / Colombia */
  --white: #FFFFFF;

  --ink: #130F2D;
  --muted: #5B6B8C;
  --line: #DCE8F3;
  --bg-soft: #F3F9FD;

  --grad: linear-gradient(135deg, var(--jci-navy) 0%, var(--jci-blue) 100%);
  --grad-teal: linear-gradient(135deg, var(--jci-blue) 0%, var(--jci-teal) 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(31, 71, 137, .10);
  --shadow-lg: 0 24px 60px rgba(31, 71, 137, .18);
  --header-h: 76px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.is-map { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--jci-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--font); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--jci-teal); outline-offset: 3px; }
.btn--primary { background: var(--jci-blue); color: var(--white); box-shadow: 0 8px 22px rgba(0, 151, 215, .35); }
.btn--primary:hover { background: var(--jci-navy); box-shadow: 0 12px 28px rgba(31, 71, 137, .35); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--jci-navy); }
.btn--white { background: var(--white); color: var(--jci-navy); }
.btn--white:hover { background: var(--jci-teal); color: var(--white); }
.btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--pulse { position: relative; }
.btn--pulse::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  border: 2px solid var(--jci-teal); animation: pulse 1.6s ease-out infinite; pointer-events: none;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.35, 1.6); opacity: 0; }
}
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--jci-blue); margin-bottom: .8em; }
.eyebrow--light { color: var(--jci-teal); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--jci-navy); letter-spacing: -.01em; }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .section-lead { margin-inline: auto; }

/* ==========================================================================
   FASE 1 · PRELOADER
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto 1fr auto; align-items: center;
  background: var(--white);
  padding: 32px 16px;
}
.preloader__top { display: flex; justify-content: center; }
.preloader__brand { height: 64px; width: auto; opacity: 0; }
.preloader__center { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.5vw, 32px); }
.preloader__word {
  font-size: clamp(2.6rem, 11vw, 9.5rem); font-weight: 800; line-height: 1;
  color: var(--jci-navy); letter-spacing: -.03em; display: inline-block;
}
.preloader__word--right { color: var(--jci-blue); }
.preloader__slot {
  position: relative; width: clamp(120px, 21vw, 280px); aspect-ratio: 1.78;
  flex-shrink: 0;
}
.preloader__slot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.6);
}
.preloader__flash {
  position: absolute; inset: -60%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(239,196,15,.55) 0%, rgba(239,196,15,.18) 35%, rgba(255,255,255,0) 65%);
  opacity: 0; transform: scale(.4);
}
.preloader__bottom { text-align: center; }
.preloader__org { font-weight: 700; color: var(--jci-navy); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; min-height: 1.4em; margin-bottom: 14px; }
.preloader__bar { width: min(320px, 80vw); height: 3px; margin: 0 auto 10px; background: var(--line); border-radius: 3px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--grad-teal); }
.preloader__pct { font-weight: 800; font-size: .9rem; color: var(--jci-blue); margin: 0; font-variant-numeric: tabular-nums; }
.preloader__skip {
  position: absolute; right: 20px; bottom: 20px; background: none; border: 0; color: var(--muted);
  font: 600 .8rem var(--font); cursor: pointer; letter-spacing: .05em;
}
.preloader__skip:hover { color: var(--jci-navy); }

/* ==========================================================================
   FASE 2 · MAPA
   ========================================================================== */
.map-stage {
  position: fixed; inset: 0; z-index: 90;
  background:
    radial-gradient(circle at 20% 15%, rgba(87,188,188,.18), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0,151,215,.10), transparent 40%),
    var(--bg-soft);
  overflow: hidden;
}
.map-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(31,71,137,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}
.map-stage__intro {
  position: absolute; top: 32px; left: 32px; z-index: 3; max-width: 300px;
}
.map-stage__brand { height: 52px; width: auto; margin-bottom: 18px; }
.map-stage__title { font-size: 1.6rem; font-weight: 800; color: var(--jci-navy); margin-bottom: .3em; }
.map-stage__text { color: var(--muted); font-size: .95rem; }
.map-stage__legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.map-stage__legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--jci-blue); box-shadow: 0 0 0 4px rgba(0,151,215,.2); }
.dot--host { background: var(--jci-navy); box-shadow: 0 0 0 4px var(--jci-yellow); width: 14px; height: 14px; }

.map-stage__canvas { position: absolute; inset: 0; }
.map { width: 100%; height: 100%; display: block; }
.map__land { fill: url(#landFill); stroke: var(--jci-blue); stroke-width: 1.6; stroke-linejoin: round; }
.map__links line { stroke: var(--jci-blue); stroke-opacity: .45; stroke-width: 1.2; stroke-dasharray: 4 4; fill: none; }
.map__arrow { fill: none; stroke: var(--jci-navy); stroke-width: 2.4; stroke-linecap: round; }
.map__sea { font: italic 600 13px var(--font); fill: var(--jci-blue); opacity: .55; letter-spacing: .2em; }
.pin { cursor: default; }
.pin__ring { fill: none; stroke: var(--jci-teal); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
.pin__glow { fill: url(#pinGlow); }
.pin__dot { fill: var(--jci-blue); stroke: var(--white); stroke-width: 1.5; }
.pin__label { font: 700 9px var(--font); fill: var(--jci-navy); paint-order: stroke; stroke: var(--bg-soft); stroke-width: 3px; stroke-linejoin: round; }
.pin--host { cursor: pointer; }
.pin--host .pin__dot { fill: var(--jci-navy); stroke: var(--jci-yellow); stroke-width: 2.5; }
.pin--host .pin__ring { stroke: var(--jci-yellow); }
.pin--host .pin__label { font-size: 11px; font-weight: 800; }
.pin--host:hover .pin__dot { fill: var(--jci-blue); }
@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.map-card {
  position: absolute; z-index: 4; left: 0; top: 0;
  display: flex; gap: 16px; align-items: center;
  width: 340px; padding: 18px 20px; border-radius: 22px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(87,188,188,.5);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.map-card.is-visible { pointer-events: auto; }
.map-card__logo { width: 120px; height: auto; flex-shrink: 0; }
.map-card__eyebrow { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--jci-black); background: var(--jci-yellow); padding: 3px 10px; border-radius: 99px; }
.map-card__title { font-size: 1.35rem; font-weight: 800; color: var(--jci-navy); margin: 6px 0 2px; }
.map-card__text { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.map-card .btn { padding: .75em 1.2em; font-size: .85rem; }

/* Cortina de transición */
.curtain {
  position: fixed; inset: 0; z-index: 120; pointer-events: none;
  background: var(--grad);
  clip-path: circle(0% at 50% 50%);
}

/* ==========================================================================
   FASE 3 · SITIO
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled, .header.is-open { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(31,71,137,.08); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__logo img { height: 50px; width: auto; transition: filter .3s ease; filter: brightness(0) invert(1); }
.header.is-scrolled .header__logo img, .header.is-open .header__logo img { filter: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: .92rem;
  color: var(--white); border-radius: 99px; transition: color .25s ease, background .25s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--jci-teal); transform: scaleX(0); transition: transform .3s ease; transform-origin: left;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.header.is-scrolled .nav__link { color: var(--ink); }
.header.is-scrolled .nav__link.is-active { color: var(--jci-blue); }
.map-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.45); background: transparent; color: var(--white);
  font: 600 .78rem var(--font); cursor: pointer; transition: all .25s ease; opacity: .85;
}
.map-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.map-toggle:hover { opacity: 1; background: rgba(255,255,255,.12); }
.header.is-scrolled .map-toggle, .header.is-open .map-toggle { color: var(--jci-navy); border-color: var(--line); }
.header.is-scrolled .map-toggle:hover { background: var(--bg-soft); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.header.is-scrolled .burger span, .header.is-open .burger span { background: var(--jci-navy); }
.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 140px; color: var(--white); overflow: hidden;
  background: var(--grad);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; }
.blob--1 { width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle, var(--jci-teal), transparent 65%); animation: float 12s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; left: -120px; bottom: 40px; background: radial-gradient(circle, var(--jci-blue), transparent 65%); animation: float 14s ease-in-out infinite reverse; }
.blob--3 { width: 240px; height: 240px; right: 22%; bottom: 18%; background: radial-gradient(circle, rgba(255,255,255,.5), transparent 65%); animation: float 10s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(30px, -30px) scale(1.06); } }
.hero__waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 120px; }
.hero__inner { position: relative; max-width: 900px; text-align: left; }
.hero__title { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .35em; }
.hero__title span { display: block; color: var(--jci-teal); }
.hero__subtitle { font-size: clamp(1.02rem, 1.6vw, 1.25rem); max-width: 640px; opacity: .92; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Áreas de oportunidad ---------- */
.areas { padding: 40px 0 110px; }
.areas__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.area-card {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; isolation: isolate; cursor: default; outline: none;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, color .4s ease, border-color .4s ease;
}
.area-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: translateY(101%); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.area-card:hover, .area-card:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--white); border-color: transparent; }
.area-card:hover::before, .area-card:focus-visible::before { transform: translateY(0); }
.area-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-soft); margin-bottom: 22px; transition: background .4s ease; }
.area-card__icon svg { width: 28px; height: 28px; fill: var(--jci-blue); transition: fill .4s ease; }
.area-card:hover .area-card__icon, .area-card:focus-visible .area-card__icon { background: rgba(255,255,255,.15); }
.area-card:hover .area-card__icon svg, .area-card:focus-visible .area-card__icon svg { fill: var(--jci-teal); }
.area-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--jci-navy); transition: color .4s ease; }
.area-card:hover h3, .area-card:focus-visible h3 { color: var(--white); }
.area-card p { font-size: .93rem; color: var(--muted); transition: color .4s ease; }
.area-card:hover p, .area-card:focus-visible p { color: rgba(255,255,255,.88); }
.area-card__more { font-size: .85rem; font-weight: 700; color: var(--jci-blue); transition: color .4s ease; }
.area-card:hover .area-card__more, .area-card:focus-visible .area-card__more { color: var(--jci-teal); }

/* ---------- Nosotros ---------- */
.about { padding: 110px 0; background: var(--bg-soft); }
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.about__text > p { font-size: 1.05rem; color: var(--muted); }
.about__text strong { color: var(--jci-navy); }
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.mission__item { background: var(--white); border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--jci-blue); box-shadow: var(--shadow); }
.mission__item h3 { font-size: 1rem; color: var(--jci-navy); font-weight: 800; }
.mission__item p { font-size: .92rem; color: var(--muted); margin: 0; }
.backing__label { font-weight: 700; color: var(--jci-navy); text-align: center; margin-bottom: 18px; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.backing { display: flex; flex-direction: column; align-items: stretch; }
.backing__item { background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.backing__item strong { display: block; color: var(--jci-navy); font-size: 1.05rem; }
.backing__item small { color: var(--muted); }
.backing__badge { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--jci-blue); background: var(--bg-soft); padding: 3px 10px; border-radius: 99px; margin-bottom: 6px; }
.backing__badge--light { background: rgba(255,255,255,.18); color: var(--white); }
.backing__line { width: 2px; height: 26px; margin: 0 auto; background: repeating-linear-gradient(var(--jci-teal) 0 4px, transparent 4px 8px); }
.backing__item--host { display: flex; align-items: center; gap: 16px; background: var(--grad); color: var(--white); border: 0; box-shadow: var(--shadow-lg); }
.backing__item--host strong { color: var(--white); font-size: 1.2rem; }
.backing__item--host small { color: rgba(255,255,255,.85); }
.backing__logo { width: 110px; height: auto; flex-shrink: 0; filter: brightness(0) invert(1); }

/* ---------- Qué hacemos ---------- */
.work { padding: 110px 0; }
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work-card {
  position: relative; padding: 32px 26px; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.work-card::after { content: ''; position: absolute; left: 26px; right: 26px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad-teal); transform: scaleX(.25); transform-origin: left; transition: transform .4s ease; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.work-card:hover::after { transform: scaleX(1); }
.work-card__num { font-size: 2.6rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--jci-teal); line-height: 1; display: block; margin-bottom: 16px; }
.work-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--jci-navy); }
.work-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.steps { margin-top: 70px; padding: 44px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.steps__title { text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--jci-navy); margin-bottom: 32px; }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps__list::before { content: ''; position: absolute; top: 22px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--jci-teal) 0 6px, transparent 6px 12px); }
.steps__list li { position: relative; text-align: center; }
.steps__list li > span { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--jci-blue); color: var(--white); font-weight: 800; box-shadow: 0 0 0 6px var(--bg-soft); }
.steps__list strong { display: block; color: var(--jci-navy); margin-bottom: 4px; }
.steps__list p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Organizaciones locales ---------- */
.orgs { padding: 110px 0; background: linear-gradient(180deg, var(--bg-soft), var(--white)); }
.orgs__year { text-align: center; font-weight: 700; color: var(--jci-blue); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; margin-bottom: 22px; }
.orgs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; perspective: 900px; }
.org-card {
  position: relative; padding: 26px 18px 20px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); text-align: center; box-shadow: 0 4px 14px rgba(31,71,137,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; transform-style: preserve-3d;
}
.org-card:hover { box-shadow: var(--shadow-lg); border-color: var(--jci-teal); }
.org-card img { width: 100%; max-width: 150px; height: auto; margin: 0 auto 16px; object-fit: contain; transition: transform .4s ease; }
.org-card:hover img { transform: scale(1.08) rotate(-4deg); }
.org-card h3 { font-size: 1rem; font-weight: 800; color: var(--jci-navy); margin-bottom: 2px; }
.org-card p { font-size: .8rem; color: var(--muted); margin: 0; }
.org-card--host { grid-column: span 2; display: flex; align-items: center; gap: 20px; text-align: left; background: var(--grad); border: 0; color: var(--white); box-shadow: var(--shadow-lg); padding: 24px; }
.org-card--host img { margin: 0; width: 46%; max-width: 190px; filter: brightness(0) invert(1); }
.org-card--host h3 { color: var(--white); font-size: 1.3rem; }
.org-card--host p { color: rgba(255,255,255,.85); }
.org-card__badge { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--jci-yellow); color: var(--jci-black); padding: 4px 10px; border-radius: 99px; margin-bottom: 8px; }
.org-card__badge::before { content: '★'; }
.org-card__tag { display: inline-block; margin-top: 8px; font-size: .75rem; font-weight: 700; color: var(--jci-yellow); }

.member { margin-top: 80px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--jci-black); color: var(--white); position: relative; overflow: hidden; }
.member::after { content: '“'; position: absolute; right: 30px; top: -40px; font-size: 16rem; font-weight: 800; color: rgba(87,188,188,.15); line-height: 1; }
.member__quote { position: relative; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; line-height: 1.7; max-width: 900px; margin: 0; }

.join { margin-top: 80px; }
.join__title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--jci-navy); margin-bottom: 36px; }
.join__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.join-step { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s ease; }
.join-step:hover { transform: translateY(-6px); }
.join-step__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--grad-teal); color: var(--white); font-weight: 800; font-size: 1.3rem; margin-bottom: 18px; }
.join-step h4 { font-size: 1.2rem; font-weight: 800; color: var(--jci-navy); }
.join-step p { color: var(--muted); margin: 0; font-size: .95rem; }

.cta { margin-top: 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(30px, 5vw, 50px); border-radius: var(--radius-lg); background: var(--grad); color: var(--white); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; width: 360px; height: 360px; right: -100px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(87,188,188,.55), transparent 65%); }
.cta > * { position: relative; }
.cta__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.cta p { margin: 0; max-width: 620px; opacity: .92; }

/* ---------- Contacto ---------- */
.contact { padding: 110px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--jci-navy); }
.contact__list svg { width: 22px; height: 22px; fill: var(--jci-blue); flex-shrink: 0; }
.contact__list a { text-decoration: none; }
.contact__note { color: var(--muted); font-size: .9rem; }
.form { background: var(--white); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 120px; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .82rem; font-weight: 700; color: var(--jci-navy); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 .95rem var(--font); color: var(--ink); padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--jci-blue); background: var(--white); box-shadow: 0 0 0 4px rgba(0,151,215,.12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #D64545; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--jci-blue); width: 16px; height: 16px; }
.check.is-invalid { color: #D64545; }
.form__status { margin: 0; font-weight: 600; font-size: .9rem; min-height: 1.2em; }
.form__status.is-ok { color: #138A5B; }
.form__status.is-error { color: #D64545; }

/* ---------- Footer ---------- */
.footer { background: var(--jci-black); color: rgba(255,255,255,.85); padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { height: 72px; width: auto; margin-bottom: 18px; }
.footer strong { color: var(--white); }
.footer__place { color: var(--jci-teal); font-weight: 600; }
.footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer__links a { text-decoration: none; transition: color .2s ease; }
.footer__links a:hover, .footer .linklike:hover { color: var(--jci-teal); }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .2s ease; }
.footer__social a:hover { background: var(--jci-blue); }
.footer__social svg { width: 18px; height: 18px; fill: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- Modal ---------- */
.modal { border: 0; border-radius: var(--radius-lg); padding: 32px; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); font-family: var(--font); }
.modal::backdrop { background: rgba(19,15,45,.55); backdrop-filter: blur(3px); }
.modal h3 { color: var(--jci-navy); font-weight: 800; }
.modal p { color: var(--muted); font-size: .93rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .areas__grid, .work__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__link { padding: 8px 10px; font-size: .86rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .burger { display: block; }
  .map-toggle { margin-left: auto; }
  .map-toggle span { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 12px 16px 24px; background: var(--white); box-shadow: 0 20px 30px rgba(31,71,137,.12);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s ease;
  }
  .header.is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__link { color: var(--ink); padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--jci-blue); }
  .header__logo img { height: 40px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .steps__list::before { display: none; }
  .join__steps { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .map-stage__intro { top: 20px; left: 16px; right: 16px; max-width: none; }
  .map-stage__brand { height: 32px; margin-bottom: 10px; }
  .map-stage__title { font-size: 1.25rem; }
  .map-stage__text { font-size: .85rem; margin-bottom: .6em; }
  .map-stage__legend { display: flex; gap: 16px; }
}
@media (max-width: 600px) {
  .areas__grid, .work__grid, .mission { grid-template-columns: 1fr; }
  .steps { padding: 30px 20px; }
  .steps__list { grid-template-columns: 1fr; }
  .orgs__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .org-card { padding: 20px 10px 16px; }
  .org-card img { width: 68px; height: 68px; }
  .org-card--host { flex-direction: column; text-align: center; }
  .hero__actions .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr 90px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .map-card { width: calc(100% - 32px); padding: 14px 16px; gap: 12px; }
  .map-card__logo { width: 64px; height: 64px; }
  .map-card__title { font-size: 1.15rem; }
  .preloader__skip { right: 50%; transform: translateX(50%); bottom: 10px; }
}

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

/* ---------- Motivo "ripple" (Brand Guidelines 2026) ---------- */
.ripple { position: absolute; pointer-events: none; background: url('../assets/brand/ripple.svg') center / contain no-repeat; }
.hero .ripple { width: min(720px, 90vw); aspect-ratio: 1; right: -180px; top: 50%; transform: translateY(-50%); opacity: .12; animation: spin 120s linear infinite; }
.cta .ripple { width: 420px; aspect-ratio: 1; right: -120px; bottom: -200px; opacity: .14; }
.footer { position: relative; overflow: hidden; }
.footer .ripple { width: 520px; aspect-ratio: 1; right: -160px; top: -200px; opacity: .05; }
.footer > .container { position: relative; }
.map-stage .ripple { width: 900px; aspect-ratio: 1; left: -300px; bottom: -380px; opacity: .5; filter: invert(48%) sepia(77%) saturate(2400%) hue-rotate(170deg) brightness(95%); opacity: .045; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ==========================================================================
   GLOBO MUNDIAL 3D
   ========================================================================== */
.globe-stage {
  position: fixed; inset: 0; z-index: 95; overflow: hidden;
  background:
    radial-gradient(circle at 70% 45%, rgba(0,151,215,.22), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(87,188,188,.12), transparent 45%),
    var(--jci-black);
  color: var(--white);
}
.globe-stage .ripple { width: 1100px; aspect-ratio: 1; left: -380px; top: -420px; opacity: .035; }
.globe-stage__canvas { position: absolute; inset: 0; }
.globe-wrap { position: absolute; transform-origin: center; }
.globe-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe-stage.is-dragging canvas { cursor: grabbing; }
.globe-stage.is-zooming canvas { cursor: default; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }
.gl-label { position: absolute; left: 0; top: 0; opacity: 0; transform: translate(-6px, -6px); display: flex; align-items: center; gap: 8px; white-space: nowrap; will-change: left, top, opacity; }
.gl-pulse { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.gl-pulse::before, .gl-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--jci-blue); animation: glPulse 2.2s ease-out infinite; }
.gl-pulse::after { animation-delay: 1.1s; }
.gl-name { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(19,15,45,.9); }
.gl-label--home { z-index: 2; }
.gl-label--home .gl-pulse { width: 18px; height: 18px; }
.gl-label--home .gl-pulse::before, .gl-label--home .gl-pulse::after { border-color: var(--jci-yellow); border-width: 2px; }
.gl-label--home { transform: translate(-9px, -9px); }
.gl-label--home .gl-name { font-size: 1rem; font-weight: 800; color: var(--jci-yellow); }
@keyframes glPulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }

.globe-stage__intro { position: absolute; z-index: 3; left: clamp(16px, 4vw, 56px); top: 50%; transform: translateY(-50%); max-width: 360px; }
.globe-stage__brand { height: 56px; width: auto; margin-bottom: 26px; }
.globe-stage__title { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: .4em; }
.globe-stage__text { color: rgba(255,255,255,.75); font-weight: 300; font-size: 1.05rem; }
.globe-stage__legend { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.75); }
.globe-stage__legend li { display: flex; align-items: center; gap: 10px; }
.dot--yellow { background: var(--jci-yellow); box-shadow: 0 0 0 4px rgba(239,196,15,.3); }
.globe-stage__hint { margin: 16px 0 0; font-size: .78rem; color: rgba(255,255,255,.5); }

.globe-back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--white); color: var(--jci-navy);
  font: 600 .82rem var(--font); cursor: pointer; box-shadow: var(--shadow); transition: all .25s ease;
}
.globe-back svg { width: 16px; height: 16px; fill: var(--jci-blue); }
.globe-back:hover { background: var(--jci-black); color: var(--white); border-color: transparent; }
.globe-back:hover svg { fill: var(--jci-yellow); }

@media (max-width: 900px) {
  .globe-stage__intro { top: 20px; transform: none; right: 16px; max-width: none; }
  .globe-stage__brand { height: 40px; margin-bottom: 12px; }
  .globe-stage__title { font-size: 1.35rem; }
  .globe-stage__text { font-size: .9rem; margin-bottom: .6em; }
  .globe-stage__legend { display: flex; gap: 16px; margin-bottom: 0; }
  .globe-stage__intro .btn { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); }
  .globe-stage__hint { display: none; }
  .gl-name { font-size: .7rem; }
  .globe-back { margin-top: 10px; padding: 7px 12px; font-size: .75rem; }
}
.gl-label--left { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -6px); }

/* ---------- Correcciones (dic. 2026) ---------- */
.map-card { flex-wrap: wrap; justify-content: center; }
.map-card__body .map-card__text { margin-bottom: 0; }
.map-card__cta { flex-basis: 100%; display: flex; justify-content: center; padding-top: 4px; }
.gl-label--home { pointer-events: auto; cursor: pointer; }
.gl-label--home:hover .gl-name, .gl-label--home:focus-visible .gl-name { text-decoration: underline; text-underline-offset: 4px; }
.gl-label--home:focus-visible { outline: 2px solid var(--jci-yellow); outline-offset: 4px; border-radius: 6px; }
.form__hint { margin: -8px 0 0; font-size: .8rem; color: var(--muted); }
.footer__social a.is-pending { opacity: .4; cursor: default; }
.footer__social a.is-pending:hover { background: rgba(255,255,255,.1); }
