/* =========================================
MODAL BASE
========================================= */

#sc-modal-create-cliente{

    position:fixed;
    inset:0;

    display:none;

    align-items:center;
    justify-content:center;

    /* más espacio arriba y abajo */
    padding:60px 24px;

    z-index:9999;
}

#sc-modal-create-cliente.active{
    display:flex;
}


/* =========================================
OVERLAY
========================================= */

#sc-modal-create-cliente .sc-modal-overlay{

    position:absolute;
    inset:0;

    background:rgba(15,23,42,.55);

    backdrop-filter:blur(2px);
}


/* =========================================
CAJA MODAL
========================================= */

#sc-modal-create-cliente .sc-modal-box{

    position:relative;

    width:100%;
    max-width:560px;

    background:#ffffff;

    border-radius:12px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.18),
        0 10px 30px rgba(0,0,0,.10);

    display:flex;
    flex-direction:column;

    /* evita que el modal choque con el menú */
    max-height:calc(100vh - 120px);

    overflow:hidden;

    animation:scClienteCreateFade .18s ease;
}

@keyframes scClienteCreateFade{

    from{
        transform:translateY(-10px) scale(.98);
        opacity:0;
    }

    to{
        transform:translateY(0) scale(1);
        opacity:1;
    }

}


/* =========================================
HEADER
========================================= */

#sc-modal-create-cliente .sc-modal-header{

    padding:20px 24px;

    border-bottom:1px solid #eef1f4;
}

#sc-modal-create-cliente .sc-modal-header h2{

    margin:0;

    font-size:18px;
    font-weight:600;

    color:#0f172a;
}


/* =========================================
BODY
========================================= */

#sc-modal-create-cliente .sc-modal-body{

    padding:24px;

    overflow-y:auto;

    scrollbar-width:thin;
}


/* =========================================
FORM GROUP
========================================= */

#sc-modal-create-cliente .sc-form-group{

    display:flex;
    flex-direction:column;

    gap:6px;

    margin-bottom:16px;
}

#sc-modal-create-cliente .sc-form-group label{

    font-size:13px;
    font-weight:500;

    color:#334155;
}


/* =========================================
INPUTS
========================================= */

#sc-modal-create-cliente .sc-form-group input,
#sc-modal-create-cliente .sc-form-group select{

    height:40px;

    padding:0 12px;

    border:1px solid #dfe3e8;

    border-radius:8px;

    font-size:14px;

    transition:.2s;
}

#sc-modal-create-cliente .sc-form-group input:focus,
#sc-modal-create-cliente .sc-form-group select:focus{

    outline:none;

    border-color:#3b82f6;

    box-shadow:0 0 0 3px rgba(59,130,246,.15);
}


/* =========================================
ERRORES
========================================= */

#sc-modal-create-cliente .sc-error{

    font-size:12px;

    color:#dc2626;

    min-height:14px;
}


/* =========================================
FOOTER
========================================= */

#sc-modal-create-cliente .sc-modal-footer{

    display:flex;

    justify-content:flex-end;

    gap:10px;

    margin-top:10px;

    padding-top:18px;

    border-top:1px solid #eef1f4;
}


/* =========================================
BOTONES
========================================= */

#sc-modal-create-cliente .sc-btn-secondary{

    height:38px;

    padding:0 16px;

    border-radius:8px;

    border:1px solid #d1d5db;

    background:#ffffff;

    font-size:14px;

    cursor:pointer;

    transition:.2s;
}

#sc-modal-create-cliente .sc-btn-secondary:hover{
    background:#f3f4f6;
}

#sc-modal-create-cliente .sc-btn-primary{

    height:38px;

    padding:0 18px;

    border:none;

    border-radius:8px;

    background:#2563eb;

    color:#ffffff;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    transition:.2s;
}

#sc-modal-create-cliente .sc-btn-primary:hover{
    background:#1d4ed8;
}


/* =========================================
RESPONSIVE
========================================= */

@media (max-width:600px){

#sc-modal-create-cliente{
    padding:24px 14px;
}

#sc-modal-create-cliente .sc-modal-box{
    max-width:100%;
}

#sc-modal-create-cliente .sc-modal-header{
    padding:16px 18px;
}

#sc-modal-create-cliente .sc-modal-body{
    padding:18px;
}

}