/* ===== CONFIGURACIÓN GENERAL ===== */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background-color: #F3F4F6;
    color: #374151;
}

/* ===== HEADER ===== */

header{
    background-color: #1E3A8A;
    color: white;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1{
    font-size: 28px;
}

nav ul{
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a{
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
}

nav a:hover{
    color: #93C5FD;
}

/* ===== BANNER ===== */

.banner{
    background: linear-gradient(
        rgba(37,99,235,.9),
        rgba(30,58,138,.9)
    );
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.banner h2{
    font-size: 40px;
    margin-bottom: 10px;
}

.banner p{
    font-size: 18px;
}

/* ===== CATÁLOGO ===== */

.catalogo{
    max-width: 1200px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* ===== TARJETAS ===== */

.producto{
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transition: .3s;
}

.producto:hover{
    transform: translateY(-5px);
}

.producto img{
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.producto h3{
    color: #1E3A8A;
    margin-bottom: 10px;
}

.producto p{
    margin-bottom: 10px;
}

.precio{
    font-size: 22px;
    font-weight: bold;
    color: #2563EB;
}

.producto button{
    background-color: #2563EB;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: .3s;
}

.producto button:hover{
    background-color: #1E3A8A;
}

/* ===== BUSCADOR ===== */

.buscador{
    max-width: 1200px;
    margin: 35px auto 20px;
    padding: 0 20px;
    text-align: center;
}

.buscador form{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.buscador input{
    width: 350px;
    max-width: 100%;
    padding: 12px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.buscador input:focus{
    border-color: #2563EB;
}

.buscador button{
    background-color: #2563EB;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: .3s;
}

.buscador button:hover{
    background-color: #1E3A8A;
}

/* ===== FOOTER ===== */

footer{
    background-color: #1E3A8A;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){

    header{
        flex-direction: column;
        gap: 15px;
    }

    nav ul{
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .banner h2{
        font-size: 30px;
    }

    .buscador form{
        flex-direction: column;
    }

    .buscador input{
        width: 100%;
    }

}