#overlay {
  background-color: #00000080;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 995; 
  display: none; 
}

.navegacion span, .navegacionM span {
  font-size: x-small;
  color: #ffffff;
  background-color: #000000;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 4px;
  padding-right: 4px;
  border-radius: 10px;
  margin-bottom: 1px;
}

.titlenav .BtnCarrito, .topnavM .BtnCarrito, .titlenav .BtnCotiza, .topnavM .BtnCotiza {
  background-color: white;
  border: none;
  font-family: inherit;
}

.titlenav .BtnCarrito:hover, .topnavM .BtnCarrito:hover, .titlenav .BtnCotiza:hover, .topnavM .BtnCotiza:hover {
  text-decoration: underline;
  cursor: pointer;
}

.button-text {
  display: flex;
  align-items: center;
  border:none;
  position:fixed;
  background-color: #25ff37bb;
  padding-top: 6px;
  padding-left: 6px;
  padding-bottom: 6px;
  /*border-radius: 10px;*/
  box-shadow: 0px 0px 6px 3px #b7b7b752;
  /*opacity: 0; /* Initially hide the text
  transition: opacity 0.5s ease-in-out; /* Add a smooth transition */
}

.button-text img{
  animation: pulse 1s infinite ease-in-out alternate;
  margin-left: -60px;
  margin-top: -25px;
}

.button-text .whatsapp-number {
  font-size: 1.2em; /* Adjust this value to make it as big as you want */
}

.button-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer {
  margin-top: 20px;
  background-color: #848688;
  color: white;
}

.footer a {
  color: #141414;
  text-decoration: none;
}

.footer h5 {
  margin: 7px;
}

.footer a:hover {
  text-decoration: underline;
}

.titlenav .navegacion img {
  animation: pulse 1s infinite ease-in-out alternate;
}

@keyframes pulse {
  from { transform: scale(0.8); }
  to { transform: scale(1.2); }
}

/* -----------------------------codigo para hacer la pagina responsiva de escritorio---------------------------- */
@media screen and (min-width: 1201px) {

  .mobile-container {
    display: none;
  }

  .titlenav .BtnCarrito, .topnavM .BtnCarrito, .titlenav .BtnCotiza, .topnavM .BtnCotiza {
    font-size: 14px;
  }

  .button-text {
    right: 40px;
    bottom: 30px;
  }

  .button-text img{
    max-width: 100px;
    margin-right: 20px;
  }

  .footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-left: 60px;
    padding-right: 60px;
  }

  .footer .grid-container{
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-right: 30vw;
  }
  
  .footer .grid-item {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    min-width: 180px;
  }
  /*----------------------------------------------------------------barra de navegacion escritorio --------------------------------------------------------------------------- */

  .titlenav {
    position: sticky;
    position: -webkit-sticky; /* Safari */
    top:0;
    width: auto;
    list-style-type: none;
    margin: 0;
    padding: 3px;
    overflow: hidden;
    background-color: #ffffff;
    border-bottom: 1px solid #bbb;
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 999;
  }

  .logo img {
    max-height: 90px;
  }

  .titlenav .navegacion {
    padding-right:20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .titlenav .navegacion a:hover {
    text-decoration: underline;
  }

  .titlenav .navegacion a {
    padding-left: 8px;
  }
  
  .busqueda {
    flex-grow: 1;
    margin: 0 20px;
  }

  .busqueda form {
    display: flex;
}

  .busqueda button {
    border: none;
    padding-top: 8px;
    padding-bottom: 7px;
    margin-left: -26px;
    color:#888;
    background-color: #ececec00;
  }

  .titlenav input[type=text] {
    border: none;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 14px;
    background-color: #ececec;
    flex-grow: 1;
    min-width: 100px;
  }

  .CTA {
    font-size: 18px;
  }

  .WA-number {
    font-size:25px;
    font-weight:bold;
  }

  .BtnCotiza, .BtnCarrito {
    margin-right: 10px;
  }

  .BtnCotiza i, .BtnCarrito i {
      margin: 0 5px;
  }

  .whatsapp {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
  }

  .whatsapp img {
      max-height: 30px;
      margin-left: 5px;
  }

  .whatsapp-text {
    display:flex;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
  }

  .topnav {
    position: sticky;
    position: -webkit-sticky; /* Safari */
    top: 100px;
    background-color: #ffffff;
    box-shadow: 0px 5px 10px -3px #bbbbbb9f;
    min-height: 45px;
    z-index: 998;
    padding-left: 8px;
  }

  .topnav a, .titlenav a {
    color: #1b1b1b;
    text-decoration: none;
    font-size: 14px;
  }

  .topnav .links {
    padding-right: 18px;
  }

  .topnav .links a {
    float: right;
    display: block;
    color: #1b1b1b;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 14px;
  }

  .dropdown {
    float: left;
    overflow: hidden;
  }

  .dropdown .dropbtn {
    font-size: 14px;
    border: none;
    outline: none;
    color: #1b1b1b;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    z-index: 999;
  }

  .dropdown-content {
    padding-top: 25px;
    display: none;
    position: absolute;
    top: 100%;
    left:0;
    background-color: #ffffff;
    min-height: 250px;
    width:100%;
    box-shadow: 0px 1px 10px 1px #dddddd3b;
    align-items: flex-start;
    justify-content: space-between;
  }

  .dropdown-content .categoriescontainer {
    display: flex;
    flex-direction: column;
  }

  .dropdown-content .categoriescontainer a {
    color: #1b1b1b;
    padding: 6px 16px;
    text-decoration: none;
    display: block;
  }

  .dropdown-content .gallerycontainer {
    display: flex;
    position:relative;
    float:right;
    margin-right: 5vw;
    flex-direction: column;
    font-size: 14px;
    color:#363636
  }

  .dropdown-content .gallery {
    display: flex;
    margin-top: 10px;
  }

  .imgDropdownContainer {
    display: flex;
    width: 22vw;
    max-height: 200px;
    background-color: #edf9ff;
    margin-right: 10px;
    margin-bottom: 20px;
    justify-content: center;
  }

  .textDropdownContainer {
    display: flex;
    color: #363636;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .dropdownText {
    margin-top: -16px;
    margin-bottom: 10px;
  }

  .dropdown-content img {
    max-width: 18vw;
    max-height: 200px;
  }

  .dropdown-content a:hover {
    text-decoration: underline;
  }

  .dropdown:hover .dropbtn {
    border-bottom: 5px solid #000000;
  }

  .dropdown:hover .dropdown-content {
    display: flex;
  }
}

/* -----------------------------codigo para hacer la pagina responsiva movil ---------------------------- */
@media screen and (max-width: 1200px) {

  .topnav, .titlenav {
    display: none;
  }

  .button-text {
    padding-right: 10px;
    font-size: small;
    bottom:3vh;
    right: 3vw;
  }

  .button-text img{
    max-width: 70px;
    margin-right: 10px;
  }
 
  .tituloFooter {
    display: none;
  }

  .footer {
    display: flex;
    text-align: center;
    align-items: center;
  }

  .footer .grid-container {
    margin-right: 10px;
    margin-left: 10px;
  }

  /*----------------------------------------------------------------barra de navegacion movil --------------------------------------------------------------------------- */

  .mobile-container {
    position: sticky;
    top:0;
    margin: auto;
    height: 65px;
    z-index: 999;
  }
  
  .topnavM {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    position: relative;
    min-height: 65px;
    border-bottom: 1px solid #bbb;
  }
  
  .mobile-container #myLinks {
    display: none;
    position: relative;
    z-index: 999;
    background-color: #ffffff;
  }

  .mobile-container .paginasLinksM {
    display: flex;
    justify-content: space-between;
    /*background-color: whitesmoke;*/
  }

  .topnavM img {
    margin-left:auto;
    margin-right: auto;
    position: relative;
    max-height:45px;
    vertical-align:middle;
  }
  
  .topnavM a, .mobile-container a {
    color: #000000;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 14px;
    display: block;
    position: relative;
  }
  
  .topnavM .menu {
    background: #ffffff;
    color: black;
    display: block;
    position: absolute;
  }

  .topnavM .searchBtnM {
    margin-left: 1cm;
    float: left;
  }
  
  .topnavM a:hover {
    text-decoration: underline;
  }

  #busquedaMcontainer {
    position: relative;
    display: none;
    background-color: #ffffff;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .busquedaM {
    margin-left: auto;
    margin-right: auto;
    padding: 6px;
    border: none;
    background-color: #ececec;
    max-width: 80%;
  }

  .mobile-container .busquedaM button {
    float: right;
    position: relative;
    border: none;
    padding-top: 8px;
    padding-bottom: 0;
    margin-top: -24px;
    margin-left: 34vw;
    background-color: #ffffff00;
    display: block;
    width: auto;
  }

  .navegacionM {
    display: flex;
    align-items: center; 
    justify-content: flex-end;
  }

  .navegacionM a, .BtnCarrito, .BtnCotiza {
    margin-left: -10px;
  }

  span.total-quote-count {
    margin-right: 4px;
  }

  .mobile-container input[type=text] {
    float: none;
    position: relative;
    border: none;
    font-size: 14px;
    background-color: #ececec;
    display: block;
    width: 100%;
  }
}