* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: black;
    --text-secondary: white;
    --bg-black: rgb(0 0 0);
    --bg-beige: #E2D9C2;
    --shadow: rgb(0 0 0 / 75%);

}

footer {
    height: 10vh;
}

.imagen-fondo1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 75vw;
    height: 100vh;
    background-image: url('../assets/images/Fondo1.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: -1;
}

.imagen-fondo2 {
    position: fixed;
    top: 0;
    right: 0;
    width: 25vw;
    height: 100vh;
    background-image: url('../assets/images/Fondo2.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: -1;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    height: 100vh;
}

header {
    width: 75vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    padding: 1rem;
    height: 10vh;
}

.button-beige {
    font-family: "Konkhmer Sleokchher", system-ui;
    width: fit-content;
    height: 35px;
    border-radius: 60px;
    color: var(--text-primary);
    font-weight: 500;
    background-color: var(--bg-beige);
    border: none;
    padding: 7px;
    box-shadow: 0px 1px 7px var(--shadow);
    margin-right: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.button-black {
    font-family: "Konkhmer Sleokchher", system-ui;
    width: fit-content;
    height: 35px;
    border-radius: 60px;
    color: var(--text-secondary);
    font-weight: 500;
    background-color: var(--bg-black);
    border: none;
    padding: 7px;
    box-shadow: 0px 1px 7px var(--shadow);
    cursor: pointer;
    text-decoration: none;
}

main {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 78vh;
    align-items: center;
    justify-content: space-between;
    padding: 5%;

    section h1 {
        color: var(--text-secondary);
        font-family: "Jomhuria", serif;
        font-size: 70px;
        font-weight: 400;
        margin-bottom: 1px;
    }

    aside h1 {
        font-family: "Lilita One", system-ui;
        font-style: normal;
        font-weight: 400;
        font-size: 50px;
        color: var(--text-secondary);
        margin-bottom: 1px;
    }
}

@media (max-width: 1220px){
    main {
        display: flex;
        flex-direction: row;
        width: 100vw;
        height: 72vh;
        align-items: center;
        justify-content: space-between;
        padding: 1%;

        section h1 {
            color: var(--text-secondary);
            font-family: "Jomhuria", serif;
            font-size: 60px;
            font-weight: 400;
            margin-bottom: 1px;
        }

        aside h1 {
            font-family: "Lilita One", system-ui;
            font-style: normal;
            font-weight: 400;
            font-size: 40px;
            color: var(--text-secondary);
            margin-bottom: 1px;
        }
    }
}
.Formulario {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: auto;
    height: auto;
    label {
        display: inherit;
        align-items: center;
        border-radius: 0.5rem;
        width: fit-content;
        padding: 0.4rem;
        background-color: var(--bg-beige);
        gap: 0.3rem;
    }
    input {
        border: none;
        background-color: inherit;
        width: 200px;

        &:focus-visible{
            outline: none;
            border: none;
        }
    }

    input::placeholder {
        color: black;
        font-weight: 700;
    }
}

.search-button {
    font-family: "Konkhmer Sleokchher", system-ui;;
    display: flex;
    flex-direction: row;
    width: 90px;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    border-radius: 0.3rem;
    border: none;
    background-color: var(--bg-black);
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

.Logo {
    width: 200px;
    height: auto;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.Logo--mobile {
    display: none;
}

#menu-button {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: none;
}

.cta-aside {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
}

.cta-more {
    font-family: "Lilita One", system-ui;
    font-size: 22px;
    color: var(--text-secondary);
    background-color: transparent;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    cursor: pointer;
    text-align: center;

    a {
        color: var(--text-secondary);
        text-decoration: none;
    }
}

.categories-aside {
    display: block;
}

@media (max-width: 600px) {
    .imagen-fondo1,
    .imagen-fondo2 {
        display: none;
    }

    header {
        width: 100vw;
        padding: 0.5rem;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    header {
        flex-direction: column;
        align-items: center;
    }

    header > div {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
        align-self: center; 
    }

    #menu-button {
        margin-top: 0.5rem;
        align-self: flex-start;
        margin-left: 0.75rem; 
        padding: 0.4rem;
        background: transparent;
        width: 40px;
        height: 40px;
    }

    #menu-button svg {
        width: 40px;
        height: 40px;
    }

    main {
        display: flex;
        flex-direction: column;
        width: 100vw;
        height: auto;
        padding: 4%;
        gap: 1rem;
        align-items: stretch;
        justify-content: flex-start;
    }

    main section h1 {
        color: var(--text-secondary);
        font-family: "Jomhuria", serif;
        font-size: 60px;
        line-height: 1.05;
        margin-top: 4rem;
        margin-bottom: 0.25rem;
        text-align: center;
    }

    aside h1 {
        font-family: "Lilita One", system-ui;
        font-size: 28px;
        color: var(--text-secondary);
        margin-bottom: 0.25rem;
    }

    .Formulario {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .Formulario label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.4rem;
        background-color: var(--bg-beige);
        border-radius: 0.5rem;
    }

    .Formulario input {
        width: 100%;
        border: none;
        background-color: inherit;
        font-size: 14px;
    }

    .search-button {
        width: 100%;
        padding: 0.6rem 0.75rem;
        font-size: 14px;
    }

    .Logo--mobile {
        display: block;
        /* aumentar un poco el logo en móvil */
        width: 320px;
        margin: 2rem auto 0;
        align-self: center; 
    }

    .Logo--desktop,
    footer .Logo {
        display: none;
    }

    .categories-aside {
        display: none;
    }

    .cta-aside {
        display: flex;
    }

    body {
        background-image: url('../assets/images/Fondo1.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100%;
    }

    .button-beige {
        display: none;
    }

    .button-black {
        display: none;
    }
}

.suggestions-box {
    position: absolute;
    top: 84%; /* Para que aparezca justo debajo del input */
    left: 0;
    width: 100%;
    background-color: var(--bg-beige);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none; /* Oculto por defecto */
    max-height: 200px;
    overflow-y: auto; /* Scroll si hay muchas categorías */
}

/* Cada opción individual */
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: black;
    font-weight: 500;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f0f0f0; /* Efecto hover */
}