/* Estilos del Switch Moderno */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #edeff2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    border: 1px solid #dcdde1;
}


.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: gray;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}




.btn-view-decorated {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: var(--froc-accent);
    border: 1px solid var(--froc-accent);
    padding: 10px 18px;
    border-radius: 50px;
    font-family: var(--Bold);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-view-decorated svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.btn-view-decorated:hover {
    background-color: #f0f2f5;
    /* Oscurece ligeramente el blanco */
    color: #0b3d3b;
    /* Texto más oscuro para contraste */
    border-color: var(--froc-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}

.btn-view-decorated:hover svg {
    transform: scale(1.2);
}

/* Modal Structure */
.modal-overlay-decorado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: white; */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1033;
    backdrop-filter: blur(4px);
}


/* .modal-overlay-decorado {
                                                    pointer-events: none;
                                                }

                                                .modal-overlay-decorado.active {
                                                    pointer-events: auto;
                                                } */

.modal-content-decorado {
    background: var(--froc-border);
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header-decorado {
    padding: 20px;
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-700);
}

.modal-body-decorado {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Controls */
.modal-sidebar {
    width: 320px;
    padding: 20px;
    border-right: 1px solid var(--gray-300);
    overflow-y: auto;
    background-color: var(--gray-100);
}


.modal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--froc-border);
    overflow: hidden;
}

.canvas-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--froc-border);
    position: relative;
    overflow: hidden;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: move;
}

/* Carousel */
.carousel-wrapper-decorado {
    position: relative;
    background: var(--froc-border);
    padding: 15px 50px;
    border-top: 1px solid #cbd5e1;
}

.carousel-container-decorado {
    overflow: hidden;
    width: 100%;
}

.carousel-decorado {
    display: flex;
    gap: 12px;
    transition: transform 0.4s ease;
    flex-wrap: nowrap;
    width: max-content;
}

.carousel-item-decorado {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.carousel-btn-decorado {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--froc-accent);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--Medium);
}

.carousel-btn-decorado.left {
    left: 0;
}

.carousel-btn-decorado.right {
    right: 0;
}

/* Form Elements */
.control-group {
    margin-bottom: 1.5rem;
}

.label-mockup {
    display: block;
    font-size: 1rem;
    font-family: var(--Medium);
    color: var(--gray-700);
    margin-bottom: 5px;
}

select,
input[type="file"] {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
}

input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

.btn-download {
    width: 100%;
    background: var(--froc-accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--Medium);
    cursor: pointer;
    margin-top: 10px;
}

@media (max-width: 850px) {
    .modal-body-decorado {

        gap: 1rem;
        display: flex;
        flex-direction: column;
    }

    .modal-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-300);
        overflow-y: auto;
    }

    .modal-content-decorado {
        height: 100%;
    }
}

/* 7. MINIMAL OUTLINE */
/* --- ESTILOS DE COMPONENTES COMUNES --- */
input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.card-outline {
    border-left: 5px solid var(--primary-color);
    background: white;
    padding: 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eaeaea;
    border-top: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    margin-bottom: 1rem;
    font-family: var(--Medium);

}

.card-outline .btn-visualize {
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: .85rem;
}

.btn-visualize {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    /* font-weight: 600; */
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: .85rem;
    /* text-transform: uppercase; */
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* #mainCanvas {
                                                    touch-action: none;
                                                } */

/* Responsivo */

@media (max-width: 1690px) {
    .card-outline {
        flex-direction: column;
    }
}


@media (max-width: 600px) {
    #addonsContainer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-view-decorated {
        width: 100%;
        justify-content: center;
    }

    .modal-main {
        overflow: visible;
    }

    /* .modal-body-decorado{
                                                        overflow: visible;
                                                    } */
}


@media (max-width: 600px) {
    .card-outline {
        flex-direction: column;
        text-align: center;
    }
}