* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: rgb(255, 255, 255);
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
    background-image: url('https://coloresycasas.com/css/fondo/4.jpg'); /* Reemplaza con la ruta real de tu imagen */
    background-repeat: repeat; /* Controla si la imagen se repite (opcional) */
    background-size: cover; /* Controla el tamaño de la imagen (opcional) */
    background-position: center; /* Controla la posición de la imagen (opcional) */
    background-attachment: scroll;
  }
  #loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(202, 202, 202, 0.911);
    z-index: 9999;
    transition: transform 1s ease-in-out;
  }
  
  #loader img {
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  #connection-warning {
    margin-top: 20px;
    font-size: 18px;
    color: red;
    text-align: center;
  }
  .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: rgb(248, 143, 44);
        padding: 10px 20px;
        position: fixed; /* Cambiado a fixed para que se mantenga visible */
        top: 0;
        width: 100%;
        z-index: 1000; /* Asegura que la navbar esté por encima de otros elementos */
        transition: top 0.3s; /* Añade una transición suave para mostrar/ocultar la navbar */
    }
    
    .navbar-hidden {
        top: -100px; /* Ajusta este valor según la altura de tu navbar */
    }
    
    .logo img {
        height: 50px; /* Ajusta el tamaño del logo aquí */
        border-radius: 25px;
    }
    
    .nav-links {
        list-style: none;
        display: flex;
    }
    
    .nav-links li {
        margin-left: 20px;
    }
    
    .nav-links .lia {
        margin-left: 20px;
    }

    .nav-links a {
    color: rgb(116, 13, 13);
    text-decoration: none;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0);
    transition: color 0.3s ease;
    }
    
    .nav-links a:hover {
    color: #000000;
    cursor: pointer;
    }
    
    .burger {
    display: none;
    }
    
    .burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
    }
    .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    }
    
    .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    padding: 20px;
    background-color: rgb(189, 161, 68);
    border-radius: 10px;
    text-align: center;
    }
    
    .modal-content a {
    color: rgb(175, 15, 15);
    background-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ;
    }
    
    .modal-content a:hover {
    color: rgb(116, 13, 13);
    transform: scale(1.2);
    }
    
    .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    }
    
    @media screen and (max-width: 768px) {
    
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 70px; /* Establece la distancia desde la parte superior de la pantalla */
        background-color: rgb(248, 143, 44);
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 235px;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1000; /* Asegura que la navbar esté por encima de otros elementos */
    }
    
    .nav-links li {
        opacity: 0;
        margin-bottom: 30px; /* Añade más separación entre los elementos */
    }

    .nav-links .lia {
        margin-left: 10px;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0);
    }
    
    .nav-active li {
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        transition-delay: 0.3s;
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .modal-content {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    }
    }
  
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 20px;
        max-width: 1200px;
        margin: auto;
        margin-top: 70px;
      }
      
      .product-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
        padding: 15px;
        text-align: center;
      }
      
      .product-image {
        max-width: 100%;
        height: 370px;
        object-fit: cover;
        border-radius: 8px;
      }
      
      .product-name {
        font-weight: bold;
        margin-top: 10px;
      }
      
      @media (min-width: 1024px) {
        .product-grid {
          grid-template-columns: repeat(4, 1fr);
        }
      }
      
      @media (max-width: 1023px) and (min-width: 600px) {
        .product-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      
      @media (max-width: 599px) {
        .product-grid {
          grid-template-columns: repeat(1, 1fr);
        }
      }
      footer {
          background-color: blanchedalmond;
          padding: 40px;
          text-align: center;
      }