@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,
body {
    height: 100%;
    margin: 0
}

body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

nav {
    display: flex;
}

.navbar {
    position: fixed;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #065da6;
    padding: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    width: 100vw;
    display: flex;
    padding: 0px;
    margin: 0;
    align-items: center;
    justify-content: space-between;
    text-align: justify;
}

#navbarNav {
    justify-content: center;
}

.navbar li a {
    display: flex;
    text-align: center;
    color: #ffffff;
    transition: 0.7s;
    justify-content: center;
}

.navbar li a:hover {
    color: #12e115;
    transform: scale(1.2);
}

.collapse .navbar-nav {
    max-width: 100% !important;
    justify-content: end !important;
    align-items: center;
    font-size: 1em;
}

.navbar.dropdown-menu {
    position: relative;
    z-index: 1000;
    
}

.navbar .logo {
    height: 40px;
    width: auto;
    margin: 5px auto;
    transition: 0.3s;
    background-color: transparent transparent;
}

.navbar .logo:hover {
    transform: scale(1.1);
}

.dropdown .btn {
    background-color: blu;
    margin: 0%;
}

.dropdown-menu .dropdown-item {
    font-weight: bold;
    color: #fff;/*color letra en menu*/
}

.dropdown-menu .list-unstyled {
    margin: 0px;
    padding: 0px;
    border: 0px;
    justify-content: center;
    text-align: center;
    background-color: #065da6;
}

.list-unstyled .dropdown-submenu {
    margin: 0px;
}

.dropdown:hover>.dropdown-menu {
    display: block;
    background-color: #065da6;
}

.dropdown-menu .dropdown-item:hover {
    font-weight: bold;
    color: #803402;
    background-color: #065da6;
}

.dropdown-menu {
    background-color: #022a80;

}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 100%;
    left: -50%;
    margin: top 0.5rem;
    background-color: #065da6;
}

.custom-dropdown-menu {
    width: auto;
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: #0d1d40 #065da6;
    scrollbar-width: thin;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.frutas {
    height: 27px;
    width: auto;
}

.navbar-wrapper {
  height: 80px; 
  width: 100%;
}

/* Navbar fija arriba */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background-color:  #065da6; 
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 10px;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .navbar-wrapper {
    height: 120px;
  }

  .navbar {
    height: 120px;
    flex-wrap: wrap; 
    justify-content: center;
  }

  .menu-text {
    display: none;
  }

  .nav-link i {
    margin-right: 0;
    font-size: 1.4rem;
  }

  .navbar-nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
  }

  .navbar-nav .nav-item {
    text-align: center;
    flex: 1 1 20%; 
  }
}

.nav-link i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .menu-text {
        display: none; /* Oculta el texto */
    }

    nav.navbar .container > .navbar-collapse:first-of-type .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center; 
        align-items: center;
        flex-wrap: nowrap;
        gap: 18px;
        margin: 10px auto 0;
        width: auto;
    }

    nav.navbar .container > .navbar-collapse:first-of-type .nav-item {
        list-style: none;
    }

    nav.navbar .container > .navbar-collapse:first-of-type .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
    }

    nav.navbar .container > .navbar-collapse:first-of-type .nav-link i {
        font-size: 1.6rem;
        margin: 0;
    }

    nav.navbar .container > .navbar-collapse:not(:first-of-type) {
        display: block !important;
    }

    nav.navbar .container > .navbar-collapse:not(:first-of-type) .dropdown {
        display: inline-block;
    }

    nav.navbar .container > .navbar-collapse:not(:first-of-type) img.logo {
        max-width: 70px;
        height: auto;
    }
}
/* imágenes (Lucky Gummy, Pachicleta, etc.) */
@media (max-width: 767px) and (min-width: 360px) {

    nav.navbar .container > .navbar-collapse:not(:first-of-type) {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;          
        justify-content: center;  
        align-items: center;
        gap: 10px;              
        margin-top: 17px;
    }

    /* Imágenes: tamaño y proporción */
    nav.navbar .container > .navbar-collapse:not(:first-of-type) img.logo {
        width: 50px;      /* Tamaño móviles */
        height: auto;     /* Mantiene proporciones */
       
 object-fit: contain;
    }

    nav.navbar .container > .navbar-collapse:not(:first-of-type) .btn.dropdown {
        padding: 0;
        border: none;
        background: transparent;
    }
}

/*---------------------------------------------- End NavBar ------------------------------------------------------ */

.frutas-foother {
    height: inherit;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-wrap: nowrap;
}

.frutas-foother img {
    height: 4.3vw;
    transition: .1s ease-in-out;
}

.frutas-foother img:hover {
    transform: scale(1.3);
}

.frutas-foother a {
    width: calc(100% / 23);
}

.footer {
    background-color: #065da6;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.footer a {
    color: #ffffff;
    font-size: 0.9em;
    text-decoration: none;
    transition: 3ms;
}

footer a:hover {
    color: #12e115;
}
.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;

}

.modal.show {
  display: flex;  
}

.modal-contenido {
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  overflow: auto;
}

.img-modal {
  max-width: 80vw; 
  max-height: 80vh; 
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  #navbarNav .navbar-nav {
    display: flex;
    flex-wrap: wrap;      
    justify-content: center;    
    width: 100%;
    padding: 0;
  }

  #navbarNav .navbar-nav .nav-item {
    flex: 1 1 auto;     
    min-width: 0;
    text-align: center;
  }

  #navbarNav .navbar-nav .nav-link {
    padding: 0.25rem 0.4rem;  
    font-size: 0.75rem;        
    line-height: 1.2;
  }
}
