*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial;
}

body{
    background:#f5f5f5;
}

/* HEADER */

header{
    background:white;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 40px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    position:sticky;
    top:0;
    z-index:1000;
}

.logo img{
    width:140px;
}

.menu{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:22px;
    cursor:pointer;
}

.buscador{
    display:flex;
    width:45%;
}

.buscador input{
    width:100%;
    padding:14px;
    border:2px solid #ccc;
    border-radius:30px 0 0 30px;
    outline:none;
    font-size:16px;
}

.buscador button{
    width:70px;
    border:none;
    background:#1f2937;
    color:white;
    border-radius:0 30px 30px 0;
    cursor:pointer;
    font-size:20px;
}

.acciones{
    display:flex;
    align-items:center;
    gap:25px;
}

.item{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

/* PROMOS */

.promo{
    padding:10px 30px;
}

.promo1{
    background:#d9f99d;
    padding:15px;
    margin-bottom:10px;
    border-radius:10px;
    font-weight:bold;
    text-align:center;
}

.promo2{
    background:#22c55e;
    color:white;
    padding:15px;
    border-radius:10px;
    font-weight:bold;
    text-align:center;
}

/* BANNER */

.banner{
    position:relative;
    margin:20px;
}

.banner img{
    width:100%;
    border-radius:20px;
    height:500px;
    object-fit:cover;
}

.texto-banner{
    position:absolute;
    top:50%;
    left:8%;
    transform:translateY(-50%);
    color:white;
}

.texto-banner h1{
    font-size:55px;
    margin-bottom:15px;
}

.texto-banner p{
    font-size:24px;
    margin-bottom:20px;
}

.texto-banner button{
    background:#22c55e;
    border:none;
    color:white;
    padding:15px 30px;
    border-radius:30px;
    font-size:18px;
    cursor:pointer;
}

/* PRODUCTOS */

.productos{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    padding:40px;
}

/* Fondo de la ventana emergente */
.modal-carrito-fondo {
    display: none; /* Oculto inicialmente */
    position: fixed;
    z-index: 10000; /* Prioridad alta sobre el header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Oscurece el fondo */
}

/* Caja del formulario */
.modal-carrito-contenido {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 350px;
    position: relative;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

/* Botón para cerrar (X) */
.btn-cerrar-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
}
.btn-cerrar-modal:hover {
    color: #000;
}

/* Estilos de los inputs */
.modal-carrito-contenido h2 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
}
.formulario-grupo {
    margin-top: 15px;
    margin-bottom: 15px;
}
.formulario-grupo label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}
.formulario-grupo input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Botón verde de guardar */
.btn-guardar-prod {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}
.btn-guardar-prod:hover {
    background-color: #218838;
}

/* FOOTER */

footer{
    background:#111827;
    color:white;
    text-align:center;
    padding:25px;
    margin-top:40px;
}

/* RESPONSIVE */

@media(max-width:900px){

    header{
        flex-direction:column;
        gap:20px;
    }

    .buscador{
        width:100%;
    }

}