/* ===== ESTILOS GENERALES ===== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

    font-family:Arial, Helvetica, sans-serif;

}

body{

    background:#f5f5f5;

}

/* ===== HEADER ===== */

header{

    background:#ffe600;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 30px;

    flex-wrap:wrap;

}

.logo h1{

    color:#333;

    font-size:32px;

}

.logo p{

    color:#555;

}

.buscador{

    display:flex;

    width:45%;

}

.buscador input{

    width:100%;

    padding:12px;

    border:none;

    border-radius:5px 0 0 5px;

}

.buscador button{

    width:60px;

    border:none;

    background:#3483fa;

    color:white;

    border-radius:0 5px 5px 0;

    cursor:pointer;

}

.acciones{

    display:flex;

    align-items:center;

}

.carrito{

    font-size:28px;

    cursor:pointer;

    position:relative;

}

.carrito span{

    position:absolute;

    top:-8px;

    right:-12px;

    background:red;

    color:white;

    border-radius:50%;

    padding:3px 8px;

    font-size:12px;

}

/* ===== MENÚ ===== */

nav{

    background:#333;

    text-align:center;

    padding:15px;

}

nav a{

    color:white;

    text-decoration:none;

    margin:20px;

    font-weight:bold;

}

nav a:hover{

    color:#ffe600;

}

/* ===== BANNER ===== */

.banner{

    background:#ff8500;

    color:white;

    text-align:center;

    padding:60px;

}

.banner h2{

    font-size:40px;

}

.banner p{

    margin-top:10px;

}

/* ===== SECCIONES ===== */

section{

    padding:40px;

}

h2{

    margin-bottom:20px;

    color:#ff8500;

}

/* ===== PRODUCTOS ===== */

#listaProductos{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:20px;

}

.producto{

    background:white;

    border-radius:10px;

    padding:20px;

    box-shadow:0px 0px 10px rgba(0,0,0,.15);

    text-align:center;

}

.producto img{

    width:100%;

    height:220px;

    object-fit:cover;

    border-radius:10px;

}

.producto h3{

    margin:15px 0;

}

.precio{

    color:green;

    font-size:30px;

    font-weight:bold;

}

.stock{

    color:#3483fa;

    margin:10px 0;

    font-weight:bold;

}

.estrellas{

    color:gold;

    font-size:20px;

}

.producto button{

    background:#3483fa;

    color:white;

    border:none;

    padding:12px;

    width:100%;

    border-radius:6px;

    cursor:pointer;

    margin-top:10px;

}

.producto button:hover{

    background:#2968c8;

}

/* ===== CARRITO ===== */

#carrito{

    background:white;

    border-radius:10px;

    box-shadow:0 0 10px rgba(0,0,0,.15);

}

#productosCarrito{

    margin:20px 0;

}

#comprar{

    width:100%;

    background:#00a650;

    color:white;

    border:none;

    padding:15px;

    border-radius:6px;

    cursor:pointer;

}

#comprar:hover{

    background:#008f45;

}

/* ===== CONTACTO ===== */

form{

    display:flex;

    flex-direction:column;

    gap:15px;

    margin-top:20px;

}

form input,

form textarea{

    padding:12px;

    border:1px solid #ccc;

    border-radius:6px;

}

form button{

    background:#ff8500;

    color:white;

    border:none;

    padding:14px;

    border-radius:6px;

    cursor:pointer;

}

/* ===== FOOTER ===== */

footer{

    background:#333;

    color:white;

    text-align:center;

    padding:25px;

    margin-top:30px;

}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){

header{

    flex-direction:column;

}

.buscador{

    width:100%;

    margin:15px 0;

}

nav a{

    display:block;

    margin:10px;

}

.banner h2{

    font-size:28px;

}

}