body {
    min-width: 100vw;
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    position: relative;
    background-color: #fafafa;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
}

.pantalla {
    z-index: 10;
    display: none;
    background-color: #FFF;
    width: 100vw;
    height: 100vh;
    position: absolute;
}

#pantalla-configurador {
    z-index: 1;
    display: block
}

.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;
    border: 1px solid #DDD;
    white-space: nowrap;
}

.etiqueta-derecha {
    top: 5px;
    left: 60px;
}

.etiqueta-arriba {
    bottom: 45px;
    /* width: 120px; */
    /* Central horizontalmente */
    left: calc(50% - 80px);
}


#logo img {
    width: 140px;
    max-width: 9vw;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;

}

#menu {
    width: 20vw;
    height: 100vh;
    border-right: 1px solid #CCC;
    background-color: #FFF;
    position: absolute;
    top: 0px;
    left: -20vw;
    z-index: 150;
    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;
        font-weight: 600;
    }

    #menu-top button {
        width: 30px;
        height: 30px;
        padding: 0px;
        border: 0px;
        background-color: transparent;
        cursor: pointer;
        margin-left: auto;
    }

    .menu-item {
        width: 100%;
        height: 50px;
        background-color: #FFF;
        border: 0px;
        border-bottom: 1px solid #AAA;
        padding: 0rem 1rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        font-weight: 500;
        font-size: 1rem;
        cursor: pointer;
    }

    .menu-item img {
        width: 13px;
        height: 13px;
        margin-right: 1rem;
    }


#btn-menu {
    width: 40px;
    height: 40px;
    padding: 0px;
    border: 1px solid #DDD;
    position: absolute;
    top: 16vh;
    left: 2.5rem;
    background-color: transparent;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
}

#btn-back {
    width: 40px;
    height: 40px;
    padding: 0px;
    border: 1px solid #DDD;
    position: absolute;
    top: 23vh;
    left: 2.5rem;
    background-color: transparent;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    display: none;
}

#btn-nuevo {
    width: 40px;
    height: 40px;
    padding: 0px;
    border: 1px solid #DDD;
    position: absolute;
    top: 23vh;
    left: 2.5rem;
    background-color: transparent;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
}

#resumen {
    min-width: 340px;
    width: 13vw;
    max-width: 13vw;
    height: auto;
    min-height: 300px;
    border: 1px solid #17243D;
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    z-index: 3;
    padding: 1rem 1rem 4.4rem 1rem;
    background-color: #FFF;
    display: none;
}

#resumen-total {
    position: absolute;
    bottom: 2rem;
    right: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#resumen-cerrar {
    position: absolute;
    bottom: 0.5rem;
    right: 0rem;
    text-align: center;
    width: 100%;
}

#resumen-cerrar button {
    border: 0px;
    background-color: transparent;
    cursor: pointer;
    color: #888;
}

#resumen-cerrar button:hover {
    text-decoration: underline;
}

#precio {
    position: absolute;
    bottom: 0vh;
    left: 0rem;
    font-size: 2rem;
    font-weight: 600;
    width: 10vw;
    max-width: 10vw;
    text-align: center;
    padding-bottom: 1rem;
    z-index: 3;
}

#desglose {
    position: absolute;
    bottom: 3vh;
    left: 9vw;
    font-size: 0.9rem;
    font-weight: 400;
    width: 10vw;
    max-width: 10vw;
    text-align: center;
    z-index: 3;
    cursor: pointer;
}

#desglose:hover {
    text-decoration: underline;
}

#canvas {
    position: absolute;
    top: 0vh;
    left: 0vw;
    width: 75vw;
    height: 100vh;
    background-color: #fafafa;
    opacity: 1;
    z-index: 1;
    /*transition: width 0.5s;  Animación */
}

#controles {
    position: absolute;
    bottom: 3vh;
    left: 30vw;
    min-width: 200px;
    width: 15vw;
    height: 5vh;
    display: flex;
    background-color: #EFEFEF;
    justify-content: center;
    align-items: center;
    gap: 0rem;
    transition: width 0.5s; /* Animación */
    z-index: 2;
    border-radius: 25px;
}

    #controles > div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        gap: 1rem;
        padding: 0rem 1rem;
    }

    #controles button {
        width: 130px;
        height: 30px;
        padding: 0px;
        border: 0px;
        background-color: transparent;
        cursor: pointer;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #controles > img {
        height: 5vh;
        margin-left: auto;
        margin-right: 2rem;
    }


#panel-derecha {
    width: 25vw;
    height: 100vh;
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #fff;
    z-index: 2;
    overflow: hidden;
    transition: right 0.5s; /* Animación */
}

    #panel-derecha-toggle {
        width: 30px;
        height: 50px;
        background-color: #17243D;
        border: 1px solid #FFF;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 25vw;
        top: 0px;
        z-index: 4;
        transition: right 0.3s; /* Animación */
        cursor: pointer;
    }

        #panel-derecha-toggle img {
            transition: transform 0.4s; /* Animación */
        }

#panel-derecha-secciones-cont {
    width: 100%;
    height: 94vh;
    max-height: 94vh;
}

#panel-derecha-abajo {
    width: 100%;
    height: 6vh;
    background-color: #FFF;
}

    #btn-finalizar {
        width: 100%;
        height: 100%;
        background-color: #000;
        color: #FFF;
        border: 1px solid #FFF;
        font-size: 1rem;
        cursor: pointer;
    }

    #btn-finalizar-mobile {
        display: none;
    }

/* 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: #17243D;
        color: #FFF;
        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.4s; /* Animación */
            pointer-events: none;
        }

    /* Contenido de cada apartado cuando se ha desplegado */
    .panel-seccion-content {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
        height: 0px;
        transition: height 0.4s;
        overflow-y: hidden;
        /* scrollbar-width: none; */
        padding: 0rem;
    }

    .panel-seccion-content-interior {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
    }

    /* .panel-seccion-content::-webkit-scrollbar {
        display: none;
    } */

    .panel-seccion-content-activa {
        /* display: flex !important; */
        padding: 0rem;
        height: calc(94vh - 300px) !important;
        overflow-y: auto;
    }

        /* Cada item dentro del apartado */
        .panel-item {
            width: 48%;
            height: 150px;
            background-color: transparent;
            color: #17243D;
            border: 1px solid #BFBFBF;
            border-radius: 5px;
            font-size: 0.9rem;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            cursor: pointer;
            margin-bottom: 1rem;
        }

        .panel-item:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .panel-item-active {
            background-color: #DDE6E0;
        }

        /* Retoque de bordes */

        

            .panel-item img {
                height: 80px;
                pointer-events: none;
                object-fit: contain;
                width: 100%;
            }

            .panel-item span {
                width: 100%;
                height: 40px;
                display: flex;
                justify-content: center;
                align-items: center;
                pointer-events: none;
            }

        .item-modelo-active {
            width: 100% !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            flex-direction: row !important;
        }

        .item-modelo-izquierda {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            background-color: transparent;
            border: 0px;
            cursor: pointer;
            border-radius: 5px;
        }

        .item-modelo-derecha {
            display: none;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .item-modelo-izquierda-active {
            width: 48% !important;
            font-weight: 600;
            text-decoration: underline;
        }

        .item-modelo-derecha-active {
            display: flex !important;
            width: 48% !important;
            height: 100% !important;
        }

        .panel-item:has(.variante-active) {
            background-color: #DDE6E0 !important;
        }

        .variante {
            background-color: transparent;
            width: auto;
            max-width: 100%;
            border: 0px;
            cursor: pointer;
            color: #555;
        }

        .variante:hover {
            text-decoration: underline;
            color: #000;
        }

        .variante-active {
            text-decoration: underline;
            font-weight: 600;
            color: #000;
        }

        /* ACABADOS */

        .item-acabado {
            width: 20%;
            height: 100px;
            background-color: transparent;
            border: 0px solid #BFBFBF;
            border-radius: 0px;
            color: #17243D;
            font-size: 0.9rem;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            flex-direction: column;
            cursor: pointer;
            margin-bottom: 0.8rem;
            padding: 0rem;
        }

        .item-acabado .acabado-color {
            border: 1px solid #BFBFBF;
            border-radius: 5px;
            width: 100%;
            aspect-ratio: 1/1;
        }

        .item-acabado .acabado-nombre {
            color: #17243D;
            margin-top: 5px;
            font-size: 0.8rem;
        }

        .acabado-active .acabado-color {
            border: 1px solid #17243D;
        }

        .acabado-active .acabado-nombre {
            font-weight: 600;
            text-decoration: underline;
        }


        
.modal-back-promo {
    background-color: #00000097;
    color: #FFF;
    padding: 1rem;
    border-radius: 0px;
    text-align: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 5000;
}

.modal-front-promo {
    background-color: #FFF;
    padding: 0.3rem;
    border-radius: 5px;
    text-align: center;
    width: 90vw;
    max-width: 900px;
}

.modal-front-promo img {
    max-width: 100%;
    max-height: auto;
    border: 1px solid #EEE;
}

.modal-front-promo-close {
    width: 100%;
    height: 50px;
    background-color: #000;
    color: #FFF;
    border: 1px solid #FFF;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.3rem;
}


/* MIS DISEÑOS */

#pantalla-disenos-cont {
    width: 90vw;
    position: absolute;
    top: 0px;
    right: 0px;
    padding-top: 12vh;
    padding-right: 2rem;
}

#proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: auto;
    grid-column-gap: 3rem;
    grid-row-gap: 3rem;
    width: 100%;
    height: auto;
    max-height: 88vh;
    overflow-y: auto;   
    padding-bottom: 8rem;
}

.proyecto {
    display: block;
    background-color: #FFF;
    border: 1px solid #EEE;
    border-radius: 5px;
}

.proyecto > button {
    border: 0px;
    background-color: transparent;
    padding: 0px;
    cursor: pointer;
}

.proyecto-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px 5px 0px 0px;
    aspect-ratio: 16/9;
    background-color: #e1e4e6;
}

@media screen and (max-width: 767px) {
    #pantalla-disenos-cont {
        width: 100vw;
        position: absolute;
        top: 0px;
        right: 0px;
        padding-top: 0vh;
        height: 95vh;
        max-height: 95vh;
        padding: 1rem;
        overflow-y: hidden;
    }

    #proyectos {
        padding-bottom: 5vh;
    }

    #btn-menu {
        width: 100vw;
        position: absolute;
        bottom: 0px;
        right: 0px;
        height: 5vh;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0rem 1rem;
        border-top: 1px solid #BBB;
    }
}


/* FINALIZAR */
#finalizar-izquierda {
    width: 40vw;
    position: absolute;
    left: 10vw;
    top: 15vh;
    height: 80vh;
    border-right: 2px solid #bcbec0;
    padding: 0rem 5rem 1rem 1rem;
}

#finalizar-derecha {
    width: 50vw;
    position: absolute;
    right: 0vw;
    top: 15vh;
    height: 80vh;
    padding: 0rem 3rem 1rem 5rem;
}

#imagen-main {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    border: 1px solid #DDD;
}

#imagen-galeria {
    width: 100%;
    height: 20vh;
    margin-top: 1rem;
}

#imagen-galeria img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #DDD;
    
}

#imagen-galeria img:hover {
    outline: 1px solid #bcbec0;
}

#precio-finalizar {
    top: auto;
    left: auto;
    height: auto;
    position: relative;
    bottom: auto;
    text-align: right;
    width: 100%;
    max-width: 100%;
    font-size: 2rem;
    font-weight: 600;
}

#seccion-guardar {
    width: 100%;
    border-top: 1px solid #bcbec0;
    margin-top: 5vh;
}

#seccion-descargar {
    width: 100%;
    border-top: 1px solid #bcbec0;
    margin-top: 4vh;
}

.input-finalizar {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 25px;
    padding: 0 1rem;
    background-color: #FFF;
}

.descargas {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 2rem;
    gap: 2rem;
}

.descargas button {
    width: 120px;
    height: 195px;
    border: 0px;
    padding: 0px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.descargas button div {
    width: 120px;
    height: 170px;
    background-color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

.descargas button span {
    
}

@media screen and (max-width: 767px) {
    #logo {
        width: 100vw;
        position: absolute;
        top: 0px;
        left: 0px;
        height: 10vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #logo img {
        position: relative;
        display: block;
        height: auto;
        object-fit:contain;
        width: 150px;
        max-width: 150px;
        top: auto;
        left: auto;
    }

    #btn-menu {
        width: 100vw;
        position: absolute;
        bottom: 0px;
        right: 0px;
        height: 5vh;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0rem 1rem;
        border-top: 1px solid #BBB;
    }

    #finalizar-izquierda {
        width: 100vw;
        position: absolute;
        left: 0vw;
        top: 12vh;
        height: 40vh;
        border-right: 0px solid #bcbec0;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #finalizar-derecha {
        width: 100vw;
        position: absolute;
        right: 0vw;
        top: 50vh;
        height: 50vh;
        padding: 1rem;
        overflow-y: auto;
        
    }

    #imagen-main {
        width: auto;
        height: 20vh;
        object-fit: contain;
        aspect-ratio: 1.5/1;
    }

    #imagen-galeria {
        width: 100%;
        max-width: 100%;
        height: 10vh;
        margin-top: 0.5rem;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 1%;
    }

    #imagen-galeria img {
        width: 23%;
        height: 10vh;
        object-fit: cover;
        cursor: pointer;
    }

    #imagen-galeria img:hover {
        outline: 1px solid #bcbec0;
    }

    #precio-finalizar {
        top: auto;
        left: 20vw;
        width: auto;
        bottom: 0px;
        height: 5vh;
        z-index: 4;
    }

    #seccion-guardar {
        width: 100%;
        border-top: 1px solid #bcbec0;
        margin-top: 0vh;
    }

    #seccion-descargar {
        width: 100%;
        border-top: 1px solid #bcbec0;
        margin-top: 5vh;
        padding-bottom: 3rem;
    }

    input {
        width: 100%;
        height: 45px;
        border: none;
        border-radius: 25px;
        padding: 0 1rem;
        background-color: #FFF;
    }

    .descargas {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 2rem;
        gap: 2rem;
    }

    .descargas button {
        width: 120px;
        height: 195px;
        border: 0px;
        padding: 0px;
        background-color: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        cursor: pointer;
    }

    .descargas button div {
        width: 120px;
        height: 170px;
        background-color: #FFF;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .descargas button span {
        
    }
}


/* PERFIL */
#contenido-perfil {
    width: 90vw;
    max-width: 1100px;
    position: absolute;
    top: 0px;
    left: 10vw;
    height: auto;
    padding-top: 16vh;
    padding-right: 5vw;
    /* overflow-y: auto; */
}

@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;
    } */

    #contenido-perfil {
        width: 100vw;
        
        position: absolute;
        top: 10vh;
        right: 0px;
        height: 85vh;
        padding: 1rem;
        padding-right: 1rem;
        overflow-y: auto;
    }


    /* #logo {
        width: 100vw;
        position: absolute;
        top: 0px;
        left: 0px;
        height: 10vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #logo img {
        position: relative;
        display: block;
        height: auto;
        object-fit:contain;
        width: 150px;
        max-width: 150px;
        top: auto;
        left: auto;
    } */

    /* #btn-menu {
        width: 100vw;
        position: absolute;
        bottom: 0px;
        right: 0px;
        height: 5vh;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0rem 1rem;
        border-top: 1px solid #BBB;
    } */

    .w-23 {
        width: 49%;
    }
}

.input-div {
    margin-top: 2rem;
    /* width: 48%; */
}

.input-div label {
    color: #000;
    font-size: 1.1rem;
}

.input-div input {
    width: 100%;
    background-color: #FFF;
    border: 1px solid #EEE;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.8rem;
}

.input-div textarea {
    width: 100%;
    background-color: #FFF;
    border: 1px solid #EEE;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.8rem;
}

.h2-perfil {
    font-size: 1.5rem;
}

.numero {
    font-size: 2rem;
    font-weight: 600;
    padding: 2rem;
}

.btn-main-perfil {
    background-color: #6cb64b;
}