   
  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%;
}
    /* Aseguramos que html y body ocupen el 100% de la altura */
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
    }
    /* Estructura Flexbox para que el footer quede pegado abajo */
    .wrapper {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    .content {
      flex: 1;
    }
    /* Estilos para el slider */
    .main-slider { 
      position: relative; 
      overflow: hidden; 
      width: 100%;
      height: 400px; /* Altura fija para el slider */
    }
    .slider-wrapper { 
      display: flex; 
      transition: transform 0.5s ease; 
      height: 100%;
    }
    .slide { 
      min-width: 100%; 
      box-sizing: border-box; 
    }
    .main-slider img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* La imagen se recorta para llenar el slider */
    }
    .slider-nav { 
      position: absolute; 
      top: 50%; 
      transform: translateY(-50%); 
      background: rgba(0,0,0,0.5); 
      color: #fff; 
      border: none; 
      padding: 0.5rem 1rem; 
      cursor: pointer; 
    }
    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }
    .thumbnails { 
      display: flex; 
      justify-content: center; 
      margin-top: 1rem; 
      gap: 0.5rem; 
    }
.thumbnail img { 
  width: 60px; 
  height: 60px; 
  object-fit: contain; /* Evita cortes y mantiene la imagen completa */
  cursor: pointer; 
  border: 2px solid transparent; 
  background-color: #f0f0f0; /* Opcional: fondo para imágenes más pequeñas */
}

    .thumbnail img.active { 
      border-color: #4299e1; 
    }
    /* Estilos para el menú móvil */
    @media (max-width: 768px) {
      #menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: #fff;
        padding: 1rem;
      }
      #menu.show {
        display: flex;
      }
    }
    
      .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;
}