:root {
  --primary-color: #9d4edd;
  --primary-light: #c77dff;
  --primary-dark: #7b2cbf;
  --secondary-color: #5a189a;
  --accent-color: #e0aaff;
  --background-dark: #0a0012;
  --background-medium: #150025;
  --background-light: #240046;
  --nav-background: rgba(5, 0, 10, 0.95);
  --text-color: #e0e0e0;
  --text-muted: #a8a8a8;
  --white: #ffffff;
  --card-bg: rgba(20, 0, 40, 0.7);
  --shadow: 0 4px 6px -1px rgba(157, 78, 221, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(157, 78, 221, 0.2);
}

/* General Styles */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-dark);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header and Navigation */
.site-header {
  background: var(--nav-background);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

.vc-text {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-left: 10px;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-light);
}

.nav-link:hover::after {
  width: 100%;
}

/* Menu Toggle for Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-toggle .icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--nav-background);
      padding: 1rem;
  }

  .nav-menu.active {
      display: flex;
      flex-direction: column;
  }

  .menu-toggle {
      display: block;
  }
}

/* Section Styles */
section {
  padding: 5% 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-light);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Quiénes Somos Section */
#quienes-somos {
  padding: 4% 2%;
  max-width: 100%;
  margin: 0 auto;
}

.featured-member {
  margin-bottom: 4%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.featured-member .member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(157, 78, 221, 0.2);
  backdrop-filter: blur(10px);
  width: 90%;
}

.featured-member .member-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-member .member-info {
  padding: 1rem;
  text-align: center;
  word-break: break-word;
}

.featured-member h3 {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
  position: relative;
}

.featured-member h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  transform: translateX(-50%);
}

.featured-member .member-position {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.featured-member .member-description {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
}

.team-subtitle {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-light);
  margin: 3% 0;
  position: relative;
  padding-bottom: 1rem;
}

.team-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 2%;
  padding: 1%;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.gallery-item .member-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.gallery-item .member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  height: auto;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item .member-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.gallery-item h3 {
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.gallery-item .member-position {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.gallery-item .member-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Noticias Section */
.news-section {
  background: var(--background-medium);
  padding: 5% 2%;
}

.news-cta {
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
  padding: 2%;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.news-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Contacto Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3%;
}

.contact-card {
  background: var(--card-bg);
  padding: 1.5%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1%;
  margin-bottom: 1%;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateX(10px);
  background: rgba(157, 78, 221, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 1%;
  margin-top: 1%;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.contact-form-container {
  background: var(--card-bg);
  padding: 2%;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5%;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 8px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.1);
}

.submit-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.site-footer {
  background: var(--background-dark);
  padding: 4% 0 2%;
  margin-top: 4%;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90%, 1fr));
  gap: 3%;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1%;
}

.footer-links h3 {
  color: var(--primary-light);
  margin-bottom: 1%;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5% 0;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 0.5%;
}

.footer-bottom {
  margin-top: 3%;
  padding-top: 2%;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  text-align: center;
  color: var (--text-muted);
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}