/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}
/* Agregar al final de styles.css */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.product-apartado {
    background-color: yellow;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para el encabezado */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-bottom: 20px;
}

.container2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.search-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#searchInput {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
    margin-right: 10px;
}

#searchInput:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 5px #66afe9;
}

.search-container button {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

.search-container button:hover {
    background-color: #0056b3;
}

.select-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
}

.form-group label {
    font-weight: bold;
    margin-right: 10px;
}

.form-group select {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}


/* Estilos para el listado de productos */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product {
    width: calc(25% - 20px); /* 4 productos por fila */
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product p {
    font-size: 16px;
    margin-bottom: 5px;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.page-btn {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
}

.page-btn:hover {
    background-color: #0056b3;
}

.page-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Estilos para diseño responsivo */
@media (max-width: 992px) {
    .product {
        width: calc(33.33% - 20px); /* 3 productos por fila en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-container {
        flex: 1 0 100%;
        margin-bottom: 10px;
    }

    #searchInput {
        width: 100%;
        margin-right: 0;
    }

    .form-group {
        flex: 1 0 100%;
        margin-bottom: 10px;
    }

    select {
        width: 100%;
        margin-bottom: 10px;
    }

    .filters-container {
        flex-direction: column;
    }

    .filters-container .form-group {
        margin-right: 0;
    }

    .filters-container .search-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters-container .search-container input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .filters-container .form-group select {
        width: 100%;
        margin-bottom: 10px;
    }

    .product {
        width: calc(50% - 20px); /* 2 productos por fila en pantallas pequeñas */
    }
}

@media (max-width: 576px) {
    .product {
        width: 100%; /* 1 producto por fila en pantallas extra pequeñas */
    }
}
