/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Desactiva el scroll horizontal */
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    padding-top: 80px; /* Deja espacio para el navbar */
}

.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;
}
.nav-links li {
    margin-left: 25px;
    overflow: hidden; /* Previene cualquier desplazamiento */

}

.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;
}

/* Contenedor principal */
.fichas-tecnicas {
    margin: 50px auto;
    max-width: 1100px;
    padding: 20px;
    padding-top: 0; /* Ajusta el espacio superior del contenedor */
}

/* Tabla de fichas */
.tabla-fichas {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    padding-top: 0;
}

.tabla-img {
    max-width: 100%;
    margin-bottom: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.titulo {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* PDFs */
.pdf-fichas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.pdf-item {
    text-align: center;
}

.pdf-item img {
    width: 150px;
    height: auto;
    transition: transform 0.3s;
}

.pdf-item img:hover {
    transform: scale(1.1);
}

.pdf-item p {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

/* 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);
}

/* Responsividad */
@media (max-width: 768px) {
    body.menu-open .fichas-tecnicas{
        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%;
    }

    footer {
        flex-direction: column;
        padding: 20px 15px;
    }

    .footer-content div {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {

    body.menu-open .fichas-tecnicas{
        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%;
    }

    .pdf-fichas {
        flex-direction: column;
        align-items: center;
    }

    .pdf-item img {
        width: 120px;
    }

    .titulo {
        font-size: 20px;
    }
}
