:root {
    --dorado: #c8a64b;
    --amarillo: #f3d96b;
    --bordo: #7a1f1f;
    --negro: #111111;
    --blanco: #fffaf1;
    --gris: #f4efe3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, var(--negro), #252525 55%, #2d1515 100%);
    color: #1e1e1e;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a, button, input, select, textarea {
    outline: none;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
}

.hero {
    background: linear-gradient(135deg, var(--bordo), var(--negro));
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 2.4rem;
    color: var(--amarillo);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.08rem;
}

.hero .logo {
    width: 252px;
    height: 252px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

nav {
    background: var(--dorado);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav a, nav button {
    text-decoration: none;
    border: none;
    background: var(--negro);
    color: var(--amarillo);
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

nav a:hover, nav button:hover {
    background: var(--bordo);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

section {
    background: var(--blanco);
    margin: 20px 0;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-left: 8px solid var(--dorado);
}

section h2 {
    margin-top: 0;
    color: var(--bordo);
    border-bottom: 2px solid var(--amarillo);
    padding-bottom: 8px;
}

.products-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
    background: linear-gradient(135deg, #fffdf7, #f7edd0);
    border: 2px solid #e4c86e;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    min-height: 150px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card.featured {
    border-color: var(--bordo);
    background: linear-gradient(135deg, #fff8c1, #f1d46b);
}

.product-name { font-weight: 800; color: var(--bordo); font-size: 1.02rem; }
.product-price { font-weight: 700; color: var(--negro); margin: 8px 0 0 0; font-size: 1rem; }

.product-image {
    max-width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin: 8px 0;
}

.subsection {
    margin-top: 14px;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(45,21,21,0.12);
}

.product-card strong { display:none; }
.product-card span { display:none; }

.product-card > button {
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--dorado), var(--amarillo));
    color: var(--bordo);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    font-weight: 700;
}

.cart-box {
    border: 1px dashed #e6d9a6;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,250,241,0.6), rgba(255,255,255,0.4));
}

#cartList { list-style: none; margin: 0; padding: 0; }

.cart-item {
    display: grid;
    grid-template-columns: 1fr 80px 70px 80px;
    gap: 8px;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.cart-name { font-weight: 700; color: var(--bordo); }
.cart-price { text-align: right; color: var(--negro); }
.cart-qty { width: 60px; padding:6px; border-radius:6px; }
.remove-btn { background: #f25c5c; color: white; padding:6px 8px; border-radius:6px; border:none; }

.cart-item:last-child { border-bottom: none; }

.cart-empty { color: #777; font-style: italic; }
#cartEmpty { color: #777; font-style: italic; }

.subsection h3 {
    color: var(--bordo);
    margin-bottom: 10px;
}

.form-box {
    display: grid;
    gap: 12px;
    max-width: 500px;
}

    @media (max-width: 900px) {
        .hero {
            padding: 40px 15px;
        }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
            max-width: 100%;
        }

        .hero .logo {
            width: 180px;
            height: 180px;
        }

        nav {
            padding: 10px;
            gap: 8px;
        }

        nav a,
        nav button {
            padding: 9px 12px;
            font-size: 0.95rem;
        }

        main {
            padding: 15px;
        }

        section {
            padding: 20px;
        }

        .product-card {
            min-height: auto;
            padding: 12px;
        }

        .product-image {
            height: 90px;
        }

        .form-box {
            max-width: 100%;
        }
    }

    @media (max-width: 680px) {
        .hero {
            padding: 30px 12px;
        }

        .hero h1 {
            font-size: 1.75rem;
        }

        .hero .logo {
            width: 150px;
            height: 150px;
        }

        nav {
            justify-content: center;
            gap: 6px;
        }

        nav a,
        nav button {
            flex: 1 1 140px;
            padding: 10px 10px;
            font-size: 0.92rem;
        }

        .products-grid {
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        }

        .cart-item {
            grid-template-columns: 1fr;
            gap: 8px;
            grid-template-areas:
                "name"
                "price"
                "qty"
                "remove";
        }

        .cart-name {
            grid-area: name;
            text-align: left;
        }

        .cart-price {
            grid-area: price;
            text-align: left;
        }

        .cart-qty {
            grid-area: qty;
            width: 100%;
        }

        .remove-btn {
            grid-area: remove;
            width: 100%;
        }

        .subsection {
            margin-top: 18px;
        }

        .form-box {
            gap: 14px;
        }
    }

select, input[type="number"] {
    padding: 10px;
    border: 1px solid #c7b26e;
    border-radius: 8px;
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #333;
}

button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: var(--bordo);
    color: white;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background: var(--negro);
}

.result {
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--amarillo), #ffe58c);
    border: 2px solid var(--dorado);
}

footer {
    text-align: center;
    color: white;
    padding: 30px 20px;
}

