:root {
    --color-rojo: #E60012;
    --color-azul: #0057B8;
    --color-neutro: #F5F5F5;
}

body {
    background-color: var(--color-neutro);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.navbar {
    background: linear-gradient(90deg, var(--color-rojo), var(--color-azul));
    color: white;
}

.navbar-brand, .nav-link {
    color: white !important;
}


.banner {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner h1 {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.container-fluid {
    display: flex;
    gap: 20px;
    padding: 20px;
}


#categories {
    width: 250px;
    padding: 10px;
    background-color: #f8f9fa;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
}

#categories h5 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

#categories ul {
    list-style-type: none;
    padding: 0;
}

#categories ul li {
    margin: 10px 0;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

#categories ul li:hover {
    color: var(--color-azul);
    background-color: #f1f1f1;
    border-radius: 5px;
}


#product-section {
    flex-grow: 1;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.product-card {
    width: calc(33.33% - 10px);
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.card-body {
    padding: 10px 0;
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.card-text {
    color: #777;
    font-size: 0.95rem;
}

.btn-agregar {
    background-color: var(--color-rojo);
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-agregar:hover {
    background-color: #B0000D;
}


#cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: url('https://img.icons8.com/emoji/48/shopping-cart-emoji.png') no-repeat center;
    background-size: contain;
    width: 50px;
    height: 50px;
    z-index: 1050;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

#cart-icon:hover {
    background-color: #D50000;
}

#cart-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 350px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1000;
}

.cart-item {
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item-name, .cart-item-price {
    font-size: 1rem;
}

.cart-item-price {
    color: #888;
}

#total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: right;
    margin-top: 10px;
}


#search-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin: 20px auto;
    width: 90%;
}

#search-input, #search-button {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#search-button {
    background-color: var(--color-rojo);
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #D50000;
}


.mega-ofertas {
    font-size: 3rem;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}


#mega-ofertas {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-radius: 10px;
}

.carousel-item img {
    object-fit: cover;
    max-height: 400px;
    width: 100%;
    height: auto;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    border-radius: 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
}


#contacto {
    background-color: #f8f9fa;
    padding: 50px 0;
}

#contacto h2 {
    font-size: 2rem;
    color: var(--color-rojo);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 5px;
    padding: 10px;
}

textarea.form-control {
    resize: vertical;
}


#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-content {
    text-align: center;
    color: white;
}

#splash-screen h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#splash-screen p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

#enter-btn {
    padding: 10px 20px;
    background-color: var(--color-rojo);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

#enter-btn:hover {
    background-color: #D50000;
}


footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer h5 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

footer .list-unstyled li {
    margin-bottom: 10px;
}

footer .my-4 {
    border-top: 1px solid #444;
}

footer .text-center {
    font-size: 0.9rem;
    color: #aaa;
}


@media (max-width: 768px) {
    .container-fluid {
        flex-direction: column;
    }

    #categories {
        width: 100%;
        position: relative;
        height: auto;
        top: auto;
        margin-bottom: 20px;
    }

    .product-card {
        width: calc(50% - 10px);
    }

    .carousel-item img {
        max-height: 300px;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
}
