body {
    min-width: 100vw;
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    position: relative;
    background-color: #FFF;
    font-size: 16px;
    /* touch-action: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none; */
}

* {
    /* user-select: none; */
}

canvas {
    touch-action: none;
    /*-webkit-user-select: none;
    -webkit-touch-callout: none; */
  }

.etiqueta {
    position: absolute;
    width: auto;
    height: 30px;
    background-color: #FFF;
    color: #000;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 400;
    z-index: 3;
    padding: 0rem 2rem;
    border-radius: 20px;
}

.etiqueta-derecha {
    top: 5px;
    left: 60px;
}

.etiqueta-arriba {
    bottom: 45px;
    width: 120px;
    /* Central horizontalmente */
    left: 5px;
}


#logo img {
    width: 140px;
    max-width: 9vw;
    position: absolute;
    top: 1rem;
    left: 8vw;
    z-index: 3;
}

#menu {
    width: 20vw;
    height: 100dvh;
    background-color: #FFF;
    position: absolute;
    top: 0px;
    left: -20vw;
    z-index: 4;
    transition: left 0.5s; /* Animación */
    /* Right shadow for menu */
    box-shadow: 0px 0px 12px 8px rgba(74, 74, 74, 0.15);
}

    #menu-top {
        width: 100%;
        height: 40px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid #ececec;
        background-color: #F2F2F2;
        padding: 0rem 1rem;
        font-weight: 600;
    }

    #menu-top button {
        width: 24px;
        height: 24px;
        padding: 0px;
        border: 0px;
        background-color: transparent;
        cursor: pointer;
        margin-left: auto;
    }

    #menu a {
        width: 100%;
        height: 60px;
        border-bottom: 1px solid #F2F2F2;
        padding: 0rem 1rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        font-weight: 500;
    }

    #menu a:hover {
        background-color: #fff7f0;
    }

        #menu a img {
            width: 16px;
            height: 16px;
            margin-right: 1rem;
        }

#btn-menu {
    width: 40px;
    height: 40px;
    padding: 0px;
    border: 0px;
    position: absolute;
    top: 1.6rem;
    left: 2vw;
    background-color: transparent;
    cursor: pointer;
    z-index: 1;
}

/* #btn-back {
    width: 40px;
    height: 40px;
    padding: 0px;
    border: 0px;
    position: absolute;
    top: 23vh;
    left: 2.5rem;
    background-color: transparent;
    cursor: pointer;
} */



#canvas {
    position: absolute;
    top: 0dvh;
    left: 0vw;
    width: 70vw;
    height: 100dvh;
    background-color: #FFF;
    opacity: 1;
    z-index: 1;
    transition: width 0.5s; /* Animación */
    outline: 1px solid red;
}

#controles {
    position: absolute;
    bottom: 0dvh;
    left: 0vw;
    width: 60vw;
    height: 10dvh;
    background-color: transparent;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: width 0.5s; /* Animación */
}

    #controles > div {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 2rem;
        gap: 3rem;
    }

    #controles button {
        width: auto;
        height: 30px;
        padding: 0px 1rem;
        border: 0px;
        background-color: #ffffff;
        border-radius: 20px;
        cursor: pointer;
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        color: #000;
    }

    #controles button:first-child {
        margin-right: 2rem;
    }


    #controles img {
        height: 5dvh;
        margin-right: 0.7rem;
    }

#info-modulos {
    background-color: #FFF8DF;
    padding: 0.7rem;
    font-size: 0.9rem;
    position: absolute;
    top: 2rem;
    right: calc(30vw + 1rem);
    z-index: 3;
    max-width: 260px;
    opacity: 0.8;
    display: none;
}

#info-equipamiento {
    background-color: #FFF8DF;
    padding: 0.7rem;
    font-size: 0.9rem;
    position: absolute;
    top: 45%;
    right: calc(30vw + 1rem);
    z-index: 3;
    max-width: 260px;
    opacity: 0.8;
    display: none;
}


#panel-derecha {
    width: 30vw;
    height: 100dvh;
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #fff;
    z-index: 2;
    overflow: hidden;
    transition: right 0.5s; /* Animación */
    padding: 0rem;
}

    #panel-derecha-toggle {
        width: 30px;
        height: 50px;
        background-color: #575756;
        border: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 25vw;
        top: 0px;
        z-index: 4;
        transition: right 0.5s; /* Animación */
        cursor: pointer;
        display: none;
    }

        #panel-derecha-toggle img {
            transition: transform 0.6s; /* Animación */
        }

#panel-derecha-secciones-cont {
    width: 100%;
    height: calc(100dvh - 60px);
    max-height: calc(100dvh - 60px);
    padding: 1rem;
    overflow-y: auto;
}

#panel-derecha-abajo {
    width: 100%;
    height: 60px;
    background-color: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

    #precio {
        font-size: 1.1rem;
        font-weight: 600;
        width: 50%;
        height: 100%;
        text-align: left;
    }

    #btn-finalizar {
        width: 50%;
        height: 50px;
        background-color: #000;
        color: #FFF;
        border: 0px;
        font-size: 1rem;
        cursor: pointer;
        border: 1px solid red;
    }

    #btn-finalizar-mobile {
        display: none;
    }

.panel-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.panel-select {
    height: 40px;
    width: 100%;
    font-size: 1rem;
    margin-top: 0.3rem;
    border-radius: 0px;
    background-color: #FFF;
    border: 1px solid #000;
    color: #000;
}

.accesorio-btn {
    background-color: transparent;
    border: 0px solid #000;
    padding: 0rem;
    cursor: pointer;
    max-width: 100px;
    color: #000;
}

    .accesorio-btn img {
        height: 60px;
        object-fit: contain;
        pointer-events: none;
    }

    .accesorio-btn span {
        font-size: 0.9rem;
        font-weight: 400;
        text-align: center;
        pointer-events: none;
    }

.accesorio-btn-active span {
    font-weight: 600;
    text-decoration: underline;
}

.acabado-btn {
    width: 22%;
    background-color: transparent;
    border: 0px solid #000;
    padding: 0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    color: #000;
}

    .acabado-btn div {
        height: 1.8rem;
        width: 100%;
        margin-bottom: 0.5rem;
        pointer-events: none;
    }

    .acabado-btn span {
        font-size: 0.8rem;
        font-weight: 400;
        text-align: center;
        pointer-events: none;
    }

.acabado-btn-active > span {
    font-weight: 600;
    text-decoration: underline;
}


/* Cada apartado del panel derecha */
.panel-seccion {
    width: 100%;
}
    /* Titulo de cada apartado, al hacer clic despliega/oculta */
    .panel-seccion-titulo {
        width: 100%;
        height: 50px;
        background-color: #919cae;
        color: #000;
        font-size: 1rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        cursor: pointer;
        border: 1px solid #808080;
        padding: 0rem 1rem;
    }

        .panel-seccion-titulo span {
            font-size: 1rem;
            font-weight: 500;
            pointer-events: none;
        }

        .panel-seccion-titulo img {
            width: 20px;
            height: 20px;
            margin-left: auto;
            transition: transform 0.6s; /* Animación */
            pointer-events: none;
        }

    /* Contenido de cada apartado cuando se ha desplegado */
    .panel-seccion-content {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
        height: 0px;
        transition: height 0.6s; /* Animación */
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .panel-seccion-content::-webkit-scrollbar {
        display: none;
    }

    .panel-seccion-content-activa {
        /* display: flex !important; */
        height: calc(95dvh - 300px) !important;
        overflow-y: auto;
    }

        /* Cada item dentro del apartado */
        .panel-item {
            width: 50%;
            height: 150px;
            background-color: transparent;
            color: #000;
            border: 1px solid #AAA;
            border-top: 0px;
            border-left: 0px;
            border-radius: 0px;
            font-size: 0.9rem;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            cursor: pointer;
        }

        .panel-item:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* 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;
            }


#modal-finalizar {
    width: 100vw;
    height: 100dvh;
    background-color: #FFF;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 2;
    display: none;
}

#finalizar-imagen-main {
    border: 1px solid #d3d3d3;
    margin-top: 3rem;
    height: 50dvh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#finalizar-imagen-galeria {
    width: 13%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
	flex-direction: column;
    margin-top: 3rem;
}

    #finalizar-imagen-galeria button {
        width: 100%;
		height: 24%;
        object-fit: cover;
        border: 1px solid #ebebeb;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        cursor: pointer;
        transition: border 0.3s ease-in-out;
    }

    #finalizar-imagen-galeria button:hover {
        border: 1px solid #000;
    }

.kana-input {
    height: 40px;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #141414;
    border-radius: 0px;
}

.finalizar-descargable {
    height: auto;
    max-width: 33%;
    border: 1px solid #555;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    gap: 1rem;
    font-size: 1rem;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, border 0.3s ease-in-out;
	padding: 1rem 0rem;
}

    .finalizar-descargable:hover {
        opacity: 1;
        border: 1px solid #000;
    }

.finalizar-descargable img {
    height: 30px;
    object-fit: contain;
}