
body{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
a{
    text-decoration: none;
    color: inherit;
}

.margenes{
    margin-top: 4rem;
}

.resultados-busqueda {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.resultados-busqueda h2{
    text-align: center;
    font-size: 3rem;
    color: #17b2c4;
    font-weight: bold;
    font-family: "Nunito", sans-serif;
    margin: 0;
}
.resultados-busqueda h3{
    text-align: center;
    font-size: 2rem;
    color: #0a4565;
    font-weight: bold;
    font-family: "Nunito", sans-serif;
    margin: 0;
}

.productos-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

/*Cards de Productos*/

.producto-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.producto-card h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
    color: #17b2c4;
    font-family: "Nunito", sans-serif;
}

.producto-card .precio {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0a4565;
    margin: 5px 0 15px;
}

.producto-card button {
    background: #17b2c4;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: "Nunito", sans-serif;
}

.producto-card button:hover {
    background: #0a4565;
}

@media (orientation: portrait) {
    .productos-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}


/*Filtro*/
.resultados-busqueda .ordenar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.5rem 0;
    font-family: "Nunito", sans-serif;
}

.resultados-busqueda .ordenar p {
    margin: 0;
    font-weight: bold;
    color: #0a4565;
    font-size: 1rem;
}

/* Select de ordenamiento */
.resultados-busqueda .ordenar select {
    padding: 8px 12px;
    border: 2px solid #17b2c4;
    border-radius: 8px;
    background-color: #fff;
    color: #0a4565;
    font-size: 1rem;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resultados-busqueda .ordenar select:hover {
    border-color: #0a4565;
    box-shadow: 0 0 6px rgba(23,178,196,0.4);
}

.resultados-busqueda .ordenar select:focus {
    outline: none;
    border-color: #0a4565;
    box-shadow: 0 0 6px rgba(10,69,101,0.5);
}