  nav a {
    text-decoration: none;
    font-size: 24px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

/* Efecto de subrayado que aparece desde el centro */
nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}
    /* Estilos específicos para el hero section con video de fondo */
    .hero-section {
      position: relative;
      height: 100vh;
      overflow: hidden;
    }
    .bg-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        z-index: 1;
        width: 100%;
        }
        
      .logo-img {
    height: 160px; /* Usa height en lugar de max-height */
    width: auto;
    transition: height 0.3s ease-in-out, margin 0.3s ease-in-out; /* Suaviza la animación */
    margin-top: 80px;
    margin-bottom: 80px;
    margin-right: 50px;
}

/* Cuando se hace scroll */
.logo-img.shrink {
    height: 80px !important; /* Ajusta el tamaño */
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    margin-right: 20px !important;
}

.hero {
  margin-top: 250px;
  height: 50vh;
}

    .mission-vision-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 5px;
    }
    
    .mission-vision {
      display: flex;
      justify-content: space-between;
      gap: 20px;
    }
    
  .section-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);  /* Fondo blanco casi opaco */
    border: 1px solid #ffffff;  /* Borde blanco */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
  }
  
    .section-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }
    
    .section-text {
      padding: 20px;
      flex: 3; /* Texto ocupa más espacio */
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
    .section-image {
      flex: 1; /* Imagen ocupa menos espacio */
      max-width: 35%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
    }
    
    .section-image img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      transition: transform 0.5s ease;
    }
    
    .section-card:hover .section-image img {
      transform: scale(1.05);
    }
    
    .section-card h3 {
      color: #2c3e50;
      font-size: 1.8rem;
      margin-bottom: 15px;
      position: relative;
      padding-bottom: 12px;
    }
    
    .section-card h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, #3498db, #2c3e50);
    }
    
    .section-card p {
      font-size: 1.1rem;
      line-height: 1.6;
      color: #34495e;
      text-align: justify;
    }
    
  /* Recuadro con efecto glassmorphism y reflejo (efecto espejo) */
  .about-content-wrapper {
      background: rgba(255, 255, 255, 0.8); /* Fondo blanco con algo de transparencia */
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 20px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      padding: 40px;
      margin: 0 auto 60px;
      max-width: 1280px;
      border: 5px solid #ffffff;  /* Borde blanco con grosor visible */
  }

.about-content-wrapper:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

/* Ajustes para el contenido dentro del wrapper */
.history {
  margin-bottom: 1px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
}

/* Modificaciones para las tarjetas para que se integren mejor */
.section-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Añadir un fondo sutil para toda la sección */
  /* Imagen de fondo para la sección (detrás del recuadro) */
.content-section {
  background: url('../img/fondo.jpg') repeat center center fixed;
  background-size: cover;
  padding: 80px 20px !important;
  position: relative;
  z-index: 1;
  min-height: 110vh; /* La sección ocupará al menos un 110% de la altura de la ventana */
  margin-bottom: -50px; /* Valor negativo para superponer con la siguiente sección */
}

/* Mejoras visuales para los títulos */
.history h2 {
  position: relative;
  padding-bottom: 15px;
}

.history h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2c3e50);
}

    /* En pantallas medianas */
    @media (max-width: 992px) {
      .mission-vision {
        flex-direction: column;
        gap: 15px;
      }
      
      .section-card {
        width: 100%;
      }
    }
    
    /* En pantallas pequeñas */
    @media (max-width: 768px) {
      .section-card {
        flex-direction: column;
      }
      
      .section-image {
        height: auto;
        max-width: 100%;
        padding: 15px;
        order: -1; /* Coloca la imagen arriba en móvil */
      }
      
      .section-image img {
        max-height: 200px;
      }
    }
    
    @media (max-width: 576px) {
      .section-text {
        padding: 15px;
      }
      
      .section-card h3 {
        font-size: 1.5rem;
      }
      
      .section-card p {
        font-size: 1rem;
      }
    }