.navbar {
    position: fixed;
    width: 100%;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
    align-items: center;
    z-index: 100;
}

.navbar.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for grid items */
.values-grid .animate-on-scroll,
.team-grid .animate-on-scroll,
.stats-container .animate-on-scroll {
    transition-delay: calc(var(--item-index) * 0.1s);
}

.about-page {
    background: black;
    color: white;
}

.about-hero {
    height: 100vh;
    background-image: url('../images/banner_transparente.png');
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

.hero-subtitle {
  color: #666;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 350;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.7s;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.about-intro {
    padding: 3.5rem 2rem;
    background: white;
    color: black;
}

.intro-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.3rem;
    line-height: 1.2;
    letter-spacing: -3px;
}

.intro-text p {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 350;
    width: 500px;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.intro-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* This creates a 4:3 aspect ratio */
    overflow: hidden;
  }
  
  .intro-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  @media (max-width: 768px) {
    .intro-container {
      grid-template-columns: 1fr;
    }
  
    .intro-text p {
      width: 100%;
    }
  
    .intro-image {
      padding-bottom: 100%; /* This creates a 16:9 aspect ratio for mobile */
      object-fit: contain;
    }
  }  

.intro-text {
    padding: 1rem;
}

.values-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 2rem;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/banner_transparente.png") no-repeat center center;
  background-size: cover;
  z-index: -1;
}

.values-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.value-item {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-number {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    position: absolute;
    top: -3rem;
    left: 2rem;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 115, 193, 0.7);
}

.value-number span {
    z-index: 9999 !important;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.value-item p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 350;
    color: #999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .section-title {
    margin-bottom: 4rem;
    color: #000;
  }
  
  .team-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    min-height: 100vh;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .team-member {
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .team-member:hover {
    transform: translateY(-10px);
  }
  
  .member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .team-member:hover .member-image img {
    transform: scale(1.1);
  }
  
  .team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
  }
  
  .team-member span {
    font-size: 0.9rem;
    color: #666;
  }
  
  .stats-section {
    padding: 5rem 0;
    min-height: 100vh !important;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .stats-grid {
    display: flex;
    justify-content: center;
    gap: 5rem;
    text-align: center;
  }
  
  .stat-item {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }
  
  .stat-item:hover {
    transform: translateY(-5px);
  }
  
  .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
  }

  /* Faq's */
  .faq-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    min-height: 100vh !important;
  }
  
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    transition: transform 0.3s ease-in-out;
  }
  
  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    transition: transform 0.4s ease-in-out;
  }
  
  .faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
  }
  
  .faq-toggle {
    font-size: 1.5rem;
    color: #666;
    transition: transform 0.3s ease-in-out;
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.25, 1, 0.5, 1), padding 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .faq-answer p {
    margin: 0;
    padding: 1rem 0;
    color: #666;
  }
  
  .faq-item.active .faq-question {
    color: #000;
  }
  
  .faq-item.active .faq-toggle {
    transform: rotate(45deg);
  }
  
  .faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1rem 0;
    transition: max-height 0.7s cubic-bezier(0.25, 1, 0.5, 1), padding 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Mision */
  .about-mission {
    padding: 3.5rem 2rem;
    background: white;
    color: black;
  }

  .mission-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .mission-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.3rem;
    line-height: 1.2;
    letter-spacing: -3px;
  }

  .mission-text p {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 350;
    width: 500px;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
  }

  .mission-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* This creates a 4:3 aspect ratio */
    overflow: hidden;
  }

  .mission-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .animate-left,
  .animate-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .animate-left {
    transform: translateX(-50px);
  }

  .animate-right {
    transform: translateX(50px);
  }

  .animate-left.is-visible,
  .animate-right.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  @media (max-width: 768px) {
    .mission-container {
      grid-template-columns: 1fr;
    }

    .mission-text p {
      width: 100%;
    }

    .mission-image {
      padding-bottom: 100%; /* This creates a 16:9 aspect ratio for mobile */
      object-fit: contain;
    }
  }
  
  @media (max-width: 768px) {
    .section-title {
      font-size: 2rem;
    }
  
    .team-grid,
    .stats-grid {
      grid-template-columns: 1fr;
    }
  }  

@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .intro-container,
    .values-grid,
    .team-grid,
    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .intro-container,
    .values-grid,
    .team-grid,
    .stats-container {
        grid-template-columns: 1fr;
    }
}