* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f7f7f7, #e2e2e2); /* Fondo de gradiente suave */
    color: #333;
    padding-top: 80px;
    /* Deja espacio para el navbar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar .logo img {
    width: 130px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 10px;
}

.nav-links a:hover {
    color: #007BFF;
}

/* Estilo para el botón de menú (hamburguesa) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 30px;
    height: 5px;
    background-color: #333;
    border-radius: 5px;
}

.nav-links.active {
    display: block;
}

.search {
    display: flex;
    align-items: center;
}

.search input {
    padding: 8px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    margin-right: 10px;
    outline: none;
    width: 200px;
}

.search input:focus {
    border-color: #007BFF;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.search-btn img {
    width: 20px;
}

/* Estilo para el botón de menú (hamburguesa) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 30px;
    height: 5px;
    background-color: #333;
    border-radius: 5px;
}

.nav-links.active {
    display: block;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    flex-grow: 1;
}

/* Sección del producto */
.product-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.product-image {
    width: 50%;
    padding-right: 20px;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-thumbnails img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Agrega sombra */
    transition: transform 0.3s ease-in-out; /* Efecto de transición */
}

.product-thumbnails img:hover {
    transform: scale(1.05); /* Efecto al pasar el ratón */
}


.product-details {
    width: 50%;
    padding-left: 20px;
}

.product-details h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.product-details p {
    font-size: 16px;
    color: #777;
}

.description {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.description h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Productos relacionados */
.related-products {
    margin-top: 50px;
}

.related-products h3 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

.related-items {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.related-item {
    width: calc(33.333% - 20px);
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* Añadir transición para el hover */
}

.related-item img {
    width: 100%;
    height: 200px; /* Altura fija para mantener uniformidad */
    object-fit: cover; /* Asegura que la imagen se recorte sin deformarse */
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease; /* Añadir transición al hover de la imagen */
}

.related-item img:hover {
    transform: scale(1.05); /* Aumenta un poco el tamaño de la imagen al hacer hover */
}

.related-item p {
    font-size: 16px;
    padding: 10px;
    background-color: #f9f9f9;
    margin: 0;
    color: #333;
    font-weight: 600;
}

/* Eliminar subrayado en los enlaces dentro de productos relacionados */
.related-item a {
    text-decoration: none;
    color: inherit; /* Esto asegura que el color del texto se mantenga */
}

.related-item a:hover {
    text-decoration: none; /* Elimina el subrayado al pasar el cursor */
}

/* Agregar subrayado solo en hover para un efecto visual atractivo en el texto */
.related-item:hover {
    transform: translateY(-5px); /* Eleva el contenedor al pasar el cursor */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); /* Agrega un efecto de sombra */
}


/* Enlaces de "Producto anterior" y "Producto siguiente" */
.product-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.product-navigation a {
    font-size: 18px;
    font-weight: 600;
    color: #007BFF;
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid transparent;
    border-radius: 30px;
    background-color: #f1f1f1;
    transition: all 0.3s ease;
}

.product-navigation a:hover {
    color: #fff;
    background-color: #007BFF;
    border-color: #007BFF;
    text-decoration: none;
}

.product-navigation .prev-product,
.product-navigation .next-product {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 30px;
    background-color: #007BFF;
    color: white;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.product-navigation .prev-product {
    margin-right: 50px;
    /* Aumento del espacio entre los botones */
}

.product-navigation .next-product {
    margin-left: 50px;
    /* Aumento del espacio entre los botones */
}

.product-navigation .prev-product:hover,
.product-navigation .next-product:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #f1f1f1;
    padding: 20px 30px; /* Reducido el padding superior e inferior a 20px */
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    overflow: hidden; /* Oculta las partículas fuera del footer */
}

/* Animación de partículas flotantes */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.3) 20%, transparent 20%) repeat;
    background-size: 20px 20px;
    animation: floating 10s linear infinite;
}

/* Keyframes para la animación de las partículas */
@keyframes floating {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.footer-content div {
    width: 30%;
    margin-bottom: 30px;
}

.footer-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-content p {
    font-size: 16px;
    line-height: 1.6;
}

.footer-whatsapp {
    text-align: right;
    padding-right: 20px;
}

.footer-whatsapp a img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.footer-whatsapp a img:hover {
    transform: scale(1.1);
}


/* Eliminamos el espacio en blanco debajo del footer */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex-grow: 1;
}

body.menu-open {
    position: relative;
    overflow-y: hidden;
    /* Evita que el contenido se desplace mientras el menú está abierto */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body.menu-open .container {
        transform: translateY(200px);
        /* Ajusta la cantidad de desplazamiento a tu gusto */
        transition: transform 0.3s ease-in-out;
    }



    .menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1100;
    }

    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .search input {
        width: 100%;
    }

    .product-container {
        flex-direction: column;
        padding: 20px;
    }

    .product-image {
        width: 100%;
        margin-bottom: 20px;
    }

    .product-details {
        width: 100%;
    }

    .related-items {
        flex-direction: column;
    }

    .related-item {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        align-items: center;
    }
    .footer-content div {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {

    body.menu-open .container {
        transform: translateY(250px);
        /* Ajusta la cantidad de desplazamiento a tu gusto */
        transition: transform 0.3s ease-in-out;
    }

    .menu-toggle {
        position: absolute;
        /* Fija el botón en la esquina */
        top: 15px;
        /* Ajusta la distancia desde el borde superior */
        right: 15px;
        /* Ajusta la distancia desde el borde derecho */
        z-index: 1100;
        /* Asegura que el botón esté encima de otros elementos */
    }

    .search input {
        width: 100%;
        margin-right: 10px;
    }

    .product-details h1 {
        font-size: 24px;
    }

    .product-details p {
        font-size: 14px;
    }

    .description p {
        font-size: 14px;
    }

    .footer-content h3 {
        font-size: 20px;
    }

    .footer-content p {
        font-size: 14px;
    }
}