/*====================================================*
* SYSTEM LEADS PRO
* SEGUIMIENTOS.CSS
*====================================================*/


/*====================================================*
* CABECERA
*====================================================*/

.slp-page-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:25px;

    margin-bottom:25px;

    flex-wrap:wrap;

}

.slp-page-header h1{

    margin:0;

    font-size:34px;

    font-weight:700;

    color:#111827;

}

.slp-page-header p{

    margin-top:6px;

    color:#64748B;

    font-size:15px;

}


/*====================================================*
* ESTADÍSTICAS
*====================================================*/

.slp-followup-stats{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

    margin-bottom:25px;

}

.slp-followup-stat{

    display:flex;

    align-items:center;

    gap:15px;

    background:#FFFFFF;

    border:1px solid #E5E7EB;

    border-radius:16px;

    padding:18px;

    box-shadow:0 6px 18px rgba(15,23,42,.05);

}

.slp-followup-stat-icon{

    width:46px;

    height:46px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:12px;

    background:#F8FAFC;

    font-size:21px;

}

.slp-followup-stat strong{

    display:block;

    font-size:25px;

    line-height:1;

    color:#111827;

}

.slp-followup-stat span{

    display:block;

    margin-top:5px;

    color:#64748B;

    font-size:14px;

}


/*====================================================*
* BUSCADOR
*====================================================*/

.slp-toolbar{

    margin-bottom:25px;

}

.slp-toolbar .slp-input{

    width:100%;

    height:48px;

    padding:0 18px;

    border:1px solid #D1D5DB;

    border-radius:12px;

    font-size:15px;

    outline:none;

    transition:.25s;

    box-sizing:border-box;

}

.slp-toolbar .slp-input:focus{

    border-color:#2563EB;

    box-shadow:0 0 0 3px rgba(37,99,235,.10);

}


/*====================================================*
* COLUMNAS
*====================================================*/

.slp-followup-columns{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    width:100%;

    align-items:start;

}

.slp-followup-column{

    min-width:0;

    background:#F8FAFC;

    border:1px solid #E5E7EB;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 4px 14px rgba(15,23,42,.05);

}

.slp-followup-column-header{

    min-height:58px;

    padding:0 18px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    color:#FFFFFF;

}

.slp-followup-column-header h3{

    margin:0;

    font-size:16px;

    font-weight:700;

}

.slp-followup-column-header span{

    min-width:28px;

    height:28px;

    padding:0 8px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:20px;

    background:rgba(255,255,255,.20);

    font-size:13px;

    font-weight:700;

}


/*====================================================*
* COLORES CABECERAS
*====================================================*/

.slp-followup-column-header.pending{

    background:#EF4444;

}

.slp-followup-column-header.completed{

    background:#10B981;

}

.slp-followup-column-header.cancelled{

    background:#6B7280;

}


/*====================================================*
* CUERPO COLUMNAS
*====================================================*/

.slp-followup-column-body{

    padding:14px;

    display:flex;

    flex-direction:column;

    gap:14px;

    min-height:180px;

}


/*====================================================*
* TARJETAS
*====================================================*/

.slp-followup-card{

    background:#FFFFFF;

    border:1px solid #E5E7EB;

    border-radius:16px;

    padding:18px;

    box-shadow:0 6px 18px rgba(15,23,42,.06);

    transition:.25s;

}

.slp-followup-card:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 28px rgba(15,23,42,.10);

}

.slp-followup-card.completed-card{

    opacity:.88;

}

.slp-followup-card.cancelled-card{

    opacity:.75;

}


/*====================================================*
* PARTE SUPERIOR TARJETA
*====================================================*/

.slp-followup-card-top{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    margin-bottom:10px;

}

.slp-followup-type{

    display:inline-flex;

    align-items:center;

    gap:5px;

    color:#475569;

    font-size:13px;

    font-weight:600;

}

.slp-followup-date{

    color:#64748B;

    font-size:12px;

    white-space:nowrap;

}


/*====================================================*
* TITULO
*====================================================*/

.slp-followup-card h4{

    margin:0 0 10px;

    font-size:17px;

    font-weight:700;

    line-height:1.35;

    color:#111827;

}


/*====================================================*
* CONTACTO
*====================================================*/

.slp-followup-contact{

    color:#475569;

    font-size:14px;

    font-weight:600;

    margin-bottom:10px;

}


/*====================================================*
* NOTAS
*====================================================*/

.slp-followup-notes{

    margin:0 0 14px;

    padding:10px 12px;

    border-radius:10px;

    background:#F8FAFC;

    color:#64748B;

    font-size:13px;

    line-height:1.45;

}


/*====================================================*
* ACCIONES
*====================================================*/

.slp-followup-actions{

    display:flex;

    align-items:center;

    gap:8px;

    margin-top:14px;

}

.slp-followup-actions form{

    margin:0;

}

.slp-followup-complete{

    height:38px;

    padding:0 13px;

    border:1px solid #A7F3D0;

    border-radius:10px;

    background:#ECFDF5;

    color:#059669;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.slp-followup-complete:hover{

    background:#D1FAE5;

    border-color:#6EE7B7;

}

.slp-followup-edit,
.slp-followup-delete{

    height:38px;

    border-radius:10px;

    cursor:pointer;

    transition:.25s;

    font-weight:600;

}

.slp-followup-edit{

    padding:0 13px;

    border:1px solid #DBEAFE;

    background:#EFF6FF;

    color:#2563EB;

}

.slp-followup-edit:hover{

    background:#DBEAFE;

}

.slp-followup-delete{

    width:38px;

    border:1px solid #FECACA;

    background:#FFFFFF;

    color:#EF4444;

}

.slp-followup-delete:hover{

    background:#FEF2F2;

}


/*====================================================*
* MODAL
*====================================================*/

.slp-modal{

    position:fixed;

    inset:0;

    display:none;

    align-items:center;

    justify-content:center;

    padding:20px;

    background:rgba(15,23,42,.45);

    backdrop-filter:blur(4px);

    z-index:99999;

}

.slp-modal.show{

    display:flex;

}

.slp-modal-box{

    width:560px;

    max-width:100%;

    max-height:90vh;

    overflow-y:auto;

    background:#FFFFFF;

    border-radius:18px;

    padding:30px;

    box-shadow:0 25px 60px rgba(15,23,42,.25);

    animation:slpFollowupModal .25s ease;

}

@keyframes slpFollowupModal{

    from{

        opacity:0;

        transform:translateY(-20px) scale(.98);

    }

    to{

        opacity:1;

        transform:translateY(0) scale(1);

    }

}

.slp-modal-box h2{

    margin:0 0 25px;

    color:#111827;

    font-size:24px;

}


/*====================================================*
* FORMULARIO
*====================================================*/

.slp-form-group{

    margin-bottom:18px;

}

.slp-form-group label{

    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

    color:#374151;

}

.slp-form-group input,
.slp-form-group select,
.slp-form-group textarea{

    width:100%;

    box-sizing:border-box;

    border:1px solid #D1D5DB;

    border-radius:12px;

    padding:0 14px;

    font-size:15px;

    background:#FFFFFF;

    transition:.25s;

}

.slp-form-group input,
.slp-form-group select{

    height:46px;

}

.slp-form-group textarea{

    padding:12px 14px;

    min-height:100px;

    resize:vertical;

}

.slp-form-group input:focus,
.slp-form-group select:focus,
.slp-form-group textarea:focus{

    outline:none;

    border-color:#2563EB;

    box-shadow:0 0 0 3px rgba(37,99,235,.12);

}


/*====================================================*
* FECHA + HORA
*====================================================*/

.slp-followup-form-row{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

}

.slp-followup-form-row .slp-form-group{

    min-width:0;

}


/*====================================================*
* BOTONES MODAL
*====================================================*/

.slp-modal-buttons{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-top:28px;

}

.slp-btn-secondary{

    height:44px;

    padding:0 20px;

    border:none;

    border-radius:12px;

    background:#E5E7EB;

    color:#111827;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.slp-btn-secondary:hover{

    background:#D1D5DB;

}


/*====================================================*
* MOVIL
*====================================================*/

@media (max-width:900px){

    .slp-followup-columns{

        grid-template-columns:1fr;

    }

}

@media (max-width:768px){

    .slp-followup-stats{

        grid-template-columns:1fr;

    }

    .slp-followup-stat{

        padding:16px;

    }

    .slp-followup-card-top{

        align-items:flex-start;

        flex-direction:column;

    }

    .slp-followup-date{

        white-space:normal;

    }

    .slp-followup-form-row{

        grid-template-columns:1fr;

        gap:0;

    }

    .slp-modal{

        padding:10px;

        align-items:flex-start;

        overflow-y:auto;

    }

    .slp-modal-box{

        width:100%;

        max-height:none;

        margin:20px 0;

        padding:22px;

        border-radius:16px;

    }

    .slp-modal-buttons{

        flex-direction:column-reverse;

    }

    .slp-modal-buttons button{

        width:100%;

    }

}