body {
    background-color: var(--mayonnaise);
    color: var(--dark-blue);
}

p, ul {
    padding: 0;
    margin-bottom: 0;
}

h1 {
    text-align: center;
    padding-bottom: 0;
    font-weight: 900;
    font-optical-sizing: auto;
    padding-top: 15px;
    font-weight: 900;
    border-top: solid 1px var(--mustard);
}

.main-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.h__Title {
    font-family: "Playwrite CU", cursive;
    border-bottom: solid 1px var(--mustard);
    margin: 10px 0;
}

.gallery__list {
    display: flex;
    width: calc(100% - 2rem);
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.gallery__list--item {
    padding: 0;
    flex: 1;
    transition: flex 0.2s ease;
}

.gallery__list--link {
    display: block;
    outline-offset: 4px;
}

.gallery__list--item:first-of-type .gallery__list--image {
    border-radius: 20px 0 0 20px;
}

.gallery__list--image {
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.2s ease;
}

.gallery__list--item:last-of-type .gallery__list--image {
    border-radius: 0 20px 20px 0;
}

.gallery__list--item:hover .gallery__list--image,
.gallery__list--item:focus-within .gallery__list--image {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.gallery__list--item:hover {
    flex: 3;
}


/* Logo */
.logo-container {
    height: 48px;
    background-color: var(--dark-blue);
    display: flex;
    align-items: center;
}

.logo {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 76%;
    height: 100%;
    display: flex;
}

.logo a {
    display: flex;
    flex-grow: 1;
    padding-left: 15px;
    padding-right: 15px;
}

.search-box-container {
    width: 100%;
    height: 85px;
    background-color: var(--mustard);
    display: flex;
    justify-content: center;
}

.search-box {
    width: 100%;
    height: 85px;
    max-width: var(--max-width-hf);
    background-color: var(--mustard);
    padding: 30px 60px 20px;
    display: flex;
    flex-direction: row;
}

.search-box__input {
    height: 35px;
    max-width: 250px;
    color: var(--dark-blue);
    padding: 0 10px;
    border: none;
    border-radius: 8px 0 0 8px;
}

.search-box__input::placeholder {
    color: var(--dark-blue);
}

.search-box__input:focus {
    outline: none;
}

.search-box button {
    width: 35px;
    height: 35px;
    background-color: white;
    color: var(--dark-blue);
    padding: 5px;
    font-size: 20px;
    border: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 100ms ease-out;
    cursor: default !important;
}

.search-box button:active {
    background-color: var(--mustard-shadow);
}


/* Sección de Productos */
.container-card {
    padding: 20px;
}

h2 {
    text-align: center;
    padding-bottom: 15px;
    padding-top: 15px;
    font-family: "Playwrite CU", cursive;
}

.container-card h2 {
    color: var(--dark-blue);
    border-bottom: solid 1px var(--mustard);
    border-top: solid 1px var(--mustard);
}

.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.products-cards {
    background-color: var(--dark-mayonnaise);
    padding: 20px;
    margin: 25px 10px 0px;
    text-align: center;
    border: 1.5px solid var(--darker-mayonnaise);
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    margin-bottom: 50px;
}

.products-cards:hover {
    box-shadow: 0 10px 15px var(--dark-blue);
    cursor: pointer;
}

.products-cards img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 10px 10px;
}

.products-cards h3 {
    color: var(--dark-blue);
    margin: 10px 0;
}

.products-cards p {
    color: #666;
    font-size: 14px;
}

/* Footer */

.epc-box-container,
.epc-box {
    width: 100%;
    background-color: var(--mustard);
}

.epc-box-container {
    display: flex;
    z-index: 500;
    justify-content: center;
}

.epc-box {
    max-width: var(--max-width-hf);
    color: var(--dark-blue);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.epc {
    text-align: center;
    flex: 1 1 33%;
}

.epc i {
    font-size: 30px;
    transition: all 0.3s ease;
}

.epc:hover i {
    color: var(--mayonnaise);
}

.epc p {
    margin-top: 10px;
}

.search-box {
    position: relative;
}

.suggestions-list {
    position: relative;
    top: 100%;
    left: -226px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none;
    z-index: 1000;
}

.suggestions-list li {
    width: 226px;
    padding: 8px;
    background-color: #fff;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.suggestions-list li:hover {
    background-color: #f0f0f0;
}


/* Estilos responsivos */
@media (max-width: 768px) {

    .buscador-container,
    .products {
        flex-direction: column;
    }

    .products-cards {
        width: 100%;
    }

    .carrusel {
        margin: 2vh 5%;
    }

    .container-card {
        padding: 20px 10px;
    }

    .buscador {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .epc {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    .gallery {
        height: 350px;
    }
}

@media (max-width: 430px) {
    .products {
        flex-direction: column;
    }

    .products-cards {
        width: 100%;
    }

    .carrusel {
        margin: 2vh 2%;
    }

    .gallery {
        height: 250px;
    }
}