
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background-image: url("imagenes/fondo pagina.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ENCABEZADO */
header {
    background-color: #172536;
    color: white;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 26px;
    letter-spacing: 2px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    transition: color 0.3s;
}

nav a:hover {
    color: #a9c9e5;
}

/* PRESENTACIÓN */
#inicio {
    background-color: #dce5ed;
    text-align: center;
    padding: 90px 20px;
}

#inicio h2 {
    font-size: 35px;
    margin-bottom: 15px;
    color: #172536;
}

#inicio p {
    font-size: 17px;
}

/* PRODUCTOS */
#productos {
    padding: 55px 40px;
    text-align: center;
}

#productos h2 {
    font-size: 28px;
    color: #172536;
    margin-bottom: 35px;
}

#lista-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* TARJETAS */
.producto {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}

.producto img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #fff;
    margin-bottom: 15px;
}

.producto h3 {
    color: #172536;
    font-size: 20px;
    margin-bottom: 15px;
}

.producto p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 7px;
}

.producto h2 {
    color: #172536;
    font-size: 25px;
    margin: 18px 0 12px;
}

.producto .estado {
    display: inline-block;
    background-color: #e5edf5;
    color: #172536;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* CONTACTO */
#contacto {
    background-color: #dce5ed;
    text-align: center;
    padding: 55px 20px;
}

#contacto h2 {
    color: #172536;
    margin-bottom: 15px;
}

/* PIE DE PÁGINA */
footer {
    background-color: #172536;
    color: white;
    text-align: center;
    padding: 20px;
}

/* CELULARES */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 25px 15px;
    }

    nav a {
        margin: 0 8px;
    }

    #inicio {
        padding: 60px 15px;
    }

    #inicio h2 {
        font-size: 27px;
    }

    #productos {
        padding: 40px 20px;
    }
}

/* BUSCADOR */
#buscador {
    width: 100%;
    max-width: 550px;
    padding: 14px 18px;
    margin-bottom: 35px;
    border: 1px solid #cbd5df;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
}

#buscador:focus {
    border-color: #172536;
    box-shadow: 0 0 5px rgba(23, 37, 54, 0.2);
}
