/* Reset básico */
body,
h1,
ul,
li {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

body {
    font-family: Arial, sans-serif;
}

header {
    place-items: end;
    background-color: black;
    color: pink;
    padding: 8px 20px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    /* Makes the header sticky */
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    /* Ensures header is above other content */
    border-bottom: 2px solid pink;
}

.logo-container , .logo-container a div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
    /* Space between text and logo placeholder */
}

.logo-container h1 {
    margin: 0;
    font-size: 1.8em;
    white-space: nowrap;
    /* Prevents text from wrapping */
}

.logo-placeholder {
    width: 60px;
    height: 40px;
    border-radius: 50%;
    /* Example for a round logo */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8em;
    text-align: center;
}



@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 105, 180, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0);
    }
}

/* Menú lateral */
nav#mainNav {
    position: fixed;
    /*margin-top: 56px;*/
    padding: 0px;
    left: -250px;
    /* escondido */
    width: 250px;
    height: 100%;
    background: #c46c7a;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    border: 2px solid pink;
    overflow: hidden;
}

nav#mainNav.active {
    left: 0;
}

nav#mainNav ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1rem;
}

nav#mainNav li {
    border: 1px solid #f0f;
    background-color: black;
    text-align: center;
    padding: 3px;

}

nav#mainNav li a {
    display: block;
    width: 100%;
    text-decoration: none;
    font-size: 1.2rem;
    color: pink;
    transition: color 0.3s;


}



nav#mainNav li:hover {

    background-color: pink;
    color: black;
    border: 4px solid black;
}

nav#mainNav li:hover a {
    color: black;
}

.burbuja {
    z-index: -1;
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: subir linear infinite;
}

@keyframes subir {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.6;
    }

    50% {
        opacity: 1;
        transform: translateY(-1000px) scale(1);
    }

    100% {
        transform: translateY(-1500px) scale(1);
        opacity: 0;
    }
}



#main {
    margin-top: 58px;
    transition: transform 0.3s ease;
    --u: 2.5vmin;
    /* Paleta de uvas oscuras */
    --c1: #0a0a0a;
    /* fondo base */
    --c2: #2a112b;
    /* morado profundo */
    --c3: #3b153f;
    /* uva media */
    --c4: #501c55;
    /* reflejo más claro */
    --shine: rgba(255, 255, 255, 0.05);
    /* brillo sutil */

    /* Forma del racimo: círculos de distintos tonos */
    --shape:
        var(--c4) 0 calc(var(--u) * 0.7),
        var(--c3) calc(var(--u) * 0.8) calc(var(--u) * 1.4),
        var(--c2) calc(var(--u) * 1.5) calc(var(--u) * 2.2),
        var(--c3) calc(var(--u) * 2.3) calc(var(--u) * 2.9),
        var(--c4) calc(var(--u) * 3.0) calc(var(--u) * 3.7),
        var(--shine) calc(var(--u) * 3.2) calc(var(--u) * 3.3),
        var(--c2) calc(var(--u) * 3.8) calc(var(--u) * 4.4),
        var(--c3) calc(var(--u) * 4.6) calc(var(--u) * 5.3),
        #0000 calc(var(--u) * 5.4) 100%;

    /* Patrón repetitivo */
    --gp: 50%/calc(var(--u) * 10) calc(var(--u) * 6.33);

    height: 100%;
    background:
        radial-gradient(circle at 50% 150%, var(--shape)) var(--gp),
        radial-gradient(circle at 0% 100%, var(--shape)) var(--gp),
        radial-gradient(circle at 100% 100%, var(--shape)) var(--gp),
        radial-gradient(circle at 50% 50%, var(--shape)) var(--gp),
        radial-gradient(circle at 0% 0%, var(--shape)) var(--gp),
        radial-gradient(circle at 100% 0%, var(--shape)) var(--gp),
        var(--c1);
    background-attachment: fixed;
    background-repeat: repeat;
    background-color: var(--c1);
}






#main:first-child {
    background-color: blue;
}

/* Estilo de secciones */
.menu-section {

    max-width: 900px;
    margin: 2px auto;
    padding: 10px;
}

.menu-section h1 {
    margin-top: 56px;
    text-align: center;
    margin-bottom: 10px;
    text-decoration: underline wavy;
    color: pink;

}

.menu-section h2 {
    margin-top: -10px;
    text-align: center;
    margin-bottom: 10px;
    text-decoration: underline wavy;
    color: pink;

}

.menu-card {
    background-color: black;
    color: pink;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    padding: 5px;
    transition: transform 0.2s;
    border: 1px solid #f0f;

}

.menu-card:hover {
    transform: translateY(-3px);
}

.menu-title {
    color: pink;
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-description {
    font-size: 0.95rem;
    color: rgba(255, 192, 203, 0.700);

}

.menu-price {
    font-size: 1rem;
    font-weight: bold;
    color: pink;
    text-align: right;
}

/* Responsivo */
@media (max-width: 480px) {
    .menu-title {
        font-size: 1.1rem;
    }

    .menu-description {
        font-size: 0.9rem;
    }

    .menu-price {
        font-size: 0.95rem;
    }
}

.menuButton {
    --front: pink;
    --back: rgb(233, 46, 46);
    --icon: black;
    border: 2px solid #f0f;
    color: black;
    overflow: hidden;
    font-size: small;
    text-align: center;
    top: 0.1px;
    left: 0;
    width: 60px;
    height: 95%;
    position: absolute;
    cursor: pointer;
    animation: pulse 1s infinite;
    -webkit-tap-highlight-color: transparent;

    input {
        display: none;

        &+div {
            span {

                --background: var(--front);
                transform: rotateY(var(--rotateY));
                transform-style: preserve-3d;
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                padding: 1px;
                background: var(--background);
                backface-visibility: hidden;
                transition: transform .6s cubic-bezier(.2, .64, .48, 1.24);

                &:before,
                &:after {
                    --rotate: 0deg;
                    content: '';
                    position: absolute;
                    width: 16px;
                    height: 2px;
                    border-radius: 1px;
                    top: 50%;
                    left: 50%;
                    background: var(--icon);
                    backface-visibility: hidden;
                    transform: translate(-50%, -50%) rotate(var(--rotate)) translateZ(6px);
                }

                &:first-child {
                    --background: var(--back);

                    &:before {
                        --rotate: -45deg;
                    }

                    &:after {
                        --rotate: 45deg;
                    }
                }

                &:last-child {
                    --rotateY: 180deg;

                    &:before {
                        box-shadow: 0 -5px 0 var(--icon), 0 5px 0 var(--icon);
                    }

                    &:after {
                        display: none;
                    }
                }
            }
        }

        &:checked+div {
            span {
                &:first-child {
                    --rotateY: -180deg;
                }

                &:last-child {
                    --rotateY: 0deg;
                }
            }
        }
    }
}