body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: white;
    overflow-x: hidden;
    overflow-y: auto;
}

.marca-banner {
    display: flex;
    height: auto;          
    max-height: 200px;    
    overflow: hidden;
    
}

.marca-banner .logo-marca {
    width: 200%;
    height: auto;
    object-fit: contain;
    margin-right: 0;
}

.marca-banner {
    display: flex;  
    width: 200%;
    animation: desplazamiento 5s linear infinite; 
}

.acciones-carrito {
  display: flex;
  align-items: center;
  gap: 6px;
}

.acciones-carrito button {
  background: #f5f5f5;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 10px;
}

.acciones-carrito button:hover {
  background: #cfcfcf;
  color: #fff;
}

.acciones-carrito .cantidad {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

@keyframes desplazamiento {
    0% {
        transform: translateX(0); 
    }
    100% {
        transform: translateX(-39%); 
    }
}

.catalogo-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.filtros {
    width: 25%;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.filtros h3, .filtros h4 {
    margin-top: 20px;
}

.filtros input[type="checkbox"] {
    margin-right: 10px;
}

.barra-precio input {
    margin: 5px;
}

.productos {
    width: 100%;
    padding: 20px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.producto {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.producto {
    animation: fadeIn 1s ease-in-out;  
}

.producto-imagen {
    position: relative;
}

.producto-imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

h4 {
    margin-top: 15px;
    font-size: 22px;
    font-weight: 600;
}

.precio {
    font-size: 10px;
    color: #333;
    margin-top: 10px;
}

.colores {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.color-bola {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.filtros {
    background-color: white !important;  
    color: black;  
    border-radius: 12px;  
    padding: 16px;  


}

.lista-filtro{list-style:none;margin:0;padding:0 !important}
.item-filtro{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-radius:10px;cursor:pointer}
.item-filtro:hover{background:#e6e6e6 !important}
.item-filtro.activo{background:#f6f6f6}
.filtro-colores{display:flex;flex-wrap:wrap;gap:10px}
.bolita{width:22px;height:22px;border-radius:50%;border:2px solid #ddd;cursor:pointer}
.bolita.activo{outline:3px solid #333}
.rango-precio input[type="range"]{width:100%;}
.catalogo-container h3, h4 {font-size:21px}

#btn-aplicar-precio {
    background-color: #000000; 
    color: white; 
    border: none; 
    padding: 5px 10px; 
    border-radius: 15px; 
    font-size: 14px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    display: block;
    align-items: center; 
    margin: 10px auto; 
}

#btn-aplicar-precio:hover {
    background-color: #ff0000; 
}

.rango-precio input[type="range"] {
    width: 100%;
    -webkit-appearance: none; 
    appearance: none;
    background: #ddd; 
    height: 8px; 
    border-radius: 5px;
}

.rango-precio input[type="range"]::-webkit-slider-runnable-track {
    background: #c2c2c2; 
    border-radius: 5px;
    height: 5px;
}
.rango-precio input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; 
    width: 15px; 
    height: 15px; 
    border-radius: 50%; 
    background: #c2c2c2; 
    cursor: pointer; 
    margin-top: -5px; 
}
                    
.asistente-virtual.mostrar {
    right: 20px; 
}

.contador-productos {
    text-align: center;
    margin: 25px 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 50px;
}

#mensaje-deslizable-contenedor {
    width: 100%;  
    overflow: hidden; 
    position: relative; 
}

#mensaje-deslizable {
    width: 100%; 
    background-color: #ff0000; 
    color: #ffffff; 
    text-align: center; 
    font-size: 18px; 
    font-weight: bold; 
    position: relative; 
    overflow: hidden; 
}

#mensaje-deslizable p {
    display: flex;  
    width: 100%;
    animation: desplazamiento-mensaje 15s linear infinite; 
    margin-top: 0;
    margin-bottom: 0;
}

@keyframes desplazamiento-mensaje {
    0% {
        transform: translateX(100%); 
    }
    100% {
        transform: translateX(-100%); 
    }
}

#nav-menu {
    display: none;  
    background-color: #f7f7f7;
    color: rgb(0, 0, 0);
    position: absolute;
    top: 50px;  
    left: 0;
    width: 240px;  
    text-align: left;  
    padding: 20px 0;  
    box-sizing: border-box;
    z-index: 1000;  
}


#nav-menu ul {
    list-style-type: none;  
    padding: 0;
    margin: 0;
    display: block;
}


#nav-menu ul li {
    display: block;  
    margin: 10px 0;  
}


#nav-menu ul li a {
    color: rgb(5, 5, 5);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 25px;  
    display: block;  
    font-weight: bold;
    position: relative;
    transition: background-color 0.3s ease;

}

#nav-menu ul li a:hover {
    background-color: #ff9100;
}


.dropdown a {
    display: flex;
    justify-content: center; 
    align-items: center;  
    width: 82%;  
    padding: 10px 20px;  
    transition: background-color 0.3s ease; 
}

.arrow {
    font-size: 30px;  
    color: #a3a3a3fe;  
    margin-left: 120px; 
}


.dropdown:hover .arrow {
    color: #000000; 
}

.dropdown:hover .dropdown-content {
    display: block;  
     transition: all 0.3s ease;  
}

#menu-btn.active + #nav-menu {
    display: block;  /
}


#menu-btn {
    background-color: transparent;
    border: none;
    font-size: 18px;
    color: rgb(56, 54, 54);
    display: flex;
    align-items: center;
    cursor: pointer;
}

#menu-btn i {
    margin-right: 5px;
}

.menu-text {
    display: inline; 
    font-family: Nunito; 
    font-weight: bold;
}

@media (max-width: 768px) {
    .menu-text {
        display: none;  
    }
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-contenido {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  background: #fff;
  width: 80%;
  max-width: 1100px;
  max-height: 90vh;    
  overflow-y: auto;     
  border-radius: 10px;
  padding: 20px;
  display: flex;           
  gap: 20px;  
  position: relative;
}

.modal-columna-izq .miniaturas img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
  
}

.modal-columna-centro img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
  
}

.modal-columna-der {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;   
  text-align: left;
  flex: 1;
}

.modal-columna-der .precio {
    font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #001cb8;
}

.acciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


#btn-whatsapp {
  background: #4dd466;
  color: white;
  text-align: center;
  padding: px 10px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;       
  align-items: center;
  gap: 8px;                    
  font-weight: 500;
}

#btn-whatsapp .icono-whatsapp {
  width: 50px;
  height: 50px;
}

#cerrar-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
}

#cerrar-modal:hover {
  color: rgb(255, 0, 0);
}

#modal-colores {
  margin: 10px 0;
  display: flex;
  gap: 10px;
}

.color-bola {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
}

#modal-detalles {
  text-align: left;
  margin-top: 8px;
}

.detalles-tecnicos {
  list-style: none;
  padding: 0;
  margin-right: 0;
}

.detalles-tecnicos li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed #e9e9e9;
}

.dt-k {
  min-width: 190px;     
  font-weight: 600;
}

.dt-v {
  flex: 1;
}

.modal-contenido::-webkit-scrollbar {
  width: 8px;
}
.modal-contenido::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.modal-contenido::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#modal-detalles {
  width: 100%;          
  text-align: left;
}

.modal-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-left img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;   
}


#btn-agregar-carrito {
  background: #ffa21f;
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 800 important!;
    font-size: 15px;
}
.img-wrapper {
  position: relative;
  display: inline-block;
}

.img-wrapper {
  position: relative;
  display: inline-block;
}

.icono-ampliar {
  position: absolute;
  bottom: 10px;   
  left: 10px;
  background: rgba(171, 171, 171, 0.6);
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icono-ampliar img.svg-expandir {
  width: 20px;   
  height: 20px;
  filter: invert(1); 
}

.icono-ampliar:hover {
  background: rgb(139, 139, 139);
}

.lightbox {
  display: none; 
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.535);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.cerrar-lightbox {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}
.cerrar-lightbox:hover {
  color: red;
}

.cart-btn {
  background: rgb(240, 240, 240) !important;  
  border: none;      
  cursor: pointer;
  padding: 0;        
  position: relative;
}

.cart-btn:hover{
  background: rgb(255, 170, 86) !important;  
}

.cart-btn img {
  width: 24px; 
  height: 24px;
  display: block;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}
.notificacion {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.carrito-panel {
  position: fixed;
  top: 0;
  right: -400px; 
  width: 350px;
  height: 100%;
  background: #fff;
  border-left: 2px solid #ccc;
  box-shadow: -4px 0 10px rgba(0,0,0,0.2);
  padding: 20px;
  transition: right 0.3s ease; 
  z-index: 10000;
  overflow-y: auto;
}

.carrito-panel.activo {
  right: 0; 
}

.carrito-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
}

.carrito-item span {
  font-size: 14px;
}

#cerrar-carrito {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 15px;
}

#cerrar-carrito:hover {
  background: #b02a37;
}

#btn-finalizar {
  background: #28a745;   
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

#btn-finalizar:hover {
  background: #218838;
}


/* Responsivo */
@media screen and (max-width: 1024px) {
  .modal-contenido {
    flex-direction: column;
    width: 90%;
    align-items: center; 
    text-align: center;
  }

  .modal-columna-izq,
  .modal-columna-centro,
  .modal-columna-der {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .modal-columna-centro img {
    max-height: 300px;
  }

  #btn-agregar-carrito {
    width: 100%;
  }
}


@media screen and (max-width: 480px) {
  .modal-contenido {
    margin-left: 90px;
    width: 95%;
    padding: 10px;
  }

  .modal-columna-centro img {
    max-height: 200px;
  }

  #btn-agregar-carrito {
    padding: 8px 12px;
    font-size: 14px;
  }

  #btn-whatsapp {
    padding: 8px;
    font-size: 14px;
  }
}


@media (max-width: 768px) {
    .grid-productos {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }

    .producto-imagen img {
        height: 150px; 
    }

    .producto {
        min-width: 280px; 
    }

    h4 {
        font-size: 14px; 
    }

    .precio {
        font-size: 12px; 
    }

    .catalogo-container {
        flex-direction: column; 
        align-items: center; 
    }

    .filtros {
        width: 90%; 
        margin-top: 20px; 
    }

    .productos {
        width: 90%; 
        margin-right: 0px; 
    }
}
@media (max-width: 968px ){
    .grid-productos {
        gap: 30px; 
    }

    .producto-imagen img {
        height: 120px; 
    }

    .producto {
        min-width: 100%; 
    }

    h4 {
        font-size: 22px; 
    }

}
