.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:relative !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;

    }

}

.ct-btn-producto{

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:180px;

    height:48px;

    padding:0 24px;

    background:#ffffff;

    border:2px solid #d8d8d8;

    border-radius:40px;

    text-decoration:none;

    color:#333;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.ct-btn-producto:hover{

    background:#333;

    color:#fff;

}

@media(max-width:768px){

    #ctNavColor{

        z-index:1000001 !important;

    }

    .ct-btn-producto{

        position:relative !important;

        z-index:1000002 !important;

        pointer-events:auto !important;

    }

}

@media(max-width:768px){

    #ctNavColor a{

        pointer-events:auto !important;

    }

}

/* =====================================
   EFECTO PLASTIFICADO
   Maderas - Barnices e Impregnantes
===================================== */

.ct-wrapper-maderas .ct-color-plastificado{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.ct-wrapper-maderas.ct-plastificado-activo .ct-color-plastificado::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    border-radius:inherit;
    background:
        linear-gradient(
            116deg,
            rgba(255,255,255,0) 30%,
            rgba(255,255,255,.035) 40%,
            rgba(255,255,255,.30) 48%,
            rgba(255,255,255,.08) 53%,
            rgba(255,255,255,0) 64%
        );
    mix-blend-mode:screen;
}

.ct-wrapper-maderas.ct-plastificado-activo .ct-color-plastificado::after{
    content:"";
    position:absolute;
    inset:1px;
    z-index:2;
    pointer-events:none;
    border-radius:9px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        inset 0 -1px 0 rgba(0,0,0,.06);
    background:
        radial-gradient(
            ellipse at 22% 12%,
            rgba(255,255,255,.18) 0%,
            rgba(255,255,255,.055) 18%,
            rgba(255,255,255,0) 42%
        );
}

.ct-wrapper-maderas.ct-plastificado-activo .ct-color-plastificado{
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.12),
        0 1px 3px rgba(0,0,0,.08);
}


/* =====================================
   SELECTOR DE ACABADO - MADERAS
   Solo visible en Barnices e Impregnantes.
===================================== */

.ct-selector-acabado{
    width:100%;
    display:none;
    align-items:center;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
    margin:8px 0 24px 0;
    padding:10px 14px;
    box-sizing:border-box;
}

.ct-wrapper-maderas.ct-acabado-selector-visible .ct-selector-acabado{
    display:flex;
}

.ct-selector-acabado-titulo{
    font-size:14px;
    font-weight:700;
    color:#444;
    margin-right:4px;
}

.ct-radio-acabado{
    display:grid;
    grid-template-columns:auto auto;
    grid-template-rows:auto auto;
    column-gap:7px;
    align-items:center;
    min-height:44px;
    padding:7px 15px;
    border:1px solid #d9d9d9;
    border-radius:28px;
    background:#fff;
    cursor:pointer;
    transition:.2s ease;
}

.ct-radio-acabado input{
    grid-row:1 / span 2;
    width:17px;
    height:17px;
    margin:0;
    accent-color:#333;
    cursor:pointer;
}

.ct-radio-acabado span{
    font-size:14px;
    font-weight:700;
    line-height:1.1;
    color:#333;
}

.ct-radio-acabado small{
    font-size:11px;
    line-height:1.1;
    color:#777;
}

.ct-radio-acabado:has(input:checked){
    border-color:#999;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

@media(max-width:768px){
    .ct-selector-acabado{
        gap:8px;
        margin:8px 0 20px 0;
        padding:5px 0;
    }

    .ct-selector-acabado-titulo{
        width:100%;
        text-align:center;
        margin:0 0 3px 0;
    }

    .ct-radio-acabado{
        flex:1 1 140px;
        min-width:130px;
        justify-content:center;
        padding:7px 10px;
    }
}
