:root {
  /* Paleta Cyberpunk Mejorada */
  --purple-700: #6A1B9A;
  --purple-900: #4A0072;
  --purple-200: #B39DDB;
  --purple-neon: #DD33FA;
  --teal-300: #4DD0E1;
  --teal-neon: #00F0FF;
  --orange-400: #FFA726;
  --yellow-400: #FFEE58;
  --red-400: #EF5350;
  --blue-300: #64B5F6;
  --green-400: #66BB6A;
  
  /* Backgrounds */
  --bg-dark: #0a0612;
  --bg-darker: #050308;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  
  /* Text */
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.75);
  --shadow: rgba(0,0,0,0.4);
  
  /* Fonts */
  --title-font: "Orbitron", "Montserrat", system-ui, sans-serif;
  --body-font: "Inter", system-ui, sans-serif;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  
  margin: 0;
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--purple-700);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* =============== NAVBAR =============== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  padding: 34px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 6, 18, 0.95);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--title-font);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-link {
  padding: 10px 18px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-neon), var(--purple-neon));
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hamburger Menu (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 139px;
    right: -100%;
    flex-direction: column;
    
     background: rgba(10, 6, 18, 0.95);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    width: 280px;
    height: calc(100vh - 72px);
    padding: 32px 24px;
    gap: 16px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 1px solid var(--glass-border);
  }
  
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
  }
  
  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  
  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}


/* =============== HERO SECTION =============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: 50px;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#binaryCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 0, 114, 0.6) 0%,
    rgba(106, 27, 154, 0.5) 50%,
    rgba(10, 6, 18, 0.9) 100%
  );
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top,
    rgba(77, 208, 225, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.content {
  text-align: center;
}

.title {
  font-family: var(--title-font);
  font-weight: 900;
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-neon) 50%, var(--teal-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(179, 157, 219, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(77, 208, 225, 0.8));
  }
}

.subtitle {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.4rem);
  color: var(--text-muted);
  margin: 0 0 20px;
  font-weight: 300;
}

.meta {
  margin: 20px 0 32px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}





.btn-primary {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-neon));
  color: white;
  border-color: var(--purple-neon);
  box-shadow: 0 8px 32px rgba(221, 51, 250, 0.4);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(221, 51, 250, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-neon);
  border-color: var(--teal-neon);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  background: rgba(77, 208, 225, 0.1);
  box-shadow: 0 12px 48px rgba(77, 208, 225, 0.3);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 32px;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 48px rgba(106, 27, 154, 0.3);
  border-color: var(--purple-neon);
}

.stat-number {
  font-family: var(--title-font);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal-neon), var(--purple-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Visual / Orbits */
.visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
}

.orbits-wrap {
  position: relative;
  width: min(90vw, 600px);
  height: min(90vw, 600px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.main-image {
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--purple-neon);
  box-shadow: 
    0 0 60px rgba(221, 51, 250, 0.6),
    0 20px 60px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.orbit {
  --radius: 200px;
  --speed: 30s;
  position: absolute;
  inset: 0;
  animation: spin var(--speed) linear infinite;
  will-change: transform;
}

.orbit img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(0deg) translateX(var(--radius)) rotate(0deg);
  width: clamp(60px, 10vw, 100px);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--teal-neon);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(77, 208, 225, 0.4);
  animation: counter-rotate var(--speed) linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes counter-rotate {
  from { transform: rotate(0deg) translateX(var(--radius)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--radius)) rotate(-360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Responsive Hero */
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .content {
    text-align: left;
  }
  
  .cta-group {
    justify-content: flex-start;
  }
  
  .hero-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .orbits-wrap {
    width: min(85vw, 400px);
    height: min(85vw, 400px);
  }
  
  .orbit {
    --radius: 35vw;
  }
}

/* =============== CELEBRATION SECTION =============== */
.section-celebration {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Grid cyberpunk con líneas finas luminosas + profundidad */
.section-celebration::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(90deg, rgba(221, 51, 250, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}

/* Partículas flotantes neón con más presencia */
.section-celebration::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(221, 51, 250, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(0, 240, 255, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(179, 157, 219, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 30% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 25%);
  z-index: 0;
  animation: particleFloat 12s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.7; }
  33% { transform: translate(15px, -15px); opacity: 1; }
  66% { transform: translate(-10px, 10px); opacity: 0.8; }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.cele-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.cele-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cele-icon-lg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.cele-header h2 {
  font-family: var(--title-font);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--text), var(--purple-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cele-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cele-highlights {
  display: grid;
  gap: 20px;
  margin: 32px 0;
}

.highlight-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  border-color: var(--purple-neon);
  background: var(--bg-card-hover);
  transform: translateX(8px);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-neon));
  border-radius: 12px;
  flex-shrink: 0;
}

.highlight-content h3 {
  font-family: var(--title-font);
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--text);
}

.highlight-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .cele-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============== FACULTY SECTION =============== */
.faculty {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(106, 27, 154, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

/* Formas geométricas abstractas con más profundidad */
.faculty::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 10% 20%, rgba(106, 27, 154, 0.15) 0%, transparent 28%),
    radial-gradient(ellipse at 90% 80%, rgba(77, 208, 225, 0.12) 0%, transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(179, 157, 219, 0.08) 0%, transparent 38%),
    radial-gradient(ellipse at 70% 30%, rgba(221, 51, 250, 0.06) 0%, transparent 25%);
  z-index: 0;
  animation: geometricShift 10s ease-in-out infinite;
}

/* Efecto de escaneo horizontal más visible */
.faculty::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), transparent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.3);
  animation: scanLineSubtle 10s linear infinite;
  z-index: 0;
}

@keyframes scanLineSubtle {
  0% { top: 0; left: -100%; }
  50% { top: 50%; left: 100%; }
  100% { top: 100%; left: -100%; }
}

@keyframes geometricShift {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

.faculty-container {
  position: relative;
  z-index: 1;
}

.faculty-header {
  text-align: center;
  margin-bottom: 48px;
}

.faculty-header h2 {
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--text), var(--teal-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faculty-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  list-style: none;
}

.faculty-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.faculty-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-neon), var(--teal-neon));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.faculty-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--purple-neon);
  box-shadow: 0 20px 60px rgba(221, 51, 250, 0.4);
}

.faculty-card:hover::before {
  opacity: 0.1;
}

.faculty-photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
}

.faculty-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--purple-700);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
}

.faculty-card:hover .faculty-photo {
  border-color: var(--purple-neon);
  box-shadow: 0 12px 48px rgba(221, 51, 250, 0.6);
  transform: scale(1.05);
}

.faculty-name {
  font-family: var(--title-font);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.faculty-card.coordinator {
  border-color: var(--teal-neon);
}

.faculty-card.coordinator .faculty-photo {
  border-color: var(--teal-neon);
}

.faculty-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  background: rgba(77, 208, 225, 0.2);
  border: 1px solid var(--teal-neon);
  color: var(--teal-neon);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============== SCHEDULE/EVENTS =============== */
.schedule {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(221, 51, 250, 0.03) 0%, transparent 70%);
}

/* Portal de energía vertical difuminado */
.schedule::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -5%;
  bottom: -5%;
  width: 150px;
  background: 
    radial-gradient(ellipse 150px 100% at center, rgba(221, 51, 250, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 100px 100% at center, rgba(0, 240, 255, 0.2) 10%, transparent 60%),
    radial-gradient(ellipse 50px 100% at center, rgba(255, 167, 38, 0.15) 20%, transparent 70%);
  transform: translateX(-50%);
  z-index: 0;
  filter: blur(25px);
  animation: portalPulse 3s ease-in-out infinite;
}

@keyframes portalPulse {
  0%, 100% { 
    opacity: 0.7; 
    transform: translateX(-50%) scaleY(1) scaleX(1); 
  }
  50% { 
    opacity: 1; 
    transform: translateX(-50%) scaleY(1.08) scaleX(1.2); 
  }
}

/* Nodos de conexión flotantes en el eje central */
.schedule::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    /* Nodos principales */
    radial-gradient(circle 8px at 50% 10%, rgba(255, 167, 38, 0.8) 0%, rgba(255, 167, 38, 0.3) 50%, transparent 100%),
    radial-gradient(circle 10px at 50% 25%, rgba(221, 51, 250, 0.9) 0%, rgba(221, 51, 250, 0.3) 50%, transparent 100%),
    radial-gradient(circle 12px at 50% 40%, rgba(0, 240, 255, 0.9) 0%, rgba(0, 240, 255, 0.3) 50%, transparent 100%),
    radial-gradient(circle 10px at 50% 55%, rgba(221, 51, 250, 0.9) 0%, rgba(221, 51, 250, 0.3) 50%, transparent 100%),
    radial-gradient(circle 12px at 50% 70%, rgba(0, 240, 255, 0.9) 0%, rgba(0, 240, 255, 0.3) 50%, transparent 100%),
    radial-gradient(circle 10px at 50% 85%, rgba(221, 51, 250, 0.9) 0%, rgba(221, 51, 250, 0.3) 50%, transparent 100%),
    radial-gradient(circle 8px at 50% 95%, rgba(255, 167, 38, 0.8) 0%, rgba(255, 167, 38, 0.3) 50%, transparent 100%),
    /* Líneas de conexión sutiles */
    linear-gradient(180deg, 
      transparent 0%, 
      rgba(179, 157, 219, 0.15) 10%, 
      rgba(179, 157, 219, 0.25) 50%, 
      rgba(179, 157, 219, 0.15) 90%, 
      transparent 100%);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  animation: nodesGlow 3s ease-in-out infinite;
}

@keyframes nodesGlow {
  0%, 100% { 
    opacity: 0.7;
    filter: brightness(1);
  }
  50% { 
    opacity: 1;
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(221, 51, 250, 0.5));
  }
}

.sch-container {
  position: relative;
  z-index: 1;
}

.sch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.sch-header h2 {
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, var(--text), var(--orange-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sch-day {
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-200);
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--purple-700);
}

.sch-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.sch-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.sch-table thead th {
  text-align: left;
  padding: 16px 20px;
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--text);
  background: rgba(74, 0, 114, 0.4);
  border-bottom: 2px solid var(--purple-700);
}

.sch-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.sch-table tbody tr {
  transition: background 0.3s ease;
}

.sch-table tbody tr:hover {
  background: rgba(179, 157, 219, 0.1);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-ceremony { background: rgba(179, 157, 219, 0.2); color: var(--purple-200); border: 1px solid var(--purple-200); }
.badge-cultural { background: rgba(77, 208, 225, 0.2); color: var(--teal-300); border: 1px solid var(--teal-300); }
.badge-social { background: rgba(102, 187, 106, 0.2); color: var(--green-400); border: 1px solid var(--green-400); }
.badge-expo { background: rgba(255, 167, 38, 0.2); color: var(--orange-400); border: 1px solid var(--orange-400); }
.badge-sport { background: rgba(239, 83, 80, 0.2); color: var(--red-400); border: 1px solid var(--red-400); }
.badge-esport { background: rgba(96, 125, 139, 0.2); color: #90A4AE; border: 1px solid #90A4AE; }
.badge-workshop { background: rgba(100, 181, 246, 0.2); color: var(--blue-300); border: 1px solid var(--blue-300); }
.badge-talent { background: rgba(255, 238, 88, 0.2); color: var(--yellow-400); border: 1px solid var(--yellow-400); }

/* Cards View (Mobile) */
.schedule-cards {
  display: none;
}

.sch-event-title {
  font-family: var(--title-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-300);
  margin: 32px 0 16px;
}

.sc-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.sc-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.sc-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-neon);
  box-shadow: 0 12px 48px rgba(77, 208, 225, 0.3);
}

.sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sc-time {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.sc-title {
  font-family: var(--title-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 8px;
}

.sc-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* View Switching */
.schedule.schedule--table .schedule-table { display: block; }
.schedule.schedule--table .schedule-cards { display: none; }
.schedule.schedule--cards .schedule-table { display: none; }
.schedule.schedule--cards .schedule-cards { display: block; }

@media (max-width: 768px) {
  .schedule-table { display: none !important; }
  .schedule-cards { display: block !important; }
}

/* =============== GALLERY =============== */
.gallery {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(106, 27, 154, 0.05) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

/* Grilla hexagonal estilo red tecnológica más visible */
.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(30deg, rgba(102, 187, 106, 0.05) 1px, transparent 1px),
    linear-gradient(150deg, rgba(102, 187, 106, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 208, 225, 0.04) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 60px 60px;
  z-index: 0;
  animation: hexGrid 12s ease-in-out infinite;
}

/* Efecto bokeh con círculos luminosos más intensos */
.gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 12% 18%, rgba(102, 187, 106, 0.15) 0%, transparent 12%),
    radial-gradient(circle at 88% 25%, rgba(77, 208, 225, 0.12) 0%, transparent 11%),
    radial-gradient(circle at 25% 75%, rgba(221, 51, 250, 0.1) 0%, transparent 9%),
    radial-gradient(circle at 75% 65%, rgba(255, 167, 38, 0.08) 0%, transparent 8%),
    radial-gradient(circle at 50% 40%, rgba(179, 157, 219, 0.06) 0%, transparent 10%);
  animation: bokehGlow 14s ease-in-out infinite;
  z-index: 0;
}

@keyframes bokehGlow {
  0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(2deg); }
}

@keyframes hexGrid {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.gal-container {
  position: relative;
  z-index: 1;
}

.gal-header h2 {
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 48px;
  background: linear-gradient(135deg, var(--text), var(--green-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gal-empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  stroke: var(--text-muted);
  stroke-width: 1.5;
}

.gal-empty-state h3 {
  font-family: var(--title-font);
  font-size: 1.8rem;
  margin: 0 0 16px;
  color: var(--text);
}

.gal-empty-state p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.gal-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: -32px 0 48px;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.gal-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gal-card:hover {
  transform: translateY(-5px);
}

.gal-img-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.gal-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gal-card:hover .gal-img {
  transform: scale(1.05);
}

.gal-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.gal-category {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.gal-content {
  padding: 1.5rem;
}

.gal-content h3 {
  font-family: var(--title-font);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.gal-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.gal-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gal-tags li {
  background: var(--purple-100);
  color: var(--purple-700);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
}


/* =============== SPONSORS =============== */
.sponsor {
   padding: 20px 16px;
  display: grid;
  place-items: center;
}

/* Patrón corporativo con líneas diagonales elegantes */
.sponsor::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, 
      transparent, 
      transparent 50px, 
      rgba(100, 181, 246, 0.03) 50px, 
      rgba(100, 181, 246, 0.03) 51px),
    repeating-linear-gradient(-45deg, 
      transparent, 
      transparent 50px, 
      rgba(179, 157, 219, 0.03) 50px, 
      rgba(179, 157, 219, 0.03) 51px);
  z-index: 0;
  animation: corporatePattern 8s ease-in-out infinite;
}

/* Efecto de reflejo profesional más visible */
.sponsor::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  
  z-index: 0;
}

@keyframes professionalShine {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: -100%; }
}

@keyframes corporatePattern {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.sp-container {
  width: min(1100px, 92vw);
}

.sponsor h2 {
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  text-align: center;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--text), var(--blue-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.1rem;
}

.sp-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 34px;
  list-style: none;
}

.sp-logo-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  width: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sp-logo-item img {
  width: 100%;
 
  object-fit: cover;
}

.sp-logo-item:hover {
  transform: translateY(-8px);
  border-color: var(--purple-neon);
  box-shadow: 0 12px 48px rgba(221, 51, 250, 0.3);
}

.sp-placeholder {
  color: #999;
  text-align: center;
  font-size: 0.9rem;
}

.sp-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.sp-logo-img:hover {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* =============== FOOTER =============== */
.footer {
  background: rgba(10, 6, 18, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 32px;
}

.footer-logo h3 {
  font-family: var(--title-font);
  font-size: 1.6rem;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--purple-neon), var(--teal-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo p {
  color: var(--text-muted);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--title-font);
  font-size: 1.2rem;
  margin: 0 0 16px;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact p {
  color: var(--text-muted);
  margin: 8px 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
  .hero {
    padding-top: 89px;
  }
  
  .hero-stats {
    gap: 16px;
  }
  
  .stat-card {
    padding: 16px 24px;
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* =============== ANIMATIONS =============== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms ;
    animation-iteration-count: 1;
    transition-duration: 0.01ms ;
  }
}
