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

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec489a;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.fade-in {
  opacity: 1;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../Fotos/Fondo.jpg) no-repeat center center fixed;
  background-size: cover;
  filter: brightness(0.3);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
  opacity: 0.6;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.side-left, .side-right {
  position: fixed;
  top: 0;
  width: 60px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.side-left {
  left: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.side-right {
  right: 0;
  background: linear-gradient(270deg, var(--primary), transparent);
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: blur(10px);
}

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

.loader-circle {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-progress {
  width: 200px;
  height: 2px;
  background: rgba(99, 102, 241, 0.2);
  margin-top: 20px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.loader-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  animation: progress 2s ease forwards;
}

@keyframes progress {
  to { width: 100%; }
}

#loader-text {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse 2s ease infinite;
}

.page-container {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

.main-container {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(20px);
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all var(--transition-base);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: sticky;
  top: 1rem;
  z-index: 100;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
}

.logo-text {
  color: var(--text-light);
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.hero {
  position: relative;
  height: 500px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.8) 0%, rgba(99, 102, 241, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: 3px;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.mission-card, .vision-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.mission-card::before, .vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mission-card h3, .vision-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-stats {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
}

.value-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.value-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.value-metric {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.875rem;
  color: var(--primary);
}

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

.team-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  transition: all var(--transition-base);
}

.team-card:hover .team-image {
  transform: scale(1.05);
  border-color: var(--secondary);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.team-role {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.team-social {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.team-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.team-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

.timeline-section {
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  transform: translateX(30px);
}

.timeline-item:nth-child(even).visible {
  transform: translateX(0);
}

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  background: var(--gradient-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 1;
}

.timeline-content {
  width: calc(50% - 30px);
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.timeline-stats {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stats-section {
  margin-bottom: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  opacity: 0;
  transform: scale(0.9);
}

.stat-card.visible {
  opacity: 1;
  transform: scale(1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

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

.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 1024px) {
  .main-container {
    padding: 1.5rem;
  }
  
  .hero {
    height: 450px;
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-year {
    left: 30px;
    transform: translateX(0);
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .timeline-item {
    transform: translateX(0) !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .mission-vision-grid,
  .values-grid,
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 1rem;
  }
  
  .hero {
    height: 350px;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .team-card {
    padding: 1.5rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-dark: #0a0a0f;
    --bg-card: #111827;
  }
}