:root {
  --primary: #00b0f0;
  --primary-strong: #008ec1;
  --bg: #f4f8fb;
  --bg-alt: #eaf3f9;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #122330;
  --muted: #4b6475;
  --line: rgba(8, 25, 38, 0.12);
  --shadow: 0 24px 60px rgba(7, 25, 38, 0.12);
  --radius: 18px;
}

body.dark {
  --bg: #07131d;
  --bg-alt: #0a1c2a;
  --surface: rgba(11, 28, 41, 0.86);
  --surface-strong: #102636;
  --text: #e3eef6;
  --muted: #9db5c4;
  --line: rgba(181, 219, 242, 0.2);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.28s ease, color 0.28s ease;
}

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 176, 240, 0.22), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(140deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: -2;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92vw);
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--primary);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.nav-wrap {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
}

.nav {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-wrap.is-search-active .nav {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: none;
}

.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu > li > a:hover,
.menu > li > a:focus-visible {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  outline: none;
}

.has-submenu > a::after {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.submenu {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 0.55rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.submenu a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.93rem;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  outline: none;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.has-submenu:hover > a::after,
.has-submenu:focus-within > a::after,
.has-submenu.is-open > a::after {
  transform: rotate(225deg) translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--text);
}

.search-tools {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
}

.search-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-toggle:hover,
.search-toggle:focus-visible {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  outline: none;
}

.search-toggle svg {
  width: 18px;
  height: 18px;
}

.search-form {
  position: absolute;
  left: 190px;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.nav-wrap.is-search-active .search-form {
  opacity: 1;
  pointer-events: auto;
}

.nav-wrap.is-search-active .search-toggle {
  opacity: 0;
  pointer-events: none;
}

.search-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.95rem;
  font: inherit;
  color: var(--text);
  background: var(--surface-strong);
}

.search-form input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, white);
  outline-offset: 1px;
}

.search-form .search-submit {
  height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 1rem;
  font: inherit;
  font-weight: 700;
  color: #033246;
  background: var(--primary);
  cursor: pointer;
}

.search-form .search-submit:hover {
  background: #18c0ff;
}

.search-form .search-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  padding: 0;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  color: #ffffff;
  background: #151515;
  cursor: pointer;
}

.search-form .search-close {
  width: 50px;
}

.search-form .search-close:hover,
.search-form .search-close:focus-visible {
  background: #2a2a2a;
  color: #ffffff;
  outline: none;
}

.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;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
}

.hero-slides,
.hero-slide {
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  background: var(--bg-alt);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-slide::after {
  background: linear-gradient(100deg, rgba(4, 16, 26, 0.76), rgba(4, 16, 26, 0.34) 45%, rgba(4, 16, 26, 0.55));
  z-index: -1;
}

.hero-content {
  min-height: inherit;
  display: grid;
  align-content: center;
  gap: 1rem;
  color: #edf8ff;
  padding-block: 9rem 4rem;
  max-width: 740px;
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 88%, white);
  font-size: 0.78rem;
}

.hero h1,
.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  text-wrap: balance;
}

.hero p {
  margin: 0;
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn-solid {
  background: var(--primary);
  color: #03212e;
}

.btn-solid:hover {
  background: #18c0ff;
}

.btn-outline {
  border: 1px solid rgba(237, 248, 255, 0.56);
  color: #edf8ff;
}

.btn-outline:hover {
  border-color: #edf8ff;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.5rem;
}

.dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(237, 248, 255, 0.4);
}

.dot.is-active {
  background: var(--primary);
}

.section {
  padding: 5.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-alt) 80%, transparent), transparent);
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card,
.news-mini,
.event,
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.card-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

#noticias {
  background:
    radial-gradient(circle at top left, rgba(0, 176, 240, 0.18), transparent 32%),
    linear-gradient(160deg, #071724 0%, #0b2334 52%, #0d2b40 100%);
}

#noticias .section-head h2,
#noticias .news-feature h3,
#noticias .news-mini h4,
#noticias .news-feature p,
#noticias .news-mini p {
  color: #eef7fc;
}

#noticias .card-link {
  color: #71d7ff;
}

.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-feature {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(145, 212, 241, 0.18);
  background: linear-gradient(180deg, rgba(10, 30, 44, 0.92), rgba(9, 24, 37, 0.96));
  box-shadow: var(--shadow);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.news-feature:hover,
.news-mini:hover {
  transform: translateY(-6px);
  border-color: rgba(113, 215, 255, 0.42);
  background: linear-gradient(180deg, rgba(20, 47, 66, 0.96), rgba(14, 38, 56, 0.98));
  box-shadow: 0 28px 65px rgba(2, 12, 20, 0.3);
}

.news-gallery {
  overflow: hidden;
}

.news-gallery-track {
  display: flex;
  flex-direction: column;
  height: 200%;
  transform: translateY(0);
  transition: transform 0.75s ease;
}

.news-gallery-track.is-alt {
  transform: translateY(-50%);
}

.news-feature .news-gallery {
  height: 300px;
}

.news-gallery img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
}

.news-feature-body {
  padding: 1.1rem 1.2rem 1.35rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  color: #03344a;
  background: color-mix(in srgb, var(--primary) 74%, white);
  padding: 0.22rem 0.65rem;
}

.news-list {
  display: grid;
  gap: 0.8rem;
}

.news-mini {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(145, 212, 241, 0.18);
  background: linear-gradient(180deg, rgba(10, 30, 44, 0.92), rgba(9, 24, 37, 0.96));
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.news-mini .news-card-link {
  display: flex;
  align-items: stretch;
  min-height: 132px;
}

.news-gallery-mini {
  flex: 0 0 132px;
  height: auto;
  min-height: 100%;
}

.news-gallery-mini img {
  height: 50%;
}

.news-mini-body {
  padding: 0.85rem 0.95rem 0.9rem;
  display: grid;
  align-content: center;
}

.news-mini h4 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.news-mini p {
  margin: 0;
  font-size: 0.94rem;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.event {
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.event-date {
  min-width: 66px;
  text-align: center;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-weight: 800;
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--primary) 75%, white);
  color: #043249;
}

.event h3 {
  margin: 0;
}

.event p {
  margin: 0.25rem 0 0;
}

.stats-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 1.1rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  color: var(--primary);
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-alt) 82%, transparent);
  padding: 3.2rem 0 1.3rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  display: grid;
  gap: 0.33rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 1.8rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.theme-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 90;
}

.icon {
  position: absolute;
  width: 25px;
  height: 25px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.icon-sun {
  opacity: 0;
  transform: scale(0.7) rotate(-30deg);
}

.icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.dark .icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.dark .icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(30deg);
}

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

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

@media (max-width: 1040px) {
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header {
    top: 0.65rem;
    width: min(1200px, 94vw);
  }

  .menu-toggle {
    display: block;
  }

  .nav-wrap.is-search-active .menu-toggle {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .search-form {
    left: 76px;
    right: 0.45rem;
    gap: 0.35rem;
  }

  .search-form .search-submit {
    padding: 0 0.8rem;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
    background: var(--surface-strong);
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.55rem;
  }

  .menu > li > a {
    width: 100%;
    justify-content: space-between;
  }

  .submenu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    margin: 0.25rem 0 0.4rem;
    background: color-mix(in srgb, var(--bg-alt) 85%, transparent);
  }

  .has-submenu.is-open .submenu {
    display: block;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 3rem);
  }

  .news-layout,
  .cards-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-mini .news-card-link {
    display: flex;
    min-height: 120px;
  }

  .news-gallery-mini {
    flex-basis: 120px;
    min-height: 120px;
  }
}

@media (max-width: 560px) {
  .search-form {
    left: 70px;
    right: 0.35rem;
  }

  .search-form .search-submit {
    display: none;
  }

  .hero-content {
    padding-block: 8.6rem 4.3rem;
  }

  .news-mini .news-card-link {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-gallery-mini {
    flex-basis: auto;
    min-height: 160px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
