.uip-app {
    max-width: 900px;
    margin: auto;
    font-family: sans-serif;
}

.uip-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.text-danger{
    color:red;
}

.uip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.uip-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.uip-card:hover {
    transform: scale(1.02);
}

.uip-card.selected {
    border: 2px solid #2ecc71;
    background: #eaffea;
}

.uip-card.obligatorio {
    border: 2px solid #e74c3c;
    background: #fff0f0;
    cursor: default;
}

.tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 5px;
    background: #eee;
}

.uip-app-blocked {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.uip-card.success {
    background: #eaffea;
    border: 2px solid #2ecc71;
    padding: 20px;
    border-radius: 12px;
}



.uip-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.uip-btn-primary {
    background: #1e88e5;
    color: #fff;
}

.uip-progress {
    background: #eee;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.uip-bar {
    height: 100%;
    background: #4caf50;
}

/* ===========================
   DASHBOARD
=========================== */

.uip-portal{
    max-width:1200px;
    margin:30px auto;
}

.uip-nav{
    display:flex;
    gap:10px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.uip-tab{
    padding:12px 18px;
    border:none;
    border-radius:10px;
    background:#f2f2f2;
    cursor:pointer;
    transition:.2s;
    font-weight:600;
}

.uip-tab:hover{
    background:#e5e5e5;
}

.uip-tab.active{
    background:#1e88e5;
    color:#fff;
}

.uip-section{
    display:none;
}

.uip-section.active{
    display:block;
}

.uip-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.uip-card .value{
    font-size:30px;
    font-weight:bold;
    color:#1e88e5;
}

.uip-table{
    width:100%;
    border-collapse:collapse;
}

.uip-table th,
.uip-table td{
    padding:10px;
    border:1px solid #ddd;
}

.uip-table th{
    background:#f8f8f8;
}

#uip-perfil-container {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        color: #334155;
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px;
    }

    .uip-app-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 15px;
    }

    .uip-app-header h2 {
        font-size: 24px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }

    .uip-btn-edit {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: #3b82f6;
        color: #ffffff;
        border: none;
        padding: 10px 18px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    }
    
    .uip-progress-bar {
        height: 100%;
        width: 0%; /* Tu script de JS cambiará este porcentaje dinámicamente */
        background: linear-gradient(90deg, #3b82f6, #10b981);
        border-radius: 9999px;
        transition: width 0.4s ease;
    }

    .uip-btn-edit:hover {
        background-color: #2563eb;
        transform: translateY(-1px);
    }

    .uip-card-section {
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        padding: 24px;
        margin-bottom: 24px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    }

    .uip-card-section h3 {
        font-size: 16px;
        font-weight: 600;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-top: 0;
        margin-bottom: 20px;
        padding-bottom: 8px;
        border-bottom: 1px dashed #e2e8f0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Grid responsiva inteligente */
    .uip-grid-2 {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .uip-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .uip-item label {
        font-size: 12px;
        font-weight: 500;
        color: #94a3b8;
        text-transform: uppercase;
    }

    .uip-item span {
        font-size: 15px;
        font-weight: 500;
        color: #0f172a;
        background: #f8fafc;
        padding: 8px 12px;
        border-radius: 6px;
        border: 1px solid #f1f5f9;
        word-break: break-word;
    }

    /* Detalles específicos para observaciones */
    .uip-observations {
        background: #fffbeb;
        border: 1px solid #fef3c7;
        color: #92400e;
        padding: 14px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 1.5;
    }
    /* =====================================================
   FOTO DEL PERFIL
    ===================================================== */
    
    .uip-foto-card{
        width:220px;
        margin-bottom:20px;
    }
    
    .uip-foto-wrapper{
        position:relative;
        display:block;
        cursor:pointer;
    }
    
    .uip-foto-perfil{
        width:220px;
        height:260px;
        object-fit:cover;
        display:block;
        border-radius:12px;
        border:4px solid #fff;
        box-shadow:0 10px 25px rgba(0,0,0,.15);
        transition:.25s;
    }
    
    .uip-foto-overlay{
        position:absolute;
        inset:0;
        border-radius:12px;
        background:rgba(0,0,0,.55);
    
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
    
        color:#fff;
    
        opacity:0;
        transition:.25s;
    }
    
    .uip-foto-wrapper:hover .uip-foto-overlay{
        opacity:1;
    }
    
    .uip-foto-overlay .dashicons{
        font-size:34px;
        width:34px;
        height:34px;
        margin-bottom:10px;
    }
    
    .uip-foto-overlay strong{
        font-size:15px;
        font-weight:600;
    }
    
    .uip-foto-overlay small{
        opacity:.8;
        margin-top:6px;
    }
    
    .uip-foto-estado{
        margin-top:12px;
        text-align:center;
        font-size:13px;
        min-height:22px;
        color:#555;
    }
    
    /*==================================================
=            CABECERA DEL PERFIL
    ==================================================*/
    
    .uip-perfil-header{
    
        display:flex;
    
        gap:40px;
    
        align-items:flex-start;
    
    }
    
    .uip-perfil-foto{
    
        width:220px;
    
        flex-shrink:0;
    
    }
    
    .uip-perfil-resumen{
    
        flex:1;
    
    }
    
    .uip-perfil-nombre{
    
        margin:0;
    
        font-size:34px;
    
        font-weight:700;
    
        color:#1f2937;
    
        line-height:1.15;
    
    }
    
    .uip-perfil-meta{
    
        display:flex;
    
        flex-wrap:wrap;
    
        gap:20px;
    
        margin:24px 0;
    
    }
    
    .uip-perfil-meta>div{
    
        min-width:180px;
    
    }
    
    .uip-perfil-meta strong{
    
        display:block;
    
        font-size:12px;
    
        color:#6b7280;
    
        text-transform:uppercase;
    
        letter-spacing:.08em;
    
        margin-bottom:4px;
    
    }
    
    .uip-perfil-avance{
    
        margin:25px 0;
    
    }
    .uip-progress{

    width:100%;

    height:16px;

    background:#e5e7eb;

    border-radius:100px;

    overflow:hidden;

}

.uip-progress-bar{

    height:100%;

    background:linear-gradient(90deg,#2563eb,#0ea5e9);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:11px;

    font-weight:700;

    transition:.35s;

}
.uip-alert-warning{

    background:#fff8e1;

    color:#8a5a00;

    border-left:5px solid #f59e0b;

    padding:16px 20px;

    border-radius:10px;

    margin-bottom:20px;

}

.uip-alert-warning ul{

    margin:10px 0 0 18px;

}

.uip-alert-success{

    background:#ecfdf5;

    color:#166534;

    border-left:5px solid #16a34a;

    padding:16px 20px;

    border-radius:10px;

    margin-bottom:20px;

}
.uip-foto-wrapper{

    display:block;

    position:relative;

    cursor:pointer;

}

.uip-foto-perfil{

    width:220px;

    height:270px;

    object-fit:cover;

    border-radius:16px;

    display:block;

    border:4px solid #fff;

    box-shadow:0 10px 35px rgba(0,0,0,.18);

    transition:.25s;

}

.uip-foto-wrapper:hover .uip-foto-perfil{

    transform:translateY(-2px);

}
.uip-foto-overlay{

    position:absolute;

    inset:0;

    border-radius:16px;

    background:rgba(0,0,0,.55);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    color:#fff;

    opacity:0;

    transition:.25s;

    text-align:center;

    padding:20px;

}

.uip-foto-wrapper:hover .uip-foto-overlay{

    opacity:1;

}

.uip-foto-overlay .dashicons{

    width:40px;

    height:40px;

    font-size:40px;

    margin-bottom:12px;

}
.uip-foto-estado{

    margin-top:15px;

    text-align:center;

    font-size:13px;

    min-height:20px;

    color:#6b7280;

}
@media(max-width:900px){

    .uip-perfil-header{

        flex-direction:column;

        align-items:center;

    }

    .uip-perfil-meta{

        flex-direction:column;

        gap:10px;

    }

    .uip-perfil-resumen{

        width:100%;

    }

    .uip-perfil-nombre{

        text-align:center;

        font-size:28px;

    }

}