body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.navbar {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.navbar img {
    position: inherit;
    left: 10px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2em;
    margin-left: auto;
    margin-right: 30px;
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 1em;
    font-weight: bold;
}
.navbar .menu-icon {
display: none;
}
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.btnAddToCar:hover{
    scale: 1.1;
    cursor: pointer;
}
.hero h1 {
    margin: 0.5em 0;
}

.hero p {
    color: #075997;
}

.hero p span {
    color: #005baa;
    margin: 0.5em 0;
    line-height: 1.2em;
    font-weight: bold;
}

.hero button {
    padding: 1em 2em;
    background-color: #005baa;
    color: white;
    border: none;
    border-radius: 5px;
    position: absolute;
    right: 20%;
    bottom: 5%;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2em;
    margin-top: 80px;
    background-color: white;
}

.feature {
    text-align: center;
    flex: 1 1 20%; /* 1 1 20% asegura que se distribuyan uniformemente */
    min-width: 200px;
    padding: 1em;
}

.feature img {
    width: 150px;
    height: 150px;
}

.feature p {
    font-size: 1em;
    margin-top: 0.5em;
}

.promo {
    background-color: #f8f8f8;
    padding: 2em;
    text-align: center;
}

.promo h2 {
    color: #e74c3c;
}

.promo p {
    font-size: 1.2em;
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em;
}

.mt-1 {
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.product-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 1.2em;
    margin: 0;
}

.availability {
    color: green;
    margin: 5px 0;
}

.seller,
.gift-options {
    margin: 5px 0;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.action-link {
    color: #005baa;
    text-decoration: none;
}

.action-link:hover {
    text-decoration: underline;
}

.product-price {
    font-size: 1.2em;
    font-weight: bold;
}

.cart-total {
    text-align: right;
    padding: 10px 0;
    font-size: 1.2em;
}

.checkout-button {
    background-color: #005baa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}

.checkout-button:hover {
    background-color: #004080;
}

/* Media queries for responsiveness */
@media (min-width: 1201px) {
    .hero {
        background-image: url('images/HEADER_1920.svg');
    }
    .hero h1 {
        font-size: 3em;
    }
    .hero p {
        font-size: 1.5em;
        margin-top: 32em;
    }
    .hero p span {
        font-size: 2.2em;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero {
        background-image: url('images/PORTADA_1200.png');
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.2em;
        margin-top: 25em;
    }
    .hero p span {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .modal{
        margin-top: 5em;
    }
    .modal-content {
        width: 90%;
        padding: 15px;
    }
    .product-price{
        margin-left: -1em;
    }

    .checkout-button {
        width: 100%;
        margin-top: 10px;
    }

    .cart-total {
        flex-direction: column;
        align-items: flex-start;
    }

    #subtotal {
        margin-bottom: 10px;
    }
    .navbar ul {
        display: none;
    }
    .navbar .menu-icon {
        display: block;
        cursor: pointer;
        color: white;
        font-size: 2em;
        margin-right: 1em;
    }
    .hero {
        background-image: url('images/PORTADA_768.jpg');
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
        margin-top: 20em;
    }
    .hero p span {
        font-size: 1.8em;
    }
}

/* Dropdown menu for small screens */
.navbar .menu-icon {
    font-size: 2em;
    margin-left: auto;
}

.navbar ul.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
}

.navbar ul.show li {
    text-align: center;
    padding: 10px 0;
}

.navbar ul.show li a {
    font-size: 1.2em;
}
