/* GLOBALES */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
}

.filtro{
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}


/* AQUI COMIENZA EL Header */
.header {
    position: fixed; /* Fija el menú en la parte superior */
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.0); /* Fondo semi-transparente */
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    padding: 10px 20px; /* Espaciado interno */
    transition: all 0.5s ease;
}

.header.abajo {
    background-color: rgba(0, 0, 0, 0.4); /* Fondo semi-transparente */
    padding: 10px;
}

.header a:hover {
    color: #54cc9e;
}

.logo {
    display: flex;
    align-items: center;
    color: #fffdfc;
    font-size: 25px;
    font-weight: 750;
}

.logo-img {
    height: 60px;
    margin-right: 15px; 
    padding-left: 5px;
    padding-top: 5px;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    font-size: 18px;
    color: #fffdfc;
    display: block;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.navbar ul li a:hover {
    color: #54cc9e;
}

#menu {
    display: none;
}

.menu label {
    cursor: pointer;
    display: none;
}

/* Buscador Section */
.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar {
    width: 300px;
    padding: 13px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.filter-dropdown {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Main Content */
.main-content {
    background-image: linear-gradient(rgb(0,0,0,0.7), rgb(0,0,0,0.7)), url('../imagenes/productos.jpg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.header-content h1, .header-content h2 {
    font-size: 75px;
    line-height: 80px;
    color: #88f5a9;
    text-transform: uppercase;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(100px);
    animation: slideUp 600ms forwards;
}

.header-content h2 {
    font-size: 60px;
    line-height: 40px;
}

.header-content p {
    font-size: 20px;
    color: white;
    padding: 0 250px;
    margin-top: 60px;
    transform: translateY(100px);
    animation: slideUp 680ms forwards;
    font-weight: bold;
    font-size: 20px;
}

/* Animations */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content h1 {
    animation-delay: 0.5s;
}

.header-content h2 {
    animation-delay: 1s;
}

.header-content p {
    animation-delay: 2s;
}




/* AQUI COMIENZA LA INFO EXTRA*/

.info {
    margin-bottom: 50px;
    margin-top: 20px;
    display: flex;
    align-items: center; /* Alinea verticalmente ambos elementos */
    justify-content: center; /* Centra horizontalmente ambos elementos */
    text-align: left;
}

.info-content p {
    font-size: 25px;
    font-weight: bold;
    color: #323337;
    margin-top: 40px;
}

.info-img {
    width: 320px;
    height: 150px;
    margin-left: 100px;
}

/* AQUI COMIENZA LOS PRODUCTOS*/

.product-section {
    padding: 20px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    margin-left: 90px;
}

.filter-category, .search-bar{
    display: flex;
    flex-direction: column;
}


.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    width: calc(20% - 40px); /* 4 tarjetas por fila */
    transition: transform 0.3s ease;
    font-weight: bold;
}

.product-card img {
    max-width: 60%;
    height: auto;
    margin-bottom: 10px;
}

.product-card .GF{
    max-width: 60%;
    height: auto;
    margin-bottom: 10px;
}

.product-card .f1{
    max-width: 50%;
    height: auto;
}
.product-card .f3{
    max-width: 47%;
    height: auto;
}

.product-card .mayo{
    max-width: 70%;
    height: auto;
}

.product-card p {
    font-size: 18px;
    color: #333;
}

.product-card:hover {
    transform: scale(1.05);
}



/* AQUI EMPIEZA EL FOOTER */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
}

.footer-section {
    flex: 1;
    margin: 20px;
    max-width: 300px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #88f5a9;
}

.footer-section p, .footer-section ul, .footer-section a {
    color: white;
    font-size: 16px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
}

.footer-section ul li a:hover {
    color: #88f5a9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    width: 100%;
}

/* AQUI TERMINA EL FOOTER */

/* Burbuja de WhatsApp */
.whatsapp-bubble {
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.whatsapp-bubble a {
    display: block;
    width: 60px;
    height: 60px;
}

.whatsapp-bubble img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.whatsapp-message {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-left: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    position:relative;
}

.whatsapp-message p {
    margin: 0;
    font-size: 14px;
}

.close-message {
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    color: red;
}


/* AQUI COMIENZA EL RESPONSIVE */



@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        max-width: none;
        margin: 20px 0;
    }
}



/* PARA LAPTOPS 1440 PX */

@media (max-width: 1440px) {
    .header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 25px;
    }

    .logo-img {
        height: 50px;
    }

    .navbar ul li a {
        font-size: 20px;
    }
    
    .navbar ul li {
       margin: 0 10px;
    }

    .main-content {
        min-height: 100vh;
    }

    .header-content h1 {
        font-size: 60px;
    }
}

@media (max-width: 1440px) {
    
    .product-card {
        width: calc(30% - 100px);
        margin-bottom: 10px;
    }

    .search-bar, .filter-dropdown {
        width: 30%;
    }

    .search-container{
        padding-left: 30px;
    }

    .product-grid {
        gap: 10px; /* Ajusta el espacio entre las tarjetas */
    }

    .product-card img {
        max-width: 70%; /* Ajustamos el tamaño de la imagen para pantallas pequeñas */
    }

    .product-card p {
        font-size: 18px; /* Texto más pequeño en pantallas pequeñas */
        font-weight: bold;
    }

    .filter-container{
        margin-left: 75px;
    }
}



/* PARA LAPTOPS 1024 PX */

@media (max-width: 1024px) {
    .header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 25px;
    }

    .logo-img {
        height: 40px;
    }

    .navbar ul li a {
        font-size: 15px;
    }
    
    .navbar ul li {
       margin: 0 15px;
    }

    .main-content {
        min-height: 100vh;
    }

    .header-content h1 {
        font-size: 30px;
    }
}

@media (max-width: 1024px) {
    
    .product-card {
        width: calc(30% - 10px);
        margin-bottom: 10px;
    }

    .search-bar, .filter-dropdown {
        width: 30%;
    }

    .search-container{
        padding-left: 30px;
    }

    .product-grid {
        gap: 10px; /* Ajusta el espacio entre las tarjetas */
    }

    .product-card img {
        max-width: 70%; /* Ajustamos el tamaño de la imagen para pantallas pequeñas */
    }

    .product-card p {
        font-size: 15px; /* Texto más pequeño en pantallas pequeñas */
        font-weight: bold;
    }

    .filter-container{
        margin-left: 55px;
    }
}




/* PARA TABLETAS 768PX */

@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 25px;
    }

    .logo-img {
        height: 40px;
    }

    .navbar ul li a {
        font-size: 15px;
    }
    
    .navbar ul li {
       margin: 0 15px;
    }

    .main-content {
        min-height: 100vh;
    }

    .header-content h1 {
        font-size: 45px;
        line-height: 30px;
    }
}

@media (max-width: 768px) {
    
    .product-card {
        width: calc(30% - 10px); /* 2 tarjetas por fila */
        margin-bottom: 10px;
    }

    .search-bar, .filter-dropdown {
        width: 45%;
    }

    .product-grid {
        gap: 10px; /* Ajusta el espacio entre las tarjetas */
    }

    .product-card img {
        max-width: 70%; /* Ajustamos el tamaño de la imagen para pantallas pequeñas */
    }

    .product-card p {
        font-size: 14px; /* Texto más pequeño en pantallas pequeñas */
        font-weight: bold;
    }

    .filter-container{
        margin-left: 40px;
    }
}




/* PARA TELEFONOS */

@media (max-width: 480px) {
    .header {
        padding: 2px 5px;
    }

    .logo {
        font-size: 14px;
    }

    .logo-img {
        height: 30px;
    }

    .navbar ul li a {
        font-size: 13px;
    }
    
    .navbar ul li {
       margin: 0 14px;
    }

    .main-content {
        min-height: 100vh;
    }

    .header-content h1 {
        font-size: 35px;
    }

}

@media (max-width: 480px) {
    
    .product-card {
        width: calc(50% - 10px); /* 2 tarjetas por fila */
        margin-bottom: 10px;
    }

    .search-bar, .filter-dropdown {
        width: 100%;
        margin-bottom: 10px;
    }

    .product-grid {
        gap: 10px; /* Ajusta el espacio entre las tarjetas */
    }

    .product-card img {
        max-width: 70%; /* Ajustamos el tamaño de la imagen para pantallas pequeñas */
    }

    .product-card p {
        font-size: 10px; /* Texto más pequeño en pantallas pequeñas */
        font-weight: bold;
    }

    .filter-container{
        margin-left: 5px;
    }

    .whatsapp-bubble {
        bottom: 20px;
        right: 10px;
    }
    
    .whatsapp-bubble a {
        display: block;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-message {
        background-color: white;
        margin-left: 10px;
        padding: 10px;
    }
    
    .whatsapp-message p {
        margin: 0;
        font-size: 12px;
    }
}

/* Para pantallas móviles */
@media (max-width: 480px) {

    .filter-container {
        display: flex;
        flex-wrap: wrap; /* Permite que los elementos se apilen si no hay suficiente espacio */
        gap: 20px; /* Espacio entre los elementos */
        align-items: center; /* Alinea los elementos verticalmente */
        margin-bottom: 20px;
    }
    
    .filter-category {
        display: flex;
        flex-direction: column;
        width: 200px; /* Fija un ancho para los filtros */
    }
    
    .search-container {
        flex-grow: 1; /* Esto hará que el buscador ocupe el espacio restante */
        display: flex;
        justify-content: flex-end; /* Alinea el buscador a la derecha */
        min-width: 300px; /* Asegura un ancho mínimo para el buscador */
    }
}


