h1{
    text-align: center;
    margin-top: 50px;
    font-size: 50px;
}

main {
    padding: 2rem;
}
/*---------------- BOTON DE VISTA--------------------------*/
body.modo-noche{
    background-color: rgb(34, 22, 63);
    color: white;
}

.boton-noche{
    width: 100%;
    display: flex;
    justify-content: end;
}

#modoOscuro{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100px;
    height: 25px;
    margin-top: 10px;
    margin-right: 50px;
    border: 2px solid red;
    border-radius: 20px;
    background-color: white;
    font-family: 'Times New Roman', Times, serif;
}
/*---------------- CARRUSEL--------------------------*/
#carrusel-cont{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#carrusel-cont img{
    width: 1000px;
    height: 750px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #ddd;
}

#carrusel-cont button{
    height: 30px;
    width: 25px;
    font-size: 22px;
    color: white;
    background-color: green;
}

#btnanterior{
    position: absolute;
    margin-right: 1000px;
}

#btnsiguiente{
    position: absolute;
    margin-left: 1000px;
}

/*----------------PRODUCTOS--------------------------*/
h2{
    text-align: center;
    font-size: 35px;
}

#listaProductos{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 100px;
    text-align: center;
    font-size: 18px;
}

#listaProductos img{
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 2px solid red;
}

#ver-carrito {
    display: flex;
    justify-self: end;
    position: fixed;
    margin-top: 2px;
    margin-right: 200px;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#ver-carrito:hover {
    background-color: #218838;
}


#catalogo h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.products-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-card img {
    max-width: 100%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.products-card h3 {
    color: red;
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.products-card p {
    font-size: 1.1rem;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.products-card button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.products-card button:hover {
    background-color: #0056b3;
}

/*----------------FORMULARIO---------------------*/

.formulario form{
    display: flex;
    font-size: 24px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    flex-direction: column;
    justify-self: center;
    text-align: center;
    width: 30%;
    height: 20px;
    padding: 5px;
    margin-top: 50px;
}

.formulario button{
    margin-top: 15px;
}



#resultadoSueldo{
    display: block;
    text-align: center;
    justify-self: center;
    margin-top: 180px;
    border: 3px solid red;
    width: 50%;
    font-size: 18px;
}


.tituloForm{
    text-align: center;
    margin-top: 40px;
    font-size: 30px;
}

.texto-h4{
    font-size: 24px;
    text-align: center;
}
