/* Estilos base originales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.banner {
    background-image: url('../img/banner.png');
    background-size: cover;
    background-position: center;
    color: rgb(255, 221, 248);
    text-align: center;
    padding: 40px 10px;
}

.banner h1 {
    font-size: 3em;
    margin: 0;
}

.banner p {
    font-size: 1.5em;
    margin-top: 10px;
}

.productos {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    flex-wrap: wrap;
}

.producto {
    background-color: #fff1f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 30%;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.producto h2 {
    font-size: 1.5em;
    margin-top: 10px;
}

.precio {
    font-size: 1.2em;
    color: rgb(253, 127, 175);
    font-weight: bold;
}

/* Foot página */
.footer {
    text-align: center;
    background-color: #602892;
    color: #b1b1b1;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* --- NUEVOS ESTILOS: BARRA LATERAL --- */

.barra {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffc0cb;
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
}

.mostrar-barra {
    transform: translateX(0);
}

.header-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 50px;
    height: auto;
}

/* Botón abrir */
.boton-barra {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Botón cerrar */
.boton-cierre {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Links de la barra */
.links {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.links li {
    margin: 1rem 0;
}

.links a {
    text-decoration: none;
    color: #602892;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.links a:hover {
    color: #8e44ad;
}

/* Barra más ancha en pantallas grandes */
@media screen and (min-width: 676px) {
    .barra {
        width: 400px;
    }
}
