body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
}

h1 {
    color: red;
}

.productos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.producto {
    border: 1px solid #ccc;
    padding: 15px;
    width: 300px;
}

.producto img {
    width: 100%;
    height: auto;
}

.btn {
    background-color: red;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
}
/* Estilo básico del catálogo */
.productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.producto {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.producto:hover {
    transform: scale(1.05); /* Efecto de hover */
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.producto h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.producto p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.producto .btn {
    background-color: red;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.producto .btn:hover {
    background-color: darkred;
}
.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-form input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form button {
    padding: 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background-color: darkred;
}
/* Aseguramos que todo se ajuste a pantallas pequeñas */
@media screen and (max-width: 768px) {
    .producto {
        width: 100%;
        margin-bottom: 20px;
    }

    .search-form input, .search-form button {
        width: 100%;
    }

    .producto img {
        width: 100%;
        height: auto;
    }

    .btn {
        width: 100%;
    }
}
