:root {
  --bg:        #09090f;
  --surface:   #0f0f1a;
  --surface2:  #14142a;
  --violet:    #7c3aed;
  --violet-l:  #a78bfa;
  --blue:      #2563eb;
  --blue-l:    #60a5fa;
  --indigo:    #4338ca;
  --white:     #f0f0ff;
  --off-white: #c8c8e8;
  --muted:     #6b6b9a;
  --rule:      #1e1e38;
  --glow:      rgba(124,58,237,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ──────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 5% 8%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 12% 33%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 18% 61%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 23% 14%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 29% 78%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 45%, rgba(255,255,255,0.75) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 41% 22%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 47% 88%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 53% 5%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 52%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(2px 2px at 63% 37%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 68% 71%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 73% 19%, rgba(255,255,255,0.75) 0%, transparent 100%),
    radial-gradient(2px 2px at 78% 84%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 83% 43%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 87% 11%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 91% 66%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 95% 29%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 92%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(2px 2px at 15% 47%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 26% 96%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 68%, rgba(255,255,255,0.75) 0%, transparent 100%),
    radial-gradient(2px 2px at 49% 39%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 17%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 66% 58%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 3%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 81% 76%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 89% 48%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 93% 91%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 3% 55%, rgba(255,255,255,0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: twinkle 4s ease-in-out infinite alternate;
}

/* Estrellas que titilan de forma independiente */
#star-layer-2 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 9% 27%, rgba(167,139,250,0.9) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 31% 53%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(2px 2px at 44% 11%, rgba(167,139,250,0.8) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 57% 79%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(2px 2px at 70% 34%, rgba(167,139,250,0.85) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 84% 62%, rgba(255,255,255,0.95) 0%, transparent 100%),
    radial-gradient(2px 2px at 97% 18%, rgba(167,139,250,0.8) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 21% 85%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(2px 2px at 62% 96%, rgba(167,139,250,0.85) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 76% 44%, rgba(255,255,255,0.95) 0%, transparent 100%);
  animation: twinkle2 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes twinkle2 {
  0%   { opacity: 1; }
  100% { opacity: 0.2; }
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}

nav.scrolled { border-bottom-color: var(--rule); }

.nav-logo {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  display: block;
  height: 1.2rem;
  width: auto;
}
.logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--violet-l);
  box-shadow: 0 0 8px var(--violet);
  animation: blink 3s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity:1; } 50% { opacity:0.3; }
}

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

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--blue));
  border: none;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  transition: opacity 0.25s, transform 0.25s;
  border-radius: 2px;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* hamburger button for mobile */
.nav-toggle {
  display: none; /* shown via media query */
  background: none;
  border: none;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  position: relative;
}

.nav-toggle .hamburger {
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 2px;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s;
}
.nav-toggle .hamburger::before { top: -6px; }
.nav-toggle .hamburger::after  { top: 6px; }

.nav-toggle.open .hamburger {
  background: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* responsive nav-links dropdown */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface2);
    flex-direction: column;
    gap: 0;
    display: none;          /* hide by default */
  }

  .nav-links li {
    padding: 1rem 0;
    text-align: center;
  }

  .nav-links.mobile-active {
    display: flex;          /* show when active */
  }

  .nav-cta {
    display: none; /* optional: hide CTA on mobile, could be included inside menu if desired */
  }
}

p strong {
  font-weight: 700;
  color: var(--off-white);
}

/* ── HERO ────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5vw 5rem;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(67,56,202,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37,99,235,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(124,58,237,0.2) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet-l);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-title-img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--violet-l) 0%, var(--blue-l) 50%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--off-white);
  max-width: 580px;
  margin-top: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.8rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.btn-primary {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(124,58,237,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(124,58,237,0.6);
}

.btn-secondary {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-l);
  background: transparent;
  border: 1px solid rgba(124,58,237,0.5);
  padding: 0.9rem 2.2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--violet-l);
  background: rgba(124,58,237,0.08);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.hero-stat { 
  flex: 1;
  max-width: 200px;
  text-align: center; }

.hero-stat-num {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet-l), var(--blue-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}


.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator span {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--violet-l), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%,100% { opacity: 0.2; transform: scaleY(0.5) translateY(-20px); }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ── SECTION SHARED ──────────────────────────── */
.section-wrap {
  position: relative;
  z-index: 1;
  padding: 7rem 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet-l);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--violet-l);
}

.section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.section-title .hl {
  background: linear-gradient(135deg, var(--violet-l), var(--blue-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── DIVIDER ─────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

/* ── ABOUT ───────────────────────────────────── */
#about { background: var(--surface); position: relative; z-index: 1; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--off-white);
  margin-bottom: 1.4rem;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card {
  background: var(--surface2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.pillar-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.pillar-item:last-child { border-bottom: none; padding-bottom: 0; }

.pillar-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.pillar-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.pillar-text {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── BENTO GRID (ABOUT) ──────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.bento-mission {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-mission::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.bento-mission::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.08), transparent 70%);
  pointer-events: none;
}

.bento-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.bento-pillar {
  background: var(--surface2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.bento-pillar:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 6px 24px rgba(124,58,237,0.12);
  transform: translateY(-3px);
}

.bento-pillar .pillar-icon {
  font-size: 1.5rem;
  width: auto;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0.2rem;
}

.bento-pillar .pillar-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}

.bento-pillar .pillar-text {
  font-size: 0.75rem;
  color: var(--off-white);
  line-height: 1.5;
}

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

  .bento-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .bento-pillars {
    grid-template-columns: 1fr;
  }
}


/* ── EVENTS ──────────────────────────────────── */
#events { background: var(--bg); position: relative; z-index: 1; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}

.event-top {
  padding: 1.4rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.event-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 2px;
  border: 1px solid;
}

.event-badge.workshop { color: var(--violet-l); border-color: rgba(167,139,250,0.4); background: rgba(124,58,237,0.1); }
.event-badge.charla   { color: var(--blue-l);   border-color: rgba(96,165,250,0.4);  background: rgba(37,99,235,0.1); }
.event-badge.comp     { color: #6ee7b7;           border-color: rgba(110,231,183,0.4); background: rgba(16,185,129,0.1); }
.event-badge.social   { color: #f9a8d4;           border-color: rgba(249,168,212,0.4); background: rgba(236,72,153,0.1); }
.event-badge.colaboracion { color: #fb923c; border-color: rgba(251,146,60,0.4); background: rgba(251,146,60,0.1); }

.event-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
}

.event-body { padding: 0 1.5rem 1.5rem; }

.event-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.event-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--off-white);
}

.event-btn {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  border: none;
  box-shadow: 0 0 16px rgba(124,58,237,0.35);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.event-btn:hover {
  background: rgba(37,99,235,0.12);
  border-color: var(--blue-l);
  transform: translateY(-1px);
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124,58,237,0.5);
}

/* ── TEAM ────────────────────────────────────── */
#team { background: var(--surface); position: relative; z-index: 1; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.member-card {
  background: var(--surface2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-align: center;
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 8px 28px rgba(124,58,237,0.15);
}

.member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-photo .photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--surface2), var(--surface));
}

.member-photo .photo-placeholder .initial {
  font-family: 'Exo 2', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet-l), var(--blue-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.member-photo .photo-placeholder .ph-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.member-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--surface2), transparent);
  pointer-events: none;
}

.member-info { padding: 1.2rem 1rem 1.5rem; }

.member-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.member-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-l);
}

/* ── CONTACT ─────────────────────────────────── */
#contact { background: var(--bg); position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-links { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; }

.c-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.c-link:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.07);
  transform: translateX(4px);
}

.c-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.c-info { flex: 1; }

.c-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.15rem;
}

.c-value { font-size: 0.9rem; color: var(--white); }

.c-arrow { color: var(--muted); font-size: 0.9rem; }

/* ── FORM ────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2.5rem;
}

.form-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

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

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input, .form-textarea {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--white);
  padding: 0.8rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
}

.form-input::placeholder, .form-textarea::placeholder { color: rgba(107,107,154,0.5); }
.form-input:focus, .form-textarea:focus { border-color: var(--violet); }

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

.btn-form {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  border: none;
  padding: 0.95rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
  align-self: flex-start;
}

.btn-form:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(124,58,237,0.5);
}

.form-success {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6ee7b7;
  padding: 0.8rem 1rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(110,231,183,0.3);
  border-radius: 5px;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.footer-logo-img {
  display: block;
  height: 1.5rem;
  width: auto;
}

.footer-copy {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

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

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

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.5rem; }
}

/* ── CANSAT ──────────────────────────────────── */
#cansat { background: var(--bg); position: relative; z-index: 1; }

.cansat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}

.cansat-ig-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  margin-top: 2rem;
}

.cansat-ig-link:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.07);
  transform: translateX(4px);
}

.cansat-carousel-wrap { display: flex; flex-direction: column; gap: 1.2rem; }

.carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--surface2);
  font-size: 2.5rem;
  color: var(--muted);
}

.carousel-placeholder span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel-btn {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--violet-l);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.5);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--violet-l);
  transform: scale(1.4);
}

@media (max-width: 900px) {
  .cansat-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── CANSAT TIMELINE ─────────────────────────── */
.cansat-timeline {
  margin-top: 5rem;
}

.timeline-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 40px 1fr;
  align-items: stretch;
  gap: 0 1.2rem;
  min-height: 100px;
}

.timeline-year {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  padding-top: 0.3rem;
  transition: color 0.3s;
}

.timeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--violet);
  flex-shrink: 0;
  margin-top: 0.25rem;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--violet), var(--rule));
  margin-top: 2px;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-card:hover {
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 4px 20px rgba(124,58,237,0.1);
}

.timeline-position {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ── AÑO CAMPEÓN 2025 ────────────────────────── */
.timeline-champion .timeline-year {
  color: var(--violet-l);
  font-size: 1.1rem;
}

.timeline-champion .timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--violet);
  border-color: var(--violet-l);
  box-shadow: 0 0 16px rgba(124,58,237,0.7);
  margin-top: 0.1rem;
}

.timeline-champion .timeline-card {
  background: var(--surface2);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 32px rgba(124,58,237,0.15);
  position: relative;
  overflow: hidden;
}

.timeline-champion .timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue-l));
}

.timeline-champion .timeline-position {
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--violet-l), var(--blue-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-champion .timeline-desc {
  color: var(--off-white);
}

@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 55px 30px 1fr;
    gap: 0 0.8rem;
  }

  .timeline-year {
    font-size: 0.85rem;
  }
}