:root {
  --deep: #151f30;
  --blue: #103778;
  --cobalt: #1a56db;
  --teal: #0593a2;
  --orange: #ff7a48;
  --red: #e3371e;
  --white: #f4f6f9;
  --gray: #8a95a5;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: auto;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cobalt), var(--teal));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--red), var(--orange));
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  height: 90px;
  width: auto;
  animation: pulseScale 1.3s ease infinite;
}

.loader-bar {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg,
      var(--cobalt),
      var(--teal),
      var(--orange));
  animation: loadFill 0.8s ease forwards;
}

.loader-text {
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(21, 31, 48, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 86, 219, 0.15);
  transition: all 0.4s ease;
}

nav.scrolled {
  /* background: rgba(12, 16, 28, 0.97); */
  border-bottom-color: rgba(5, 147, 162, 0.2);
  padding: 0.2rem 4rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  font-family: "Saira", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(26, 86, 219, 0.5));
  transition: filter 0.35s;
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 16px rgba(26, 86, 219, 0.8));
}

.logo-fallback {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cobalt), var(--teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--orange);
  font-family: "Saira", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--teal));
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8rem 4rem 5rem;
  position: relative;
  overflow: hidden;
  text-shadow: 0px 0px 4px #000, -3px -3px 4px #000000;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* HERO SLIDESHOW */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 21s ease-in-out infinite;
}

.slide-1 {
  background-image: url('../img/faculta-ingcivil-usfx1.jpg');
  animation-delay: 0s;
}

.slide-2 {
  background-image: url('../img/faculta-ingcivil-usfx2.jpg');
  animation-delay: 7s;
}

.slide-3 {
  background-image: url('../img/faculta-ingcivil-usfx3.jpg');
  animation-delay: 14s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  /* fade in ~3s */
  48% {
    opacity: 1;
  }

  /* imagen visible */
  62% {
    opacity: 0;
  }

  /* fade out ~3s */
  100% {
    opacity: 0;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(26, 86, 219, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 1) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 22s linear infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.orb-1 {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle,
      rgba(26, 86, 219, 0.14) 0%,
      transparent 65%);
  top: -220px;
  right: -160px;
  animation: orbFloat1 14s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(5, 147, 162, 0.1) 0%,
      transparent 65%);
  bottom: -80px;
  left: 4%;
  animation: orbFloat2 17s ease-in-out infinite;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle,
      rgba(255, 122, 72, 0.08) 0%,
      transparent 65%);
  top: 35%;
  left: 58%;
  animation: orbFloat3 11s ease-in-out infinite;
}

#particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;

}

.hero-accent-line {
  position: absolute;
  top: 0;
  right: 26%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
      transparent,
      rgba(26, 86, 219, 0.28),
      rgba(5, 147, 162, 0.18),
      transparent);
  animation: linePulse 4.5s ease-in-out infinite;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26, 86, 219, 0.1);
  border: 1px solid rgba(26, 86, 219, 0.3);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb3ff;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cobalt);
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cobalt);
}

.hero-title {
  font-family: "Varela Round", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  line-height: 1.06;
  max-width: 820px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s 0.35s ease both;
}

.hero-title span.cobalt {
  color: var(--teal);
  background: linear-gradient(135deg, var(--cobalt), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

.hero-title span.cobalt::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt), var(--teal));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 1s 1.2s ease forwards;
}

.hero-title span.orange {
  color: var(--orange);
}

.hero-sub {
  max-width: 520px;
  color: var(--grey);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.78;
  margin-bottom: 2.8rem;
  animation: fadeUp 0.9s 0.5s ease both;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.65s ease both;
}

.btn-primary {
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--cobalt), var(--teal));
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal), var(--cobalt));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(26, 86, 219, 0.45);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  padding: 0.9rem 2.2rem;
  background: var(--orange);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 86, 219, 0.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-outline:hover::before {
  transform: scaleX(1);
}

.btn-outline:hover {
  border-color: var(--cobalt);
  color: #7eb3ff;
}

.hero-stats {
  position: absolute;
  bottom: 3.5rem;
  right: 4rem;
  display: flex;
  gap: 3.5rem;
  animation: fadeIn 1s 0.9s ease both;
  z-index: 2;
}

.stat {
  text-align: center;
  position: relative;
}

.stat::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.stat:first-child::before {
  display: none;
}

.stat-num {
  color: var(--orange);
  font-family: "Syne", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cobalt), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: fadeIn 1s 1.3s ease both;
  z-index: 2;
}

.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-arrow {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.scroll-arrow::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--cobalt);
  border-radius: 3px;
  animation: scrollDot 2.2s ease-in-out infinite;
}

/* SECTIONS */
section {
  padding: 4rem 4rem;
  position: relative;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.section-label::before,
.section-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--teal));
  border-radius: 2px;
}

.section-title {
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-align: center;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--cobalt),
      var(--teal),
      transparent);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* QUIENES SOMOS */
#quienes-somos {
  background: rgba(26, 86, 219, 0.05);
  border-top: 1px solid rgba(26, 86, 219, 0.1);
}

.qs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.qs-text p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.qs-card {
  background: rgba(26, 86, 219, 0.07);
  border: 1px solid rgba(26, 86, 219, 0.18);
  border-radius: 18px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.qs-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--cobalt),
      var(--teal),
      var(--orange));
  background-size: 200%;
  animation: shimmer 3s ease-in-out infinite;
}

.qs-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.qs-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.3rem;
  background: rgba(21, 31, 48, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.qs-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.qs-item:hover {
  border-color: rgba(26, 86, 219, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.15);
}

.qs-item:hover::after {
  transform: scaleX(1);
}

.qs-item-icon {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.qs-item-title {
  font-family: "Syne", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.qs-item-desc {
  font-size: 0.75rem;
  color: var(--gray);
}

/* MISION VISION */
#mision-vision {
  background: var(--deep);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.mv-card {
  border-radius: 18px;
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}

.mv-card:hover {
  transform: translateY(-7px);
}

.mv-card.mision {
  background: linear-gradient(135deg,
      rgba(26, 86, 219, 0.18),
      rgba(5, 147, 162, 0.1));
  border: 1px solid rgba(26, 86, 219, 0.25);
}

.mv-card.mision:hover {
  box-shadow: 0 22px 55px rgba(26, 86, 219, 0.22);
}

.mv-card.vision {
  background: linear-gradient(135deg,
      rgba(255, 122, 72, 0.12),
      rgba(227, 55, 30, 0.07));
  border: 1px solid rgba(255, 122, 72, 0.2);
}

.mv-card.vision:hover {
  box-shadow: 0 22px 55px rgba(255, 122, 72, 0.16);
}

.mv-accent {
  font-family: "Syne", sans-serif;
  font-size: 7rem;
  font-weight: 800;
  opacity: 0.05;
  position: absolute;
  top: -1.5rem;
  right: 1rem;
  line-height: 1;
  user-select: none;
}

.mv-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: transform 0.35s ease;
}

.mv-card:hover .mv-icon {
  transform: scale(1.12) rotate(-6deg);
}

.mision .mv-icon {
  background: rgba(26, 86, 219, 0.18);
  box-shadow: 0 0 20px rgba(26, 86, 219, 0.18);
}

.vision .mv-icon {
  background: rgba(255, 122, 72, 0.18);
  box-shadow: 0 0 20px rgba(255, 122, 72, 0.14);
}

.mv-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mv-card p {
  color: var(--gray);
  font-size: 0.96rem;
  line-height: 1.85;
}

/* OBJETIVOS */
#objetivos {
  background: rgba(5, 147, 162, 0.03);
  border-top: 1px solid rgba(26, 86, 219, 0.1);
  border-bottom: 1px solid rgba(26, 86, 219, 0.1);
}

.obj-list {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  margin-inline: auto;
}

.obj-item {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  padding: 0.5rem 2rem;
  background: rgba(21, 31, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.obj-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cobalt), var(--teal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
  border-radius: 3px 0 0 3px;
}

.obj-item:hover {
  border-color: rgba(26, 86, 219, 0.28);
  background: rgba(26, 86, 219, 0.06);
  transform: translateX(8px);
}

.obj-item:hover::before {
  transform: scaleY(1);
}

.obj-num {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cobalt), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.obj-content h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.obj-content p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* MIEMBROS */
#miembros {
  background: var(--deep);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.member-card {
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem 1rem;
  text-align: center;
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg,
      rgba(26, 86, 219, 0.1),
      transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.member-card:hover {
  border-color: rgba(26, 86, 219, 0.38);
  box-shadow: 0 18px 45px rgba(26, 86, 219, 0.2);
}

.member-card:hover::before {
  opacity: 1;
}

.member-card:hover .member-avatar {
  box-shadow: 0 0 28px rgba(26, 86, 219, 0.35);
}

.member-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  transition: box-shadow 0.4s;
  position: relative;
  z-index: 1;
}

.member-card h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}

.member-role {
  font-size: 0.74rem;
  color: #7eb3ff;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.member-area {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 0.2rem;
  position: relative;
  z-index: 1;
}

/* ACTIVIDADES */
#actividades {
  background: rgba(26, 86, 219, 0.04);
  border-top: 1px solid rgba(255, 122, 72, 0.07);
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.act-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.act-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  border-color: rgba(26, 86, 219, 0.28);
}

.act-card:hover .act-bg {
  transform: scale(1.1);
}


.act-card:hover .act-emoji {
  transform: scale(1.25) rotate(-6deg);
}

.act-header {
  height: 200px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.act-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.act-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(15, 20, 35, 0.1) 0%,
      rgba(15, 20, 35, 0.85) 100%);
  z-index: 1;
}


.act-header.teal {
  background: linear-gradient(135deg,
      rgba(5, 147, 162, 0.35),
      rgba(26, 86, 219, 0.15));
}

.act-header.orange {
  background: linear-gradient(135deg,
      rgba(255, 122, 72, 0.32),
      rgba(255, 122, 72, 0.1));
}

.act-header.red {
  background: linear-gradient(135deg,
      rgba(227, 55, 30, 0.32),
      rgba(255, 122, 72, 0.1));
}

.act-header.blue {
  background: linear-gradient(135deg,
      rgba(26, 86, 219, 0.5),
      rgba(16, 55, 120, 0.3));
}

.act-header.mixed {
  background: linear-gradient(135deg,
      rgba(26, 86, 219, 0.28),
      rgba(255, 122, 72, 0.2));
}

.act-header.dark {
  background: linear-gradient(135deg,
      rgba(15, 20, 35, 0.96),
      rgba(26, 86, 219, 0.28));
}

.act-date {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
}

.act-emoji {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease;
}

.act-card h4 {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  line-height: 1.3;
}


.act-body {
  padding: 1.3rem 1.5rem;
  background: rgba(12, 17, 30, 0.78);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.act-body p {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.65;
}

.act-tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(26, 86, 219, 0.22);
  color: #7eb3ff;
  letter-spacing: 0.06em;
}

.hidden-activity {
  display: none !important;
}

.act-more-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  width: 100%;
}

.btn-more-act {
  padding: 0.9rem 2.8rem;
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.25);
  border-radius: 12px;
  color: #7eb3ff;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.35s ease;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-more-act:hover {
  background: rgba(26, 86, 219, 0.15);
  border-color: var(--teal);
  box-shadow: 0 10px 30px rgba(26, 86, 219, 0.2);
  transform: translateY(-3px);
  color: #fff;
}



/* PUBLICACIONES */
#publicaciones {
  background: var(--deep);
}

.pub-list {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(26, 86, 219, 0.14);
  border-radius: 16px;
  overflow: hidden;
}

.pub-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.3rem 2rem;
  background: rgba(21, 31, 48, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pub-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(26, 86, 219, 0.1), transparent);
  transition: width 0.4s ease;
}

.pub-item:hover::before {
  width: 100%;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-type {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.pub-item:hover .pub-type {
  transform: scale(1.12);
}

.pub-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.pub-info h4 {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pub-meta {
  font-size: 0.78rem;
  color: var(--gray);
}

.pub-year {
  font-size: 0.75rem;
  color: var(--gray);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* RECURSOS */
#recursos {
  background: rgba(26, 86, 219, 0.04);
  border-top: 1px solid rgba(26, 86, 219, 0.1);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.rec-card {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(12, 17, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.rec-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg,
      rgba(26, 86, 219, 0.08),
      rgba(255, 122, 72, 0.05));
  opacity: 0;
  transition: opacity 0.4s;
}

.rec-card:hover {
  border-color: var(--cobalt);
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(72, 206, 255, 0.14);
}

.rec-card:hover::after {
  opacity: 1;
}

.rec-card:hover .rec-icon {
  transform: scale(1.12) rotate(-8deg);
}

.rec-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.3rem;
  background: rgba(255, 122, 72, 0.12);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.rec-card h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.rec-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.rec-arrow {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  transition: gap 0.3s;
}

.rec-card:hover .rec-arrow {
  gap: 0.9rem;
}

/* CONTACTO */
#contacto {
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  max-width: 1100px;
  align-items: start;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(26, 86, 219, 0.1);
  border: 1px solid rgba(26, 86, 219, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.contact-detail:hover .contact-detail-icon {
  background: rgba(26, 86, 219, 0.2);
  box-shadow: 0 0 16px rgba(26, 86, 219, 0.22);
  transform: scale(1.08);
}

.contact-detail-text h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.contact-detail-text p {
  font-size: 0.85rem;
  color: var(--gray);
}

.contact-form {
  background: rgba(26, 86, 219, 0.07);
  border: 1px solid rgba(26, 86, 219, 0.15);
  border-radius: 18px;
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--cobalt),
      var(--teal),
      var(--orange));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(21, 31, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.14);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: var(--deep);
}

.btn-submit {
  width: 100%;
  padding: 1.05rem;
  background: linear-gradient(135deg, var(--cobalt), var(--teal));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal), var(--cobalt));
  opacity: 0;
  transition: opacity 0.35s;
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit:hover {
  box-shadow: 0 12px 34px rgba(26, 86, 219, 0.38);
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

/* FOOTER */
footer {
  background: rgba(8, 12, 22, 0.98);
  border-top: 1px solid rgba(26, 86, 219, 0.12);
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: "Saira", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.footer-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(26, 86, 219, 0.35));
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #7eb3ff;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray);
}

footer .accent {
  color: var(--orange);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* KEYFRAMES */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulseScale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes loadFill {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes gridShift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 60px 60px;
  }
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, 22px) scale(1.05);
  }

  66% {
    transform: translate(22px, -28px) scale(0.97);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(42px, -22px);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-22px, 32px) scale(1.1);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--cobalt);
  }

  50% {
    opacity: 0.35;
    box-shadow: 0 0 2px var(--cobalt);
  }
}

@keyframes scrollDot {
  0% {
    top: 5px;
    opacity: 1;
  }

  80% {
    top: 18px;
    opacity: 0;
  }

  100% {
    top: 5px;
    opacity: 0;
  }
}

@keyframes linePulse {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

@keyframes underlineGrow {
  to {
    transform: scaleX(1);
  }
}

/* MOBILE */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }

  nav.scrolled {
    padding: 0.7rem 1.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: rgba(12, 16, 28, 0.98);
    padding: 3rem 2rem;
    border-bottom: 1px solid rgba(26, 86, 219, 0.15);
    backdrop-filter: blur(25px);
    z-index: 9999;
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  /* Ajuste para sub-páginas o nav reducido */
  nav.scrolled+.nav-links,
  nav.scrolled~.nav-links {
    top: 66px;
    height: calc(100vh - 66px);
  }

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

  .nav-links a {
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    width: 100%;
  }

  .hamburger {
    display: flex;
    cursor: pointer;
  }

  #hero {
    padding: 7rem 1.5rem 5rem;
  }

  .hero-stats {
    position: static;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
  }

  section {
    padding: 4rem 1.5rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  #quienes-somos p{
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .qs-card{
    padding: 0.5rem;
  }

    /* MISION Y VISION */
  .mv-card {
    padding: 1.5rem;
  }
  .mv-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }


  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .member-card {
    padding: 0.5rem 0.8rem;
  }

  .member-avatar {
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .member-card h4 {
    font-size: 0.6rem;
  }

  .member-role {
    font-size: 0.65rem;
  }

  .qs-layout,
  .mv-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .act-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pub-item {
    gap: 1rem;
    padding: 1.2rem;
  }

  .pub-type {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .pub-info h4 {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .pub-meta {
    font-size: 0.7rem;
  }

  .pub-year {
    font-size: 0.68rem;
  }

  .obj-item {
    padding: 1rem 1.2rem;
    gap: 1rem;
  }

  .obj-num {
    font-size: 1.2rem;
    min-width: 1.8rem;
  }

  .obj-content h4 {
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
  }

  .obj-content p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .rec-card {
    padding: 1.2rem;
  }

  .rec-icon {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .rec-card h4 {
    font-size: 0.82rem;
  }

  .rec-card p {
    font-size: 0.7rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .rec-arrow {
    font-size: 0.7rem;
    margin-top: 0.7rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }

  .scroll-hint {
    display: none;
  }

  a,
  button {
    cursor: pointer;
  }
}