@media screen and (max-width: 767px) {
body {
    min-width: 100vw;
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    position: relative;
    background-color: #ececec;
    font-size: 16px;
    overflow: hidden;
}

#logo img {
    width: 140px;
    max-width: 9vw;
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: none;
}

#menu {
    width: 100vw;
    height: 100vh;
    border-right: 1px solid #CCC;
    background-color: #FFF;
    position: absolute;
    top: 0px;
    left: -100vw;
    z-index: 5;
    transition: left 0.5s; /* Animación */
}

    #menu-top {
        width: 100%;
        height: 50px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid #000;
        padding: 0rem 1rem 0rem 2.5rem;
        font-weight: 600;
    }

    #menu-top button {
        width: 30px;
        height: 30px;
        padding: 0px;
        border: 0px;
        background-color: transparent;
        cursor: pointer;
        margin-left: auto;
    }

    #menu a {
        width: 100%;
        height: 50px;
        border-bottom: 1px solid #AAA;
        padding: 0rem 1rem 0rem 2.5rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        font-weight: 500;
    }

        #menu a img {
            width: 13px;
            height: 13px;
            margin-right: 1rem;
        }

#btn-menu {
    width: 20vw;
    height: 5vh;
    padding: 0px;
    border: 0px;
    position: absolute;
    top: auto;
    bottom: 0px;
    left: 0px;
    background-color: #FFF;
    cursor: pointer;
    z-index: 4;
}

#btn-menu img {
    width: 35px;
    height: 35px;
}

#btn-back {
    width: 40px;
    height: 40px;
    padding: 0px;
    border: 0px;
    position: absolute;
    top: 23vh;
    left: 2.5rem;
    background-color: transparent;
    cursor: pointer;
    display: none;
}

#precio {
    position: absolute;
    bottom: 0vh;
    left: 20vw;
    font-size: 1.1rem;
    font-weight: 600;
    width: 40vw;
    height: 5vh;
    line-height: 5vh;
    max-width: 40vw;
    text-align: center;
    padding-bottom: 0rem;
    z-index: 4;
}

#canvas {
    position: absolute;
    top: 5vh;
    left: 0vw;
    width: 100vw;
    height: 64vh;
    background-color: #f7f7f7;
    opacity: 1;
    z-index: 1;
    transition: width 0.5s; /* Animación */
}

#controles {
    position: absolute;
    bottom: auto;
    left: 0vw;
    top: 0px;
    width: 100vw;
    height: 5vh;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: width 0.5s; /* Animación */
    z-index: 1;
}

    #controles button {
        width: 40px;
        height: auto;
        padding: 0px;
        border: 0px;
        background-color: transparent;
        cursor: pointer;
    }


#panel-derecha {
    width: 100vw;
    height: 26vh;
    position: absolute;
    top: 69vh;
    bottom: 0px;
    right: 0px;
    background-color: #dadada;
    z-index: 3;
    transition: right 0.5s; /* Animación */

}

    #panel-derecha-toggle {
        width: 30px;
        height: 45px;
        background-color: #575756;
        border: 0px;
        display: none;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 25vw;
        top: 0px;
        z-index: 4;
        transition: right 0.5s; /* Animación */
        cursor: pointer;
    }

        #panel-derecha-toggle img {
            transition: transform 0.6s; /* Animación */
        }

#panel-derecha-secciones-cont {
    width: 100%;
    height: 7vh;
    max-height: 7vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

#panel-derecha-abajo {
    width: 40vw;
    height: 5vh;
    background-color: #FFF;
    position: absolute;
    bottom: -5vh;
    right: 0px;
    z-index: 4;
    display: none;
}

    #btn-finalizar {
        width: 100%;
        height: 100%;
        background-color: #000;
        color: #FFF;
        border: 0px;
        font-size: 1rem;
    }

#btn-finalizar-mobile {
    width: 40vw;
    height: 5vh;
    background-color: #000;
    color: #FFF;
    border: 0px;
    font-size: 1rem;
    position: absolute;
    bottom: 0px;
    right: 0px;
    z-index: 4;
    display: block;
}
/* Cada apartado del panel derecha */
.panel-seccion {
    width: 100%;
}
    /* Titulo de cada apartado, al hacer clic despliega/oculta */
    .panel-seccion-titulo {
        width: 100%;
        height: 7vh;
        background-color: #c6c6c6;
        color: #999;
        font-size: 1rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        cursor: pointer;
        border: 0px solid #808080;
        padding: 0rem 2rem;
    }

        .panel-seccion-titulo span {
            font-size: 1.2rem;
            font-weight: 600;
        }

        .panel-seccion-titulo img {
            width: 20px;
            height: 20px;
            margin-left: auto;
            transition: transform 0.6s; /* Animación */
            display: none;
        }

    .panel-seccion-titulo-activa {
        color: #000;
        position: relative;
    }

    /* línea inferior negra en .panel-seccion-titulo-activa con after */
    .panel-seccion-titulo-activa::after {
        content: "";
        width: 100%;
        height: 6px;
        background-color: #000;
        position: absolute;
        bottom: 0px;
        left: 0px;
    }


    /* Contenido de cada apartado cuando se ha desplegado */
    .panel-seccion-content {
        width: 100%;
        display: none;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
        height: 0vh;
        transition: height 0.6s; /* Animación */
        overflow-y: hidden;
        scrollbar-width: none;
        position: absolute;
        height: 19vh;
        top: 7vh;
        left: 0px;
    }

    .panel-seccion-content::-webkit-scrollbar {
        display: none;
    }

    .panel-seccion-content-activa {
        display: flex !important;
        height: 19vh !important;
        overflow-y: hidden;
    }

        /* Cada item dentro del apartado */
        .panel-item {
            width:40%;
            height: 100%;
            background-color: transparent;
            color: #000;
            border: 1px solid #AAA;
            border-top: 1px solid #AAA;
            border-left: 1px solid #AAA;
            border-radius: 0px;
            font-size: 1rem;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            cursor: pointer;
        }

        /* Retoque de bordes */
        .panel-item:nth-child(odd) {
            border-left: 1px solid #AAA;
        }

        

            .panel-item img {
                height: 80px;
                pointer-events: none;
            }

            .panel-item span {
                width: 100%;
                height: 50px;
                display: flex;
                justify-content: center;
                align-items: center;
                pointer-events: none;
            }
}