/* ====== Estilos mínimos para menú de navegación en login y carrito ====== */
.header {
    background: #222;
    color: #fff;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-left: 32px;
}

.icons {
    display: flex;
    gap: 24px;
    margin-right: 32px;
}

.icons a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.icons a:hover {
    color: gold;
}

/* ====== Estilos mínimos para login y carrito ====== */
.container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
}

.form input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.btn-primary {
    width: 100%;
    padding: 10px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 12px;
}

.cart-list {
    margin-bottom: 24px;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-info h4 {
    margin: 0 0 4px 0;
}

.cart-summary {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    text-align: right;
    font-size: 1.1rem;
}

body {
    margin: 0px;
    padding: 0px;
}

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.buscador {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

.buscador input {
    border: none;
    outline: none;
    padding: 8px 12px;
    width: 250px;
}

.buscador button {
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.oferta {
    background-image: url(../img/fotooferta.jpg);
    position: relative;
    height: 400px;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.oferta h2 {
    color: white;
    font-size: 100px;

}

#boton {
    background: transparent;
    border: 1px solid gold;
    color: white;
    width: 100px;
    height: 50px;
    border-radius: 30px;
}

.tarjeta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

article img {
    width: 100%;
    height: 200px;
}

.tarjeta article {
    display: flex;
    flex-direction: column;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
    padding: 20px;
}

footer img {
    width: 20px;
    height: 20px;
    padding: 20px;
    background: transparent;
}

section {
    margin: 10px;
    margin-bottom: 100px;
}

@media (max-width:910px) {
    .tarjeta {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width:500px) {
    .oferta h2 {
        font-size: 50px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}