.ct-wrapper{
    width:100%;
}

.ct-familias{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
    margin-bottom:30px;
}

.ct-familia{

    padding:10px 18px;

    border:1px solid #ddd;

    background:#fff;

    border-radius:50px;

    cursor:pointer;
}

.ct-filtros{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-bottom:40px;
}

.ct-btn{

    padding:12px 30px;

    border:none;

    background:#234d86;

    color:#fff;

    border-radius:50px;

    cursor:pointer;
}

.ct-grid{

    display:grid;

    grid-template-columns:
    repeat(6,1fr);

    gap:15px;
}

.ct-color{

    height:140px;

    border-radius:10px;

    border:1px solid #ddd;
}

.ct-codigo{

    text-align:center;

    margin-top:10px;
}

@media(max-width:1024px){

.ct-grid{
grid-template-columns:
repeat(4,1fr);
}

}

@media(max-width:767px){

.ct-grid{
grid-template-columns:
repeat(2,1fr);
}

}

.ct-buscador{

    max-width:500px;

    margin:30px auto;

}

.ct-buscador input{

    width:100%;

    padding:15px 20px;

    border:1px solid #ddd;

    border-radius:40px;

    font-size:16px;

}

.ct-item{

    transition:.3s;

}

.ct-item:hover{

    transform:translateY(-5px);

}

.ct-familias{
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    gap:20px;
    overflow-x:auto;
    padding-bottom:10px;
}

.ct-familia-item{
    text-align:center;
}

.ct-familia{
    width:70px;
    height:70px;
    border-radius:50%;
    overflow:hidden;
    border:3px solid #d9d9d9;
    background:#fff;
    padding:0;
    cursor:pointer;
}

.ct-familia-img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ct-familia-nombre{
    display:block;
    margin-top:8px;
    font-size:11px;
    font-weight:600;
    text-align:center;
}

/* =====================================
   TODOS Y TENDENCIAS
===================================== */

.ct-especiales{
    display:flex;
    justify-content:center;
    gap:120px;
    margin:35px 0 45px;
    flex-wrap:wrap;
}

.ct-especial{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    cursor:pointer;
}

.ct-especial img{
    width:80px !important;
    height:80px !important;
    max-width:130px !important;
    max-height:130px !important;
    object-fit:cover;
    border-radius:50%;
    display:block;
}

.ct-especial span{
    margin-top:10px;
    font-size:14px;
    font-weight:600;
    color:#444;
}

.ct-contador{
    font-size:16px;
    font-weight:600;
    margin:20px 0;
    color:#555;
}

/* =====================================
   MODAL SIMULADOR
===================================== */

#ctModalSimulador{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.75);

    z-index:999999;

}

.ct-modal-contenido{

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    width:65vw;

    max-width:1100px;

    height:96vh;

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:
    0 0 30px rgba(0,0,0,.35);

}

#ctCerrarModal{

    position:absolute;

    top:15px;

    right:15px;

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    background:#9bbced;

    color:#222;

    cursor:pointer;

    z-index:9999;

    font-size:22px;

    font-weight:bold;

    line-height:45px;

    text-align:center;

}

#ctSimuladorContainer{

    width:100%;

    height:100%;

    overflow:auto;

}

/* ==========================================
   MODAL TINTOMETRIA
   OCULTAR ELEMENTOS DEL SIMULADOR
========================================== */

#ctModalSimulador #sp-container-colores{
    display:none !important;
}

#ctModalSimulador #sp-intensidad-container{
    display:none !important;
}

#ctModalSimulador #sp-comparacion-container{
    display:none !important;
}

#ctModalSimulador #sp-main-layout{

    display:flex !important;

    width:100% !important;

}

#ctModalSimulador #sp-container-simulador{

    flex:1 !important;

    width:100% !important;

    max-width:none !important;

}

#ctModalSimulador #sp-panel-simulador{
    width:100% !important;
}

#ctModalSimulador #sp-canvas-container{

    min-height:auto;

}

#ctNavColor{

    height:70px;

    display:flex !important;

    align-items:center !important;

    justify-content:center !important;

    gap:25px;

    border-top:1px solid #e5e5e5;

    background:#fff;

    visibility:visible !important;

}

#ctNavColor button{

    width:48px !important;

    height:48px !important;

    border-radius:50% !important;

    background:#ffffff !important;

    border:2px solid #d9d9d9 !important;

    color:#111 !important;

    font-size:24px !important;

    font-weight:700 !important;

    display:flex !important;

    align-items:center !important;

    justify-content:center !important;

    cursor:pointer;

    visibility:visible !important;

}

#ctColorActual{

    min-width:120px;

    text-align:center;

    font-size:16px;

    font-weight:600;
}

/* =====================================
   TINTOMETRIA HABITACIONAL
===================================== */

#ctModalSimulador #sp-carrusel-wrapper{

    padding:0px !important;

    margin-bottom:0px !important;

}

#ctModalSimulador #sp-galeria-ambientes img{

    max-height:60px !important;

}

#ctModalSimulador #sp-galeria-ambientes{

    font-size:10px !important;

}

#ctModalSimulador #sp-container-ambientes{

    margin-bottom:10px !important;

}

/* =====================================
   MODAL RESPONSIVE
===================================== */

@media(max-width:768px){

    .ct-modal-contenido{

    position:fixed !important;

    inset:0 !important;

    width:100vw !important;

    height:100vh !important;

    max-width:none !important;

    max-height:none !important;

    margin:0 !important;

    padding:0 !important;

    transform:none !important;

    border-radius:0 !important;

}

    #ctCerrarModal{

        width:38px;

        height:38px;

        font-size:18px;

        top:10px;

        right:10px;

    }

    #ctModalSimulador #sp-carrusel-wrapper{

        padding:5px !important;

        margin-bottom:5px !important;

    }

    #ctModalSimulador .sp-ambiente-card{

        flex:0 0 70px !important;

    }

    #ctModalSimulador .sp-ambiente-card img{

        height:45px !important;

    }

    #ctModalSimulador .sp-ambiente-card span{

        font-size:9px !important;

        padding:2px !important;

    }

    #ctModalSimulador #sp-carrusel-prev,
    #ctModalSimulador #sp-carrusel-next{

        width:30px !important;

        height:30px !important;

        font-size:16px !important;

        line-height:30px !important;

    }

    #ctModalSimulador #sp-canvas-container{

        min-height:auto !important;

    }

    #ctModalSimulador #sp-canvas{

        width:100% !important;

        height:auto !important;

    }

    #ctNavColor{

    position:fixed !important;

    bottom:90px !important;

    left:50% !important;

    transform:translateX(-50%) !important;

    z-index:999999 !important;

    display:flex !important;

    align-items:center !important;

    justify-content:center !important;

    gap:15px !important;

    background:#fff !important;

    padding:8px 15px !important;

    border-radius:40px !important;

    box-shadow:0 4px 15px rgba(0,0,0,.15) !important;

    height:auto !important;

}

    #ctNavColor button{

    width:48px !important;

    height:48px !important;

    font-size:26px !important;

}

#ctColorActual{

    min-width:90px !important;

    font-size:14px !important;

}

    #ctSimuladorContainer{

    width:100% !important;

    margin:0 !important;

    padding:0 !important;

}

#ctModalSimulador #sp-main-layout{

    width:100% !important;

    margin:0 !important;

    padding:0 !important;

}

#ctModalSimulador #sp-container-simulador{

    width:100% !important;

    max-width:none !important;

    margin:0 !important;

    padding:0 !important;

}

#ctModalSimulador #sp-panel-simulador{

    width:100vw !important;

    max-width:none !important;

    padding:0 !important;

}

#ctModalSimulador #sp-canvas-container{

    width:100vw !important;

    max-width:none !important;

    margin:0 !important;

    padding:0 !important;

}

#ctModalSimulador #sp-canvas{

    width:100vw !important;

    max-width:none !important;

}

}

@media(max-width:768px){

    .ct-especiales{

        gap:20px !important;

        margin:15px 0 20px !important;

    }

    .ct-especial img{

        width:70px !important;
        height:70px !important;

    }

    .ct-especial span{

        font-size:13px !important;

    }

}

/* =========================
   AJUSTES MOVIL
========================= */

@media (max-width:768px){

    .ct-familias{

        justify-content:flex-start !important;

        overflow-x:auto !important;

        overflow-y:hidden !important;

        padding-left:10px !important;

        padding-right:10px !important;

        -webkit-overflow-scrolling:touch;

    }

    .ct-especiales{

        gap:20px !important;

        margin:15px 0 20px !important;

        justify-content:center !important;

    }

    .ct-especial img{

        width:80px !important;

        height:80px !important;

    }

    .ct-especial span{

        font-size:14px !important;

    }

}