:root {
  --teal: #03c3c4;
  --green: #009e7e;
  --navy: #011530;
  --ink: #1b2a3a;
  --muted: #5d6b7a;
  --bg: #ffffff;
  --tint: #f2fbfb;
  --line: #e3eef0;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(1, 21, 48, .18);
  --grad: linear-gradient(120deg, var(--teal), var(--green));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
p + p { margin-top: 1rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.narrow { max-width: 720px; margin: 3rem auto 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: .75rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.6rem;
  border-radius: 999px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px var(--green); }
.btn--ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.btn--sm { padding: .55rem 1.2rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(1,21,48,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
/* Logo (PNG blanco) pintado con el degradé de marca usando solo colores CSS:
   img en negro sobre blanco + degradé en "screen" (negro -> degradé), y "multiply" para que el blanco no tape el header */
.logo { position: relative; display: block; isolation: isolate; background: #fff; mix-blend-mode: multiply; }
.logo img { display: block; height: 48px; width: auto; filter: brightness(0); }
.logo::after { content: ""; position: absolute; inset: 0; background: var(--grad); mix-blend-mode: screen; pointer-events: none; }
.nav { display: flex; align-items: center; gap: 2rem; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn) { position: relative; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--navy); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__item { position: relative; }
.nav__top { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); transition: color .2s; }
.nav__top svg { transition: transform .2s; }
.nav__top:hover, .nav__top.is-active, .nav__item.is-open .nav__top { color: var(--navy); }
.nav__item.is-open .nav__top svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + .75rem); left: -1rem; min-width: 230px; display: grid; padding: .5rem;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow);
  opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .2s, translate .2s, visibility .2s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .75rem; }
.nav__item:hover .nav__sub, .nav__item.is-open .nav__sub { opacity: 1; visibility: visible; translate: 0; }
.nav .nav__sub a { padding: .6rem .8rem; border-radius: 10px; }
.nav .nav__sub a::after { display: none; }
.nav .nav__sub a:hover, .nav .nav__sub a.is-active { background: var(--tint); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--navy); transition: .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 4rem 0 5rem;
  background: radial-gradient(1000px 500px at 85% 20%, rgba(3,195,196,.14), transparent 60%),
              radial-gradient(700px 400px at 0% 100%, rgba(0,158,126,.10), transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 1.5rem 0 2rem; max-width: 34rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; box-shadow: var(--shadow); }
.blob {
  position: absolute; inset: -6% -4% -4% -6%; background: var(--grad); opacity: .9;
  border-radius: 58% 42% 45% 55% / 45% 55% 45% 55%; animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  50% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; transform: rotate(6deg); }
}

/* Stats */
.stats { margin-top: -2.5rem; position: relative; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem; gap: 1rem;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.stat span { font-size: .9rem; color: var(--muted); }
.stat + .stat { border-left: 1px solid var(--line); }

/* Sections */
.section { padding: 6rem 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.card { background: #fff; border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow); }
.card--soft { background: var(--tint); box-shadow: none; border: 1px solid var(--line); font-size: 1.05rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 10px; left: calc(100% / 6); right: calc(100% / 6); height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}
.timeline li { background: #fff; border-radius: var(--radius); padding: 3.5rem 1.75rem 1.75rem; position: relative; box-shadow: var(--shadow); margin-top: 44px; }
.timeline li::before {
  content: ""; position: absolute; top: -44px; left: 50%; translate: -50% 0; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; border: 5px solid var(--teal);
}
.timeline__year { position: absolute; top: 1.2rem; left: 1.75rem; font-weight: 800; color: var(--green); font-size: 1.1rem; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; background: var(--tint); padding: .4rem; border-radius: 999px; width: fit-content; margin-inline: auto; }
.tab { padding: .7rem 1.6rem; border-radius: 999px; font-weight: 700; color: var(--muted); transition: .25s; }
.tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 4px 14px -6px rgba(1,21,48,.25); }
.panel { display: none; animation: fade .4s ease; }
.panel.is-active { display: block; }
.panel__intro { max-width: 820px; margin: 0 auto 2.5rem; text-align: center; color: var(--muted); font-size: 1.05rem; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.5rem;
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; margin-bottom: 1.1rem; background: var(--tint); }
.feature p { font-size: .93rem; color: var(--muted); }

/* Checks */
.checks { list-style: none; display: grid; gap: .8rem; margin-top: 1rem; }
.checks--cols { grid-template-columns: 1fr 1fr; gap: .8rem 1.25rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .25rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.5 17.2-4.7-4.7 1.4-1.4 3.3 3.3 6.8-6.8 1.4 1.4-8.2 8.2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.5 17.2-4.7-4.7 1.4-1.4 3.3 3.3 6.8-6.8 1.4 1.4-8.2 8.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.note a { text-decoration: underline; }
.section--tint .note { background: #fff; }
.note { margin-top: 1.5rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--tint); color: var(--green); font-weight: 600; font-size: .95rem; }

/* Donate */
.donate { background: radial-gradient(900px 500px at 100% 0%, rgba(3,195,196,.25), transparent 60%), var(--navy); color: #cfe0ea; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: #a9c0cf; }
.section__head--light .eyebrow { color: var(--teal); }
.donate__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.dcard {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 1.75rem; backdrop-filter: blur(6px);
}
.dcard__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.dcard__head h3 { color: #fff; margin: 0; }
.dcard__logo { height: 40px; width: auto; max-width: 90px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; }
.dcard__logo--sm { max-width: 70px; }
.dcard__foot { font-size: .8rem; color: #8aa3b4; margin-top: 1rem; }
.dcard__text { font-size: .9rem; color: #a9c0cf; margin-bottom: 1rem; }
.phones { list-style: none; display: grid; gap: .5rem; }
.phones li { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.phones a { color: #fff; font-weight: 700; letter-spacing: .03em; }
.phones span { font-weight: 700; color: var(--teal); }
.copyrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.06); margin-bottom: .75rem; }
.copyrow small { display: block; font-size: .8rem; color: #8aa3b4; }
.copyrow code { font-family: inherit; color: #fff; font-weight: 700; word-break: break-all; }
.copy { flex-shrink: 0; padding: .45rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(3,195,196,.15); color: var(--teal); transition: .2s; }
.copy:hover { background: var(--teal); color: var(--navy); }
.copy.is-done { background: var(--green); color: #fff; }

/* Team */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.chip { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--muted); transition: .2s; }
.chip:hover { border-color: var(--teal); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.5rem; }
.member { text-align: center; animation: fade .4s ease both; }
.member__img { width: 140px; height: 140px; margin: 0 auto 1rem; border-radius: 50%; padding: 4px; background: var(--grad); }
.member__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--tint); border: 4px solid #fff; }
.member h4 { font-size: 1rem; color: var(--navy); }
.member span { font-size: .85rem; color: var(--muted); }

/* Contact */
.contact { align-items: start; }
.info { list-style: none; display: grid; gap: 1.1rem; margin: 1.5rem 0; }
.info b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.info a:hover { color: var(--green); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); align-self: stretch; min-height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { display: grid; gap: 1rem; }
.form h3 { font-size: 1.5rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.form input, .form textarea, .form select {
  font: inherit; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfefe;
  transition: border-color .2s, box-shadow .2s; resize: vertical; min-width: 0;
}
.form select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b7a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
}
.form input[type="file"] { padding: .6rem; cursor: pointer; }
.form input[type="file"]::file-selector-button {
  font: inherit; font-size: .85rem; font-weight: 700; margin-right: .9rem; padding: .5rem 1rem; border: 0;
  border-radius: 999px; background: rgba(3,195,196,.15); color: var(--green); cursor: pointer; transition: .2s;
}
.form input[type="file"]::file-selector-button:hover { background: var(--teal); color: var(--navy); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(3,195,196,.15); }
.form .is-invalid { border-color: #e0566b; background-color: #fff6f7; }
.form small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .btn { justify-content: center; }
.form__msg { font-weight: 600; font-size: .95rem; min-height: 1.5em; }
.form__msg.ok { color: var(--green); }
.form__msg.err { color: #e0566b; }

/* Footer */
.footer { background: var(--navy); color: #a9c0cf; padding: 3rem 0 1.5rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer__logo { height: 52px; width: auto; }
.footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 600; }
.footer nav a:hover { color: #fff; }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: .2s; }
.social a:hover { background: var(--teal); color: var(--navy); }
.footer__copy { text-align: center; font-size: .85rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; width: min(960px, 92vw); margin: auto; overflow: visible; }
.modal::backdrop { background: rgba(1,21,48,.8); backdrop-filter: blur(4px); }
.modal video { width: 100%; border-radius: 16px; display: block; background: #000; }
.modal__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; }

/* Reveal */
/* Redes: feeds oficiales embebidos (Page Plugin de Facebook y embed de perfil de Instagram).
   El alto sigue al embed de Instagram (cabecera ~160px + grilla de 2 filas = 2/3 del ancho) para que no sobre espacio
   y las dos tarjetas queden iguales. */
.feeds { align-items: start; max-width: 860px; margin-inline: auto; }
.feeds__card { container-type: inline-size; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem; }
.feeds__card h3 { align-self: flex-start; margin: 0; }
.feeds__card iframe { width: 100%; max-width: 360px; height: calc(160px + min(100cqw, 360px) * 2 / 3); border: 0; border-radius: 12px; background: #fff; }
.feeds__link { font-weight: 600; color: var(--green); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .split, .grid--2 { grid-template-columns: 1fr; }
  .hero__media { max-width: 420px; margin: 0 auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .donate__grid, .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: #fff;
    padding: 1rem 16px 1.5rem; box-shadow: 0 20px 30px -20px rgba(1,21,48,.3);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__item { width: 100%; }
  .nav__top { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--navy); }
  .nav__top svg { display: none; }
  .nav__sub { position: static; min-width: 0; padding: 0 0 0 1rem; background: none; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; translate: none; }
  .nav__sub::before { display: none; }
  .nav .nav__sub a { padding: .75rem 0; border-radius: 0; }
  .nav .nav__sub a:hover, .nav .nav__sub a.is-active { background: none; }
  .nav .btn { margin-top: 1rem; }
}
@media (max-width: 560px) {
  .section { padding: 4rem 0; }
  .grid--4, .checks--cols, .form__row { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
