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; */
  }

#configee {
    position: absolute;
    bottom: 0.5rem;
    right: calc(25vw + 0.7rem);
    z-index: 1;
    font-size: 0.79rem;
    font-weight: 400;
    color: #6e747d;
}

.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: 170px;
    position: absolute;
    top: 1rem;
    left: 8vw;
    z-index: 5;
}

#menu {
    width: 20vw;
    height: 100dvh;
    background-color: #FFF;
    position: absolute;
    top: 0px;
    left: -20vw;
    z-index: 10;
    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: #ecf2f8;
    }

        #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: 5vw;
    width: 70vw;
    height: 100dvh;
    background-color: #FFF;
    opacity: 1;
    z-index: 1;
    transition: width 0.5s; /* Animación */
}

#desglose {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 20vw;
    height: 60dvh;
    background-color: #FFF;
    z-index: 3;
    border: 1px solid #28394a;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    transition: left 0.2s ease-out, bottom 0.2s ease-out
}

#btn-desglose {
    width: 140px;
    height: 40px;
    aspect-ratio: 1/1;
    padding: 0px;
    border: 0px;
    font-size: 0.8rem;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: #28394a;
    border: 1px solid #9eb4c8;
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 2;
}

#controles {
    position: absolute;
    bottom: 0dvh;
    left: 20.5vw;
    min-width: 50vw;
    width: fit-content;
    height: auto;
    background-color: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: width 0.5s; /* Animación */
}

    .controles-cont {
        width: fit-content;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0rem;
    }

    #controles button {
        width: 140px;
        height: 40px;
        aspect-ratio: 1/1;
        padding: 0px;
        border: 0px;
        font-size: 0.8rem;
        background-color: transparent;
        cursor: pointer;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        color: #28394a;
        border: 1px solid #9eb4c8;
        border-right: 0px solid #9eb4c8;
    }

    .controles-button-active {
        background-color: #d9e7f6 !important;
        /* border: 1px solid #28394a !important; */
        /* color: #FFF !important; */
    }

    #controles button:last-child {
        border-right: 1px solid #bcd0e6;
    }

    #controles button:hover {
        background-color: #f7f7f7;
    }

    #controles img {
        height: 40px;
    }

#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: 25vw;
    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: 40px;
    background-color: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem;
}

#panel-derecha label {
    font-size: 0.8rem;
}

    #precio {
        font-size: 1.1rem;
        font-weight: 600;
        width: 50%;
        height: 100%;
        text-align: left;
    }

    #btn-finalizar {
        width: 100%;
        height: 40px;
        background-color: #000;
        color: #FFF;
        border: 0px;
        font-size: 1rem;
        cursor: pointer;
    }

    #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: 40px;
        background-color: var(--color-sec);
        color: #a7b1bb;
        font-size: 1rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        cursor: pointer;
        border: 1px solid #FFF;
        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-interior {
        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 */
        padding: 0.5rem;
        gap: 1%;
		row-gap: 0.3rem;
    }

    .panel-seccion-content::-webkit-scrollbar {
        display: none;
    }

    .panel-seccion-content-activa {
        /* display: flex !important; */
        height: calc(95dvh - 270px) !important;
        overflow-y: auto;
    }

        /* Cada item dentro del apartado */
        .panel-item {
            width: 24%;
            height: auto;
            max-height: 125px;
            aspect-ratio: 1/1;
            padding: 0.3rem;
            background-color: transparent;
            color: #000;
            border: 1px solid #DDD;
            /* border-top: 0px;
            border-left: 0px; */
            border-radius: 3px;
            display: flex;
            justify-content: space-between;
            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-titulo {
            /* border-bottom: 1px solid #AAA; */
            padding: 0.5rem 0.3rem;
        }

        

            .panel-item img {
                width: 70%;
                max-width: 70px;
                max-height: 70px;
                aspect-ratio: 1/1;
                pointer-events: none;
            }

            .panel-item span {
                width: 100%;
                height: auto;
                display: flex;
                justify-content: center;
                align-items: center;
                pointer-events: none;
                font-size: 0.8rem;
                margin-top: 0.2rem;
            }

        .panel-item-active {
            border: 1px solid #999;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        }

#modal-finalizar {
    width: 100vw;
    height: 100dvh;
    background-color: #FFF;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 4;
    display: none;
}

#finalizar-html {
	column-count: 2; /* O ajusta a 3 si prefieres más columnas */
	column-gap: 40px; /* Espacio entre columnas, ajustable */
	font-size: 0.9rem;
}

#finalizar-html div {
	break-inside: avoid; /* Evita que se corte un div entre columnas */
	margin-bottom: 2px; /* Añade un poco de separación vertical */
}

#finalizar-imagen-main {
    border: 1px solid #d3d3d3;
    margin-top: 2rem;
    height: 50dvh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#finalizar-imagen-galeria {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
	gap: 1rem;
}

    #finalizar-imagen-galeria button {
        width: 23%;
        height: 140px;
        object-fit: cover;
        aspect-ratio: 1/1;
        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 #d3d3d3;
    }

.kana-input {
    height: 40px;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #141414;
    border-radius: 0px;
}

.finalizar-descargable {
    height: auto;
    aspect-ratio: 1/1;
    max-width: 180px;
    border: 1px solid #555;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: transparent;
    gap: 2rem;
    font-size: 1rem;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, border 0.3s ease-in-out;
}

    .finalizar-descargable:hover {
        opacity: 1;
        border: 1px solid #141414;
    }

.finalizar-descargable img {
    height: 40px;
    object-fit: contain;
}