:root {
  --bg: #030814;
  --bg-soft: #071426;
  --card: rgba(9, 22, 42, 0.78);
  --card-strong: rgba(11, 28, 55, 0.94);
  --blue: #1f6fff;
  --blue-soft: #6aa4ff;
  --cyan: #8fd5ff;
  --gold: #d6b46f;
  --text: #f5f8ff;
  --muted: #aab7cb;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 255, 0.22), transparent 38%),
    radial-gradient(circle at 80% 15%, rgba(143, 213, 255, 0.13), transparent 28%),
    linear-gradient(135deg, #020611 0%, #071426 45%, #020611 100%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -2;
}

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

p {
  color: var(--muted);
  line-height: 1.75;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 105px 0;
}

.page-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(75px);
  opacity: 0.22;
  z-index: -1;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.glow-one {
  background: var(--blue);
  top: 8%;
  left: -120px;
}

.glow-two {
  background: var(--cyan);
  right: -150px;
  bottom: 12%;
  animation-delay: 1.5s;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 40px));
  height: 74px;
  padding: 0 18px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 8, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  z-index: 50;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.3);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand span {
  color: var(--blue-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav a:hover,
.nav .nav-cta {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  transition: 0.25s ease;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-top: 150px;
}

.eyebrow {
  display: inline-flex;
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h1 {
  font-size: clamp(3.3rem, 8vw, 7.7rem);
  letter-spacing: -0.08em;
  max-width: 850px;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.25rem;
}

.hero-role {
  margin-top: 18px;
  color: var(--blue-soft);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-phrase {
  margin-top: 8px;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-text {
  max-width: 680px;
  margin-top: 24px;
  font-size: 1.05rem;
}

.hero-actions,
.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #021024;
  box-shadow: 0 18px 45px rgba(31, 111, 255, 0.34);
}

.btn.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  display: flex;
  justify-content: center;
  transform: translateX(-58px);
}

.photo-card {
  position: relative;
  width: min(1000px, 100%);
  aspect-ratio: 0.78;
  border-radius: 42px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: cardFloat 5s ease-in-out infinite alternate;
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(31,111,255,0.8), transparent 38%, rgba(214,180,111,0.5));
  z-index: -1;
  opacity: 0.55;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: block;
  text-align: center;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(31,111,255,0.18), rgba(143,213,255,0.05)),
    url("img/foto-principal.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.hero-photo {
  width: 150%;
  height: 100%;
  object-fit: cover;
  object-position: -180px -10px;
  display: block;
}

.photo-placeholder span {
  font-weight: 800;
  font-size: 1.2rem;
}

.photo-placeholder small {
  color: var(--muted);
}

.floating-badge {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(3, 8, 20, 0.75);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.badge-top {
  top: 13%;
  left: -46px;
}

.badge-bottom {
  right: -36px;
  bottom: 14%;
}

.section-title {
  max-width: 860px;
  margin-bottom: 42px;
}

.section-title.center {
  text-align: center;
  margin-inline: auto;
}

.section-description {
  margin-top: 16px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.intro-card,
.quote-card,
.area-card,
.event-content,
.trajectory-card,
.panel-card,
.social-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-card {
  padding: 34px;
}

.intro-card p + p {
  margin-top: 18px;
}

.quote-card {
  padding: 34px;
  background: linear-gradient(145deg, rgba(31, 111, 255, 0.22), rgba(9, 22, 42, 0.86));
}

.quote-card span {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.quote-card h3 {
  margin: 18px 0;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.area-grid,
.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.area-card,
.panel-card {
  padding: 28px;
  min-height: 250px;
  transition: 0.25s ease;
}

.area-card:hover,
.panel-card:hover {
  transform: translateY(-8px);
  border-color: rgba(143, 213, 255, 0.35);
}

.area-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(31,111,255,0.15);
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 28px;
}

.area-card h3,
.panel-card h3 {
  margin-bottom: 14px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.event-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: stretch;
}

.event-year {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 30px;
  color: var(--cyan);
  font-weight: 900;
  font-size: 1.35rem;
}

.event-content {
  padding: 30px;
}

.tag {
  display: inline-flex;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-content h3 {
  font-size: 1.65rem;
  margin-bottom: 14px;
}

.event-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 800;
}

.trajectory-card {
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(145deg, rgba(31, 111, 255, 0.18), rgba(9, 22, 42, 0.86)),
    var(--card-strong);
}

.trajectory-card p {
  margin-top: 20px;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.credential-grid div {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.credential-grid strong,
.credential-grid span {
  display: block;
}

.credential-grid strong {
  margin-bottom: 10px;
}

.credential-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.panel-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.gallery-card {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255,255,255,.12);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.gallery-card.tall img {
  object-position: 72% center;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.15), transparent);
}

.gallery-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.gallery-card span {
  color: #93c5fd;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gallery-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 6px;
}

.gallery-card.tall {
  grid-row: span 2;
}

.gallery-card.wide {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card.wide,
  .gallery-card.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(31,111,255,0.18), rgba(255,255,255,0.04)),
    url("img/evento-1.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  color: rgba(255,255,255,0.75);
  font-weight: 800;
  text-align: center;
  padding: 20px;
}

.gallery-item:nth-child(3) {
  background-image: linear-gradient(145deg, rgba(31,111,255,0.18), rgba(255,255,255,0.04)), url("img/evento-2.jpg");
}

.gallery-item:nth-child(4) {
  background-image: linear-gradient(145deg, rgba(31,111,255,0.18), rgba(255,255,255,0.04)), url("img/voluntariado.jpg");
}

.gallery-item:nth-child(5) {
  background-image: linear-gradient(145deg, rgba(31,111,255,0.18), rgba(255,255,255,0.04)), url("img/internacional.jpg");
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.social-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(34px, 7vw, 72px);
  background:
    radial-gradient(circle at 50% 0%, rgba(143,213,255,0.18), transparent 42%),
    linear-gradient(145deg, rgba(31,111,255,0.14), rgba(9,22,42,0.94));
}

.social-card h2,
.social-card p {
  max-width: 780px;
  margin-inline: auto;
}

.social-card p {
  margin-top: 18px;
}

.social-actions {
  justify-content: center;
}

.instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
}

.tiktok {
  background: #000;
  color: #fff;
  box-shadow:
    -3px 0 #25F4EE,
    3px 0 #FE2C55;
}

.footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 52px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  font-size: 0.92rem;
}

.footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cardFloat {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(24px, -28px, 0);
  }
}

@media (max-width: 980px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: center;
  }

  .hero-text,
  .hero-actions {
    margin-inline: auto;
    justify-content: center;
  }

  .intro-grid,
  .area-grid,
  .panel-grid,
  .credential-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-item.wide {
    grid-column: span 1;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: 16px;
    border-radius: 24px;
    background: rgba(3, 8, 20, 0.94);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-visual {
    transform: none;
  }

  .photo-card {
    width: min(420px, 100%);
    aspect-ratio: 0.78;
  }

  .hero-photo {
    width: 100%;
    height: 100%;
    object-position: 42% center;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .intro-grid,
  .area-grid,
  .panel-grid,
  .credential-grid,
  .event-card,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .event-year {
    justify-content: flex-start;
    padding: 0;
  }

  .event-card {
    gap: 10px;
  }

  .badge-top,
  .badge-bottom {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .badge-top {
    top: 18px;
  }

  .badge-bottom {
    bottom: 18px;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }
}

@media (max-width: 460px) {
  .section {
    width: min(100% - 26px, 1160px);
  }

  .photo-card {
    width: min(100%, 360px);
    padding: 10px;
    border-radius: 34px;
  }

  .photo-placeholder {
    border-radius: 26px;
  }

  .hero-actions,
  .social-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .intro-card,
  .quote-card,
  .area-card,
  .event-content,
  .trajectory-card,
  .panel-card,
  .social-card {
    border-radius: 22px;
  }
}
