    /* Asegura que el slider ocupe toda la pantalla */
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
      .carousel,
      .carousel-item,
      .carousel-item.active {
        height: 100vh;
      }
      .carousel-item {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
      }
      /* Máscara para oscurecer la imagen */
      .carousel-item::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.5); /* Ajusta el valor para mayor o menor oscuridad */
        z-index: 1;
      }
      /* Contenido centrado */
      .carousel-caption {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 2;
        width: 100%;
        padding: 0 15px;
      }
      .carousel-caption h1 {
        color: #fff;
        font-size: 3rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
      }
      .carousel-caption p {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
      }
      /* Ajustes responsivos */
      @media (max-width: 767.98px) {
        .carousel-caption h1 {
          font-size: 2rem;
        }
        .carousel-caption p {
          font-size: 1rem;
        }
        .carousel-caption a.btn {
          font-size: 0.9rem;
          padding: 0.5rem 1rem;
        }
      }
      /* Asegura que los controles se encuentren sobre todos los elementos */
      .carousel-control-prev,
      .carousel-control-next {
        z-index: 10;
      }

/* menu nav */
 /* Estilos del nav */
 nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #23262d;
    z-index: 1000;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center; /* Centra verticalmente los elementos */
    justify-content: space-between;
    padding: 0px 20px;
  }
  
  /* Logo con imagen */
  .logo img {
    display: block;
    height: auto; /* Se adapta a su tamaño natural */
    max-height: 100px; /* Puedes ajustar este valor según tus necesidades */
  }
  
  /* Menú a la derecha */
  .menu {
    display: flex;
    align-items: center;
  }
  
  .menu ul {
    list-style: none;
    display: flex;
    align-items: center;
  }
  
  .menu ul li {
    position: relative;
  }
  
  /* Borde divisor entre elementos en escritorio, excepto el último */
  .menu ul li:not(:last-child) {
    border-right: 1px solid #fff;
  }
  
  .menu ul li a,
  .menu ul li button {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav_element:hover {
    background-color: #9a8a67;
  }

  /* Dropdown (aparece al hacer hover en desktop) */
  .menu ul li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #444;
    min-width: 150px;
  }
  
  .menu ul li:hover .dropdown-menu {
    display: block;
  }
  
  .menu ul li .dropdown-menu li a {
    padding: 10px;
  }
  
  /* Estilos para el botón de búsqueda */
  .search-btn {
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Menú hamburguesa (visible en móvil) */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  
  .hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
    transition: 0.4s;
  }
  
  /* Media query para móviles */
  @media (max-width: 768px) {
    .menu {
      position: fixed;
      top: 60px;
      right: -100%;
      width: 200px;
      height: calc(100% - 60px);
      background: #333;
      flex-direction: column;
      align-items: flex-start;
      padding: 20px;
      transition: right 0.3s ease;
    }
    
    
    .menu.active {
      right: 0;
    }
    
    .menu ul {
      flex-direction: column;
      width: 100%;
    }
    
    .menu ul li {
      width: 100%;
      border-right: none !important;
    }
    
    /* En móviles se aplica borde inferior, excepto al último elemento */
    .menu ul li:not(:last-child) {
      border-bottom: 1px solid #fff;
    }
    
    .menu ul li a,
    .menu ul li button {
      width: 100%;
    }
    
    .hamburger {
      display: flex;
    }
    
    /* En móviles el dropdown se activa con click */
    .menu ul li .dropdown-menu {
      position: static;
      display: none;
      width: 100%;
    }
    
    .menu ul li.active .dropdown-menu {
      display: block;
    }
  }
  
  /* Modal Styles */
  .modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Sobre el nav */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
  }
  
  .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: black;
  }
  
  .modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
